diff options
Diffstat (limited to 'shell/evolution-activity-client.c')
-rw-r--r-- | shell/evolution-activity-client.c | 30 |
1 files changed, 21 insertions, 9 deletions
diff --git a/shell/evolution-activity-client.c b/shell/evolution-activity-client.c index 9e95eedcac..1bb74f6dda 100644 --- a/shell/evolution-activity-client.c +++ b/shell/evolution-activity-client.c @@ -47,7 +47,8 @@ static GtkObjectClass *parent_class = NULL; #define UPDATE_DELAY 1000 enum { - CLICKED, + SHOW_DETAILS, + CANCEL, LAST_SIGNAL }; @@ -209,8 +210,10 @@ listener_callback (BonoboListener *listener, activity_client = EVOLUTION_ACTIVITY_CLIENT (data); - if (strcmp (event_name, "Clicked") == 0) - gtk_signal_emit (GTK_OBJECT (activity_client), signals[CLICKED]); + if (strcmp (event_name, "ShowDetails") == 0) + gtk_signal_emit (GTK_OBJECT (activity_client), signals[SHOW_DETAILS]); + else if (strcmp (event_name, "Cancel") == 0) + gtk_signal_emit (GTK_OBJECT (activity_client), signals[CANCEL]); else g_warning ("EvolutionActivityClient: Unknown event from listener -- %s", event_name); } @@ -264,12 +267,21 @@ class_init (EvolutionActivityClientClass *klass) object_class = GTK_OBJECT_CLASS (klass); object_class->destroy = impl_destroy; - signals[CLICKED] = gtk_signal_new ("clicked", - GTK_RUN_FIRST, - object_class->type, - GTK_SIGNAL_OFFSET (EvolutionActivityClientClass, clicked), - gtk_marshal_NONE__NONE, - GTK_TYPE_NONE, 0); + signals[SHOW_DETAILS] + = gtk_signal_new ("show_details", + GTK_RUN_FIRST, + object_class->type, + GTK_SIGNAL_OFFSET (EvolutionActivityClientClass, show_details), + gtk_marshal_NONE__NONE, + GTK_TYPE_NONE, 0); + + signals[CANCEL] + = gtk_signal_new ("cancel", + GTK_RUN_FIRST, + object_class->type, + GTK_SIGNAL_OFFSET (EvolutionActivityClientClass, cancel), + gtk_marshal_NONE__NONE, + GTK_TYPE_NONE, 0); gtk_object_class_add_signals (object_class, signals, LAST_SIGNAL); } |