diff options
author | Nick Østergaard <oe.nick@gmail.com> | 2021-01-02 21:48:01 +0100 |
---|---|---|
committer | Nick Østergaard <oe.nick@gmail.com> | 2021-01-03 17:02:10 +0100 |
commit | e1b1ac446102ab618b905110612a1a1bc61aed39 (patch) | |
tree | 8c01f0880f1c1bca5591c5a57d47f090e50cf399 /src | |
parent | 83abce1eba1f98ef884529880a9cc6d8ba987649 (diff) | |
download | distcc-git-e1b1ac446102ab618b905110612a1a1bc61aed39.tar.gz |
Replace deprecated gtk_vbox_new with gtk_box_new
Diffstat (limited to 'src')
-rw-r--r-- | src/mon-gnome.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/mon-gnome.c b/src/mon-gnome.c index a3530f4..2ae32db 100644 --- a/src/mon-gnome.c +++ b/src/mon-gnome.c @@ -587,8 +587,9 @@ static int dcc_gnome_make_app (void) /* Create the main window */ mainwin = dcc_gnome_make_mainwin (); - /* Create a vbox for the contents */ - topbox = gtk_vbox_new (FALSE, 0); + /* Create a gtkbox for the contents */ + topbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); + gtk_container_add (GTK_CONTAINER (mainwin), topbox); @@ -600,6 +601,13 @@ static int dcc_gnome_make_app (void) gtk_container_add (GTK_CONTAINER (topbox), proc_align); + gtk_box_set_child_packing (GTK_BOX (topbox), + GTK_WIDGET (proc_align), + TRUE, + TRUE, + 0, + GTK_PACK_START); + gtk_box_pack_end (GTK_BOX (topbox), load_bar, FALSE, /* expand */ |