mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
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:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user