[Xfce4-commits] [xfce/xfdesktop] 14/34: volume icon: Replace STOCK icons in dialogs

noreply at xfce.org noreply at xfce.org
Sun Apr 16 07:06:48 CEST 2017


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

eric pushed a commit to branch master
in repository xfce/xfdesktop.

commit 525877467330d9b7bec1df5963a697e337e1993d
Author: Eric Koegel <eric.koegel at gmail.com>
Date:   Wed Jun 8 14:47:37 2016 +0300

    volume icon: Replace STOCK icons in dialogs
---
 src/xfdesktop-volume-icon.c | 15 +++++++++------
 1 file changed, 9 insertions(+), 6 deletions(-)

diff --git a/src/xfdesktop-volume-icon.c b/src/xfdesktop-volume-icon.c
index 51077ff..7f623d0 100644
--- a/src/xfdesktop-volume-icon.c
+++ b/src/xfdesktop-volume-icon.c
@@ -520,9 +520,10 @@ xfdesktop_volume_icon_eject_finish(GObject *object,
 
             /* display an error dialog to inform the user */
             xfce_message_dialog(toplevel ? GTK_WINDOW(toplevel) : NULL,
-                                _("Eject Failed"), GTK_STOCK_DIALOG_ERROR, 
+                                _("Eject Failed"), "dialog-error", 
                                 primary, error->message,
-                                GTK_STOCK_CLOSE, GTK_RESPONSE_ACCEPT, NULL);
+                                XFCE_BUTTON_TYPE_MIXED, "window-close", _("_Close"), GTK_RESPONSE_ACCEPT,
+                                NULL);
 
             g_free(primary);
             g_free(volume_name);
@@ -565,9 +566,10 @@ xfdesktop_volume_icon_unmount_finish(GObject *object,
 
             /* display an error dialog to inform the user */
             xfce_message_dialog(toplevel ? GTK_WINDOW(toplevel) : NULL,
-                                _("Eject Failed"), GTK_STOCK_DIALOG_ERROR, 
+                                _("Eject Failed"), "dialog-error", 
                                 primary, error->message,
-                                GTK_STOCK_CLOSE, GTK_RESPONSE_ACCEPT, NULL);
+                                XFCE_BUTTON_TYPE_MIXED, "window-close", _("_Close"), GTK_RESPONSE_ACCEPT,
+                                NULL);
 
             g_free(primary);
             g_free(mount_name);
@@ -600,9 +602,10 @@ xfdesktop_volume_icon_mount_finish(GObject *object,
             gchar *primary = g_markup_printf_escaped(_("Failed to mount \"%s\""),
                                                      volume_name);
             xfce_message_dialog(toplevel ? GTK_WINDOW(toplevel) : NULL,
-                                _("Mount Failed"), GTK_STOCK_DIALOG_ERROR, 
+                                _("Mount Failed"), "dialog-error", 
                                 primary, error->message,
-                                GTK_STOCK_CLOSE, GTK_RESPONSE_ACCEPT, NULL);
+                                XFCE_BUTTON_TYPE_MIXED, "window-close", _("_Close"), GTK_RESPONSE_ACCEPT,
+                                NULL);
             g_free(primary);
             g_free(volume_name);
         }

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


More information about the Xfce4-commits mailing list