Bug#397108: Improve resizing of sx list panes, save and restore their sizes.

Give additional space to the sx list instead of the calendar.  Also save
the page's pane divisor position and restore it when reopening the data
file.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16999 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Andreas Köhler
2008-03-02 19:43:51 +00:00
parent d6ea7c5685
commit ab90f381fd
2 changed files with 16 additions and 3 deletions

View File

@@ -5992,7 +5992,7 @@ Custom</property>
</widget>
<packing>
<property name="shrink">True</property>
<property name="resize">False</property>
<property name="resize">True</property>
</packing>
</child>
@@ -6085,7 +6085,7 @@ Custom</property>
</widget>
<packing>
<property name="shrink">True</property>
<property name="resize">True</property>
<property name="resize">False</property>
</packing>
</child>
</widget>

View File

@@ -421,7 +421,10 @@ gnc_plugin_page_sx_list_save_page (GncPluginPage *plugin_page,
priv = GNC_PLUGIN_PAGE_SX_LIST_GET_PRIVATE(page);
g_key_file_set_integer(key_file, group_name, "dense_cal_num_months",
gnc_dense_cal_get_num_months(priv->gdcal));
gnc_dense_cal_get_num_months(priv->gdcal));
g_key_file_set_integer(key_file, group_name, "paned_position",
gtk_paned_get_position(GTK_PANED(priv->widget)));
}
/**
@@ -459,6 +462,16 @@ gnc_plugin_page_sx_list_recreate_page (GtkWidget *window,
g_error_free(err);
}
{
GError *err = NULL;
gint paned_position = g_key_file_get_integer(key_file, group_name,
"paned_position", &err);
if (err == NULL)
gtk_paned_set_position(GTK_PANED(priv->widget), paned_position);
else
g_error_free(err);
}
return GNC_PLUGIN_PAGE(page);
}