2222#include "pluma-file-browser-utils.h"
2323#include <pluma/pluma-utils.h>
2424
25+ #include <glib/gi18n.h>
26+
27+
2528static GdkPixbuf *
2629process_icon_pixbuf (GdkPixbuf * pixbuf ,
2730 gchar const * name ,
@@ -148,9 +151,7 @@ gboolean
148151pluma_file_browser_utils_confirmation_dialog (PlumaWindow * window ,
149152 GtkMessageType type ,
150153 gchar const * message ,
151- gchar const * secondary ,
152- gchar const * button_image ,
153- gchar const * button_label )
154+ gchar const * secondary )
154155{
155156 GtkWidget * dlg ;
156157 gint ret ;
@@ -167,11 +168,8 @@ pluma_file_browser_utils_confirmation_dialog (PlumaWindow * window,
167168 (GTK_MESSAGE_DIALOG (dlg ), "%s" , secondary );
168169
169170 /* Add a cancel button */
170- button = GTK_WIDGET (g_object_new (GTK_TYPE_BUTTON ,
171- "label" , "gtk-cancel" ,
172- "use-stock" , TRUE,
173- "use-underline" , TRUE,
174- NULL ));
171+ button = gtk_button_new_with_mnemonic (_ ("_Cancel" ));
172+ gtk_button_set_image (GTK_BUTTON (button ), gtk_image_new_from_icon_name ("process-stop" , GTK_ICON_SIZE_BUTTON ));
175173
176174 gtk_widget_show (button );
177175
@@ -180,16 +178,9 @@ pluma_file_browser_utils_confirmation_dialog (PlumaWindow * window,
180178 button ,
181179 GTK_RESPONSE_CANCEL );
182180
183- /* Add custom button */
184- button = GTK_WIDGET (g_object_new (GTK_TYPE_BUTTON ,
185- "label" , button_image ,
186- "use-stock" , TRUE,
187- "use-underline" , TRUE,
188- NULL ));
189-
190- if (button_label ) {
191- gtk_button_set_label (GTK_BUTTON (button ), button_label );
192- }
181+ /* Add delete button */
182+ button = gtk_button_new_with_mnemonic (_ ("_Delete" ));
183+ gtk_button_set_image (GTK_BUTTON (button ), gtk_image_new_from_icon_name ("edit-delete" , GTK_ICON_SIZE_BUTTON ));
193184
194185 gtk_widget_show (button );
195186 gtk_widget_set_can_default (button , TRUE);
0 commit comments