[libpeas] Deprecate PeasGtkPluginManagerView:show-builtin
- From: Garrett Regier <gregier src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libpeas] Deprecate PeasGtkPluginManagerView:show-builtin
- Date: Sun, 12 Jun 2011 19:14:23 +0000 (UTC)
commit 95388a70df0c767daaed01969ca4c579f08b657c
Author: Garrett Regier <alias301 gmail com>
Date: Wed Jun 8 13:16:19 2011 -0700
Deprecate PeasGtkPluginManagerView:show-builtin
Instead hidden plugins should be used.
libpeas-gtk/peas-gtk-plugin-manager-view.c | 7 +++++++
libpeas-gtk/peas-gtk-plugin-manager-view.h | 2 ++
2 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/libpeas-gtk/peas-gtk-plugin-manager-view.c b/libpeas-gtk/peas-gtk-plugin-manager-view.c
index 32f9bb3..ffa405d 100644
--- a/libpeas-gtk/peas-gtk-plugin-manager-view.c
+++ b/libpeas-gtk/peas-gtk-plugin-manager-view.c
@@ -788,6 +788,9 @@ peas_gtk_plugin_manager_view_class_init (PeasGtkPluginManagerViewClass *klass)
"show-builtin",
"If builtin plugins should be shown",
FALSE,
+#if GLIB_CHECK_VERSION (2, 26, 0)
+ G_PARAM_DEPRECATED |
+#endif
G_PARAM_READWRITE |
G_PARAM_STATIC_STRINGS));
@@ -840,6 +843,8 @@ peas_gtk_plugin_manager_view_new (PeasEngine *engine)
* @show_builtin: If builtin plugins should be shown.
*
* Sets if builtin plugins should be shown.
+ *
+ * Deprecated: 1.2. Use hidden plugins instead.
*/
void
peas_gtk_plugin_manager_view_set_show_builtin (PeasGtkPluginManagerView *view,
@@ -900,6 +905,8 @@ peas_gtk_plugin_manager_view_set_show_builtin (PeasGtkPluginManagerView *view,
* Returns if builtin plugins should be shown.
*
* Returns: if builtin plugins should be shown.
+ *
+ * Deprecated: 1.2. Use hidden plugins instead.
*/
gboolean
peas_gtk_plugin_manager_view_get_show_builtin (PeasGtkPluginManagerView *view)
diff --git a/libpeas-gtk/peas-gtk-plugin-manager-view.h b/libpeas-gtk/peas-gtk-plugin-manager-view.h
index 1980dfd..4699bd2 100644
--- a/libpeas-gtk/peas-gtk-plugin-manager-view.h
+++ b/libpeas-gtk/peas-gtk-plugin-manager-view.h
@@ -63,9 +63,11 @@ struct _PeasGtkPluginManagerViewClass {
GType peas_gtk_plugin_manager_view_get_type (void) G_GNUC_CONST;
GtkWidget *peas_gtk_plugin_manager_view_new (PeasEngine *engine);
+#ifndef PEAS_DISABLE_DEPRECATED
void peas_gtk_plugin_manager_view_set_show_builtin (PeasGtkPluginManagerView *view,
gboolean show_builtin);
gboolean peas_gtk_plugin_manager_view_get_show_builtin (PeasGtkPluginManagerView *view);
+#endif
void peas_gtk_plugin_manager_view_set_selected_plugin (PeasGtkPluginManagerView *view,
PeasPluginInfo *info);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]