diff options
author | Kjartan Maraas <kmaraas@src.gnome.org> | 2006-02-08 21:06:24 +0800 |
---|---|---|
committer | Kjartan Maraas <kmaraas@src.gnome.org> | 2006-02-08 21:06:24 +0800 |
commit | d21d923423231c70ddb674b2e6bd61b1f39675cf (patch) | |
tree | 8719db8d42b5614ef43e0612baf38e1dd4e30da2 /calendar/gui/dialogs/memo-editor.c | |
parent | e081754bc2aef21109661dbde5b47282af7371a5 (diff) | |
download | gsoc2013-evolution-d21d923423231c70ddb674b2e6bd61b1f39675cf.tar gsoc2013-evolution-d21d923423231c70ddb674b2e6bd61b1f39675cf.tar.gz gsoc2013-evolution-d21d923423231c70ddb674b2e6bd61b1f39675cf.tar.bz2 gsoc2013-evolution-d21d923423231c70ddb674b2e6bd61b1f39675cf.tar.lz gsoc2013-evolution-d21d923423231c70ddb674b2e6bd61b1f39675cf.tar.xz gsoc2013-evolution-d21d923423231c70ddb674b2e6bd61b1f39675cf.tar.zst gsoc2013-evolution-d21d923423231c70ddb674b2e6bd61b1f39675cf.zip |
broken pipes are soo fun
svn path=/trunk/; revision=31452
Diffstat (limited to 'calendar/gui/dialogs/memo-editor.c')
-rw-r--r-- | calendar/gui/dialogs/memo-editor.c | 89 |
1 files changed, 1 insertions, 88 deletions
diff --git a/calendar/gui/dialogs/memo-editor.c b/calendar/gui/dialogs/memo-editor.c index 5d18450203..27babe97fe 100644 --- a/calendar/gui/dialogs/memo-editor.c +++ b/calendar/gui/dialogs/memo-editor.c @@ -50,14 +50,7 @@ static void memo_editor_edit_comp (CompEditor *editor, ECalComponent *comp); static gboolean memo_editor_send_comp (CompEditor *editor, ECalComponentItipMethod method); static void memo_editor_finalize (GObject *object); -static void refresh_memo_cmd (GtkWidget *widget, gpointer data); -static void cancel_memo_cmd (GtkWidget *widget, gpointer data); -static void forward_cmd (GtkWidget *widget, gpointer data); - -static void model_row_change_insert_cb (GtkTreeModel *model, GtkTreePath *path, GtkTreeIter *iter, gpointer data); -static void model_row_delete_cb (GtkTreeModel *model, GtkTreePath *path, gpointer data); - -G_DEFINE_TYPE (MemoEditor, memo_editor, TYPE_COMP_EDITOR); +G_DEFINE_TYPE (MemoEditor, memo_editor, TYPE_COMP_EDITOR) @@ -90,9 +83,6 @@ memo_editor_class_init (MemoEditorClass *klass) static void init_widgets (MemoEditor *me) { - MemoEditorPrivate *priv; - - priv = me->priv; } static void @@ -244,12 +234,6 @@ memo_editor_construct (MemoEditor *me, ECal *client) static void memo_editor_set_e_cal (CompEditor *editor, ECal *client) { - MemoEditor *me; - MemoEditorPrivate *priv; - - me = MEMO_EDITOR (editor); - priv = me->priv; - if (COMP_EDITOR_CLASS (memo_editor_parent_class)->set_e_cal) COMP_EDITOR_CLASS (memo_editor_parent_class)->set_e_cal (editor, client); } @@ -257,33 +241,13 @@ memo_editor_set_e_cal (CompEditor *editor, ECal *client) static void memo_editor_edit_comp (CompEditor *editor, ECalComponent *comp) { - MemoEditor *me; - MemoEditorPrivate *priv; - ECalComponentOrganizer organizer; - ECal *client; - - me = MEMO_EDITOR (editor); - priv = me->priv; - - priv->updating = TRUE; - if (COMP_EDITOR_CLASS (memo_editor_parent_class)->edit_comp) COMP_EDITOR_CLASS (memo_editor_parent_class)->edit_comp (editor, comp); - - client = comp_editor_get_e_cal (COMP_EDITOR (editor)); - - priv->updating = FALSE; } static gboolean memo_editor_send_comp (CompEditor *editor, ECalComponentItipMethod method) { - MemoEditor *me = MEMO_EDITOR (editor); - MemoEditorPrivate *priv; - ECalComponent *comp = NULL; - - priv = me->priv; - if (COMP_EDITOR_CLASS (memo_editor_parent_class)->send_comp) return COMP_EDITOR_CLASS (memo_editor_parent_class)->send_comp (editor, method); @@ -333,54 +297,3 @@ memo_editor_new (ECal *client) return memo_editor_construct (me, client); } -static void -refresh_memo_cmd (GtkWidget *widget, gpointer data) -{ - MemoEditor *me = MEMO_EDITOR (data); - - comp_editor_send_comp (COMP_EDITOR (me), E_CAL_COMPONENT_METHOD_REFRESH); -} - -static void -cancel_memo_cmd (GtkWidget *widget, gpointer data) -{ - MemoEditor *me = MEMO_EDITOR (data); - ECalComponent *comp; - - comp = comp_editor_get_current_comp (COMP_EDITOR (me)); - if (cancel_component_dialog ((GtkWindow *) me, - comp_editor_get_e_cal (COMP_EDITOR (me)), comp, FALSE)) { - comp_editor_send_comp (COMP_EDITOR (me), E_CAL_COMPONENT_METHOD_CANCEL); - comp_editor_delete_comp (COMP_EDITOR (me)); - } -} - -static void -forward_cmd (GtkWidget *widget, gpointer data) -{ - MemoEditor *me = MEMO_EDITOR (data); - - if (comp_editor_save_comp (COMP_EDITOR (me), TRUE)) - comp_editor_send_comp (COMP_EDITOR (me), E_CAL_COMPONENT_METHOD_PUBLISH); -} - -static void -model_changed (MemoEditor *me) -{ - if (!me->priv->updating) { - comp_editor_set_changed (COMP_EDITOR (me), TRUE); - comp_editor_set_needs_send (COMP_EDITOR (me), TRUE); - } -} - -static void -model_row_change_insert_cb (GtkTreeModel *model, GtkTreePath *path, GtkTreeIter *iter, gpointer data) -{ - model_changed (MEMO_EDITOR (data)); -} - -static void -model_row_delete_cb (GtkTreeModel *model, GtkTreePath *path, gpointer data) -{ - model_changed (MEMO_EDITOR (data)); -} |