[Xfce4-commits] [panel-plugins/xfce4-genmon-plugin] 01/01: Remove unused variables and fix return value.

noreply at xfce.org noreply at xfce.org
Tue Jun 21 03:47:30 CEST 2016


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

ToZ pushed a commit to branch master
in repository panel-plugins/xfce4-genmon-plugin.

commit 5f7d3d41bc55c6bf9a4e7c62002ee14237150a32
Author: ToZ <tony.paulic at gmail.com>
Date:   Mon Jun 20 21:47:10 2016 -0400

    Remove unused variables and fix return value.
---
 panel-plugin/config_gui.c | 4 ++--
 panel-plugin/main.c       | 7 ++++---
 2 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/panel-plugin/config_gui.c b/panel-plugin/config_gui.c
index fa4551d..0d8e081 100644
--- a/panel-plugin/config_gui.c
+++ b/panel-plugin/config_gui.c
@@ -66,8 +66,8 @@ int genmon_CreateConfigGUI (GtkWidget *vbox1,
     GtkWidget      *hseparator10;
     GtkWidget      *wPB_Font;
     GtkWidget      *hbox4;
-    GtkWidget      *image2;
-    GtkWidget      *label11;
+    //GtkWidget      *image2;
+    //GtkWidget      *label11;
 
     table1 = gtk_grid_new ();
     gtk_grid_set_column_spacing(GTK_GRID (table1), 2);
diff --git a/panel-plugin/main.c b/panel-plugin/main.c
index 1c38d99..061941d 100644
--- a/panel-plugin/main.c
+++ b/panel-plugin/main.c
@@ -263,7 +263,7 @@ static genmon_t *genmon_create_control (XfcePanelPlugin *plugin)
     struct param_t *poConf;
     struct monitor_t *poMonitor;
     GtkOrientation orientation = xfce_panel_plugin_get_orientation (plugin);
-    int size = xfce_panel_plugin_get_size (plugin);
+    //int size = xfce_panel_plugin_get_size (plugin);
 
     poPlugin = g_new (genmon_t, 1);
     memset (poPlugin, 0, sizeof (genmon_t));
@@ -408,8 +408,9 @@ static int SetMonitorFont (void *p_pvPlugin)
     
     pango_font_description_free (poFont);
     
-    return (0);
 #endif
+
+return (0);
 }/* SetMonitorFont() */
 
 /**************************************************************/
@@ -732,7 +733,7 @@ static void genmon_set_orientation (XfcePanelPlugin *plugin,
 /* Plugin API */
 /* Invoked when the panel changes orientation */
 {
-    struct param_t *poConf = &(poPlugin->oConf.oParam);
+    //struct param_t *poConf = &(poPlugin->oConf.oParam);
     struct monitor_t *poMonitor = &(poPlugin->oMonitor);
 
     gtk_orientable_set_orientation(GTK_ORIENTABLE(poMonitor->wBox), p_iOrientation);

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


More information about the Xfce4-commits mailing list