From 2e119b583dd9c74eb8a10c889662944e64faa1b8 Mon Sep 17 00:00:00 2001 From: Pan7 Date: Tue, 16 May 2017 00:34:04 +0200 Subject: [PATCH] Extra gtk_box_set_homogeneous function calls --- contrib/bkgrnd2d/dialog.cpp | 3 ++- contrib/bobtoolz/dialogs/dialogs-gtk.cpp | 3 ++- contrib/gtkgensurf/gendlgs.cpp | 12 ++++++++---- contrib/gtkgensurf/view.cpp | 3 ++- contrib/prtview/AboutDialog.cpp | 2 +- contrib/prtview/ConfigDialog.cpp | 3 ++- contrib/prtview/gtkdlgs.cpp | 3 ++- radiant/gtkdlgs.cpp | 6 ++++-- radiant/patchdialog.cpp | 3 ++- 9 files changed, 25 insertions(+), 13 deletions(-) diff --git a/contrib/bkgrnd2d/dialog.cpp b/contrib/bkgrnd2d/dialog.cpp index 41e54c89..2aa53e7c 100644 --- a/contrib/bkgrnd2d/dialog.cpp +++ b/contrib/bkgrnd2d/dialog.cpp @@ -342,7 +342,8 @@ void InitBackgroundDialog(){ pPage = new CBackgroundDialogPage( YZ ); pPage->Append( pNotebook ); - vbox = gtk_hbox_new( TRUE, 5 ); + vbox = gtk_hbox_new( FALSE, 5 ); + gtk_box_set_homogeneous( GTK_BOX( vbox ), TRUE ); gtk_container_add( GTK_CONTAINER( content_area ), vbox ); gtk_widget_show( vbox ); diff --git a/contrib/bobtoolz/dialogs/dialogs-gtk.cpp b/contrib/bobtoolz/dialogs/dialogs-gtk.cpp index 2847bc38..155d1030 100644 --- a/contrib/bobtoolz/dialogs/dialogs-gtk.cpp +++ b/contrib/bobtoolz/dialogs/dialogs-gtk.cpp @@ -1287,7 +1287,8 @@ int DoResetTextureBox( ResetTextureRS* rs ){ content_area = gtk_dialog_get_content_area( GTK_DIALOG( dialog ) ); - vbox = gtk_vbox_new( TRUE, 5 ); + vbox = gtk_vbox_new( FALSE, 5 ); + gtk_box_set_homogeneous( GTK_BOX( vbox ), TRUE ); gtk_container_add( GTK_CONTAINER( content_area ), vbox ); gtk_widget_show( vbox ); diff --git a/contrib/gtkgensurf/gendlgs.cpp b/contrib/gtkgensurf/gendlgs.cpp index 25da1f13..fd791774 100644 --- a/contrib/gtkgensurf/gendlgs.cpp +++ b/contrib/gtkgensurf/gendlgs.cpp @@ -1392,7 +1392,8 @@ GtkWidget* create_main_dialog(){ (GtkAttachOptions) ( GTK_EXPAND | GTK_FILL ), 0, 0 ); gtk_widget_show( frame ); - vbox = gtk_vbox_new( TRUE, 5 ); + vbox = gtk_vbox_new( FALSE, 5 ); + gtk_box_set_homogeneous( GTK_BOX( vbox ), TRUE ); gtk_container_add( GTK_CONTAINER( frame ), vbox ); gtk_container_set_border_width( GTK_CONTAINER( vbox ), 5 ); gtk_widget_show( vbox ); @@ -1413,7 +1414,8 @@ GtkWidget* create_main_dialog(){ (GtkAttachOptions) ( GTK_EXPAND | GTK_FILL ), 0, 0 ); gtk_widget_show( frame ); - vbox = gtk_vbox_new( TRUE, 5 ); + vbox = gtk_vbox_new( FALSE, 5 ); + gtk_box_set_homogeneous( GTK_BOX( vbox ), TRUE ); gtk_container_add( GTK_CONTAINER( frame ), vbox ); gtk_container_set_border_width( GTK_CONTAINER( vbox ), 5 ); gtk_widget_show( vbox ); @@ -1434,7 +1436,8 @@ GtkWidget* create_main_dialog(){ (GtkAttachOptions) ( GTK_EXPAND | GTK_FILL ), 0, 0 ); gtk_widget_show( frame ); - vbox = gtk_vbox_new( TRUE, 5 ); + vbox = gtk_vbox_new( FALSE, 5 ); + gtk_box_set_homogeneous( GTK_BOX( vbox ), TRUE ); gtk_container_add( GTK_CONTAINER( frame ), vbox ); gtk_container_set_border_width( GTK_CONTAINER( vbox ), 5 ); gtk_widget_show( vbox ); @@ -1837,7 +1840,8 @@ GtkWidget* create_main_dialog(){ g_object_set_data( G_OBJECT( dlg ), "bmp_file", entry ); g_signal_connect( G_OBJECT( entry ), "focus-out-event", G_CALLBACK( bitmap_file_entryfocusout ), NULL ); - hbox2 = gtk_hbox_new( TRUE, 5 ); + hbox2 = gtk_hbox_new( FALSE, 5 ); + gtk_box_set_homogeneous( GTK_BOX( hbox2 ), TRUE ); gtk_table_attach( GTK_TABLE( table ), hbox2, 1, 2, 1, 2, (GtkAttachOptions) ( 0 ), (GtkAttachOptions) ( GTK_EXPAND | GTK_FILL ), 0, 0 ); diff --git a/contrib/gtkgensurf/view.cpp b/contrib/gtkgensurf/view.cpp index 3edf7388..23e50692 100644 --- a/contrib/gtkgensurf/view.cpp +++ b/contrib/gtkgensurf/view.cpp @@ -394,7 +394,8 @@ void CreateViewWindow(){ gtk_widget_show( vbox ); #ifndef ISOMETRIC - hbox = gtk_hbox_new( TRUE, 5 ); + hbox = gtk_hbox_new( FALSE, 5 ); + gtk_box_set_homogeneous( GTK_BOX( hbox ), TRUE ); gtk_box_pack_start( GTK_BOX( vbox ), hbox, FALSE, TRUE, 0 ); gtk_container_set_border_width( GTK_CONTAINER( hbox ), 3 ); gtk_widget_show( hbox ); diff --git a/contrib/prtview/AboutDialog.cpp b/contrib/prtview/AboutDialog.cpp index 881a9e8a..b30242e2 100644 --- a/contrib/prtview/AboutDialog.cpp +++ b/contrib/prtview/AboutDialog.cpp @@ -41,7 +41,7 @@ void DoAboutDlg( GtkWidget *parent ){ content_area = gtk_dialog_get_content_area( GTK_DIALOG( dialog ) ); gtk_window_set_transient_for( GTK_WINDOW( dialog ), GTK_WINDOW( parent) ); - vbox = gtk_vbox_new( TRUE, 5 ); + vbox = gtk_vbox_new( FALSE, 5 ); gtk_container_add( GTK_CONTAINER( content_area ), vbox ); gtk_container_set_border_width( GTK_CONTAINER( vbox ), 5 ); gtk_widget_show( vbox ); diff --git a/contrib/prtview/ConfigDialog.cpp b/contrib/prtview/ConfigDialog.cpp index fe3b707a..3b852cf5 100644 --- a/contrib/prtview/ConfigDialog.cpp +++ b/contrib/prtview/ConfigDialog.cpp @@ -420,7 +420,8 @@ void DoConfigDialog( GtkWidget *parent ){ gtk_widget_show( cliplabel ); g_signal_connect( adj, "value-changed", G_CALLBACK( OnScrollClip ), cliplabel ); - hbox = gtk_hbox_new( TRUE, 5 ); + hbox = gtk_hbox_new( FALSE, 5 ); + gtk_box_set_homogeneous( GTK_BOX( hbox ), TRUE ); gtk_widget_show( hbox ); gtk_box_pack_start( GTK_BOX( vbox2 ), hbox, TRUE, FALSE, 0 ); diff --git a/contrib/prtview/gtkdlgs.cpp b/contrib/prtview/gtkdlgs.cpp index 9e79ee48..ab94085c 100644 --- a/contrib/prtview/gtkdlgs.cpp +++ b/contrib/prtview/gtkdlgs.cpp @@ -613,7 +613,8 @@ void DoConfigDialog(){ gtk_misc_set_alignment( GTK_MISC( cliplabel ), 0.0, 0.0 ); g_signal_connect( adj, "value-changed", G_CALLBACK( OnScrollClip ), cliplabel ); - hbox = gtk_hbox_new( TRUE, 5 ); + hbox = gtk_hbox_new( FALSE, 5 ); + gtk_box_set_homogeneous( GTK_BOX( hbox ), TRUE ); gtk_widget_show( hbox ); gtk_box_pack_start( GTK_BOX( vbox2 ), hbox, TRUE, FALSE, 0 ); diff --git a/radiant/gtkdlgs.cpp b/radiant/gtkdlgs.cpp index 6ebf1bf1..b8ad7ddc 100644 --- a/radiant/gtkdlgs.cpp +++ b/radiant/gtkdlgs.cpp @@ -1586,7 +1586,8 @@ void DoGamma(){ content_area = gtk_dialog_get_content_area( GTK_DIALOG( dialog ) ); - vbox = gtk_vbox_new( TRUE, 5 ); + vbox = gtk_vbox_new( FALSE, 5 ); + gtk_box_set_homogeneous( GTK_BOX( vbox ), TRUE ); gtk_container_add( GTK_CONTAINER( content_area ), vbox ); gtk_container_set_border_width( GTK_CONTAINER( vbox ), 5 ); gtk_widget_show( vbox ); @@ -3536,7 +3537,8 @@ int DoLightIntensityDlg( int *intensity ){ gtk_misc_set_alignment( GTK_MISC( label ), 0.0, 0.5 ); gtk_widget_show( label ); - hbox = gtk_hbox_new( TRUE, 5 ); + hbox = gtk_hbox_new( FALSE, 5 ); + gtk_box_set_homogeneous( GTK_BOX( hbox ), TRUE ); gtk_box_pack_start( GTK_BOX( vbox ), hbox, TRUE, TRUE, 0 ); gtk_container_set_border_width( GTK_CONTAINER( hbox ), 5 ); gtk_widget_show( hbox ); diff --git a/radiant/patchdialog.cpp b/radiant/patchdialog.cpp index e10b3ae2..6be5b6f5 100644 --- a/radiant/patchdialog.cpp +++ b/radiant/patchdialog.cpp @@ -659,7 +659,8 @@ void PatchDialog::BuildDialog(){ gtk_entry_set_alignment( GTK_ENTRY( spin ), 1.0 ); //right gtk_widget_show( spin ); - hbox2 = gtk_hbox_new( TRUE, 5 ); + hbox2 = gtk_hbox_new( FALSE, 5 ); + gtk_box_set_homogeneous( GTK_BOX( hbox2 ), TRUE ); gtk_box_pack_start( GTK_BOX( vbox2 ), hbox2, TRUE, FALSE, 0 ); gtk_widget_show( hbox2 );