aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-tasks.c
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/gui/e-tasks.c')
-rw-r--r--calendar/gui/e-tasks.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/calendar/gui/e-tasks.c b/calendar/gui/e-tasks.c
index eae255bd88..b63d015eec 100644
--- a/calendar/gui/e-tasks.c
+++ b/calendar/gui/e-tasks.c
@@ -184,8 +184,7 @@ table_selection_change_cb (ETable *etable, gpointer data)
tasks = E_TASKS (data);
n_selected = e_table_selected_count (etable);
- gtk_signal_emit (GTK_OBJECT (tasks), e_tasks_signals[SELECTION_CHANGED],
- n_selected);
+ g_signal_emit (tasks, e_tasks_signals[SELECTION_CHANGED], 0, n_selected);
if (n_selected != 1)
e_cal_component_preview_clear (E_CAL_COMPONENT_PREVIEW (tasks->priv->preview));
@@ -702,13 +701,14 @@ e_tasks_class_init (ETasksClass *class)
object_class = (GtkObjectClass *) class;
e_tasks_signals[SELECTION_CHANGED] =
- gtk_signal_new ("selection_changed",
- GTK_RUN_LAST,
- G_TYPE_FROM_CLASS (object_class),
- GTK_SIGNAL_OFFSET (ETasksClass, selection_changed),
- g_cclosure_marshal_VOID__INT,
- GTK_TYPE_NONE, 1,
- GTK_TYPE_INT);
+ g_signal_new ("selection_changed",
+ G_TYPE_FROM_CLASS (object_class),
+ G_SIGNAL_RUN_LAST,
+ G_STRUCT_OFFSET (ETasksClass, selection_changed),
+ NULL, NULL,
+ g_cclosure_marshal_VOID__INT,
+ G_TYPE_NONE, 1,
+ G_TYPE_INT);
e_tasks_signals[SOURCE_ADDED] =
g_signal_new ("source_added",
@@ -932,7 +932,7 @@ backend_died_cb (ECal *client, gpointer data)
priv->clients_list = g_list_remove (priv->clients_list, client);
g_hash_table_remove (priv->clients, e_source_peek_uid (source));
- gtk_signal_emit (GTK_OBJECT (tasks), e_tasks_signals[SOURCE_REMOVED], source);
+ g_signal_emit (tasks, e_tasks_signals[SOURCE_REMOVED], 0, source);
e_calendar_table_set_status_message (E_CALENDAR_TABLE (e_tasks_get_calendar_table (tasks)), NULL, -1);
@@ -982,7 +982,7 @@ client_cal_opened_cb (ECal *ecal, ECalendarStatus status, ETasks *tasks)
/* Do this last because it unrefs the client */
g_hash_table_remove (priv->clients, e_source_peek_uid (source));
- gtk_signal_emit (GTK_OBJECT (tasks), e_tasks_signals[SOURCE_REMOVED], source);
+ g_signal_emit (tasks, e_tasks_signals[SOURCE_REMOVED], 0, source);
set_status_message (tasks, NULL);
g_object_unref (source);
@@ -1026,7 +1026,7 @@ default_client_cal_opened_cb (ECal *ecal, ECalendarStatus status, ETasks *tasks)
/* Do this last because it unrefs the client */
g_hash_table_remove (priv->clients, e_source_peek_uid (source));
- gtk_signal_emit (GTK_OBJECT (tasks), e_tasks_signals[SOURCE_REMOVED], source);
+ g_signal_emit (tasks, e_tasks_signals[SOURCE_REMOVED], 0, source);
set_status_message (tasks, NULL);
g_object_unref (priv->default_client);
@@ -1192,7 +1192,7 @@ e_tasks_add_todo_source (ETasks *tasks, ESource *source)
g_hash_table_insert (priv->clients, g_strdup (uid) , client);
priv->clients_list = g_list_prepend (priv->clients_list, client);
- gtk_signal_emit (GTK_OBJECT (tasks), e_tasks_signals[SOURCE_ADDED], source);
+ g_signal_emit (tasks, e_tasks_signals[SOURCE_ADDED], 0, source);
open_ecal (tasks, client, FALSE, client_cal_opened_cb);
@@ -1229,7 +1229,7 @@ e_tasks_remove_todo_source (ETasks *tasks, ESource *source)
g_hash_table_remove (priv->clients, uid);
- gtk_signal_emit (GTK_OBJECT (tasks), e_tasks_signals[SOURCE_REMOVED], source);
+ g_signal_emit (tasks, e_tasks_signals[SOURCE_REMOVED], 0, source);
return TRUE;
}