aboutsummaryrefslogtreecommitdiff
path: root/libindicate
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-01-12 16:07:22 -0600
committerTed Gould <ted@canonical.com>2009-01-12 16:07:22 -0600
commitb687b3aefb3b7a231d18dea06ca511b990049487 (patch)
treec553a1aed36dc9ccda6bc84a4f1644f2a2f482e1 /libindicate
parent245fdda86551e6e598cea84418f3bf0ae40d1fa1 (diff)
downloadlibayatana-indicator-b687b3aefb3b7a231d18dea06ca511b990049487.tar.gz
libayatana-indicator-b687b3aefb3b7a231d18dea06ca511b990049487.tar.bz2
libayatana-indicator-b687b3aefb3b7a231d18dea06ca511b990049487.zip
Changing to showing the inicator and make it so that we dont' crash right now.
Diffstat (limited to 'libindicate')
-rw-r--r--libindicate/indicator.c16
-rw-r--r--libindicate/indicator.h2
-rw-r--r--libindicate/tests/indicate-and-crash.c4
3 files changed, 20 insertions, 2 deletions
diff --git a/libindicate/indicator.c b/libindicate/indicator.c
index 2db8468..3e168c9 100644
--- a/libindicate/indicator.c
+++ b/libindicate/indicator.c
@@ -4,6 +4,8 @@
/* Signals */
enum {
+ HIDE,
+ SHOW,
USER_DISPLAY,
LAST_SIGNAL
};
@@ -65,3 +67,17 @@ indicate_indicator_new (void)
return indicator;
}
+void
+indicate_indicator_show (IndicateIndicator * indicator)
+{
+
+
+}
+
+void
+indicate_indicator_hide (IndicateIndicator * indicator)
+{
+
+
+}
+
diff --git a/libindicate/indicator.h b/libindicate/indicator.h
index 77fd82f..976e4b6 100644
--- a/libindicate/indicator.h
+++ b/libindicate/indicator.h
@@ -33,6 +33,8 @@ struct _IndicateIndicator {
struct _IndicateIndicatorClass {
GObjectClass parent_class;
+ void (*hide) (IndicateIndicator * indicator, gpointer data);
+ void (*show) (IndicateIndicator * indicator, gpointer data);
void (*user_display) (IndicateIndicator * indicator, gpointer data);
gchar * (*get_type) (IndicateIndicator * indicator);
diff --git a/libindicate/tests/indicate-and-crash.c b/libindicate/tests/indicate-and-crash.c
index 1886a24..fbc32b0 100644
--- a/libindicate/tests/indicate-and-crash.c
+++ b/libindicate/tests/indicate-and-crash.c
@@ -10,9 +10,9 @@ main (int argc, char ** argv)
g_type_init();
IndicateIndicator * indicator = indicate_indicator_new();
- indicate_server_show(indicator->server);
+ indicator_show(indicator->server);
- g_timeout_add_seconds(15, crashfunc, NULL);
+ //g_timeout_add_seconds(15, crashfunc, NULL);
g_main_loop_run(g_main_loop_new(NULL, FALSE));