/* * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) version 3. * * 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 * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with the program; if not, see * * * Authors: * David Trowbridge * * Copyright (C) 1999-2008 Novell, Inc. (www.novell.com) * */ #ifdef HAVE_CONFIG_H #include #endif #include #include "e-cal-config.h" #define E_CAL_CONFIG_GET_PRIVATE(obj) \ (G_TYPE_INSTANCE_GET_PRIVATE \ ((obj), E_TYPE_CAL_CONFIG, ECalConfigPrivate)) struct _ECalConfigPrivate { guint source_changed_id; }; G_DEFINE_TYPE (ECalConfig, e_cal_config, E_TYPE_CONFIG) static void ecp_target_free (EConfig *ec, EConfigTarget *t) { ECalConfigPrivate *p = E_CAL_CONFIG (ec)->priv; if (ec->target == t) { switch (t->type) { case EC_CONFIG_TARGET_SOURCE: { ECalConfigTargetSource *s = (ECalConfigTargetSource *) t; if (p->source_changed_id) { g_signal_handler_disconnect ( s->source, p->source_changed_id); p->source_changed_id = 0; } break; } case EC_CONFIG_TARGET_PREFS: { break; } } } switch (t->type) { case EC_CONFIG_TARGET_SOURCE: { ECalConfigTargetSource *s = (ECalConfigTargetSource *) t; if (s->source) g_object_unref (s->source); break; } case EC_CONFIG_TARGET_PREFS: { ECalConfigTargetPrefs *s = (ECalConfigTargetPrefs *) t; if (s->settings) g_object_unref (s->settings); break; } } ((EConfigClass *) e_cal_config_parent_class)->target_free (ec, t); } static void ecp_source_changed (ESource *source, EConfig *ec) { e_config_target_changed (ec, E_CONFIG_TARGET_CHANGED_STATE); } static void ecp_set_target (EConfig *ec, EConfigTarget *t) { ECalConfigPrivate *p = E_CAL_CONFIG_GET_PRIVATE (ec); ((EConfigClass *) e_cal_config_parent_class)->set_target (ec, t); if (t) { switch (t->type) { case EC_CONFIG_TARGET_SOURCE: { ECalConfigTargetSource *s = (ECalConfigTargetSource *) t; p->source_changed_id = g_signal_connect ( s->source, "changed", G_CALLBACK (ecp_source_changed), ec); break; } case EC_CONFIG_TARGET_PREFS: { /* ECalConfigTargetPrefs *s = (ECalConfigTargetPrefs *)t; */ break; } } } } static void e_cal_config_class_init (ECalConfigClass *class) { EConfigClass *config_class; g_type_class_add_private (class, sizeof (ECalConfigPrivate)); config_class = E_CONFIG_CLASS (class); config_class->set_target = ecp_set_target; config_class->target_free = ecp_target_free; } static void e_cal_config_init (ECalConfig *cfg) { cfg->priv = E_CAL_CONFIG_GET_PRIVATE (cfg); } ECalConfig * e_cal_config_new (const gchar *menuid) { ECalConfig *ecp = g_object_new (e_cal_config_get_type (), NULL); e_config_construct (&ecp->config, menuid); return ecp; } ECalConfigTargetSource * e_cal_config_target_new_source (ECalConfig *ecp, ESource *source) { ECalConfigTargetSource *t; t = e_config_target_new ( &ecp->config, EC_CONFIG_TARGET_SOURCE, sizeof (*t)); t->source = g_object_ref (source); return t; } ECalConfigTargetPrefs * e_cal_config_target_new_prefs (ECalConfig *ecp) { ECalConfigTargetPrefs *t; t = e_config_target_new ( &ecp->config, EC_CONFIG_TARGET_PREFS, sizeof (*t)); t->settings = g_settings_new ("org.gnome.evolution.calendar"); return t; } alue='branches/2016Q4'>branches/2016Q4 branches/2017Q1 branches/2017Q2 branches/2017Q3 branches/2017Q4 branches/2018Q1 branches/2018Q2 branches/2018Q3 branches/2018Q4 branches/2019Q1 branches/2019Q2 branches/2019Q3 branches/2019Q4 branches/2020Q1 branches/2020Q2 branches/2020Q3 branches/2020Q4 branches/2021Q1 branches/RELEASE_8_4_0 branches/RELENG_2_1_0 branches/RELENG_2_2 branches/RELENG_9_1_0 branches/RELENG_9_2_0 dependabot/npm_and_yarn/devel/electron4/files/eslint-utils-1.4.3 dependabot/npm_and_yarn/devel/electron4/files/lodash-4.17.15 dependabot/npm_and_yarn/devel/electron4/files/lodash.merge-4.6.2 dependabot/npm_and_yarn/devel/electron4/files/lodash.template-4.5.0 dependabot/npm_and_yarn/devel/electron4/files/minimist-1.2.2 dependabot/npm_and_yarn/devel/electron4/files/mixin-deep-1.3.2 main master svn_head FreeBSD Ports (https://github.com/freebsd/freebsd-ports) aboutsummaryrefslogtreecommitdiffstats log msg author committer range path: root/audioCommit message (Expand)AuthorAgeFilesLines * Fix fallout of bktr(4) removaltobik2020-03-182-0/+7 * audio/mpg123: remove gmake dependencynovel2020-03-151-1/+1 * Update to recent upstream snapshot (as of 2020-01-02) including depsriggs2020-03-152-27/+26 * audio/xmmix: Fix path that is used to find help fileswills2020-03-151-1/+1 * Make some implicit KDE dependencies explicittcberner2020-03-151-1/+2 * audio/amarok: remove unecessary sed calltcberner2020-03-151-2/+2 * audio/libnoise: remove unnecessary REINPLACE_CMDswills2020-03-151-2/+0 * audio/libaiff: remove unnecessary REINPLACE_CMDswills2020-03-151-4/+0 * audio/hexter: remove unnecessary REINPLACE_CMDswills2020-03-141-3/+0 * audio/gvolwheel: remove unnecessary REINPLACE_CMDswills2020-03-141-4/+0 * audio/spotify-tui: Update to 0.16.0tcberner2020-03-142-23/+38 * Update to 1.12ehaupt2020-03-142-4/+4 * audio/x42-plugins-lv2: Update 20181103 -> 20200114yuri2020-03-136-74/+25 * devel/icu: update to 66.1jbeich2020-03-132-1/+2 * lang/rust: Update to 1.42.0tobik2020-03-133-2/+3 * Update to 1.11ehaupt2020-03-112-4/+4 * KDE Plasma Desktop -- Update to 5.18.3tcberner2020-03-111-3/+3 * audio/grip: removed useless dependenciesbapt2020-03-111-1/+2 * Use byacc instead of bison (via the new bison wrapper)bapt2020-03-101-1/+1 * Denemo builds perfectly fine with base byaccbapt2020-03-101-1/+1 * Sphinxbase works perfectly fine with byacc, remove useless dependency on bisonbapt2020-03-101-4/+1 * audio/grip: Update 4.0.1 -> 4.1.0robak2020-03-092-4/+4 * Reap audio/shout-idjc as its only consumer was deleted from the treesbruno2020-03-095-56/+0 * Deprecate some ports using deprecated version of pythonantoine2020-03-096-0/+18 * Update qaudiosonar to v1.7.1hselasky2020-03-082-4/+4