[Xfce4-commits] [xfce/xfce4-panel] 01/01: Replace more GtkStock items with icons and text (Bug #13505)

noreply at xfce.org noreply at xfce.org
Wed Apr 19 08:49:30 CEST 2017


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

ochosi pushed a commit to branch master
in repository xfce/xfce4-panel.

commit 4bb48b03e9236634acba25d8f07d77c998091ef7
Author: Simon Steinbeiss <simon.steinbeiss at elfenbeinturm.at>
Date:   Wed Apr 19 08:47:40 2017 +0200

    Replace more GtkStock items with icons and text (Bug #13505)
    
    With deprecating GtkStock in libxfce4ui we need to explicitely
    set the labels and icons not to get empty buttons.
---
 panel/main.c                     | 2 +-
 panel/panel-application.c        | 4 ++--
 panel/panel-preferences-dialog.c | 2 +-
 plugins/systray/systray.c        | 2 +-
 4 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/panel/main.c b/panel/main.c
index 2761658..d9f06d1 100644
--- a/panel/main.c
+++ b/panel/main.c
@@ -400,7 +400,7 @@ dbus_return:
             {
               g_clear_error (&error);
 
-              if (xfce_dialog_confirm (NULL, GTK_STOCK_EXECUTE, NULL,
+              if (xfce_dialog_confirm (NULL, "system-run", _("Execute"),
                                        _("Do you want to start the panel? If you do, make sure "
                                          "you save the session on logout, so the panel is "
                                          "automatically started the next time you login."),
diff --git a/panel/panel-application.c b/panel/panel-application.c
index 54c1aa7..5c5bc23 100644
--- a/panel/panel-application.c
+++ b/panel/panel-application.c
@@ -979,7 +979,7 @@ panel_application_drag_data_received (PanelWindow      *window,
               if (G_LIKELY (uris != NULL))
                 {
                   n_items = g_strv_length (uris);
-                  if (xfce_dialog_confirm (NULL, GTK_STOCK_ADD, _("Create _Launcher"),
+                  if (xfce_dialog_confirm (NULL, "list-add", _("Create _Launcher"),
                                            _("This will create a new launcher plugin on the panel and inserts "
                                              "the dropped files as menu items."),
                                            ngettext ("Create new launcher from %d desktop file",
@@ -1721,7 +1721,7 @@ panel_application_logout (void)
     }
   else if (g_getenv ("SESSION_MANAGER") == NULL)
     {
-      if (xfce_dialog_confirm (NULL, GTK_STOCK_QUIT, NULL,
+      if (xfce_dialog_confirm (NULL, "application-exit", _("Quit"),
           _("You have started X without session manager. Clicking Quit will close the X server."),
           _("Are you sure you want to quit the panel?")))
         command = "xfce4-panel --quit";
diff --git a/panel/panel-preferences-dialog.c b/panel/panel-preferences-dialog.c
index 92ed352..2c1871a 100644
--- a/panel/panel-preferences-dialog.c
+++ b/panel/panel-preferences-dialog.c
@@ -926,7 +926,7 @@ panel_preferences_dialog_panel_remove (GtkWidget              *widget,
     return;
 
   toplevel = gtk_widget_get_toplevel (widget);
-  if (xfce_dialog_confirm (GTK_WINDOW (toplevel), GTK_STOCK_REMOVE, NULL,
+  if (xfce_dialog_confirm (GTK_WINDOW (toplevel), "list-remove", _("Remove"),
           _("The panel and plugin configurations will be permanently removed"),
           _("Are you sure you want to remove panel %d?"),
           panel_window_get_id (dialog->active)))
diff --git a/plugins/systray/systray.c b/plugins/systray/systray.c
index 965642b..4d1ade4 100644
--- a/plugins/systray/systray.c
+++ b/plugins/systray/systray.c
@@ -1020,7 +1020,7 @@ systray_plugin_dialog_clear_clicked (GtkWidget     *button,
   panel_return_if_fail (XFCE_IS_SYSTRAY_BOX (plugin->box));
 
   if (xfce_dialog_confirm (GTK_WINDOW (gtk_widget_get_toplevel (button)),
-                           GTK_STOCK_CLEAR, NULL, NULL,
+                           "edit-clear", _("Clear"), NULL,
                            _("Are you sure you want to clear the list of "
                              "known applications?")))
     {

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


More information about the Xfce4-commits mailing list