[Xfce4-commits] [panel-plugins/xfce4-cpufreq-plugin] 01/01: Replace GtkStock buttons

noreply at xfce.org noreply at xfce.org
Fri Aug 2 04:20:38 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 panel-plugins/xfce4-cpufreq-plugin.

commit fd04694b2cd22c0eba6ca0dba530a6dce873e96e
Author: Andre Miranda <andreldm at xfce.org>
Date:   Thu Aug 1 23:20:32 2019 -0300

    Replace GtkStock buttons
---
 panel-plugin/xfce4-cpufreq-configure.c | 6 ++++--
 panel-plugin/xfce4-cpufreq-overview.c  | 6 ++++--
 2 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/panel-plugin/xfce4-cpufreq-configure.c b/panel-plugin/xfce4-cpufreq-configure.c
index 1205fc9..606020f 100644
--- a/panel-plugin/xfce4-cpufreq-configure.c
+++ b/panel-plugin/xfce4-cpufreq-configure.c
@@ -212,9 +212,11 @@ cpufreq_configure (XfcePanelPlugin *plugin)
 
   xfce_panel_plugin_block_menu (cpuFreq->plugin);
 
-  dialog = xfce_titled_dialog_new_with_buttons (_("Configure CPU Frequency Monitor"),
+  dialog = xfce_titled_dialog_new_with_mixed_buttons (_("Configure CPU Frequency Monitor"),
     GTK_WINDOW (gtk_widget_get_toplevel (GTK_WIDGET (plugin))),
-    GTK_DIALOG_DESTROY_WITH_PARENT, "gtk-close", GTK_RESPONSE_OK, NULL);
+    GTK_DIALOG_DESTROY_WITH_PARENT,
+    "window-close", _("_Close"), GTK_RESPONSE_OK,
+    NULL);
 
   xfce_titled_dialog_set_subtitle (XFCE_TITLED_DIALOG (dialog), _("Configure the CPU frequency plugin"));
 
diff --git a/panel-plugin/xfce4-cpufreq-overview.c b/panel-plugin/xfce4-cpufreq-overview.c
index 02ea006..4235dd1 100644
--- a/panel-plugin/xfce4-cpufreq-overview.c
+++ b/panel-plugin/xfce4-cpufreq-overview.c
@@ -251,9 +251,11 @@ cpufreq_overview (GtkWidget *widget, GdkEventButton *ev, CpuFreqPlugin *cpufreq)
 
   gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (cpufreq->button), TRUE);
 
-  dialog = xfce_titled_dialog_new_with_buttons (_("CPU Information"),
+  dialog = xfce_titled_dialog_new_with_mixed_buttons (_("CPU Information"),
     GTK_WINDOW (gtk_widget_get_toplevel (GTK_WIDGET (cpufreq->plugin))),
-    GTK_DIALOG_DESTROY_WITH_PARENT, "gtk-close", GTK_RESPONSE_OK, NULL);
+    GTK_DIALOG_DESTROY_WITH_PARENT,
+    "window-close", _("_Close"), GTK_RESPONSE_OK,
+    NULL);
 
   xfce_titled_dialog_set_subtitle (XFCE_TITLED_DIALOG (dialog),
     _("An overview of all the CPUs in the system"));

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


More information about the Xfce4-commits mailing list