[Xfce4-commits] [panel-plugins/xfce4-cpufreq-plugin] 13/20: Remove GTK_DIALOG_NO_SEPARATOR and replace GTK_STOCK_*

noreply at xfce.org noreply at xfce.org
Sat May 6 21:01:14 CEST 2017


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

andre pushed a commit to branch master
in repository panel-plugins/xfce4-cpufreq-plugin.

commit f6a5d1dbfdaaa4fe6b860370fe05ad446b86d263
Author: Andre Miranda <andre42m at gmail.com>
Date:   Fri Nov 4 22:50:10 2016 -0300

    Remove GTK_DIALOG_NO_SEPARATOR and replace GTK_STOCK_*
---
 panel-plugin/xfce4-cpufreq-configure.c | 5 ++++-
 panel-plugin/xfce4-cpufreq-overview.c  | 7 +++----
 2 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/panel-plugin/xfce4-cpufreq-configure.c b/panel-plugin/xfce4-cpufreq-configure.c
index b12293d..d7c1cb5 100644
--- a/panel-plugin/xfce4-cpufreq-configure.c
+++ b/panel-plugin/xfce4-cpufreq-configure.c
@@ -185,7 +185,10 @@ cpufreq_configure (XfcePanelPlugin *plugin)
 	xfce_panel_plugin_block_menu (cpuFreq->plugin);
 
 	dialog = xfce_titled_dialog_new_with_buttons (_("Configure CPU Frequency Monitor"),
-		 	 NULL, GTK_DIALOG_NO_SEPARATOR, GTK_STOCK_CLOSE, GTK_RESPONSE_OK, NULL);
+		 	 GTK_WINDOW (gtk_widget_get_toplevel (GTK_WIDGET (plugin))),
+			 GTK_DIALOG_DESTROY_WITH_PARENT,
+			 "gtk-close", GTK_RESPONSE_OK,
+			 NULL);
 	xfce_titled_dialog_set_subtitle (XFCE_TITLED_DIALOG (dialog), _("Configure the CPU frequency plugin"));
 
 	gtk_window_set_position   (GTK_WINDOW (dialog), GTK_WIN_POS_CENTER);
diff --git a/panel-plugin/xfce4-cpufreq-overview.c b/panel-plugin/xfce4-cpufreq-overview.c
index d2d231a..6d2cb0d 100644
--- a/panel-plugin/xfce4-cpufreq-overview.c
+++ b/panel-plugin/xfce4-cpufreq-overview.c
@@ -243,10 +243,9 @@ cpufreq_overview (GtkWidget *widget, GdkEventButton *ev, CpuFreqPlugin *cpuFreq)
 								  TRUE);
 
 	dialog = xfce_titled_dialog_new_with_buttons (_("CPU Information"),
-					NULL,
-					GTK_DIALOG_NO_SEPARATOR,
-					GTK_STOCK_CLOSE,
-					GTK_RESPONSE_OK,
+			GTK_WINDOW (gtk_widget_get_toplevel (GTK_WIDGET (cpuFreq->plugin))),
+			GTK_DIALOG_DESTROY_WITH_PARENT,
+			"gtk-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