[Xfce4-commits] [panel-plugins/xfce4-battery-plugin] 11/15: Remove GTK_DIALOG_NO_SEPARATOR and replace GTK_STOCK_*

noreply at xfce.org noreply at xfce.org
Sun May 29 08:36:56 CEST 2016


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

andrzejr pushed a commit to branch master
in repository panel-plugins/xfce4-battery-plugin.

commit 06260076284e8672e34d49635ee8cd6b098ed22e
Author: Andre Miranda <andre42m at gmail.com>
Date:   Sat May 28 14:38:51 2016 -0300

    Remove GTK_DIALOG_NO_SEPARATOR and replace GTK_STOCK_*
---
 panel-plugin/battery.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/panel-plugin/battery.c b/panel-plugin/battery.c
index 34a7094..0bdc0de 100644
--- a/panel-plugin/battery.c
+++ b/panel-plugin/battery.c
@@ -1204,8 +1204,8 @@ select_file_name (const char *title, const char *path, GtkWidget * parent)
 
     fs = gtk_file_chooser_dialog_new (t, GTK_WINDOW(parent),
                                GTK_FILE_CHOOSER_ACTION_OPEN,
-                               GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
-                               GTK_STOCK_OPEN, GTK_RESPONSE_ACCEPT,
+                               "gtk-cancel", GTK_RESPONSE_CANCEL,
+                               "gtk-open", GTK_RESPONSE_ACCEPT,
                                NULL);
 
     if (path && *path && g_file_test (path, G_FILE_TEST_EXISTS))
@@ -1312,9 +1312,9 @@ battmon_create_options(XfcePanelPlugin *plugin, t_battmon *battmon)
 
     dlg = xfce_titled_dialog_new_with_buttons (_("Battery Monitor"),
                                                   GTK_WINDOW (gtk_widget_get_toplevel (GTK_WIDGET (plugin))),
-                                                  GTK_DIALOG_DESTROY_WITH_PARENT | GTK_DIALOG_NO_SEPARATOR,
-                                                  GTK_STOCK_HELP, GTK_RESPONSE_HELP,
-                                                  GTK_STOCK_CLOSE, GTK_RESPONSE_OK,
+                                                  GTK_DIALOG_DESTROY_WITH_PARENT,
+                                                  "gtk-help", GTK_RESPONSE_HELP,
+                                                  "gtk-close", GTK_RESPONSE_OK,
                                                   NULL);
 
     xfce_titled_dialog_set_subtitle (XFCE_TITLED_DIALOG (dlg), _("Properties"));

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


More information about the Xfce4-commits mailing list