Remove min status bar width limitation. Set initial status bar width when gui_window is created. Note the TODOs in gtk_window.c gui_create_browser_window().

svn path=/trunk/netsurf/; revision=10323
This commit is contained in:
Michael Drake 2010-04-08 18:47:51 +00:00
parent 3c12281565
commit ce57df5bd0
2 changed files with 13 additions and 1 deletions

View File

@ -194,6 +194,18 @@ struct gui_window *gui_create_browser_window(struct browser_window *bw,
g->layout = GTK_LAYOUT(glade_xml_get_widget(xml, "layout"));
g->status_bar = GTK_LABEL(glade_xml_get_widget(xml, "status_bar"));
/* Set statusbar / scrollbar proportion according to the
* percentage given by "option_toolbar_status_width / 10000" */
/* TODO: Is this the best place to do this? */
/* TODO: Should set it to a proportion of real window width,
* not some arbitrary guess at window width. */
/* TODO: Needs to be reset to proportion of window width as
* window is resized too */
const int window_width_guess = 1024;
GtkPaned *paned = GTK_PANED(glade_xml_get_widget(xml, "hpaned1"));
gtk_paned_set_position (paned, (option_toolbar_status_width *
window_width_guess) / 10000);
/* connect the scrollbars to the layout widget */
gtk_layout_set_hadjustment(g->layout,
gtk_range_get_adjustment(GTK_RANGE(

View File

@ -420,7 +420,7 @@
<property name="can_focus">True</property>
<child>
<widget class="GtkLabel" id="status_bar">
<property name="width_request">400</property>
<property name="width_request">1</property>
<property name="visible">True</property>
<property name="xalign">0</property>
<property name="xpad">4</property>