aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2010-01-29 06:36:03 +0800
committerMatthew Barnes <mbarnes@redhat.com>2010-01-30 22:02:11 +0800
commit8d85229f8fc9ff0e27b1f7790f61605c04337d7b (patch)
tree20d2dd06cc12df2fda95b3af7920a9e2e50cb997 /calendar/gui
parent7c02582ae70e45d58bf0966d60e23b50f854a06a (diff)
downloadgsoc2013-evolution-8d85229f8fc9ff0e27b1f7790f61605c04337d7b.tar.gz
gsoc2013-evolution-8d85229f8fc9ff0e27b1f7790f61605c04337d7b.tar.zst
gsoc2013-evolution-8d85229f8fc9ff0e27b1f7790f61605c04337d7b.zip
Sidebar cleanups for Memos and Tasks.
Kill the EMemoTable::user-created signal and connect directly to ECalModel::row-appended in e_memo_shell_view_private.c. Same goes for tasks.
Diffstat (limited to 'calendar/gui')
-rw-r--r--calendar/gui/e-memo-table.c22
-rw-r--r--calendar/gui/e-memo-table.h1
-rw-r--r--calendar/gui/e-task-table.c22
-rw-r--r--calendar/gui/e-task-table.h1
4 files changed, 0 insertions, 46 deletions
diff --git a/calendar/gui/e-memo-table.c b/calendar/gui/e-memo-table.c
index 459fff3e15..24eded5223 100644
--- a/calendar/gui/e-memo-table.c
+++ b/calendar/gui/e-memo-table.c
@@ -84,7 +84,6 @@ enum {
OPEN_COMPONENT,
POPUP_EVENT,
STATUS_MESSAGE,
- USER_CREATED,
LAST_SIGNAL
};
@@ -125,14 +124,6 @@ memo_table_emit_status_message (EMemoTable *memo_table,
g_signal_emit (memo_table, signal_id, 0, message, percent);
}
-static void
-memo_table_emit_user_created (EMemoTable *memo_table)
-{
- guint signal_id = signals[USER_CREATED];
-
- g_signal_emit (memo_table, signal_id, 0);
-}
-
/* Returns the current time, for the ECellDateEdit items.
FIXME: Should probably use the timezone of the item rather than the
current timezone, though that may be difficult to get from here. */
@@ -219,10 +210,6 @@ memo_table_set_model (EMemoTable *memo_table,
memo_table->priv->model = g_object_ref (model);
g_signal_connect_swapped (
- model, "row-appended",
- G_CALLBACK (memo_table_emit_user_created), memo_table);
-
- g_signal_connect_swapped (
model, "cal-view-progress",
G_CALLBACK (memo_table_model_cal_view_progress_cb),
memo_table);
@@ -1110,15 +1097,6 @@ memo_table_class_init (EMemoTableClass *class)
e_marshal_VOID__STRING_DOUBLE,
G_TYPE_NONE, 2,
G_TYPE_STRING, G_TYPE_DOUBLE);
-
- signals[USER_CREATED] = g_signal_new (
- "user-created",
- G_TYPE_FROM_CLASS (class),
- G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
- G_STRUCT_OFFSET (EMemoTableClass, user_created),
- NULL, NULL,
- g_cclosure_marshal_VOID__VOID,
- G_TYPE_NONE, 0);
}
static void
diff --git a/calendar/gui/e-memo-table.h b/calendar/gui/e-memo-table.h
index b0e4ba6a6a..4f52ad35e4 100644
--- a/calendar/gui/e-memo-table.h
+++ b/calendar/gui/e-memo-table.h
@@ -86,7 +86,6 @@ struct _EMemoTableClass {
void (*status_message) (EMemoTable *memo_table,
const gchar *message,
gdouble percent);
- void (*user_created) (EMemoTable *memo_table);
};
GType e_memo_table_get_type (void);
diff --git a/calendar/gui/e-task-table.c b/calendar/gui/e-task-table.c
index ede56b7b89..e9f3645b30 100644
--- a/calendar/gui/e-task-table.c
+++ b/calendar/gui/e-task-table.c
@@ -87,7 +87,6 @@ enum {
OPEN_COMPONENT,
POPUP_EVENT,
STATUS_MESSAGE,
- USER_CREATED,
LAST_SIGNAL
};
@@ -132,14 +131,6 @@ task_table_emit_status_message (ETaskTable *task_table,
g_signal_emit (task_table, signal_id, 0, message, percent);
}
-static void
-task_table_emit_user_created (ETaskTable *task_table)
-{
- guint signal_id = signals[USER_CREATED];
-
- g_signal_emit (task_table, signal_id, 0);
-}
-
static gint
task_table_percent_compare_cb (gconstpointer a, gconstpointer b, gpointer cmp_cache)
{
@@ -297,10 +288,6 @@ task_table_set_model (ETaskTable *task_table,
task_table->priv->model = g_object_ref (model);
g_signal_connect_swapped (
- model, "row_appended",
- G_CALLBACK (task_table_emit_user_created), task_table);
-
- g_signal_connect_swapped (
model, "cal-view-progress",
G_CALLBACK (task_table_model_cal_view_progress_cb),
task_table);
@@ -1409,15 +1396,6 @@ task_table_class_init (ETaskTableClass *class)
e_marshal_VOID__STRING_DOUBLE,
G_TYPE_NONE, 2,
G_TYPE_STRING, G_TYPE_DOUBLE);
-
- signals[USER_CREATED] = g_signal_new (
- "user-created",
- G_TYPE_FROM_CLASS (class),
- G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
- G_STRUCT_OFFSET (ETaskTableClass, user_created),
- NULL, NULL,
- g_cclosure_marshal_VOID__VOID,
- G_TYPE_NONE, 0);
}
static void
diff --git a/calendar/gui/e-task-table.h b/calendar/gui/e-task-table.h
index a112e222f8..cf215fd449 100644
--- a/calendar/gui/e-task-table.h
+++ b/calendar/gui/e-task-table.h
@@ -84,7 +84,6 @@ struct _ETaskTableClass {
void (*status_message) (ETaskTable *task_table,
const gchar *message,
gdouble percent);
- void (*user_created) (ETaskTable *task_table);
};
GType e_task_table_get_type (void);