fix Gdk-CRITICAL **: IA__gdk_window_get_window_type: assertion 'GDK_IS_WINDOW (window)' failed

This commit is contained in:
Garux
2020-06-05 23:49:04 +03:00
parent 3e7ee32ded
commit 35309c8c6c
7 changed files with 14 additions and 42 deletions

View File

@@ -76,14 +76,12 @@ static int DoColor( PackedColour *c ){
g_object_set_data( G_OBJECT( dlg ), "ret", &ret );
gtk_widget_show( dlg );
gtk_grab_add( dlg );
while ( loop )
gtk_main_iteration();
gtk_color_selection_get_current_color( GTK_COLOR_SELECTION( gtk_color_selection_dialog_get_color_selection( GTK_COLOR_SELECTION_DIALOG( dlg ) ) ), &clr );
gtk_grab_remove( dlg );
gtk_widget_destroy( dlg );
if ( ret == IDOK ) {
@@ -473,12 +471,10 @@ void DoConfigDialog(){
Set3DTransText( translabel );
SetClipText( cliplabel );
gtk_grab_add( dlg );
gtk_widget_show( dlg );
while ( loop )
gtk_main_iteration();
gtk_grab_remove( dlg );
gtk_widget_destroy( dlg );
}