summaryrefslogtreecommitdiff
path: root/src/caja-emblem-sidebar.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-emblem-sidebar.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-emblem-sidebar.c')
-rw-r--r--src/caja-emblem-sidebar.c56
1 files changed, 36 insertions, 20 deletions
diff --git a/src/caja-emblem-sidebar.c b/src/caja-emblem-sidebar.c
index 63e90bb4..a4ed33aa 100644
--- a/src/caja-emblem-sidebar.c
+++ b/src/caja-emblem-sidebar.c
@@ -281,16 +281,24 @@ create_rename_emblem_dialog (CajaEmblemSidebar *emblem_sidebar,
image = gtk_image_new_from_pixbuf (pixbuf);
entry = gtk_entry_new ();
- dialog = gtk_dialog_new_with_buttons (_("Rename Emblem"),
- NULL,
- 0,
- "gtk-cancel",
- GTK_RESPONSE_CANCEL,
- "gtk-ok",
- GTK_RESPONSE_OK,
- "gtk-help",
- GTK_RESPONSE_HELP,
- NULL);
+ dialog = gtk_dialog_new ();
+ gtk_window_set_title (GTK_WINDOW (dialog), _("Rename Emblem"));
+ gtk_window_set_transient_for (GTK_WINDOW (dialog), NULL);
+
+ eel_dialog_add_button (GTK_DIALOG (dialog),
+ _("_Cancel"),
+ "process-stop",
+ GTK_RESPONSE_CANCEL);
+
+ eel_dialog_add_button (GTK_DIALOG (dialog),
+ _("_OK"),
+ "gtk-ok",
+ GTK_RESPONSE_OK);
+
+ eel_dialog_add_button (GTK_DIALOG (dialog),
+ _("_Help"),
+ "help-browser",
+ GTK_RESPONSE_HELP);
gtk_dialog_set_default_response (GTK_DIALOG (dialog),
GTK_RESPONSE_OK);
@@ -534,16 +542,24 @@ create_add_emblems_dialog (CajaEmblemSidebar *emblem_sidebar,
first_entry = NULL;
- dialog = gtk_dialog_new_with_buttons (_("Add Emblems..."),
- NULL,
- 0,
- "gtk-cancel",
- GTK_RESPONSE_CANCEL,
- "gtk-ok",
- GTK_RESPONSE_OK,
- "gtk-help",
- GTK_RESPONSE_HELP,
- NULL);
+ dialog = gtk_dialog_new ();
+ gtk_window_set_title (GTK_WINDOW (dialog), _("Add Emblems..."));
+ gtk_window_set_transient_for (GTK_WINDOW (dialog), NULL);
+
+ eel_dialog_add_button (GTK_DIALOG (dialog),
+ _("_Cancel"),
+ "process-stop",
+ GTK_RESPONSE_CANCEL);
+
+ eel_dialog_add_button (GTK_DIALOG (dialog),
+ _("_OK"),
+ "gtk-ok",
+ GTK_RESPONSE_OK);
+
+ eel_dialog_add_button (GTK_DIALOG (dialog),
+ _("_Help"),
+ "help-browser",
+ GTK_RESPONSE_HELP);
gtk_dialog_set_default_response (GTK_DIALOG (dialog),
GTK_RESPONSE_OK);