[Xfce4-commits] <xfce4-indicator-plugin:master> Changed version checking mechanism
Andrzej
noreply at xfce.org
Fri Mar 23 15:40:03 CET 2012
Updating branch refs/heads/master
to 47662af0e551e67be8d9f148aaf783826aa5d860 (commit)
from ac510b4d7851c2b7fece06b17f048d15831c2770 (commit)
commit 47662af0e551e67be8d9f148aaf783826aa5d860
Author: Andrzej <ndrwrdck at gmail.com>
Date: Wed Mar 21 14:54:07 2012 +0900
Changed version checking mechanism
panel-plugin/indicator.c | 14 ++++++++++----
1 files changed, 10 insertions(+), 4 deletions(-)
diff --git a/panel-plugin/indicator.c b/panel-plugin/indicator.c
index 1172ef0..cff5d6e 100644
--- a/panel-plugin/indicator.c
+++ b/panel-plugin/indicator.c
@@ -33,6 +33,12 @@
#define DEFAULT_EXCLUDED_MODULES NULL
+#ifdef LIBXFCE4PANEL_CHECK_VERSION
+#if LIBXFCE4PANEL_CHECK_VERSION (4,9,0)
+#define HAS_PANEL_49
+#endif
+#endif
+
/* prototypes */
static void
indicator_construct (XfcePanelPlugin *plugin);
@@ -43,7 +49,7 @@ load_module (const gchar * name, IndicatorPlugin * indicator);
static gboolean
indicator_size_changed (XfcePanelPlugin *plugin, gint size, IndicatorPlugin *indicator);
-#if LIBXFCE4PANEL_CHECK_VERSION (4,9,0)
+#ifdef HAS_PANEL_49
static void
indicator_mode_changed (XfcePanelPlugin *plugin, XfcePanelPluginMode mode, IndicatorPlugin *indicator);
#else
@@ -219,7 +225,7 @@ indicator_free (XfcePanelPlugin *plugin,
-#if LIBXFCE4PANEL_CHECK_VERSION (4,9,0)
+#ifdef HAS_PANEL_49
static void
indicator_mode_changed (XfcePanelPlugin *plugin,
XfcePanelPluginMode mode,
@@ -256,7 +262,7 @@ indicator_size_changed (XfcePanelPlugin *plugin,
gint size,
IndicatorPlugin *indicator)
{
-#if LIBXFCE4PANEL_CHECK_VERSION (4,9,0)
+#ifdef HAS_PANEL_49
xfce_indicator_box_set_size (XFCE_INDICATOR_BOX (indicator->buttonbox),
size, xfce_panel_plugin_get_nrows (plugin));
#else
@@ -323,7 +329,7 @@ indicator_construct (XfcePanelPlugin *plugin)
g_signal_connect (G_OBJECT (plugin), "size-changed",
G_CALLBACK (indicator_size_changed), indicator);
-#if LIBXFCE4PANEL_CHECK_VERSION (4,9,0)
+#ifdef HAS_PANEL_49
g_signal_connect (G_OBJECT (plugin), "mode-changed",
G_CALLBACK (indicator_mode_changed), indicator);
#else
More information about the Xfce4-commits
mailing list