summaryrefslogtreecommitdiff
path: root/src/caja-query-editor.c
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2018-03-17 00:20:14 +0100
committerPablo Barciela <[email protected]>2018-03-17 00:35:43 +0100
commit4fb359018441a9a80984a7a94be1a939efc51bde (patch)
treeaf0a1a561522282f1f50e1d593a9eb5d19e616d1 /src/caja-query-editor.c
parente0c69f80861b85a1e34541875858bfbd9bdea240 (diff)
downloadcaja-4fb359018441a9a80984a7a94be1a939efc51bde.tar.bz2
caja-4fb359018441a9a80984a7a94be1a939efc51bde.tar.xz
avoid gtk_dialog_new_with_buttons with stock ids
Diffstat (limited to 'src/caja-query-editor.c')
-rw-r--r--src/caja-query-editor.c15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/caja-query-editor.c b/src/caja-query-editor.c
index f0101ab6..7dfe6323 100644
--- a/src/caja-query-editor.c
+++ b/src/caja-query-editor.c
@@ -710,11 +710,16 @@ type_combo_changed (GtkComboBox *combo_box, CajaQueryEditorRow *row)
toplevel = gtk_widget_get_toplevel (GTK_WIDGET (combo_box));
- dialog = gtk_dialog_new_with_buttons (_("Select type"),
- GTK_WINDOW (toplevel),
- 0,
- "gtk-ok", GTK_RESPONSE_OK,
- NULL);
+
+ dialog = gtk_dialog_new ();
+ gtk_window_set_title (GTK_WINDOW (dialog), _("Select type"));
+ gtk_window_set_transient_for (GTK_WINDOW (dialog), GTK_WINDOW (toplevel));
+
+ eel_dialog_add_button (GTK_DIALOG (dialog),
+ _("_OK"),
+ "gtk-ok",
+ GTK_RESPONSE_OK);
+
gtk_window_set_default_size (GTK_WINDOW (dialog), 400, 600);
scrolled = gtk_scrolled_window_new (NULL, NULL);