diff options
author | Pablo Barciela <[email protected]> | 2018-03-30 02:05:18 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2018-03-31 14:10:56 +0200 |
commit | 766c5b5b3299b8c86014b2109d1cd7dc937a8be8 (patch) | |
tree | 46e11e1a45012acbd1c5136517d21f8d748f341a /plugins | |
parent | 15f06cebb1a2d07dfcbd5ef8b5a2f1226cae75e6 (diff) | |
download | pluma-766c5b5b3299b8c86014b2109d1cd7dc937a8be8.tar.bz2 pluma-766c5b5b3299b8c86014b2109d1cd7dc937a8be8.tar.xz |
pluma-time-plugin.c: avoid 'gtk_dialog_new_with_buttons' with stock id
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/time/pluma-time-plugin.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/time/pluma-time-plugin.c b/plugins/time/pluma-time-plugin.c index 561c47be..fc4571c5 100644 --- a/plugins/time/pluma-time-plugin.c +++ b/plugins/time/pluma-time-plugin.c @@ -916,11 +916,11 @@ get_choose_format_dialog (GtkWindow *parent, { GtkWidget *err_dialog; - err_dialog = gtk_dialog_new_with_buttons (NULL, - parent, - GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT, - "gtk-ok", GTK_RESPONSE_ACCEPT, - NULL); + err_dialog = gtk_dialog_new (); + gtk_window_set_transient_for (GTK_WINDOW (err_dialog), parent); + gtk_window_set_modal (GTK_WINDOW (err_dialog), TRUE); + gtk_window_set_destroy_with_parent (GTK_WINDOW (err_dialog), TRUE); + pluma_dialog_add_button (GTK_DIALOG (err_dialog), _("_OK"), "gtk-ok", GTK_RESPONSE_ACCEPT); if (wg != NULL) gtk_window_group_add_window (wg, GTK_WINDOW (err_dialog)); |