Search the web
Sign In
New User? Sign Up
gbuffy · GBuffy Tool Discussion
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Show off your group to the world. Share a photo of your group with us.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Gdk-CRITICAL errors and a patch   Message List  
Reply | Forward Message #13 of 231 |

Hi,
I have been using gbuffy for a while and I fixed a problem I
had with it awhile back but never passed it along. And until I just
restaged my machine I had forgotten that I had fixed this.

The problem is when you receive a email with no Subject, I get these a
lot from cronjobs that I run. And I would get this error when I would
left click on the gbuffy window:

Gdk-CRITICAL **: file gdkdraw.c: line 215 (gdk_draw_string): assertion
`string != NULL' failed.

This is more annoying then anything else. Anyway my fix was very
simple check to see if m->subject was NULL before calling
gdk_draw_string.

Here is the patch file for gbuffy.c

Thanks for writing Gbuffy.

-Scott

~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~
Scott Stonefield www.flynnstone.com
srs@...


------------------ gbuffy.patch --------------------------------
*** gbuffy.c.orig Mon May 14 20:47:35 2001
--- gbuffy.c Tue Dec 18 12:05:33 2001
***************
*** 233,242 ****
da->style->fg_gc[GTK_WIDGET_STATE (da)], x, y + (face_display * 3),
m->from);
y += box->height;
! gdk_draw_string (box->pixmap, da->style->font,
! da->style->fg_gc[GTK_WIDGET_STATE (da)], x, y + (face_display * 3),
! m->subject);
! y += box->height;
if (face_display)
y += box->height;
gdk_draw_line (box->pixmap, da->style->dark_gc[GTK_WIDGET_STATE (da)],
--- 233,249 ----
da->style->fg_gc[GTK_WIDGET_STATE (da)], x, y + (face_display * 3),
m->from);
y += box->height;
!
! /* First check to see if we actually have a subject to print.
! if so then print the subject with the From line. If not Skip.
! */
! if ( m->subject != NULL ) {
! gdk_draw_string (box->pixmap, da->style->font,
! da->style->fg_gc[GTK_WIDGET_STATE (da)],
! x, y + (face_display * 3), m->subject);
! y += box->height;
! }
!
if (face_display)
y += box->height;
gdk_draw_line (box->pixmap, da->style->dark_gc[GTK_WIDGET_STATE (da)],




Wed Dec 19, 2001 2:08 pm

stoney027
Offline Offline
Send Email Send Email

Forward
Message #13 of 231 |
Expand Messages Author Sort by Date

Hi, I have been using gbuffy for a while and I fixed a problem I had with it awhile back but never passed it along. And until I just restaged my machine I had...
Scott Stonefield
stoney027
Offline Send Email
Dec 19, 2001
2:08 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help