[Xfce4-commits] <xfce4-panel:devel> Make screen-position an enum property.
Nick Schermer
noreply at xfce.org
Wed Nov 18 10:46:04 CET 2009
Updating branch refs/heads/devel
to 8b880ca37256e0bfa83c318bf2f4de1501603978 (commit)
from 97aff33dc311b2988d337969336f3a142bcb33c6 (commit)
commit 8b880ca37256e0bfa83c318bf2f4de1501603978
Author: Nick Schermer <nick at xfce.org>
Date: Tue Nov 17 17:30:01 2009 +0100
Make screen-position an enum property.
libxfce4panel/xfce-panel-plugin.c | 16 +++++++---------
1 files changed, 7 insertions(+), 9 deletions(-)
diff --git a/libxfce4panel/xfce-panel-plugin.c b/libxfce4panel/xfce-panel-plugin.c
index bd9ab94..44dbc60 100644
--- a/libxfce4panel/xfce-panel-plugin.c
+++ b/libxfce4panel/xfce-panel-plugin.c
@@ -453,17 +453,15 @@ xfce_panel_plugin_class_init (XfcePanelPluginClass *klass)
G_PARAM_READABLE
| G_PARAM_STATIC_STRINGS));
- /* TODO */
g_object_class_install_property (gobject_class,
PROP_SCREEN_POSITION,
- g_param_spec_uint ("screen-position",
- "Screen Position",
- "Screen position of the plugin's panel",
- XFCE_SCREEN_POSITION_NONE,
- XFCE_SCREEN_POSITION_FLOATING_V,
- XFCE_SCREEN_POSITION_NONE,
- G_PARAM_READABLE
- | G_PARAM_STATIC_STRINGS));
+ g_param_spec_enum ("screen-position",
+ "Screen Position",
+ "Screen position of the plugin's panel",
+ XFCE_TYPE_SCREEN_POSITION,
+ XFCE_SCREEN_POSITION_NONE,
+ G_PARAM_READABLE
+ | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class,
PROP_EXPAND,
More information about the Xfce4-commits
mailing list