diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2004-12-17 04:09:33 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2004-12-17 04:09:33 +0800 |
commit | 7e75b259439311d98f52fbdd5f1f5e8df47f1a7f (patch) | |
tree | 0e79d52e0673d30b6621355e518c97c86f4c52e3 /src | |
parent | 91088b896a39629ee4c938c3e124ad260257213a (diff) | |
download | gsoc2013-epiphany-7e75b259439311d98f52fbdd5f1f5e8df47f1a7f.tar gsoc2013-epiphany-7e75b259439311d98f52fbdd5f1f5e8df47f1a7f.tar.gz gsoc2013-epiphany-7e75b259439311d98f52fbdd5f1f5e8df47f1a7f.tar.bz2 gsoc2013-epiphany-7e75b259439311d98f52fbdd5f1f5e8df47f1a7f.tar.lz gsoc2013-epiphany-7e75b259439311d98f52fbdd5f1f5e8df47f1a7f.tar.xz gsoc2013-epiphany-7e75b259439311d98f52fbdd5f1f5e8df47f1a7f.tar.zst gsoc2013-epiphany-7e75b259439311d98f52fbdd5f1f5e8df47f1a7f.zip |
Add stock icon to the "Clear" button.
2004-12-16 Christian Persch <chpe@cvs.gnome.org>
* src/ephy-history-window.c: (confirmation_dialog_construct):
Add stock icon to the "Clear" button.
Diffstat (limited to 'src')
-rw-r--r-- | src/ephy-history-window.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/ephy-history-window.c b/src/ephy-history-window.c index f1b9787c0..912e5b4f0 100644 --- a/src/ephy-history-window.c +++ b/src/ephy-history-window.c @@ -248,7 +248,7 @@ confirmation_dialog_response_cb (GtkWidget *dialog, static GtkWidget * confirmation_dialog_construct (EphyHistoryWindow *editor) { - GtkWidget *dialog; + GtkWidget *dialog, *button, *image; dialog = gtk_message_dialog_new (GTK_WINDOW (editor), @@ -262,8 +262,13 @@ confirmation_dialog_construct (EphyHistoryWindow *editor) _("Clearing the browsing history will cause all" " history links to be permanently deleted.")); - gtk_dialog_add_button (GTK_DIALOG (dialog), - _("C_lear"), GTK_RESPONSE_ACCEPT); + button = gtk_button_new_with_label (_("C_lear")); + image = gtk_image_new_from_stock (GTK_STOCK_CLEAR, GTK_ICON_SIZE_BUTTON); + gtk_button_set_image (GTK_BUTTON (button), image); + gtk_widget_show (image); + gtk_widget_show (button); + gtk_dialog_add_action_widget (GTK_DIALOG (dialog), button, GTK_RESPONSE_ACCEPT); + gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_CANCEL); gtk_window_set_title (GTK_WINDOW (dialog), _("Clear History")); |