Merge pull request #438 from Pan7/gtkrealize

Remove gtk_widget_realize calls
This commit is contained in:
Timothee "TTimo" Besset 2017-03-19 09:27:39 -05:00 committed by GitHub
commit 41f6c7d2c5

View file

@ -866,7 +866,6 @@ int WINAPI gtk_MessageBoxNew( void *parent, const char *message,
gtk_container_set_border_width( GTK_CONTAINER( dlg ), MSGBOX_PAD_MAJOR );
g_object_set_data( G_OBJECT( dlg ), "loop", &loop );
g_object_set_data( G_OBJECT( dlg ), "ret", &ret );
gtk_widget_realize( dlg );
if( parent ) {
gtk_window_set_transient_for( GTK_WINDOW( dlg ), GTK_WINDOW( parent ) );
@ -1022,7 +1021,6 @@ int WINAPI gtk_MessageBox( void *parent, const char* lpText, const char* lpCapti
gtk_container_set_border_width( GTK_CONTAINER( window ), 10 );
g_object_set_data( G_OBJECT( window ), "loop", &loop );
g_object_set_data( G_OBJECT( window ), "ret", &ret );
gtk_widget_realize( window );
gtk_window_set_policy( GTK_WINDOW( window ),FALSE,FALSE,TRUE );