Deleted code which rendered the button labels twice.
authorJohn Darrington <john@darrington.wattle.id.au>
Mon, 15 May 2006 08:12:18 +0000 (08:12 +0000)
committerJohn Darrington <john@darrington.wattle.id.au>
Mon, 15 May 2006 08:12:18 +0000 (08:12 +0000)
Smake
lib/gtksheet/ChangeLog
lib/gtksheet/gtksheet.c

diff --git a/Smake b/Smake
index 764044cb82b162db076039bb0a1542fdbf018157..a13ce6b5bb36e3ec60105a29611a6602e06c1652 100644 (file)
--- a/Smake
+++ b/Smake
@@ -58,7 +58,7 @@ all: po/POTFILES.in
        $(GNULIB_TOOL) --import --no-changelog --m4-base=gl/m4 \
                --source-base=gl --lib=libgl --tests-base=tests \
                --import $(GNULIB_MODULES)
-       autopoint
+       autopoint --force
        aclocal -I m4 -I gl/m4
        autoconf
        autoheader
index 32d1273602c68a383ca5d80e15f3c606e51e187f..596afc3db038a01843543e64d89e8d243408ba6e 100644 (file)
@@ -1,3 +1,8 @@
+Mon May 15 16:10:49 WST 2006 John Darrington <john@darrington.wattle.id.au>
+
+    * gtksheet.c: Removed code which rendered the title buttons a second 
+    time.  Cut and Paste error ?
+
 Sat May 13 07:58:32 WST 2006 John Darrington <john@darrington.wattle.id.au>
 
         * gsheetmodel.c gsheetmodel.h gtksheet.c gtksheeet.h: Added
index c7c3f7a86878d1833964183bd3fa6da5830b064b..dd7d4190f0e4972f93d58df61c3d154667648bb6 100644 (file)
@@ -6537,40 +6537,6 @@ gtk_sheet_button_draw (GtkSheet *sheet, gint row, gint column)
            }
            g_free(line);
     }
-    if(button->label && strlen(button->label) > 0){
-      PangoLayout *layout = NULL;
-      gint real_x = x, real_y = y;
-
-      text_width = STRING_WIDTH(GTK_WIDGET(sheet), GTK_WIDGET(sheet)->style->font_desc, button->label);
-
-      layout = gtk_widget_create_pango_layout (GTK_WIDGET(sheet), button->label);
-      switch(button->justification){
-      case GTK_JUSTIFY_LEFT:
-       real_x = x + CELLOFFSET;
-       align = rtl ? PANGO_ALIGN_RIGHT : PANGO_ALIGN_LEFT;
-       break;
-      case GTK_JUSTIFY_RIGHT:
-       real_x = x + width - text_width - CELLOFFSET;
-       align = rtl ? PANGO_ALIGN_LEFT : PANGO_ALIGN_RIGHT;
-       break;
-      case GTK_JUSTIFY_CENTER:
-      default:
-       real_x = x + (width - text_width)/2;
-       align = rtl ? PANGO_ALIGN_RIGHT : PANGO_ALIGN_LEFT;
-       pango_layout_set_justify (layout, TRUE);
-      }
-      pango_layout_set_alignment (layout, align);
-      gtk_paint_layout (GTK_WIDGET(sheet)->style,
-                       window,
-                       state,
-                       FALSE,
-                       &allocation,
-                       GTK_WIDGET(sheet),
-                       "label",
-                       real_x, real_y,
-                       layout);
-      g_object_unref(G_OBJECT(layout));
-    }
 
     gdk_gc_set_clip_rectangle(GTK_WIDGET(sheet)->style->fg_gc[button->state],
                             NULL);