region: Remove other uses of gtk_dialog_run()
This commit is contained in:
parent
0dd5a8ac18
commit
f70af6ee47
2 changed files with 10 additions and 10 deletions
|
@ -404,6 +404,7 @@ xkb_layout_chooser_response (GtkDialog * dialog,
|
|||
gtk_window_get_size (GTK_WINDOW (dialog), &rect.width,
|
||||
&rect.height);
|
||||
gkbd_preview_save_position (&rect);
|
||||
gtk_widget_destroy (GTK_WIDGET (dialog));
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -505,8 +506,7 @@ xkb_layout_choose (GtkBuilder * dialog)
|
|||
}
|
||||
|
||||
xkb_layout_preview_update (chooser_dialog);
|
||||
gtk_dialog_run (GTK_DIALOG (chooser));
|
||||
gtk_widget_destroy (chooser);
|
||||
gtk_widget_show (chooser);
|
||||
}
|
||||
|
||||
gchar *
|
||||
|
|
|
@ -299,6 +299,7 @@ xkb_model_chooser_response (GtkDialog * dialog,
|
|||
g_free (model_name);
|
||||
}
|
||||
}
|
||||
gtk_widget_destroy (GTK_WIDGET (dialog));
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -331,7 +332,6 @@ choose_model (GtkBuilder * dialog)
|
|||
"response",
|
||||
G_CALLBACK (xkb_model_chooser_response),
|
||||
chooser_dialog);
|
||||
gtk_dialog_run (GTK_DIALOG (chooser));
|
||||
gtk_widget_destroy (chooser);
|
||||
gtk_widget_show (chooser);
|
||||
g_free (current_model_name);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue