[Xfce4-commits] <xfce4-panel:devel> Use defines in the enum to make things easier to understand.
Nick Schermer
noreply at xfce.org
Mon Sep 28 15:28:02 CEST 2009
Updating branch refs/heads/devel
to 91a6c5c9e5f9a52d3a12c07de94bc32651b50a97 (commit)
from bd95ce0f8ec9413274c9b20c7ba037810f0f1e9a (commit)
commit 91a6c5c9e5f9a52d3a12c07de94bc32651b50a97
Author: Nick Schermer <nick at xfce.org>
Date: Sat Sep 26 15:47:29 2009 +0200
Use defines in the enum to make things easier to understand.
plugins/separator/separator.c | 15 ++++++++++-----
1 files changed, 10 insertions(+), 5 deletions(-)
diff --git a/plugins/separator/separator.c b/plugins/separator/separator.c
index 8475906..6bdcb6a 100644
--- a/plugins/separator/separator.c
+++ b/plugins/separator/separator.c
@@ -64,7 +64,12 @@ enum _SeparatorPluginStyle
SEPARATOR_PLUGIN_STYLE_SEPARATOR,
SEPARATOR_PLUGIN_STYLE_HANDLE,
SEPARATOR_PLUGIN_STYLE_DOTS,
- SEPARATOR_PLUGIN_STYLE_WRAP
+ SEPARATOR_PLUGIN_STYLE_WRAP,
+
+ /* defines */
+ SEPARATOR_PLUGIN_STYLE_MIN = SEPARATOR_PLUGIN_STYLE_TRANSPARENT,
+ SEPARATOR_PLUGIN_STYLE_MAX = SEPARATOR_PLUGIN_STYLE_WRAP,
+ SEPARATOR_PLUGIN_STYLE_DEFAULT = SEPARATOR_PLUGIN_STYLE_SEPARATOR
};
struct _SeparatorPluginClass
@@ -120,9 +125,9 @@ separator_plugin_class_init (SeparatorPluginClass *klass)
PROP_STYLE,
g_param_spec_uint ("style",
NULL, NULL,
- SEPARATOR_PLUGIN_STYLE_TRANSPARENT,
- SEPARATOR_PLUGIN_STYLE_WRAP,
- SEPARATOR_PLUGIN_STYLE_SEPARATOR,
+ SEPARATOR_PLUGIN_STYLE_MIN,
+ SEPARATOR_PLUGIN_STYLE_MAX,
+ SEPARATOR_PLUGIN_STYLE_DEFAULT,
EXO_PARAM_READWRITE));
g_object_class_install_property (gobject_class,
@@ -139,7 +144,7 @@ static void
separator_plugin_init (SeparatorPlugin *plugin)
{
/* initialize */
- plugin->style = SEPARATOR_PLUGIN_STYLE_SEPARATOR;
+ plugin->style = SEPARATOR_PLUGIN_STYLE_DEFAULT;
}
More information about the Xfce4-commits
mailing list