[gtk+] accessible: Deprecate gtk_accessible_connect_widget_destroyed()
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] accessible: Deprecate gtk_accessible_connect_widget_destroyed()
- Date: Mon, 19 Dec 2011 15:51:22 +0000 (UTC)
commit 073b4d8bea199a5f11900482c915f6ea9120409b
Author: Benjamin Otte <otte redhat com>
Date: Sun Dec 18 20:24:46 2011 +0100
accessible: Deprecate gtk_accessible_connect_widget_destroyed()
That was an abomination. Also, if people called it twice, you got even
mor signal handlers!
gtk/gtkaccessible.c | 2 ++
gtk/gtkaccessible.h | 2 ++
2 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkaccessible.c b/gtk/gtkaccessible.c
index afca739..a537fe8 100644
--- a/gtk/gtkaccessible.c
+++ b/gtk/gtkaccessible.c
@@ -231,6 +231,8 @@ gtk_accessible_get_widget (GtkAccessible *accessible)
*
* This function specifies the callback function to be called
* when the widget corresponding to a GtkAccessible is destroyed.
+ *
+ * Deprecated: 3.4: Use gtk_accessible_set_widget() and its vfuncs.
*/
void
gtk_accessible_connect_widget_destroyed (GtkAccessible *accessible)
diff --git a/gtk/gtkaccessible.h b/gtk/gtkaccessible.h
index 296186c..31a6c91 100644
--- a/gtk/gtkaccessible.h
+++ b/gtk/gtkaccessible.h
@@ -66,6 +66,8 @@ GType gtk_accessible_get_type (void) G_GNUC_CONST;
void gtk_accessible_set_widget (GtkAccessible *accessible,
GtkWidget *widget);
GtkWidget *gtk_accessible_get_widget (GtkAccessible *accessible);
+
+GDK_DEPRECATED_FOR(gtk_accessible_set_widget)
void gtk_accessible_connect_widget_destroyed (GtkAccessible *accessible);
G_END_DECLS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]