/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */ /* evolution-config-control.c * * Copyright (C) 2002 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. * * Author: Ettore Perazzoli */ #ifdef HAVE_CONFIG_H #include #endif #include "evolution-config-control.h" #include "e-shell-marshal.h" #include #include #include #include #define PARENT_TYPE BONOBO_X_OBJECT_TYPE static BonoboXObjectClass *parent_class = NULL; struct _EvolutionConfigControlPrivate { gboolean changed; BonoboControl *control; BonoboEventSource *event_source; }; enum { APPLY, LAST_SIGNAL }; static int signals[LAST_SIGNAL] = { 0 }; /* GObject methods. */ static void impl_dispose (GObject *object) { EvolutionConfigControl *config_control; EvolutionConfigControlPrivate *priv; config_control = EVOLUTION_CONFIG_CONTROL (object); priv = config_control->priv; if (priv->control != NULL) { bonobo_object_unref (BONOBO_OBJECT (priv->control)); priv->control = NULL; } if (priv->event_source != NULL) { bonobo_object_unref (BONOBO_OBJECT (priv->event_source)); priv->event_source = NULL; } (* G_OBJECT_CLASS (parent_class)->dispose) (object); } static void impl_finalize (GObject *object) { EvolutionConfigControl *config_control; EvolutionConfigControlPrivate *priv; config_control = EVOLUTION_CONFIG_CONTROL (object); priv = config_control->priv; g_free (priv); (* G_OBJECT_CLASS (parent_class)->finalize) (object); } /* Evolution::ConfigControl CORBA methods. */ static void impl_apply (PortableServer_Servant servant, CORBA_Environment *ev) { EvolutionConfigControl *config_control; EvolutionConfigControlPrivate *priv; config_control = EVOLUTION_CONFIG_CONTROL (bonobo_object_from_servant (servant)); priv = config_control->priv; g_signal_emit (GTK_OBJECT (config_control), signals[APPLY], 0); priv->changed = FALSE; } static Bonobo_Control impl__get_control (PortableServer_Servant servant, CORBA_Environment *ev) { EvolutionConfigControl *config_control; EvolutionConfigControlPrivate *priv; config_control = EVOLUTION_CONFIG_CONTROL (bonobo_object_from_servant (servant)); priv = config_control->priv; bonobo_object_ref (BONOBO_OBJECT (priv->control)); return CORBA_Object_duplicate (bonobo_object_corba_objref (BONOBO_OBJECT (priv->control)), ev); } static Bonobo_EventSource impl__get_eventSource (PortableServer_Servant servant, CORBA_Environment *ev) { EvolutionConfigControl *config_control; EvolutionConfigControlPrivate *priv; config_control = EVOLUTION_CONFIG_CONTROL (bonobo_object_from_servant (servant)); priv = config_control->priv; bonobo_object_ref (BONOBO_OBJECT (priv->event_source)); return CORBA_Object_duplicate (bonobo_object_corba_objref (BONOBO_OBJECT (priv->event_source)), ev); } static void class_init (EvolutionConfigControlClass *class) { POA_GNOME_Evolution_ConfigControl__epv *epv; GObjectClass *object_class; object_class = G_OBJECT_CLASS (class); object_class->dispose = impl_dispose; object_class->finalize = impl_finalize; epv = &class->epv; epv->apply = impl_apply; epv->_get_control = impl__get_control; epv->_get_eventSource = impl__get_eventSource; signals[APPLY] = gtk_signal_new ("apply", GTK_RUN_FIRST, GTK_CLASS_TYPE (object_class), G_STRUCT_OFFSET (EvolutionConfigControlClass, apply), e_shell_marshal_NONE__NONE, GTK_TYPE_NONE, 0); parent_class = g_type_class_ref(PARENT_TYPE); } static void init (EvolutionConfigControl *config_control) { EvolutionConfigControlPrivate *priv; priv = g_new (EvolutionConfigControlPrivate, 1); priv->changed = FALSE; priv->control = NULL; priv->event_source = bonobo_event_source_new (); config_control->priv = priv; } void evolution_config_control_construct (EvolutionConfigControl *control, GtkWidget *widget) { EvolutionConfigControlPrivate *priv; g_return_if_fail (EVOLUTION_IS_CONFIG_CONTROL (control)); g_return_if_fail (GTK_IS_WIDGET (widget)); priv = control->priv; priv->control = bonobo_control_new (widget); } EvolutionConfigControl * evolution_config_control_new (GtkWidget *widget) { EvolutionConfigControl *new; g_return_val_if_fail (GTK_IS_WIDGET (widget), NULL); new = g_object_new (evolution_config_control_get_type (), NULL); evolution_config_control_construct (new, widget); return new; } void evolution_config_control_changed (EvolutionConfigControl *config_control) { EvolutionConfigControlPrivate *priv; CORBA_Environment ev; CORBA_any *null_value; g_return_if_fail (EVOLUTION_IS_CONFIG_CONTROL (config_control)); priv = config_control->priv; if (priv->changed) return; priv->changed = TRUE; CORBA_exception_init (&ev); null_value = CORBA_any__alloc (); null_value->_type = TC_null; bonobo_event_source_notify_listeners (priv->event_source, "changed", null_value, &ev); CORBA_free (null_value); CORBA_exception_free (&ev); } E_MAKE_X_TYPE (evolution_config_control, "EvolutionConfigControl", EvolutionConfigControl, class_init, init, PARENT_TYPE, POA_GNOME_Evolution_ConfigControl__init, GTK_STRUCT_OFFSET (EvolutionConfigControlClass, epv)) value='range'>range
Commit message (Collapse)AuthorAgeFilesLines
* One more small cleanup, forgotten yesterday.Mathieu Arnold2021-04-071-1/+0
| | | | Reported by: lwhsu
* all: Remove all other $FreeBSD keywords.Mathieu Arnold2021-04-061-3/+1
|
* Remove # $FreeBSD$ from Makefiles.Mathieu Arnold2021-04-061-1/+0
|
* Remove redundant option descriptions that match the default onesTobias Kortkamp2021-03-081-3/+0
| | | | | | (ignoring case) Reported by: danfe (for net/mosquitto), portscan
* net/turnserver: Update 4.5.1.1_2 -> 4.5.2Bradley T. Hughes2021-01-202-6/+5
| | | | | | MFH: 2021Q1 Security: fce7a6e7-bc5d-11ea-b38d-f0def1d0c3ea Sponsored by: Miles AS
* Convert to UCL & cleanup pkg-message (categories n)Mathieu Arnold2019-08-141-5/+6
| | | | (and missed 3 missed files from previous categories.)
* devel/libevent2: update to 2.1.11Jan Beich2019-08-021-1/+1
| | | | | | | | | | Changes: https://github.com/libevent/libevent/releases/tag/release-2.1.11-stable ABI: https://abi-laboratory.pro/tracker/timeline/libevent/ PR: 239599 Reported by: GitHub (watch releases) Approved by: zeising (maintainer) MFH: 2019Q3 (maybe security, partially restores 2.1.8 ABI) Differential Revision: https://reviews.freebsd.org/D21133
* Bump PORTREVISION for ports depending on the canonical version of GCCGerald Pfeifer2019-07-271-0/+1
| | | | | | | | | | | | | | | as defined in Mk/bsd.default-versions.mk which has moved from GCC 8.3 to GCC 9.1 under most circumstances now after revision 507371. This includes ports - with USE_GCC=yes or USE_GCC=any, - with USES=fortran, - using Mk/bsd.octave.mk which in turn features USES=fortran, and - with USES=compiler specifying openmp, nestedfct, c11, c++0x, c++11-lang, c++11-lib, c++14-lang, c++17-lang, or gcc-c++11-lib plus, everything INDEX-11 shows with a dependency on lang/gcc9 now. PR: 238330
* net/turnserver: Update 4.5.1.0 -> 4.5.1.1Bradley T. Hughes2019-03-042-4/+4
| | | | | | https://github.com/coturn/coturn/blob/4.5.1.1/ChangeLog Sponsored by: Miles AS
* net/turnserver: Update 4.5.0.8_1 -> 4.5.1.0Bradley T. Hughes2019-01-302-5/+4
| | | | | | | | | | | This is a security release that fixes several SQL injection vulnerabilities. This release also includes several breaking configuration changes, so users are encouraged to verify their configuration before and after upgrading. MFH: 2019Q1 Security: 181beef6-2482-11e9-b4a3-00155d006b02 Sponsored by: Miles AS
* Bump PORTREVISION for ports depending on the canonical version of GCCGerald Pfeifer2018-12-121-0/+1
| | | | | | | | | | | | | | | defined via Mk/bsd.default-versions.mk which has moved from GCC 7.4 t GCC 8.2 under most circumstances. This includes ports - with USE_GCC=yes or USE_GCC=any, - with USES=fortran, - using Mk/bsd.octave.mk which in turn features USES=fortran, and - with USES=compiler specifying openmp, nestedfct, c11, c++0x, c++11-lang, c++11-lib, c++14-lang, c++17-lang, or gcc-c++11-lib plus, as a double check, everything INDEX-11 showed depending on lang/gcc7. PR: 231590
* net/turnserver: Update 4.5.0.7 -> 4.5.0.8Bradley T. Hughes2018-10-072-9/+10
| | | | | | | | | Change the port to USE_GITHUB, since the project has been hosted there for some time, and the latest release is only available from Github. The extradocs package is still only available from turnserver.open-sys.org or coturn.net Sponsored by: Miles AS
* Do not abuse INSTALL_MAN when installing documentation, examples, andAlexey Dokuchaev2018-01-101-1/+1
| | | | other miscellaneous files which are not actually manual pages.
* net/turnserver: Update 4.5.0.6 -> 4.5.0.7Bradley T. Hughes2017-12-122-4/+4
| | | | | Approved by: robak (mentor) Differential Revision: https://reviews.freebsd.org/D13437
* Fix whitespace issues (mixed tab/spaces, alignment) in a few ports.Jimmy Olgeni2017-11-031-1/+1
| | | | This round is @FreeBSD.org residents except teams.
* multiple ports: Update MAINTANERBradley T. Hughes2017-06-031-1/+1
| | | | | | | | | | Change bradleythughes@fastmail.fm -> bhughes@FreeBSD.org after receiving my ports commit bit on all ports I maintain: devel/awscli, devel/py-botocore, net/py-s3transfer, net/turnserver, www/node4, www/node6, and www/node. Approved by: robak (mentor) Differential Review: https://reviews.freebsd.org/D11015
* net/turnserver: update 4.5.0.5 -> 4.5.0.6Bartek Rutkowski2017-03-292-5/+4
| | | | | PR: 218180 Submitted by: Bradley T. Hughes <bradleythughes@fastmail.fm> (maintainer)
* devel/libevent2: drop historical suffix after r362796Jan Beich2017-02-201-4/+2
| | | | | PR: 216777 Approved by: mm (maintainer)
* devel/libevent2: update to 2.1.8 and cleanupJan Beich2017-02-041-0/+1
| | | | | | | | | | | - DEFAULT_VERSIONS += ssl=openssl-devel is now supported - devel/py-event and devel/p5-Event-Lib are marked BROKEN Changes: https://github.com/libevent/libevent/raw/release-2.1.8-stable/whatsnew-2.1.txt Changes: https://github.com/libevent/libevent/raw/release-2.1.8-stable/ChangeLog PR: 216527 Exp-run by: antoine Approved by: mm (maintainer)
* net/turnserver: Upgrade version 4.5.0.4 => 4.5.0.5John Marino2016-10-253-7/+12
| | | | | | | | | | This fixes build using libreSSL as well as provide two new utilities: turnutils_natdiscovery and turnutils_auth. Transfer maintainership to Bradley Hughes PR: 213586 Submitted by: Bradley Hughes Approved by: former maintainer (Oleg Moskalenko)
* - Update to version 4.5.0.4 [1]Pawel Pekala2016-09-302-98/+65
| | | | | | | | | | | | | - Convert to USES=mysql ssl - Add USES=gettext-runtime, turnserver links to libintl - Convert to test framework - Convert to options helpers, move options block to proper place - Use options helpers in install targets, simplify install commands - Break lines around 80 characters PR: 212534 [1] Submitted by: Bradley T. Hughes Approved by: maintainer
* - Fix trailing whitespace in pkg-messagesDmitry Marakasov2016-05-191-4/+4
| | | | Approved by: portmgr blanket
* - Fix trailing whitespace in pkg-descrs, categories [g-n]*Dmitry Marakasov2016-05-191-1/+1
| | | | Approved by: portmgr blanket
* Remove ${PORTSDIR}/ from dependencies, categories m, n, o, and p.Mathieu Arnold2016-04-011-2/+2
| | | | | With hat: portmgr Sponsored by: Absolight
* Update to 4.5.0.3Matthew Seaman2016-01-144-39/+3
| | | | | | | | - upstreaming SSLv3 related patches PR: 205948 Submitted by: bradleythughes@fastmail.fm Approved by: mom040267@gmail.com (maintainer)
* Convert ports from s* t* and net* categories to USES=sqlite and USES=firebirdBaptiste Daroussin2016-01-111-1/+1
|
* net/turnserver: Fix build with No-SSLv3Kubilay Kocak2015-10-193-0/+37
| | | | | | | | | | | | | | | | turnserver will not build if OpenSSL was built without SSLv3 (--no-ssl3). LibreSSL 2.3.0 has removed SSLv3 support completely. This change fixes the build when SSLv3 is not available While I'm here, add LICENSE_FILE PR: 203700 Submitted by: cpbsdmail gmail com Approved by: mom040267 gmail com (maintainer) MFH: 2014Q4
* Update to 4.5.0.2Guido Falsi2015-10-022-3/+3
| | | | | | PR: 203464 Submitted by: Bradley T. Hughes <bradleythughes at fastmail.fm> Approved by: mom040267 at gmail.com (maintainer)
* Update to 4.5.0.1Guido Falsi2015-09-252-3/+3
| | | | | | PR: 203305 Submitted by: Bradley T. Hughes <bradleythughes at fastmail.fm> Approved by: mom040267 at gmail.com (maintainer)
* net/turnserver: update to 4.4.5.3Johannes Jost Meixner2015-07-013-4/+4
| | | | | | | | | | | | | | | | | | Upstream announcement: IMPORTANT: coturn-4.4.5.3 issued with SQL injection security hole fixed The new version features: - Third-party authorization STUN attributes adjusted according to the values assigned by IANA; - SQL injection security hole fixed; - Amazon EC2 AMI security strengthened. The upgrade is a MUST for all production systems. PR: 201231 Submitted by: Bradley T. Hughes <bradleythughes@fastmail.com> Approved by: maintainer <mom040267@gmail.com>
* Update to 4.4.5.2Guido Falsi2015-06-092-3/+3
| | | | | | PR: 200715 Submitted by: Bradley T. Hughes <bradleythughes at fastmail.fm> Approved by: mom040267 at gmail.com (maintainer)
* Update net/turnserver to 4.4.4.2Guido Falsi2015-05-195-35/+61
| | | | | | PR: 200168 Submitted by: Bradley T. Hughes <bradleythughes at fastmail.fm> Approved by: mom040267@gmail.com (maintainer)
* - Update to 3.2.5.7Dmitry Marakasov2015-04-162-3/+3
| | | | | | PR: 199455 Submitted by: bradleythughes@fastmail.fm Approved by: mom040267@gmail.com (maintainer)