Remove five year old workaround for a resizing bug. Fixes #344764.

Also explicitly initialize a couple of variables.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14374 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
David Hampton
2006-06-16 23:28:11 +00:00
parent d5b0ddaa4b
commit 625f3de519
2 changed files with 9 additions and 4 deletions

View File

@@ -1,3 +1,9 @@
2006-06-16 David Hampton <hampton@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@employees.org>
* src/app-utils/gnc-ui-util.c: Restore the auto decimal places

View File

@@ -317,16 +317,13 @@ gnc_header_reconfigure (GncHeader *header)
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 @@ gnc_header_init (GncHeader *header)
header->resize_cursor = gdk_cursor_new (GDK_SB_H_DOUBLE_ARROW);
header->normal_cursor = NULL;
header->height = 20;
header->width = 400;
header->style = NULL;
}