diff options
author | Pablo Barciela <[email protected]> | 2018-03-17 00:20:14 +0100 |
---|---|---|
committer | Pablo Barciela <[email protected]> | 2018-03-17 00:35:43 +0100 |
commit | 4fb359018441a9a80984a7a94be1a939efc51bde (patch) | |
tree | af0a1a561522282f1f50e1d593a9eb5d19e616d1 /src/caja-property-browser.c | |
parent | e0c69f80861b85a1e34541875858bfbd9bdea240 (diff) | |
download | caja-4fb359018441a9a80984a7a94be1a939efc51bde.tar.bz2 caja-4fb359018441a9a80984a7a94be1a939efc51bde.tar.xz |
avoid gtk_dialog_new_with_buttons with stock ids
Diffstat (limited to 'src/caja-property-browser.c')
-rw-r--r-- | src/caja-property-browser.c | 36 |
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); |