[Xfce4-commits] [panel-plugins/xfce4-systemload-plugin] 13/16: silence warning about declarations inside code

noreply at xfce.org noreply at xfce.org
Fri Apr 29 16:07:30 CEST 2016


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

landry pushed a commit to branch master
in repository panel-plugins/xfce4-systemload-plugin.

commit 0cfd20dd92203591f1d224b415470204e6a82e85
Author: Landry Breuil <landry at xfce.org>
Date:   Fri Apr 29 12:59:02 2016 +0200

    silence warning about declarations inside code
---
 panel-plugin/systemload.c | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/panel-plugin/systemload.c b/panel-plugin/systemload.c
index af2f5ec..b5c8022 100644
--- a/panel-plugin/systemload.c
+++ b/panel-plugin/systemload.c
@@ -426,6 +426,10 @@ static void
 setup_monitor(t_global_monitor *global)
 {
     gint count;
+#if GTK_CHECK_VERSION (3, 16, 0)
+    GtkCssProvider *css_provider;
+    gchar * css;
+#endif
 
     gtk_widget_hide(GTK_WIDGET(global->uptime->ebox));
 
@@ -437,11 +441,10 @@ setup_monitor(t_global_monitor *global)
                            global->monitor[count]->options.label_text);
 
 #if GTK_CHECK_VERSION (3, 16, 0)
-        GtkCssProvider *css_provider;
 #if GTK_CHECK_VERSION (3, 20, 0)
-        gchar * css = g_strdup_printf("progressbar progress { background-color: %s; background-image: none; }",
+        css = g_strdup_printf("progressbar progress { background-color: %s; background-image: none; }",
 #else
-        gchar * css = g_strdup_printf(".progressbar { background-color: %s; background-image: none; }",
+        css = g_strdup_printf(".progressbar { background-color: %s; background-image: none; }",
 #endif
                                       gdk_rgba_to_string(&global->monitor[count]->options.color));
         /* Setup Gtk style */

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


More information about the Xfce4-commits mailing list