/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */ /* e-gtk-utils.c * * Copyright (C) 2000 Helix Code, Inc. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation; either version 2 of the * License, or (at your option) any later version. * * 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 "e-gtk-utils.h" /* (Cut and pasted from Gtk.) */ typedef struct DisconnectInfo { unsigned int signal_handler; GtkObject *object1; unsigned int disconnect_handler1; GtkObject *object2; unsigned int disconnect_handler2; } DisconnectInfo; static unsigned int alive_disconnecter (GtkObject *object, DisconnectInfo *info) { g_assert (info != NULL); gtk_signal_disconnect (info->object1, info->disconnect_handler1); gtk_signal_disconnect (info->object1, info->signal_handler); gtk_signal_disconnect (info->object2, info->disconnect_handler2); g_free (info); return 0; } /** * e_gtk_signal_connect_full_while_alive: * @object: * @name: * @func: * @marshal: * @data: * @destroy_func: * @object_signal: * @after: * @alive_object: * * Connect a signal like `gtk_signal_connect_while_alive()', but with full * params like `gtk_signal_connect_full()'. **/ void e_gtk_signal_connect_full_while_alive (GtkObject *object, const char *name, GtkSignalFunc func, GtkCallbackMarshal marshal, void *data, GtkDestroyNotify destroy_func, gboolean object_signal, gboolean after, GtkObject *alive_object) { DisconnectInfo *info; g_return_if_fail (GTK_IS_OBJECT (object)); g_return_if_fail (name != NULL); g_return_if_fail (func != NULL); g_return_if_fail (GTK_IS_OBJECT (alive_object)); info = g_new (DisconnectInfo, 1); info->signal_handler = gtk_signal_connect_full (object, name, func, marshal, data, destroy_func, object_signal, after); info->object1 = object; info->disconnect_handler1 = gtk_signal_connect (object, "destroy", GTK_SIGNAL_FUNC (alive_disconnecter), info); info->object2 = alive_object; info->disconnect_handler2 = gtk_signal_connect (alive_object, "destroy", GTK_SIGNAL_FUNC (alive_disconnecter), info); } n='/~lantw44/cgit/cgit.cgi/freebsd-ports-graphics/log/net-p2p'>
path: root/net-p2p
Commit message (Collapse)AuthorAgeFilesLines
* net-p2p/gtk-gnutella: Update to 1.1.11woodsb022016-11-132-4/+4
| | | | | | | Changes this release: http://gtk-gnutella.sourceforge.net/en/?page=news#news_80 Approved by: adamw (mentor, implicit)
* net-p2p/sonarr: Make X11 optionalfeld2016-11-131-3/+9
| | | | | | | | X11 dependencies were added to resolve a crashing issue in newer versions of sonarr. This has been resolved upstream and is now optional. The role of X11 (libgdiplus) is to enable image file resizing. PR: 214244
* Spell CHOSEN_COMPILER_TYPE correctlyantoine2016-11-131-1/+1
| | | | PR: 199098
* net-p2p/sonarr: Update to 2.0.0.4389feld2016-11-122-4/+4
|
* Track used or drop unused devel/icu dependencyjbeich2016-11-111-3/+2
| | | | | | | | | | This tries to fix discrepancy between $ pkg rquery '%o %B' | awk '/libicu/ { print $1 }' | sort -u $ git grep -lF :devel/icu | sed 's,/Makefile$,,' PR: 214384 Reported by: tijl, stage-qa, readelf(1)
* The 64-bit arm arch is actually spelled 'aarch64', not 'arm64'.linimon2016-11-091-1/+1
|
* Mark as broken on armd64 and mips64.linimon2016-11-081-0/+3
|
* Cleanup no longer needed CHMOD usage after r424898.mat2016-11-031-3/+0
| | | | | | | PR: 213743 Submitted by: mat Exp-run by: antoine Sponsored by: Absolight
* net-p2p/sonarr: Update to 2.0.0.4374feld2016-11-012-5/+5
|
* net-p2p/sonarr: Add new library dependencyfeld2016-11-012-6/+7
| | | | As of mono 4.6 Sonarr will crash if libgdiplus.so is not installed.
* Update to upstream version 6.5.2riggs2016-10-30