Extra gtk_box_set_homogeneous function calls

This commit is contained in:
Pan7 2017-05-16 00:34:04 +02:00
parent ef888dede5
commit 2e119b583d
9 changed files with 25 additions and 13 deletions

View file

@ -342,7 +342,8 @@ void InitBackgroundDialog(){
pPage = new CBackgroundDialogPage( YZ ); pPage = new CBackgroundDialogPage( YZ );
pPage->Append( pNotebook ); 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_container_add( GTK_CONTAINER( content_area ), vbox );
gtk_widget_show( vbox ); gtk_widget_show( vbox );

View file

@ -1287,7 +1287,8 @@ int DoResetTextureBox( ResetTextureRS* rs ){
content_area = gtk_dialog_get_content_area( GTK_DIALOG( dialog ) ); 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_add( GTK_CONTAINER( content_area ), vbox );
gtk_widget_show( vbox ); gtk_widget_show( vbox );

View file

@ -1392,7 +1392,8 @@ GtkWidget* create_main_dialog(){
(GtkAttachOptions) ( GTK_EXPAND | GTK_FILL ), 0, 0 ); (GtkAttachOptions) ( GTK_EXPAND | GTK_FILL ), 0, 0 );
gtk_widget_show( frame ); 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_add( GTK_CONTAINER( frame ), vbox );
gtk_container_set_border_width( GTK_CONTAINER( vbox ), 5 ); gtk_container_set_border_width( GTK_CONTAINER( vbox ), 5 );
gtk_widget_show( vbox ); gtk_widget_show( vbox );
@ -1413,7 +1414,8 @@ GtkWidget* create_main_dialog(){
(GtkAttachOptions) ( GTK_EXPAND | GTK_FILL ), 0, 0 ); (GtkAttachOptions) ( GTK_EXPAND | GTK_FILL ), 0, 0 );
gtk_widget_show( frame ); 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_add( GTK_CONTAINER( frame ), vbox );
gtk_container_set_border_width( GTK_CONTAINER( vbox ), 5 ); gtk_container_set_border_width( GTK_CONTAINER( vbox ), 5 );
gtk_widget_show( vbox ); gtk_widget_show( vbox );
@ -1434,7 +1436,8 @@ GtkWidget* create_main_dialog(){
(GtkAttachOptions) ( GTK_EXPAND | GTK_FILL ), 0, 0 ); (GtkAttachOptions) ( GTK_EXPAND | GTK_FILL ), 0, 0 );
gtk_widget_show( frame ); 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_add( GTK_CONTAINER( frame ), vbox );
gtk_container_set_border_width( GTK_CONTAINER( vbox ), 5 ); gtk_container_set_border_width( GTK_CONTAINER( vbox ), 5 );
gtk_widget_show( vbox ); gtk_widget_show( vbox );
@ -1837,7 +1840,8 @@ GtkWidget* create_main_dialog(){
g_object_set_data( G_OBJECT( dlg ), "bmp_file", entry ); 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 ); 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, gtk_table_attach( GTK_TABLE( table ), hbox2, 1, 2, 1, 2,
(GtkAttachOptions) ( 0 ), (GtkAttachOptions) ( 0 ),
(GtkAttachOptions) ( GTK_EXPAND | GTK_FILL ), 0, 0 ); (GtkAttachOptions) ( GTK_EXPAND | GTK_FILL ), 0, 0 );

View file

@ -394,7 +394,8 @@ void CreateViewWindow(){
gtk_widget_show( vbox ); gtk_widget_show( vbox );
#ifndef ISOMETRIC #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_box_pack_start( GTK_BOX( vbox ), hbox, FALSE, TRUE, 0 );
gtk_container_set_border_width( GTK_CONTAINER( hbox ), 3 ); gtk_container_set_border_width( GTK_CONTAINER( hbox ), 3 );
gtk_widget_show( hbox ); gtk_widget_show( hbox );

View file

@ -41,7 +41,7 @@ void DoAboutDlg( GtkWidget *parent ){
content_area = gtk_dialog_get_content_area( GTK_DIALOG( dialog ) ); content_area = gtk_dialog_get_content_area( GTK_DIALOG( dialog ) );
gtk_window_set_transient_for( GTK_WINDOW( dialog ), GTK_WINDOW( parent) ); 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_add( GTK_CONTAINER( content_area ), vbox );
gtk_container_set_border_width( GTK_CONTAINER( vbox ), 5 ); gtk_container_set_border_width( GTK_CONTAINER( vbox ), 5 );
gtk_widget_show( vbox ); gtk_widget_show( vbox );

View file

@ -420,7 +420,8 @@ void DoConfigDialog( GtkWidget *parent ){
gtk_widget_show( cliplabel ); gtk_widget_show( cliplabel );
g_signal_connect( adj, "value-changed", G_CALLBACK( OnScrollClip ), 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_widget_show( hbox );
gtk_box_pack_start( GTK_BOX( vbox2 ), hbox, TRUE, FALSE, 0 ); gtk_box_pack_start( GTK_BOX( vbox2 ), hbox, TRUE, FALSE, 0 );

View file

@ -613,7 +613,8 @@ void DoConfigDialog(){
gtk_misc_set_alignment( GTK_MISC( cliplabel ), 0.0, 0.0 ); gtk_misc_set_alignment( GTK_MISC( cliplabel ), 0.0, 0.0 );
g_signal_connect( adj, "value-changed", G_CALLBACK( OnScrollClip ), 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_widget_show( hbox );
gtk_box_pack_start( GTK_BOX( vbox2 ), hbox, TRUE, FALSE, 0 ); gtk_box_pack_start( GTK_BOX( vbox2 ), hbox, TRUE, FALSE, 0 );

View file

@ -1586,7 +1586,8 @@ void DoGamma(){
content_area = gtk_dialog_get_content_area( GTK_DIALOG( dialog ) ); 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_add( GTK_CONTAINER( content_area ), vbox );
gtk_container_set_border_width( GTK_CONTAINER( vbox ), 5 ); gtk_container_set_border_width( GTK_CONTAINER( vbox ), 5 );
gtk_widget_show( vbox ); gtk_widget_show( vbox );
@ -3536,7 +3537,8 @@ int DoLightIntensityDlg( int *intensity ){
gtk_misc_set_alignment( GTK_MISC( label ), 0.0, 0.5 ); gtk_misc_set_alignment( GTK_MISC( label ), 0.0, 0.5 );
gtk_widget_show( label ); 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_box_pack_start( GTK_BOX( vbox ), hbox, TRUE, TRUE, 0 );
gtk_container_set_border_width( GTK_CONTAINER( hbox ), 5 ); gtk_container_set_border_width( GTK_CONTAINER( hbox ), 5 );
gtk_widget_show( hbox ); gtk_widget_show( hbox );

View file

@ -659,7 +659,8 @@ void PatchDialog::BuildDialog(){
gtk_entry_set_alignment( GTK_ENTRY( spin ), 1.0 ); //right gtk_entry_set_alignment( GTK_ENTRY( spin ), 1.0 ); //right
gtk_widget_show( spin ); 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_box_pack_start( GTK_BOX( vbox2 ), hbox2, TRUE, FALSE, 0 );
gtk_widget_show( hbox2 ); gtk_widget_show( hbox2 );