From 8abe1f3203ff41ad3349924b931dbcc5ef255acd Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Fri, 5 Jul 2013 08:28:32 -0400 Subject: GalViewCollection: Remove unused "display-view" signal. Removed functions: gal_view_collection_display_view() --- e-util/gal-view-collection.c | 31 ------------------------------- e-util/gal-view-collection.h | 7 ------- 2 files changed, 38 deletions(-) (limited to 'e-util') diff --git a/e-util/gal-view-collection.c b/e-util/gal-view-collection.c index 2a48f03513..dc890f9273 100644 --- a/e-util/gal-view-collection.c +++ b/e-util/gal-view-collection.c @@ -43,32 +43,12 @@ G_DEFINE_TYPE (GalViewCollection, gal_view_collection, G_TYPE_OBJECT) #define d(x) enum { - DISPLAY_VIEW, CHANGED, LAST_SIGNAL }; static guint gal_view_collection_signals[LAST_SIGNAL] = { 0, }; -/** - * gal_view_collection_display_view: - * @collection: The GalViewCollection to send the signal on. - * @view: The view to display. - * - */ -void -gal_view_collection_display_view (GalViewCollection *collection, - GalView *view) -{ - g_return_if_fail (GAL_IS_VIEW_COLLECTION (collection)); - g_return_if_fail (GAL_IS_VIEW (view)); - - g_signal_emit ( - collection, - gal_view_collection_signals[DISPLAY_VIEW], 0, - view); -} - static void gal_view_collection_changed (GalViewCollection *collection) { @@ -199,16 +179,6 @@ gal_view_collection_class_init (GalViewCollectionClass *class) object_class->dispose = gal_view_collection_dispose; - gal_view_collection_signals[DISPLAY_VIEW] = g_signal_new ( - "display_view", - G_OBJECT_CLASS_TYPE (object_class), - G_SIGNAL_RUN_LAST, - G_STRUCT_OFFSET (GalViewCollectionClass, display_view), - NULL, NULL, - g_cclosure_marshal_VOID__OBJECT, - G_TYPE_NONE, 1, - GAL_TYPE_VIEW); - gal_view_collection_signals[CHANGED] = g_signal_new ( "changed", G_OBJECT_CLASS_TYPE (object_class), @@ -218,7 +188,6 @@ gal_view_collection_class_init (GalViewCollectionClass *class) g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); - class->display_view = NULL; class->changed = NULL; } diff --git a/e-util/gal-view-collection.h b/e-util/gal-view-collection.h index 0457a19675..7903668a1c 100644 --- a/e-util/gal-view-collection.h +++ b/e-util/gal-view-collection.h @@ -81,8 +81,6 @@ struct _GalViewCollectionClass { GObjectClass parent_class; /* Signals */ - void (*display_view) (GalViewCollection *collection, - GalView *view); void (*changed) (GalViewCollection *collection); }; @@ -114,11 +112,6 @@ void gal_view_collection_set_storage_directories void gal_view_collection_add_factory (GalViewCollection *collection, GalViewFactory *factory); -/* Send the display view signal. This function is deprecated. */ -void gal_view_collection_display_view - (GalViewCollection *collection, - GalView *view); - /* Query the view collection. */ gint gal_view_collection_get_count (GalViewCollection *collection); GalView * gal_view_collection_get_view (GalViewCollection *collection, -- cgit