aboutsummaryrefslogtreecommitdiff
path: root/libindicator/indicator-object.h
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2012-01-13 05:54:17 +0100
committerCharles Kerr <charles.kerr@canonical.com>2012-01-13 05:54:17 +0100
commitc52fbaa41bd72b45341f751ba2a19e00c42a4b6d (patch)
tree68d1dc8b00a96691a1ca6b1715e9bdc66643780d /libindicator/indicator-object.h
parentd3392a98f7b2ceb1bb4fce4a41feed261012346d (diff)
downloadlibayatana-indicator-c52fbaa41bd72b45341f751ba2a19e00c42a4b6d.tar.gz
libayatana-indicator-c52fbaa41bd72b45341f751ba2a19e00c42a4b6d.tar.bz2
libayatana-indicator-c52fbaa41bd72b45341f751ba2a19e00c42a4b6d.zip
Better implementation.
This version handles the bootstrapping conditions better, and also refs+detaches the GtkMenu for safekeeping between removed->added events s.t. it can keep being reused.
Diffstat (limited to 'libindicator/indicator-object.h')
-rw-r--r--libindicator/indicator-object.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/libindicator/indicator-object.h b/libindicator/indicator-object.h
index 51ca758..a46600f 100644
--- a/libindicator/indicator-object.h
+++ b/libindicator/indicator-object.h
@@ -61,7 +61,10 @@ typedef enum
#define INDICATOR_OBJECT_SIGNAL_SECONDARY_ACTIVATE_ID (g_signal_lookup(INDICATOR_OBJECT_SIGNAL_SECONDARY_ACTIVATE, INDICATOR_OBJECT_TYPE))
/* the name of the GSettings schema-id property */
-#define INDICATOR_OBJECT_GSETTINGS_SCHEMA_ID "gsettings-schema-id"
+#define INDICATOR_OBJECT_GSETTINGS_SCHEMA_ID "indicator-object-gsettings-schema-id"
+
+/* the name of the property to decide whether or not entries are visible by default */
+#define INDICATOR_OBJECT_DEFAULT_VISIBILITY "indicator-object-default-visibility"
typedef struct _IndicatorObject IndicatorObject;
typedef struct _IndicatorObjectClass IndicatorObjectClass;
@@ -186,6 +189,7 @@ IndicatorObject * indicator_object_new_from_file (const gchar * file);
GList * indicator_object_get_entries (IndicatorObject * io);
guint indicator_object_get_location (IndicatorObject * io, IndicatorObjectEntry * entry);
guint indicator_object_get_show_now (IndicatorObject * io, IndicatorObjectEntry * entry);
+void indicator_object_set_visible (IndicatorObject * io, gboolean visible);
void indicator_object_entry_activate (IndicatorObject * io, IndicatorObjectEntry * entry, guint timestamp);
void indicator_object_entry_close (IndicatorObject * io, IndicatorObjectEntry * entry, guint timestamp);