diff options
Diffstat (limited to 'eel')
-rw-r--r-- | eel/eel-stock-dialogs.c | 4 | ||||
-rw-r--r-- | eel/eel-stock-dialogs.h | 2 |
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); |