mirror of
https://github.com/TTimo/GtkRadiant.git
synced 2024-11-10 07:11:54 +00:00
Merge pull request #438 from Pan7/gtkrealize
Remove gtk_widget_realize calls
This commit is contained in:
commit
41f6c7d2c5
1 changed files with 0 additions and 2 deletions
|
@ -866,7 +866,6 @@ int WINAPI gtk_MessageBoxNew( void *parent, const char *message,
|
||||||
gtk_container_set_border_width( GTK_CONTAINER( dlg ), MSGBOX_PAD_MAJOR );
|
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 ), "loop", &loop );
|
||||||
g_object_set_data( G_OBJECT( dlg ), "ret", &ret );
|
g_object_set_data( G_OBJECT( dlg ), "ret", &ret );
|
||||||
gtk_widget_realize( dlg );
|
|
||||||
|
|
||||||
if( parent ) {
|
if( parent ) {
|
||||||
gtk_window_set_transient_for( GTK_WINDOW( dlg ), GTK_WINDOW( 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 );
|
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 ), "loop", &loop );
|
||||||
g_object_set_data( G_OBJECT( window ), "ret", &ret );
|
g_object_set_data( G_OBJECT( window ), "ret", &ret );
|
||||||
gtk_widget_realize( window );
|
|
||||||
|
|
||||||
gtk_window_set_policy( GTK_WINDOW( window ),FALSE,FALSE,TRUE );
|
gtk_window_set_policy( GTK_WINDOW( window ),FALSE,FALSE,TRUE );
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue