diff options
author | Alexander Larsson <alexl@redhat.com> | 2006-06-16 15:40:18 +0000 |
---|---|---|
committer | Alexander Larsson <alexl@src.gnome.org> | 2006-06-16 15:40:18 +0000 |
commit | 1a7f1da177985095aa6c9b8000e24ab06e76aace (patch) | |
tree | 11c03c01e3b630281f06ae990c286db358de506f /src/nautilus-signaller.c | |
parent | 2f6ea5757cd326d1e898332cf40c87c2906a2a0a (diff) | |
download | nautilus-1a7f1da177985095aa6c9b8000e24ab06e76aace.tar.gz |
Add items_updated signal
2006-06-16 Alexander Larsson <alexl@redhat.com>
* libnautilus-extension/nautilus-menu-provider.[ch]:
Add items_updated signal
* libnautilus-private/Makefile.am:
* libnautilus-private/nautilus-signaller.[ch]:
* src/nautilus-signaller.[ch]:
* src/Makefile.am:
Move NautilusSignaller to libnautilus-private.
Add popup_menu_changed signal.
* src/nautilus-application.c:
Signal popup_menu_changed when a menu provider emits items_updated.
* src/file-manager/fm-directory-view.c:
* src/nautilus-window.c:
Handle popup_menu_changed.
* src/nautilus-emblem-sidebar.c:
* src/nautilus-history-sidebar.c:
* src/nautilus-navigation-window-menus.c:
* src/nautilus-navigation-window.c:
* src/nautilus-property-browser.c:
* src/nautilus-spatial-window.c:
* src/nautilus-window-menus.c:
Update includes.
Patch from RUAUDEL Frédéric <ruaudel@embl.fr>
Diffstat (limited to 'src/nautilus-signaller.c')
-rw-r--r-- | src/nautilus-signaller.c | 88 |
1 files changed, 0 insertions, 88 deletions
diff --git a/src/nautilus-signaller.c b/src/nautilus-signaller.c deleted file mode 100644 index c4ee2c120..000000000 --- a/src/nautilus-signaller.c +++ /dev/null @@ -1,88 +0,0 @@ -/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */ - -/* - * Nautilus - * - * Copyright (C) 1999, 2000 Eazel, Inc. - * - * Nautilus 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: John Sullivan <sullivan@eazel.com> - */ - -/* nautilus-signaller.h: Class to manage nautilus-wide signals that don't - * correspond to any particular object. - */ - -#include <config.h> -#include "nautilus-signaller.h" - -#include <eel/eel-debug.h> -#include <libgnome/gnome-macros.h> - -typedef GObject NautilusSignaller; -typedef GObjectClass NautilusSignallerClass; - -enum { - HISTORY_LIST_CHANGED, - EMBLEMS_CHANGED, - LAST_SIGNAL -}; - -static guint signals[LAST_SIGNAL]; - -static GType nautilus_signaller_get_type (void); - -GNOME_CLASS_BOILERPLATE (NautilusSignaller, nautilus_signaller, - GObject, G_TYPE_OBJECT) - -GObject * -nautilus_signaller_get_current (void) -{ - static GObject *global_signaller = NULL; - - if (global_signaller == NULL) { - global_signaller = g_object_new (nautilus_signaller_get_type (), NULL); - eel_debug_call_at_shutdown_with_data (g_object_unref, global_signaller); - } - - return global_signaller; -} - -static void -nautilus_signaller_instance_init (NautilusSignaller *signaller) -{ -} - -static void -nautilus_signaller_class_init (NautilusSignallerClass *class) -{ - signals[HISTORY_LIST_CHANGED] = - g_signal_new ("history_list_changed", - G_TYPE_FROM_CLASS (class), - G_SIGNAL_RUN_LAST, - 0, - NULL, NULL, - g_cclosure_marshal_VOID__VOID, - G_TYPE_NONE, 0); - signals[EMBLEMS_CHANGED] = - g_signal_new ("emblems_changed", - G_TYPE_FROM_CLASS (class), - G_SIGNAL_RUN_LAST, - 0, - NULL, NULL, - g_cclosure_marshal_VOID__VOID, - G_TYPE_NONE, 0); -} |