summaryrefslogtreecommitdiff
path: root/eel
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
parentdfb65855af84deba23e9ec9616fba77edfbf57e1 (diff)
downloadcaja-68fb5e488ecf7c80622af3d00edab5348e70917c.tar.bz2
caja-68fb5e488ecf7c80622af3d00edab5348e70917c.tar.xz
avoid gtk_dialog_add_buttons with stock ids
Diffstat (limited to 'eel')
-rw-r--r--eel/eel-stock-dialogs.c4
-rw-r--r--eel/eel-stock-dialogs.h2
2 files changed, 4 insertions, 2 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
diff --git a/eel/eel-stock-dialogs.h b/eel/eel-stock-dialogs.h
index d61c1bb1..b5f69715 100644
--- a/eel/eel-stock-dialogs.h
+++ b/eel/eel-stock-dialogs.h
@@ -49,7 +49,7 @@ int eel_run_simple_dialog (GtkWidget *parent,
const char *primary_text,
const char *secondary_text,
...);
-void eel_dialog_add_button (GtkDialog *dialog,
+GtkWidget* eel_dialog_add_button (GtkDialog *dialog,
const gchar *button_text,
const gchar *icon_name,
gint response_id);