[gnome-todo/wip/gbsneto/plugins: 8/10] activatable: temporarily remove unused property



commit 1bd97bc15e59f724e1b816257356e66e068fe681
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Thu Dec 24 00:17:15 2015 -0200

    activatable: temporarily remove unused property

 src/interfaces/gtd-activatable.c |   47 +++----------------------------------
 src/interfaces/gtd-activatable.h |    4 ---
 2 files changed, 4 insertions(+), 47 deletions(-)
---
diff --git a/src/interfaces/gtd-activatable.c b/src/interfaces/gtd-activatable.c
index 995092c..139464b 100644
--- a/src/interfaces/gtd-activatable.c
+++ b/src/interfaces/gtd-activatable.c
@@ -35,28 +35,15 @@ static void
 gtd_activatable_default_init (GtdActivatableInterface *iface)
 {
   /**
-   * GtdActivatable::panels:
-   *
-   * A list of #GtdPanel this plugin carries.
-   */
-  g_object_interface_install_property (iface,
-                                       g_param_spec_boxed ("panels",
-                                                           "Panels this widget has",
-                                                           "A list of panel this widget has",
-                                                           G_TYPE_POINTER,
-                                                           G_PARAM_READABLE));
-
-  /**
    * GtdActivatable::providers:
    *
    * A list of #GtdProvider this plugin carries.
    */
   g_object_interface_install_property (iface,
-                                       g_param_spec_boxed ("providers",
-                                                           "Providers this widget has",
-                                                           "A list of providers this widget has",
-                                                           G_TYPE_POINTER,
-                                                           G_PARAM_READABLE));
+                                       g_param_spec_pointer ("providers",
+                                                             "Providers this widget has",
+                                                             "A list of providers this widget has",
+                                                             G_PARAM_READABLE));
 
   /**
    * GtdActivatable::provider-added:
@@ -76,23 +63,6 @@ gtd_activatable_default_init (GtdActivatableInterface *iface)
                                           GTD_TYPE_PROVIDER);
 
   /**
-   * GtdActivatable::provider-changed:
-   *
-   * The ::provider-changed signal is emmited after a #GtdProvider
-   * has any of it's properties changed.
-   */
-  signals[PROVIDER_CHANGED] = g_signal_new ("provider-changed",
-                                            GTD_TYPE_ACTIVATABLE,
-                                            G_SIGNAL_RUN_LAST,
-                                            0,
-                                            NULL,
-                                            NULL,
-                                            NULL,
-                                            G_TYPE_NONE,
-                                            1,
-                                            GTD_TYPE_PROVIDER);
-
-  /**
    * GtdActivatable::provider-removed:
    *
    * The ::provider-removed signal is emmited after a #GtdProvider
@@ -111,15 +81,6 @@ gtd_activatable_default_init (GtdActivatableInterface *iface)
 }
 
 GList*
-gtd_activatable_get_panels (GtdActivatable *activatable)
-{
-  g_return_val_if_fail (GTD_IS_ACTIVATABLE (activatable), NULL);
-  g_return_val_if_fail (GTD_ACTIVATABLE_GET_IFACE (activatable)->get_panels, NULL);
-
-  return GTD_ACTIVATABLE_GET_IFACE (activatable)->get_panels (activatable);
-}
-
-GList*
 gtd_activatable_get_providers (GtdActivatable *activatable)
 {
   g_return_val_if_fail (GTD_IS_ACTIVATABLE (activatable), NULL);
diff --git a/src/interfaces/gtd-activatable.h b/src/interfaces/gtd-activatable.h
index 4a14807..a5f7df2 100644
--- a/src/interfaces/gtd-activatable.h
+++ b/src/interfaces/gtd-activatable.h
@@ -32,13 +32,9 @@ struct _GtdActivatableInterface
 {
   PeasActivatableInterface parent;
 
-  GList*           (*get_panels)                           (GtdActivatable     *activatable);
-
   GList*           (*get_providers)                        (GtdActivatable     *activatable);
 };
 
-GList*               gtd_activatable_get_panels                  (GtdActivatable     *activatable);
-
 GList*               gtd_activatable_get_providers               (GtdActivatable     *activatable);
 
 G_END_DECLS


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