summaryrefslogtreecommitdiff
path: root/src/caja-property-browser.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/caja-property-browser.c')
-rw-r--r--src/caja-property-browser.c36
1 files changed, 26 insertions, 10 deletions
diff --git a/src/caja-property-browser.c b/src/caja-property-browser.c
index 5a9e4447..140acc23 100644
--- a/src/caja-property-browser.c
+++ b/src/caja-property-browser.c
@@ -1103,11 +1103,19 @@ caja_emblem_dialog_new (CajaPropertyBrowser *property_browser)
GtkWidget *label;
GtkWidget *grid = gtk_grid_new ();
- dialog = gtk_dialog_new_with_buttons (_("Create a New Emblem"),
- GTK_WINDOW (property_browser), 0,
- "gtk-cancel", GTK_RESPONSE_CANCEL,
- "gtk-ok", GTK_RESPONSE_OK,
- NULL);
+ dialog = gtk_dialog_new ();
+ gtk_window_set_title (GTK_WINDOW (dialog), _("Create a New Emblem"));
+ gtk_window_set_transient_for (GTK_WINDOW (dialog), GTK_WINDOW (property_browser));
+
+ 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);
/* install the grid in the dialog */
gtk_container_set_border_width (GTK_CONTAINER (grid), 5);
@@ -1175,11 +1183,19 @@ caja_color_selection_dialog_new (CajaPropertyBrowser *property_browser)
GtkWidget *grid = gtk_grid_new ();
- dialog = gtk_dialog_new_with_buttons (_("Create a New Color:"),
- GTK_WINDOW (property_browser), 0,
- "gtk-cancel", GTK_RESPONSE_CANCEL,
- "gtk-ok", GTK_RESPONSE_OK,
- NULL);
+ dialog = gtk_dialog_new ();
+ gtk_window_set_title (GTK_WINDOW (dialog), _("Create a New Color:"));
+ gtk_window_set_transient_for (GTK_WINDOW (dialog), GTK_WINDOW (property_browser));
+
+ 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);
/* install the grid in the dialog */
gtk_widget_show (grid);