[Xfce4-commits] [xfce/exo] 01/01: Replace GtkStock buttons

noreply at xfce.org noreply at xfce.org
Fri Aug 2 04:28:03 CEST 2019


This is an automated email from the git hooks/post-receive script.

a   n   d   r   e       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 2768b956155a4518f352c28760b93aa47ab0eb2b
Author: Andre Miranda <andreldm at xfce.org>
Date:   Thu Aug 1 23:27:44 2019 -0300

    Replace GtkStock buttons
---
 exo/exo-toolbars-editor-dialog.c | 6 ++++--
 exo/exo-toolbars-editor.c        | 2 +-
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/exo/exo-toolbars-editor-dialog.c b/exo/exo-toolbars-editor-dialog.c
index 007d110..0004607 100644
--- a/exo/exo-toolbars-editor-dialog.c
+++ b/exo/exo-toolbars-editor-dialog.c
@@ -105,7 +105,7 @@ exo_toolbars_editor_dialog_init (ExoToolbarsEditorDialog *dialog)
   gtk_container_add (GTK_CONTAINER (align), hbox);
   gtk_widget_show (hbox);
 
-  image = gtk_image_new_from_stock (GTK_STOCK_ADD, GTK_ICON_SIZE_BUTTON);
+  image = gtk_image_new_from_icon_name ("list-add", GTK_ICON_SIZE_BUTTON);
   gtk_box_pack_start (GTK_BOX (hbox), image, FALSE, FALSE, 0);
   gtk_widget_show (image);
 
@@ -113,7 +113,9 @@ exo_toolbars_editor_dialog_init (ExoToolbarsEditorDialog *dialog)
   gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0);
   gtk_widget_show (label);
 
-  button = gtk_button_new_from_stock (GTK_STOCK_CLOSE);
+  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);
   g_signal_connect_swapped (G_OBJECT (button), "clicked",
                             G_CALLBACK (gtk_widget_destroy), dialog);
   gtk_box_pack_start (GTK_BOX (exo_gtk_dialog_get_action_area (GTK_DIALOG (dialog))), button, FALSE, TRUE, 0);
diff --git a/exo/exo-toolbars-editor.c b/exo/exo-toolbars-editor.c
index 0825c9b..4418379 100644
--- a/exo/exo-toolbars-editor.c
+++ b/exo/exo-toolbars-editor.c
@@ -206,7 +206,7 @@ exo_toolbars_editor_init (ExoToolbarsEditor *editor)
   gtk_box_pack_start (GTK_BOX (editor), hbox, FALSE, FALSE, 0);
   gtk_widget_show (hbox);
 
-  image = gtk_image_new_from_stock (GTK_STOCK_DIALOG_INFO, GTK_ICON_SIZE_DIALOG);
+  image = gtk_image_new_from_icon_name ("dialog-information", GTK_ICON_SIZE_DIALOG);
   gtk_box_pack_start (GTK_BOX (hbox), image, FALSE, FALSE, 0);
   gtk_widget_show (image);
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list