summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <matthiasc@src.gnome.org>2002-11-21 20:03:03 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2002-11-21 20:03:03 +0000
commit6bcfec7d684f7c94fcd5ae87f0b16844a33c2da9 (patch)
tree8bbaf00ddd316479d7b83707f4fc2e08df64c65e
parentdd6b66bff9e4fc613e30286d5c581360764b11fb (diff)
downloadgdk-pixbuf-6bcfec7d684f7c94fcd5ae87f0b16844a33c2da9.tar.gz
Add a note about reflexive ancestry. (#99085, Frederic Lespez)
* gtk/gtkwidget.c (gtk_widget_get_ancestor): Add a note about reflexive ancestry. (#99085, Frederic Lespez)
-rw-r--r--ChangeLog3
-rw-r--r--ChangeLog.pre-2-103
-rw-r--r--ChangeLog.pre-2-23
-rw-r--r--ChangeLog.pre-2-43
-rw-r--r--ChangeLog.pre-2-63
-rw-r--r--ChangeLog.pre-2-83
-rw-r--r--gtk/gtkwidget.c5
7 files changed, 21 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 720163621..766b1583d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2002-11-21 Matthias Clasen <maclas@gmx.de>
+ * gtk/gtkwidget.c (gtk_widget_get_ancestor): Add a note about
+ reflexive ancestry. (#99085, Frederic Lespez)
+
* docs/tutorial/gtk-tut.sgml:
* examples/calendar/calendar.c: Numerous fixes to the calendar
example. (#97956, Owen Taylor)
diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10
index 720163621..766b1583d 100644
--- a/ChangeLog.pre-2-10
+++ b/ChangeLog.pre-2-10
@@ -1,5 +1,8 @@
2002-11-21 Matthias Clasen <maclas@gmx.de>
+ * gtk/gtkwidget.c (gtk_widget_get_ancestor): Add a note about
+ reflexive ancestry. (#99085, Frederic Lespez)
+
* docs/tutorial/gtk-tut.sgml:
* examples/calendar/calendar.c: Numerous fixes to the calendar
example. (#97956, Owen Taylor)
diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2
index 720163621..766b1583d 100644
--- a/ChangeLog.pre-2-2
+++ b/ChangeLog.pre-2-2
@@ -1,5 +1,8 @@
2002-11-21 Matthias Clasen <maclas@gmx.de>
+ * gtk/gtkwidget.c (gtk_widget_get_ancestor): Add a note about
+ reflexive ancestry. (#99085, Frederic Lespez)
+
* docs/tutorial/gtk-tut.sgml:
* examples/calendar/calendar.c: Numerous fixes to the calendar
example. (#97956, Owen Taylor)
diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4
index 720163621..766b1583d 100644
--- a/ChangeLog.pre-2-4
+++ b/ChangeLog.pre-2-4
@@ -1,5 +1,8 @@
2002-11-21 Matthias Clasen <maclas@gmx.de>
+ * gtk/gtkwidget.c (gtk_widget_get_ancestor): Add a note about
+ reflexive ancestry. (#99085, Frederic Lespez)
+
* docs/tutorial/gtk-tut.sgml:
* examples/calendar/calendar.c: Numerous fixes to the calendar
example. (#97956, Owen Taylor)
diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6
index 720163621..766b1583d 100644
--- a/ChangeLog.pre-2-6
+++ b/ChangeLog.pre-2-6
@@ -1,5 +1,8 @@
2002-11-21 Matthias Clasen <maclas@gmx.de>
+ * gtk/gtkwidget.c (gtk_widget_get_ancestor): Add a note about
+ reflexive ancestry. (#99085, Frederic Lespez)
+
* docs/tutorial/gtk-tut.sgml:
* examples/calendar/calendar.c: Numerous fixes to the calendar
example. (#97956, Owen Taylor)
diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8
index 720163621..766b1583d 100644
--- a/ChangeLog.pre-2-8
+++ b/ChangeLog.pre-2-8
@@ -1,5 +1,8 @@
2002-11-21 Matthias Clasen <maclas@gmx.de>
+ * gtk/gtkwidget.c (gtk_widget_get_ancestor): Add a note about
+ reflexive ancestry. (#99085, Frederic Lespez)
+
* docs/tutorial/gtk-tut.sgml:
* examples/calendar/calendar.c: Numerous fixes to the calendar
example. (#97956, Owen Taylor)
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index d1508ef69..ccfd756a4 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -1652,8 +1652,6 @@ gtk_widget_destroyed (GtkWidget *widget,
void
gtk_widget_show (GtkWidget *widget)
{
- g_return_if_fail (GTK_IS_WIDGET (widget));
-
if (!GTK_WIDGET_VISIBLE (widget))
{
g_object_ref (widget);
@@ -5350,6 +5348,9 @@ gtk_widget_get_toplevel (GtkWidget *widget)
* it should not be unreferenced. See note about checking for a toplevel
* #GtkWindow in the docs for gtk_widget_get_toplevel().
*
+ * Note that unlike gtk_widget_is_ancestor(), gtk_widget_get_ancestor()
+ * considers @widget to be an ancestor of itself.
+ *
* Return value: the ancestor widget, or %NULL if not found
**/
GtkWidget*