diff options
author | Ted Gould <ted@gould.cx> | 2010-08-10 11:28:19 -0500 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2010-08-10 11:28:19 -0500 |
commit | fe604c42ebf644bd808ba5ca728455a87d51bbad (patch) | |
tree | dde3522efdcc0f371da39bba32b9c56b005d62dc | |
parent | c43dd8fd4891bfed0e1588878f0e1aa1303c1625 (diff) | |
download | ayatana-indicator-application-fe604c42ebf644bd808ba5ca728455a87d51bbad.tar.gz ayatana-indicator-application-fe604c42ebf644bd808ba5ca728455a87d51bbad.tar.bz2 ayatana-indicator-application-fe604c42ebf644bd808ba5ca728455a87d51bbad.zip |
Adding the ordering id property.
-rw-r--r-- | src/app-indicator.c | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/src/app-indicator.c b/src/app-indicator.c index 22b9c03..0b9b10e 100644 --- a/src/app-indicator.c +++ b/src/app-indicator.c @@ -112,7 +112,8 @@ enum { PROP_MENU, PROP_CONNECTED, PROP_LABEL, - PROP_LABEL_GUIDE + PROP_LABEL_GUIDE, + PROP_ORDERING_ID }; /* The strings so that they can be slowly looked up. */ @@ -126,6 +127,7 @@ enum { #define PROP_CONNECTED_S "connected" #define PROP_LABEL_S "label" #define PROP_LABEL_GUIDE_S "label-guide" +#define PROP_ORDERING_ID_S "ordering-id" /* Private macro, shhhh! */ #define APP_INDICATOR_GET_PRIVATE(o) \ @@ -330,6 +332,25 @@ app_indicator_class_init (AppIndicatorClass *klass) "To ensure that the label does not cause the panel to 'jiggle' this string should provide information on how much space it could take.", NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + AppIndicator:ordering-id: + + The ordering ID is an odd parameter, and if you think you don't need + it you're probably right. In general, the application indicator try + to place the applications in a recreatable place taking into account + which category they're in to try and group them. But, there are some + cases where you'd want to ensure indicators are next to each other. + To do that you can override the generated ordering ID and replace it + with a new one. Again, you probably don't want to be doing this, but + in case you do, this is the way. + */ + g_object_class_install_property(object_class, + PROP_ORDERING_ID, + g_param_spec_uint (PROP_ORDERING_ID_S, + "The location that this app indicator should be in the list.", + "A way to override the default ordering of the applications by providing a very specific idea of where this entry should be placed.", + 0, G_MAXUINT32, 0, + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); /* Signals */ |