[libpeas] Fix PeasExtensionSet example in the docs
- From: Garrett Regier <gregier src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libpeas] Fix PeasExtensionSet example in the docs
- Date: Fri, 18 Feb 2011 01:07:35 +0000 (UTC)
commit 0baded50a08e3cc99e3ac88aef5187965bd0981d
Author: Garrett Regier <alias301 gmail com>
Date: Tue Feb 15 00:51:57 2011 -0800
Fix PeasExtensionSet example in the docs
libpeas/peas-extension-set.c | 14 ++++++--------
1 files changed, 6 insertions(+), 8 deletions(-)
---
diff --git a/libpeas/peas-extension-set.c b/libpeas/peas-extension-set.c
index f16d1fa..d2f8538 100644
--- a/libpeas/peas-extension-set.c
+++ b/libpeas/peas-extension-set.c
@@ -53,19 +53,17 @@
* static void
* on_extension_added (PeasExtensionSet *set,
* PeasPluginInfo *info,
- * PeasExtension *exten,
- * GtkWindow *window)
+ * PeasActivatable *activatable)
* {
- * peas_extension_call (exten, "activate", window);
+ * peas_activatable_activate (activatable);
* }
*
* static void
* on_extension_removed (PeasExtensionSet *set,
* PeasPluginInfo *info,
- * PeasExtension *exten,
- * GtkWindow *window)
+ * PeasActivatable *activatable)
* {
- * peas_extension_call (exten, "deactivate", window);
+ * peas_activatable_deactivate (activatable);
* }
*
* PeasExtensionSet *
@@ -78,9 +76,9 @@
* "object", window, NULL);
* peas_extension_set_call (set, "activate");
* g_signal_connect (set, "extension-added",
- * G_CALLBACK (on_extension_added), window);
+ * G_CALLBACK (on_extension_added), NULL);
* g_signal_connect (set, "extension-removed",
- * G_CALLBACK (on_extension_removed), window);
+ * G_CALLBACK (on_extension_removed), NULL);
* return set;
* }
* ]|
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]