diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2009-07-24 10:24:39 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2009-07-24 10:24:39 +0800 |
commit | 4c43a88975bfb4cbab2eb10c9e2de31acedf0a61 (patch) | |
tree | b205179021de8a8e0d81b3c0551d0b0ce9c4ec54 /calendar/gui/gnome-cal.c | |
parent | c9e803d8e6d16134cb7feccd5686cff00e171b2b (diff) | |
download | gsoc2013-evolution-4c43a88975bfb4cbab2eb10c9e2de31acedf0a61.tar gsoc2013-evolution-4c43a88975bfb4cbab2eb10c9e2de31acedf0a61.tar.gz gsoc2013-evolution-4c43a88975bfb4cbab2eb10c9e2de31acedf0a61.tar.bz2 gsoc2013-evolution-4c43a88975bfb4cbab2eb10c9e2de31acedf0a61.tar.lz gsoc2013-evolution-4c43a88975bfb4cbab2eb10c9e2de31acedf0a61.tar.xz gsoc2013-evolution-4c43a88975bfb4cbab2eb10c9e2de31acedf0a61.tar.zst gsoc2013-evolution-4c43a88975bfb4cbab2eb10c9e2de31acedf0a61.zip |
Move "user_created" signal emission to ECalendarView.
Diffstat (limited to 'calendar/gui/gnome-cal.c')
-rw-r--r-- | calendar/gui/gnome-cal.c | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/calendar/gui/gnome-cal.c b/calendar/gui/gnome-cal.c index bb95c4d9aa..b245248f33 100644 --- a/calendar/gui/gnome-cal.c +++ b/calendar/gui/gnome-cal.c @@ -79,11 +79,6 @@ #include "e-cal-popup.h" #include "e-cal-menu.h" -/* FIXME glib 2.4 and above has this */ -#ifndef G_MAXINT32 -#define G_MAXINT32 ((gint32) 0x7fffffff) -#endif - #define d(x) /* hash table define for non intrusive error dialog */ @@ -935,46 +930,6 @@ view_selection_changed_cb (GtkWidget *view, GnomeCalendar *gcal) g_signal_emit (gcal, gnome_calendar_signals[CALENDAR_SELECTION_CHANGED], 0); } -/** - * gnome_calendar_emit_user_created_signal - * Emits "user_created" signal on a gcal and use calendar as a store where was event created. - * - * @param instance Instance on which emit signal. - * @param gcal GnomeCalendar, it will store info about used calendar here. - * @param calendar Used calendar, where was event created. - **/ -void -gnome_calendar_emit_user_created_signal (gpointer instance, GnomeCalendar *gcal, ECal *calendar) -{ - GnomeCalendarPrivate *priv; - - g_return_if_fail (gcal != NULL); - - priv = gcal->priv; - priv->user_created_cal = calendar; - g_signal_emit_by_name (instance, "user_created"); - priv->user_created_cal = NULL; -} - -static void -user_created_cb (GtkWidget *view, GnomeCalendar *gcal) -{ - GnomeCalendarPrivate *priv; - ECal *ecal; - - priv = gcal->priv; - ecal = priv->user_created_cal; - - if (!ecal) { - ECalModel *model; - - model = e_calendar_view_get_model (priv->views[priv->current_view_type]); - ecal = e_cal_model_get_default_client (model); - } - - gnome_calendar_add_source (gcal, E_CAL_SOURCE_TYPE_EVENT, e_cal_get_source (ecal)); -} - static void set_week_start (GnomeCalendar *calendar) { @@ -1529,9 +1484,6 @@ setup_widgets (GnomeCalendar *gcal) gtk_notebook_append_page (GTK_NOTEBOOK (priv->notebook), GTK_WIDGET (priv->views[i]), gtk_label_new ("")); - g_signal_connect (priv->views[i], "user_created", - G_CALLBACK (user_created_cb), gcal); - gtk_widget_show (GTK_WIDGET (priv->views[i])); } |