diff options
author | Stefano Karapetsas <[email protected]> | 2014-06-25 11:26:17 +0200 |
---|---|---|
committer | Stefano Karapetsas <[email protected]> | 2014-06-25 11:26:17 +0200 |
commit | 67c9f12a0d4188b546284efec2d0cd1b90f9052d (patch) | |
tree | d91e012aa6489f8e227bbc0d769c8130923dc2f6 /libmate-panel-applet | |
parent | 4a769cc810d949623d9f489f244092407c924882 (diff) | |
parent | 5185103c7acac7f6f291bbd5f7c969c8809237e7 (diff) | |
download | mate-panel-67c9f12a0d4188b546284efec2d0cd1b90f9052d.tar.bz2 mate-panel-67c9f12a0d4188b546284efec2d0cd1b90f9052d.tar.xz |
Merge pull request #212 from rilian-la-te/fix_expand
Fix expand
Diffstat (limited to 'libmate-panel-applet')
-rw-r--r-- | libmate-panel-applet/mate-panel-applet.c | 8 | ||||
-rw-r--r-- | libmate-panel-applet/mate-panel-applet.h | 3 |
2 files changed, 9 insertions, 2 deletions
diff --git a/libmate-panel-applet/mate-panel-applet.c b/libmate-panel-applet/mate-panel-applet.c index ac00bafa..788cd964 100644 --- a/libmate-panel-applet/mate-panel-applet.c +++ b/libmate-panel-applet/mate-panel-applet.c @@ -2211,7 +2211,9 @@ mate_panel_applet_class_init (MatePanelAppletClass *klass) g_param_spec_uint ("orient", "Orient", "Panel Applet Orientation", - 0, G_MAXUINT, 0, /* FIXME */ + MATE_PANEL_APPLET_ORIENT_FIRST, + MATE_PANEL_APPLET_ORIENT_LAST, + MATE_PANEL_APPLET_ORIENT_UP, G_PARAM_READWRITE)); g_object_class_install_property (gobject_class, PROP_SIZE, @@ -2232,7 +2234,9 @@ mate_panel_applet_class_init (MatePanelAppletClass *klass) g_param_spec_uint ("flags", "Flags", "Panel Applet flags", - 0, G_MAXUINT, 0, /* FIXME */ + MATE_PANEL_APPLET_FLAGS_NONE, + MATE_PANEL_APPLET_FLAGS_ALL, + MATE_PANEL_APPLET_FLAGS_NONE, G_PARAM_READWRITE)); g_object_class_install_property (gobject_class, PROP_SIZE_HINTS, diff --git a/libmate-panel-applet/mate-panel-applet.h b/libmate-panel-applet/mate-panel-applet.h index 1190b4bb..1eb84a14 100644 --- a/libmate-panel-applet/mate-panel-applet.h +++ b/libmate-panel-applet/mate-panel-applet.h @@ -42,6 +42,8 @@ typedef enum { MATE_PANEL_APPLET_ORIENT_DOWN, MATE_PANEL_APPLET_ORIENT_LEFT, MATE_PANEL_APPLET_ORIENT_RIGHT +#define MATE_PANEL_APPLET_ORIENT_FIRST MATE_PANEL_APPLET_ORIENT_UP +#define MATE_PANEL_APPLET_ORIENT_LAST MATE_PANEL_APPLET_ORIENT_RIGHT } MatePanelAppletOrient; #define PANEL_TYPE_APPLET (mate_panel_applet_get_type ()) @@ -62,6 +64,7 @@ typedef enum { MATE_PANEL_APPLET_EXPAND_MAJOR = 1 << 0, MATE_PANEL_APPLET_EXPAND_MINOR = 1 << 1, MATE_PANEL_APPLET_HAS_HANDLE = 1 << 2 +#define MATE_PANEL_APPLET_FLAGS_ALL (MATE_PANEL_APPLET_EXPAND_MAJOR|MATE_PANEL_APPLET_EXPAND_MINOR|MATE_PANEL_APPLET_HAS_HANDLE) } MatePanelAppletFlags; typedef struct _MatePanelApplet MatePanelApplet; |