[rhythmbox] source-search: we don't use GtkActions for anything any more



commit 55edaa2de2089c9d268e04a086e0353761968573
Author: Jonathan Matthew <jonathan d14n org>
Date:   Mon Dec 29 16:08:14 2014 +1000

    source-search: we don't use GtkActions for anything any more

 sources/rb-source-search.c |   35 -----------------------------------
 sources/rb-source-search.h |    4 ----
 2 files changed, 0 insertions(+), 39 deletions(-)
---
diff --git a/sources/rb-source-search.c b/sources/rb-source-search.c
index c8fcd3c..b5208a2 100644
--- a/sources/rb-source-search.c
+++ b/sources/rb-source-search.c
@@ -195,41 +195,6 @@ _rb_source_search_create_simple_query (RBSourceSearch *search, RhythmDB *db, con
 }
 
 /**
- * rb_source_search_action_attach:
- * @search: #RBSourceSearch to associate with the action
- * @action: UI action to associate the search with
- *
- * Attaches a #RBSourceSearch to a UI action so that
- * the search implementation will be used when the action is active.
- */
-void
-rb_source_search_action_attach (RBSourceSearch *search, GObject *action)
-{
-       g_object_set_data_full (action,
-                               RB_SOURCE_SEARCH_DATA_ITEM,
-                               g_object_ref (search),
-                               (GDestroyNotify) g_object_unref);
-}
-
-/**
- * rb_source_search_get_from_action:
- * @action: the action to find the #RBSourceSearch for
- *
- * Returns the #RBSourceSearch associated with the
- * specified UI action.
- *
- * Return value: (transfer none): associated #RBSourceSearch
- */
-RBSourceSearch *
-rb_source_search_get_from_action (GObject *action)
-{
-       gpointer data;
-       data = g_object_get_data (action, RB_SOURCE_SEARCH_DATA_ITEM);
-       return RB_SOURCE_SEARCH (data);
-}
-
-
-/**
  * rb_source_search_add_to_menu:
  * @menu: #GMenu instance to populate
  * @action_namespace: muxer namespace for the action ("app" or "win")
diff --git a/sources/rb-source-search.h b/sources/rb-source-search.h
index c58c023..962187c 100644
--- a/sources/rb-source-search.h
+++ b/sources/rb-source-search.h
@@ -78,10 +78,6 @@ RhythmDBQuery *      rb_source_search_create_query (RBSourceSearch *search,
 
 char *         rb_source_search_get_description (RBSourceSearch *search);
 
-void           rb_source_search_action_attach (RBSourceSearch *search,
-                                               GObject *action);
-RBSourceSearch *rb_source_search_get_from_action (GObject *action);
-
 void           rb_source_search_add_to_menu (GMenu *menu,
                                              const char *action_namespace,
                                              GAction *action,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]