From 2aa759bc58ea8e14dd1d28a9d7f23e2f5f627c3f Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Sat, 1 Jun 2013 10:06:47 -0400 Subject: Add a boolean return to e_cal_model_remove_client(). The function now returns TRUE if the ECalClient was actually removed from the model, or FALSE if the model did not have the ECalClient. Use this to avoid an unnecessary gnome_calendar_update_query() call in cal_shell_view_selector_client_removed(). --- calendar/gui/e-cal-model.c | 19 ++++++++++++++++--- calendar/gui/e-cal-model.h | 2 +- 2 files changed, 17 insertions(+), 4 deletions(-) (limited to 'calendar') diff --git a/calendar/gui/e-cal-model.c b/calendar/gui/e-cal-model.c index b74485b28a..16c968d704 100644 --- a/calendar/gui/e-cal-model.c +++ b/calendar/gui/e-cal-model.c @@ -3578,21 +3578,34 @@ remove_client (ECalModel *model, /** * e_cal_model_remove_client + * @model: an #ECalModel + * @client: an #ECalClient + * + * Removes @client from @model along with its internal #ECalClientView. + * + * If @model does not have @client then the function does nothing and + * returns %FALSE. + * + * Returns: %TRUE is @client was remove, %FALSE if @model did not have it */ -void +gboolean e_cal_model_remove_client (ECalModel *model, ECalClient *client) { ClientData *client_data; + gboolean removed = FALSE; - g_return_if_fail (E_IS_CAL_MODEL (model)); - g_return_if_fail (E_IS_CAL_CLIENT (client)); + g_return_val_if_fail (E_IS_CAL_MODEL (model), FALSE); + g_return_val_if_fail (E_IS_CAL_CLIENT (client), FALSE); client_data = cal_model_clients_lookup (model, client); if (client_data != NULL) { remove_client (model, client_data); client_data_unref (client_data); + removed = TRUE; } + + return removed; } /** diff --git a/calendar/gui/e-cal-model.h b/calendar/gui/e-cal-model.h index 407195117a..602db1cae4 100644 --- a/calendar/gui/e-cal-model.h +++ b/calendar/gui/e-cal-model.h @@ -256,7 +256,7 @@ void e_cal_model_set_default_client (ECalModel *model, GList * e_cal_model_list_clients (ECalModel *model); gboolean e_cal_model_add_client (ECalModel *model, ECalClient *cal_client); -void e_cal_model_remove_client (ECalModel *model, +gboolean e_cal_model_remove_client (ECalModel *model, ECalClient *cal_client); void e_cal_model_remove_all_clients (ECalModel *model); void e_cal_model_get_time_range (ECalModel *model, -- cgit isc/kde3-i18n-se/Makefile?id=7073ebf74ec3895bb8dada6cbe2e57f3329849cc'>blamecommitdiffstats
path: root/misc/kde3-i18n-se/Makefile
blob: dbd9e83131067c6abe8e54cbb09621867f4b605b (plain) (tree)
1
2
3
4
5
6
7
8
9








                                                                   
                 








                                                             

                   
                   






                                                 
# New ports collection makefile for:    kde3-i18n-se
# Date created:                         12 March 2003
# Whom:                                 Lauri Watts <lauri@kde.org>
#
# $FreeBSD$
#

PORTNAME=   kde-i18n
PORTVERSION=    ${KDE_VERSION}
PORTREVISION=   1
CATEGORIES?=    misc kde
MASTER_SITES=   ${MASTER_SITE_KDE}
MASTER_SITE_SUBDIR= stable/${PORTVERSION}/src/kde-i18n
PKGNAMEPREFIX=  se-
DIST_SUBDIR=    KDE

MAINTAINER= kde@FreeBSD.org
COMMENT=    Localized messages and documentation for KDE3

USE_KDELIBS_VER=3
USE_BZIP2=  yes
USE_GETTEXT=    yes
USE_GMAKE=  yes
GNU_CONFIGURE=  yes
KDE_I18N=   yes

.include "${.CURDIR}/../../x11/kde3/Makefile.kde"

.include <bsd.port.mk>