summaryrefslogtreecommitdiff
path: root/eel/eel-stock-dialogs.c
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2018-03-10 16:42:15 +0100
committerPablo Barciela <[email protected]>2018-03-12 16:08:00 +0100
commit68fb5e488ecf7c80622af3d00edab5348e70917c (patch)
tree526819d06776e9a9482c9e1970d5e55a45b7b13d /eel/eel-stock-dialogs.c
parentdfb65855af84deba23e9ec9616fba77edfbf57e1 (diff)
downloadcaja-68fb5e488ecf7c80622af3d00edab5348e70917c.tar.bz2
caja-68fb5e488ecf7c80622af3d00edab5348e70917c.tar.xz
avoid gtk_dialog_add_buttons with stock ids
Diffstat (limited to 'eel/eel-stock-dialogs.c')
-rw-r--r--eel/eel-stock-dialogs.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/eel/eel-stock-dialogs.c b/eel/eel-stock-dialogs.c
index 5cc9487e..b893642c 100644
--- a/eel/eel-stock-dialogs.c
+++ b/eel/eel-stock-dialogs.c
@@ -191,7 +191,7 @@ trash_dialog_response_callback (GtkDialog *dialog,
gtk_widget_destroy (GTK_WIDGET (dialog));
}
-void
+GtkWidget*
eel_dialog_add_button (GtkDialog *dialog,
const gchar *button_text,
const gchar *icon_name,
@@ -207,6 +207,8 @@ eel_dialog_add_button (GtkDialog *dialog,
gtk_widget_set_can_default (button, TRUE);
gtk_widget_show (button);
gtk_dialog_add_action_widget (GTK_DIALOG (dialog), button, response_id);
+
+ return button;
}
static gboolean