[Xfce4-commits] [xfce/exo] 01/01: preferred-apps: Add button icons to Help/Close
noreply at xfce.org
noreply at xfce.org
Tue Aug 6 23:03:23 CEST 2019
This is an automated email from the git hooks/post-receive script.
o c h o s i p u s h e d a c o m m i t t o b r a n c h m a s t e r
in repository xfce/exo.
commit 9f207f83fbdadf053b566ad1cc9129f64b8e2c8e
Author: Simon Steinbeiss <simon.steinbeiss at elfenbeinturm.at>
Date: Tue Aug 6 23:02:50 2019 +0200
preferred-apps: Add button icons to Help/Close
---
exo-helper/exo-helper-chooser-dialog.c | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/exo-helper/exo-helper-chooser-dialog.c b/exo-helper/exo-helper-chooser-dialog.c
index cb943af..f322eb6 100644
--- a/exo-helper/exo-helper-chooser-dialog.c
+++ b/exo-helper/exo-helper-chooser-dialog.c
@@ -88,6 +88,7 @@ exo_helper_chooser_dialog_init (ExoHelperChooserDialog *chooser_dialog)
GtkWidget *notebook;
GtkWidget *chooser;
GtkWidget *button;
+ GtkWidget *image;
GtkWidget *frame;
GtkWidget *label;
GtkWidget *vbox;
@@ -96,14 +97,22 @@ exo_helper_chooser_dialog_init (ExoHelperChooserDialog *chooser_dialog)
/* verify category settings */
g_assert (EXO_HELPER_N_CATEGORIES == 4);
- gtk_dialog_add_button (GTK_DIALOG (chooser_dialog), _("_Close"), GTK_RESPONSE_CLOSE);
gtk_window_set_icon_name (GTK_WINDOW (chooser_dialog), "preferences-desktop-default-applications");
gtk_window_set_title (GTK_WINDOW (chooser_dialog), _("Preferred Applications"));
gtk_window_set_default_size (GTK_WINDOW (chooser_dialog), 350, -1);
xfce_titled_dialog_set_subtitle (XFCE_TITLED_DIALOG (chooser_dialog), _("Select default applications for various services"));
+ /* add the "Close" button */
+ button = gtk_button_new_with_mnemonic (_("_Close"));
+ image = gtk_image_new_from_icon_name ("window-close", GTK_ICON_SIZE_BUTTON);
+ gtk_button_set_image (GTK_BUTTON (button), image);
+ gtk_dialog_add_action_widget (GTK_DIALOG (chooser_dialog), button, GTK_RESPONSE_CLOSE);
+ gtk_widget_show (button);
+
/* add the "Help" button */
button = gtk_button_new_with_mnemonic (_("_Help"));
+ image = gtk_image_new_from_icon_name ("help-browser", GTK_ICON_SIZE_BUTTON);
+ gtk_button_set_image (GTK_BUTTON (button), image);
g_signal_connect_swapped (G_OBJECT (button), "clicked", G_CALLBACK (exo_helper_chooser_dialog_show_help), chooser_dialog);
exo_gtk_dialog_add_secondary_button (GTK_DIALOG (chooser_dialog), GTK_WIDGET (button));
gtk_widget_show (button);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list