[Gnucash-changes] r14374 - gnucash/trunk - Remove five year old workaround for a resizing bug. Fixes #344764.

David Hampton hampton at cvs.gnucash.org
Fri Jun 16 19:28:12 EDT 2006


Author: hampton
Date: 2006-06-16 19:28:11 -0400 (Fri, 16 Jun 2006)
New Revision: 14374
Trac: http://svn.gnucash.org/trac/changeset/14374

Modified:
   gnucash/trunk/ChangeLog
   gnucash/trunk/src/register/register-gnome/gnucash-header.c
Log:
Remove five year old workaround for a resizing bug.  Fixes #344764.
Also explicitly initialize a couple of variables.


Modified: gnucash/trunk/ChangeLog
===================================================================
--- gnucash/trunk/ChangeLog	2006-06-16 23:14:13 UTC (rev 14373)
+++ gnucash/trunk/ChangeLog	2006-06-16 23:28:11 UTC (rev 14374)
@@ -1,3 +1,9 @@
+2006-06-16  David Hampton  <hampton at employees.org>
+
+	* src/register/register-gnome/gnucash-header.c: Remove five year
+	old workaround for a resizing bug.  Fixes #344764.  Also
+	explicitly initialize a couple of variables.
+
 2006-06-14  David Hampton  <hampton at employees.org>
 
 	* src/app-utils/gnc-ui-util.c: Restore the auto decimal places

Modified: gnucash/trunk/src/register/register-gnome/gnucash-header.c
===================================================================
--- gnucash/trunk/src/register/register-gnome/gnucash-header.c	2006-06-16 23:14:13 UTC (rev 14373)
+++ gnucash/trunk/src/register/register-gnome/gnucash-header.c	2006-06-16 23:28:11 UTC (rev 14374)
@@ -317,16 +317,13 @@
             header->width != w  ||
             header->style != old_style)
         {
-                gint old_height = header->height;
-
                 header->height = h;
                 header->width = w;
 
                 gnome_canvas_set_scroll_region (GNOME_CANVAS(canvas),
                                                 0, 0, w, h);
 
-                if (old_height != h)
-                        gtk_widget_set_size_request (GTK_WIDGET(canvas), -1, h);
+		gtk_widget_set_size_request (GTK_WIDGET(canvas), -1, h);
 
                 gnc_header_request_redraw (header);
         }
@@ -643,6 +640,8 @@
         header->resize_cursor = gdk_cursor_new (GDK_SB_H_DOUBLE_ARROW);
         header->normal_cursor = NULL;
         header->height = 20;
+        header->width = 400;
+        header->style = NULL;
 }
 
 



More information about the gnucash-changes mailing list