Bug applying patch in label justification



Hi,

Someone made a mistake applying my patch to correct the bug with label
justification - a bracket was put in the wrong place so it was taking 1
pixel
off the result of text_width() instead of calling text_width() with 1 less
character (the '\n').

Patch included for Gtk 0.99.10

Damon


--- gtklabel.c.orig Wed Apr  8 05:00:42 1998
+++ gtklabel.c Tue Apr 14 15:37:38 1998
@@ -266,7 +266,7 @@
      width = MAX (width,
                        gdk_text_width (GTK_WIDGET (label)->style->font,
            row->data,
-                                       (gchar*) row->next->data - (gchar*)
row->data) - 1);
+                                       (gchar*) row->next->data - (gchar*)
row->data - 1));
       else
         width = MAX (width, gdk_string_width (GTK_WIDGET
(label)->style->font, row->data));
       row = row->next;







[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]