aboutsummaryrefslogtreecommitdiffstats
path: root/shell/evolution-test-component.c
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2001-06-25 10:54:12 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2001-06-25 10:54:12 +0800
commit2f67aaaf88cde1291eeec5e0e7e07be914c45263 (patch)
treeb9c050694da2cbb34505baedd7992f2dd94f2c47 /shell/evolution-test-component.c
parent8cb68557aebb62334f68beeea60cf3bbf5930f9e (diff)
downloadgsoc2013-evolution-2f67aaaf88cde1291eeec5e0e7e07be914c45263.tar
gsoc2013-evolution-2f67aaaf88cde1291eeec5e0e7e07be914c45263.tar.gz
gsoc2013-evolution-2f67aaaf88cde1291eeec5e0e7e07be914c45263.tar.bz2
gsoc2013-evolution-2f67aaaf88cde1291eeec5e0e7e07be914c45263.tar.lz
gsoc2013-evolution-2f67aaaf88cde1291eeec5e0e7e07be914c45263.tar.xz
gsoc2013-evolution-2f67aaaf88cde1291eeec5e0e7e07be914c45263.tar.zst
gsoc2013-evolution-2f67aaaf88cde1291eeec5e0e7e07be914c45263.zip
Actually implement the "clicked" signal for the EActivityHandler, and
add some small testing code for it in the test component. svn path=/trunk/; revision=10464
Diffstat (limited to 'shell/evolution-test-component.c')
-rw-r--r--shell/evolution-test-component.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/shell/evolution-test-component.c b/shell/evolution-test-component.c
index f9f199e606..aed0d9089d 100644
--- a/shell/evolution-test-component.c
+++ b/shell/evolution-test-component.c
@@ -52,6 +52,16 @@ static int timeout_id = 0;
static int progress = -1;
+/* Callbacks. */
+
+static void
+activity_client_clicked_callback (EvolutionActivityClient *client,
+ void *data)
+{
+ g_warning ("Task bar button clicked!");
+}
+
+
/* Timeout #3: We are done. */
static int
timeout_callback_3 (void *data)
@@ -109,6 +119,9 @@ timeout_callback_1 (void *data)
return FALSE;
}
+ gtk_signal_connect (GTK_OBJECT (activity_client), "clicked",
+ GTK_SIGNAL_FUNC (activity_client_clicked_callback), NULL);
+
g_print ("Component becoming busy -- %s\n", COMPONENT_ID);
if (suggest_display)
g_print (" --> Could display dialog box.\n");