Make statusbar children fit in better
This commit is contained in:
parent
28141e8bac
commit
5e66e09c00
1 changed files with 6 additions and 2 deletions
|
@ -3595,11 +3595,15 @@ midori_browser_init (MidoriBrowser* browser)
|
||||||
gtk_box_pack_start (GTK_BOX (vbox), browser->find, FALSE, FALSE, 0);
|
gtk_box_pack_start (GTK_BOX (vbox), browser->find, FALSE, FALSE, 0);
|
||||||
|
|
||||||
/* Statusbar */
|
/* Statusbar */
|
||||||
/* FIXME: children are overlapping the statusbar border */
|
|
||||||
browser->statusbar = gtk_statusbar_new ();
|
browser->statusbar = gtk_statusbar_new ();
|
||||||
|
/* Adjust the statusbar's padding to avoid child overlapping */
|
||||||
|
rcstyle = gtk_rc_style_new ();
|
||||||
|
rcstyle->xthickness = rcstyle->ythickness = -4;
|
||||||
|
gtk_widget_modify_style (browser->statusbar, rcstyle);
|
||||||
|
g_object_unref (rcstyle);
|
||||||
gtk_box_pack_start (GTK_BOX (vbox), browser->statusbar, FALSE, FALSE, 0);
|
gtk_box_pack_start (GTK_BOX (vbox), browser->statusbar, FALSE, FALSE, 0);
|
||||||
browser->progressbar = gtk_progress_bar_new ();
|
browser->progressbar = gtk_progress_bar_new ();
|
||||||
/* Setting the progressbar's height to 1 makes it fit in the statusbar */
|
/* Set the progressbar's height to 1 to fit it in the statusbar */
|
||||||
gtk_widget_set_size_request (browser->progressbar, -1, 1);
|
gtk_widget_set_size_request (browser->progressbar, -1, 1);
|
||||||
gtk_box_pack_start (GTK_BOX (browser->statusbar), browser->progressbar,
|
gtk_box_pack_start (GTK_BOX (browser->statusbar), browser->progressbar,
|
||||||
FALSE, FALSE, 3);
|
FALSE, FALSE, 3);
|
||||||
|
|
Loading…
Reference in a new issue