/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ /* * Author : * Rodrigo Moya * * Copyright 2003, Ximian, Inc. * * This program is free software; you can redistribute it and/or * modify it under the terms of version 2 of the GNU General Public * License as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * USA */ #include "calendar-config.h" #include "e-cal-list-view-config.h" struct _ECalListViewConfigPrivate { ECalListView *view; GList *notifications; }; static GObjectClass *parent_class = NULL; /* Property IDs */ enum props { PROP_0, PROP_VIEW, }; static void e_cal_list_view_config_set_property (GObject *object, guint property_id, const GValue *value, GParamSpec *pspec) { ECalListViewConfig *view_config; ECalListViewConfigPrivate *priv; view_config = E_CAL_LIST_VIEW_CONFIG (object); priv = view_config->priv; switch (property_id) { case PROP_VIEW: e_cal_list_view_config_set_view (view_config, g_value_get_object (value)); break; default: G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); break; } } static void e_cal_list_view_config_get_property (GObject *object, guint property_id, GValue *value, GParamSpec *pspec) { ECalListViewConfig *view_config; ECalListViewConfigPrivate *priv; view_config = E_CAL_LIST_VIEW_CONFIG (object); priv = view_config->priv; switch (property_id) { case PROP_VIEW: g_value_set_object (value, e_cal_list_view_config_get_view (view_config)); break; default: G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); break; } } static void e_cal_list_view_config_dispose (GObject *object) { ECalListViewConfig *view_config = E_CAL_LIST_VIEW_CONFIG (object); ECalListViewConfigPrivate *priv; priv = view_config->priv; e_cal_list_view_config_set_view (view_config, NULL); if (G_OBJECT_CLASS (parent_class)->dispose) G_OBJECT_CLASS (parent_class)->dispose (object); } static void e_cal_list_view_config_finalize (GObject *object) { ECalListViewConfig *view_config = E_CAL_LIST_VIEW_CONFIG (object); ECalListViewConfigPrivate *priv; priv = view_config->priv; g_free (priv); if (G_OBJECT_CLASS (parent_class)->finalize) G_OBJECT_CLASS (parent_class)->finalize (object); } static void e_cal_list_view_config_class_init (ECalListViewConfigClass *klass) { GObjectClass *gobject_class = G_OBJECT_CLASS (klass); GParamSpec *spec; parent_class = g_type_class_peek_parent (klass); /* Method override */ gobject_class->set_property = e_cal_list_view_config_set_property; gobject_class->get_property = e_cal_list_view_config_get_property; gobject_class->dispose = e_cal_list_view_config_dispose; gobject_class->finalize = e_cal_list_view_config_finalize; spec = g_param_spec_object ("view", NULL, NULL, e_cal_list_view_get_type (), G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT); g_object_class_install_property (gobject_class, PROP_VIEW, spec); } static void e_cal_list_view_config_init (ECalListViewConfig *view_config, ECalListViewConfigClass *klass) { view_config->priv = g_new0 (ECalListViewConfigPrivate, 1); } E_MAKE_TYPE (e_cal_list_view_config, "ECalListViewConfig", ECalListViewConfig, e_cal_list_view_config_class_init, e_cal_list_view_config_init, G_TYPE_OBJECT); ECalListViewConfig * e_cal_list_view_config_new (ECalListView *list_view) { ECalListViewConfig *view_config; view_config = g_object_new (e_cal_list_view_config_get_type (), "view", list_view, NULL); return view_config; } ECalListView * e_cal_list_view_config_get_view (ECalListViewConfig *view_config) { ECalListViewConfigPrivate *priv; g_return_val_if_fail (view_config != NULL, NULL); g_return_val_if_fail (E_IS_CAL_LIST_VIEW_CONFIG (view_config), NULL); priv = view_config->priv; return priv->view; } static void set_timezone (ECalListView *list_view) { icaltimezone *zone; zone = calendar_config_get_icaltimezone (); e_calendar_view_set_timezone (E_CALENDAR_VIEW (list_view), zone); } static void timezone_changed_cb (GConfClient *client, guint id, GConfEntry *entry, gpointer data) { ECalListViewConfig *view_config = data; ECalListViewConfigPrivate *priv; priv = view_config->priv; set_timezone (priv->view); } static void set_twentyfour_hour (ECalListView *list_view) { gboolean use_24_hour; use_24_hour = calendar_config_get_24_hour_format (); e_calendar_view_set_use_24_hour_format (E_CALENDAR_VIEW (list_view), use_24_hour); } static void twentyfour_hour_changed_cb (GConfClient *client, guint id, GConfEntry *entry, gpointer data) { ECalListViewConfig *view_config = data; ECalListViewConfigPrivate *priv; priv = view_config->priv; set_twentyfour_hour (priv->view); } void e_cal_list_view_config_set_view (ECalListViewConfig *view_config, ECalListView *list_view) { ECalListViewConfigPrivate *priv; guint not; GList *l; g_return_if_fail (view_config != NULL); g_return_if_fail (E_IS_CAL_LIST_VIEW_CONFIG (view_config)); priv = view_config->priv; if (priv->view) { g_object_unref (priv->view); priv->view = NULL; } for (l = priv->notifications; l; l = l->next) calendar_config_remove_notification (GPOINTER_TO_UINT (l->data)); g_list_free (priv->notifications); priv->notifications = NULL; /* If the new view is NULL, return right now */ if (!list_view) return; priv->view = g_object_ref (list_view); /* Time zone */ set_timezone (list_view); not = calendar_config_add_notification_timezone (timezone_changed_cb, view_config); priv->notifications = g_list_prepend (priv->notifications, GUINT_TO_POINTER (not)); /* 24 Hour format */ set_twentyfour_hour (list_view); not = calendar_config_add_notification_24_hour_format (twentyfour_hour_changed_cb, view_config); priv->notifications = g_list_prepend (priv->notifications, GUINT_TO_POINTER (not)); } 46323f039'>refslogtreecommitdiffstats
path: root/shells
Commit message (Expand)AuthorAgeFilesLines
* Fix MASTER_SITES.Norikatsu Shigemura2004-06-131-4/+2
* Fix MASTER_SITES.Norikatsu Shigemura2004-06-131-4/+2
* Fix a bug where a \ at EOL did not work as escape character.Akinori MUSHA2004-06-134-0/+88
* Update to 2.05e.Akinori MUSHA2004-06-097-762/+3
* - Postfix fix: don't expect postconf be in /usr/sbin, rely on it being in PATHPav Lucistnik2004-06-054-4/+42
* Putting commit bit in storage. I don't have the timePatrick S. Gardella2004-06-031-1/+1
* Don't remove directories we didn't installKris Kennaway2004-05-312-6/+0
* Double MAXLAUNCHTABLE and MAXFUNCLINES.Akinori MUSHA2004-05-272-5/+15
* Readd a correct fix against the glob expansion bug.Akinori MUSHA2004-05-264-1/+715
* Back out part of the previous commit. Turned out that the fixes inAkinori MUSHA2004-05-254-652/+1
* Apply fixes against recently reported bugs.Akinori MUSHA2004-05-256-0/+696
* - Mark rssh as IGNORE on 4.x (wordexp() is not supported)Clement Laforet2004-05-231-1/+5
* Add rssh 2.1.1, a Restricted Secure SHell only for sftp or/and scp.Clement Laforet2004-05-216-0/+140
* - Fix MASTER_SITESKirill Ponomarev2004-05-192-5/+3
* Update to 2.05d.Akinori MUSHA2004-05-132-3/+3
* Update to osh-040421Mark Linimon2004-05-112-3/+3
* - Update to version 20040331Kirill Ponomarev2004-04-164-6/+6
* Trim whitespace.Trevor Johnson2004-04-111-1/+0
* - Update to version 040216Kirill Ponomarev2004-04-103-15/+5
* - tar -> ${TAR} (since we have now a bsdtar ;)Clement Laforet2004-04-071-1/+1
* Remove category pkg/COMMENT files in favour of a COMMENT variable in theKris Kennaway2004-04-022-1/+2
* - Fix CONFIGURE_ARGS handlingPav Lucistnik2004-04-021-4/+4
* SIZEify (maintainer timeout)Trevor Johnson2004-03-319-0/+36
* Catch up with the master port's update to 4.2.0.Akinori MUSHA2004-03-252-10/+9
* Rename a wrongly named patch.Akinori MUSHA2004-03-251-0/+0
* Add a patch to fix a minor bug with deleting a multibyte character atAkinori MUSHA2004-03-252-0/+18
* - Update to 4.2.0 [1]Sergei Kolobov2004-03-243-23/+98
* - Update to 1.0115Clement Laforet2004-03-223-11/+11
* Use PORTDOCS macro.Clement Laforet2004-03-222-3/+1
* Remove old version's SIZE.Norikatsu Shigemura2004-03-201-1/+0
* Update to 3.9(support for WinSCP3).Norikatsu Shigemura2004-03-205-30/+37
* Fix build on amd64, and make this port actually run on 5.x.Kris Kennaway2004-03-183-8/+33
* - SIZE'ifyKirill Ponomarev2004-03-181-0/+1
* . New victim^Wmaintainer.Greg Lewis2004-03-181-1/+1
* . Unbreak by updating to 2004-02-29.Greg Lewis2004-03-183-8/+7
* SIZEify.Trevor Johnson2004-03-181-0/+2
* BROKEN: Distfile is unfetchableKris Kennaway2004-03-171-0/+2
* BROKEN on amd64: Does not compileKris Kennaway2004-03-141-1/+7
* BROKEN on ia64: Does not compileKris Kennaway2004-03-071-1/+7
* Drop maintainership. I don't use this.Christian Weisgerber2004-03-061-1/+1
* BROKEN on sparc64: Does not compileKris Kennaway2004-03-051-1/+7
* - add SIZEDirk Meyer2004-02-261-0/+1
* Update to 2.05c.Akinori MUSHA2004-02-252-2/+3
* - Update to version 20040214Kirill Ponomarev2004-02-196-44/+30
* Use PLIST_FILES (bento-tested, marcus-reviewed).Trevor Johnson2004-02-066-3/+3
* Bump PORTREVISION on all ports that depend on gettext to aid with upgrading.Joe Marcus Clarke2004-02-042-0/+2
* SIZE *DOES* MATTER.Sergei Kolobov2004-01-311-0/+2
* SIZEify.Trevor Johnson2004-01-3011-0/+11
* Update to 20040101Michael Haro2004-01-114-4/+4
* Fix pkg-plist (NOPORTDOCS knob).Sergey A. Osokin2004-01-033-12/+12
* Use DOCSDIR macro.Sergey A. Osokin2003-12-312-8/+8
* Use DOCSDIR macro.Sergey A. Osokin2003-12-311-2/+2
* - Update to 4.0.9Sergei Kolobov2003-12-203-21/+51
* Also pay attention to NOSHARED=yes as /usr/src and zsh does.David E. O'Brien2003-12-153-3/+3
* The option to enable network redirection is removed since this is theDavid E. O'Brien2003-12-143-27/+0
* Build bash dynamic unless either WANT_STATIC_BASH or NO_DYNAMICROOTDavid E. O'Brien2003-12-143-0/+12
* - Fix build on non-i386 platforms.Pav Lucistnik2003-12-132-30/+43
* Update to 2.05a, which fixes a bug in a builtin command "checkid".Akinori MUSHA2003-12-102-3/+4
* Update to 2.05.Akinori MUSHA2003-12-093-34/+2
* Add 'cvs blame' support.David E. O'Brien2003-12-072-8/+44
* scponly dist includes a script which setup chroot cage, whichJames E. Housley2003-11-212-0/+25
* Apply a patch that fixes segv in group lookups.Akinori MUSHA2003-11-202-0/+32
* - fix build with gcc 3.3.xKirill Ponomarev2003-11-195-109/+171
* - Update to version 20031112Kirill Ponomarev2003-11-174-4/+4
* Update to 031112 and unbreak, old version was not fetchable anymore.Pav Lucistnik2003-11-152-2/+2
* - Update to version 20031022Kirill Ponomarev2003-11-074-4/+4
* Some days it doesn't pay to try to try to chew through the leather straps.Mark Linimon2003-11-051-1/+1
* Reset maintainer to ports@FreeBSD.org. Requested by: kris.Mark Linimon2003-11-032-2/+2
* Reset maintainer to ports@. Reviewed by: kris.Mark Linimon2003-11-031-1/+1
* Update to current version. PR ports/58192.Mark Linimon2003-11-035-20/+15
* Reset maintainer of ports owned by inactive committers who were just retired.Kris Kennaway2003-11-031-2/+2
* Move inclusion of bsd.port.pre.mk past variable definitions.Mark Linimon2003-10-291-6/+6
* utilize SITE_PERLYing-Chieh Liao2003-10-243-122/+122
* Change to my @FreeBSD.org address.Sergei Kolobov2003-10-231-1/+1
* All right, that's it, no more commits at 4am for me.Mark Linimon2003-10-211-5/+1
* Remove BROKEN case for i386 4.x.Mark Linimon2003-10-211-2/+10
* Per bento logs, this is broken on 5.x. Rather than marking it so onlyMark Linimon2003-10-211-1/+3
* - Layout for GnuSTEP 1.8.0Dirk Meyer2003-10-191-5/+1
* Update to 2.04c.Akinori MUSHA2003-10-182-2/+2
* Before committing the previous BROKEN changes I carefully checked the statusKris Kennaway2003-10-161-7/+1
* BROKEN on 5.x: does not compileKris Kennaway2003-10-162-2/+14
* [patch][non-maintainer] remove dead master site from shells/zshEdwin Groothuis2003-10-041-1/+0
* - Update to version 20030929Kirill Ponomarev2003-09-304-6/+6
* New port: shells/bash-completionEdwin Groothuis2003-09-2913-0/+143
* - Fix build on -currentKirill Ponomarev2003-09-281-0/+11
* KATO mega patchEdwin Groothuis2003-09-275-5/+5
* Fixup tcsh_config to look in ${PREFIX}/share instead of /usr/share.Sean Chittenden2003-09-111-1/+6
* After using tcsh for 4 years and having just discovered the 'rprompt'Sean Chittenden2003-09-105-0/+38
* o Respect scponly default configuration.Norikatsu Shigemura2003-09-022-26/+37
* - Fix typo in COMMENT [1]Kirill Ponomarev2003-09-012-4/+2
* Fix build on -current (varargs -> stdarg)David E. O'Brien2003-08-319-0/+0
* - Fix build on -current (varargs -> stdarg)Kirill Ponomarev2003-08-309-0/+255
* - Fix build on -currentKirill Ponomarev2003-08-291-0/+1707
* - use new hook USE_GNUSTEP in bsd.port.mkDirk Meyer2003-08-281-6/+3
* Remove tcsh.Alexander Leidinger2003-08-217-104/+0
* Forced update to release 2003-07-24.Christian Weisgerber2003-08-022-3/+3
* Update to 2.04a.Akinori MUSHA2003-07-293-16/+2
* - flat layoutDirk Meyer2003-07-261-5/+5
* Fix compatibility with rsync (depend explicitly on rsync).Maho Nakata2003-07-261-1/+3
* fix configure arguments for gftp stuff.Maho Nakata2003-07-261-2/+2
* Fix NOSHARED (produce static executable)Sergey A. Osokin2003-07-212-0/+2
* Update to 4.0.7 and turn over this port to the submitter. This updateWill Andrews2003-07-203-542/+613
* Update to release 2003-06-21.Christian Weisgerber2003-07-082-3/+3
* Update to 4.1.1.Shigeyuki Fukushima2003-07-04