summaryrefslogtreecommitdiff
path: root/docs/refcounting.txt
diff options
context:
space:
mode:
authorTim Janik <timj@gimp.org>1998-02-05 03:53:41 +0000
committerTim Janik <timj@src.gnome.org>1998-02-05 03:53:41 +0000
commit9258a7aecb1dfdff5fb0c91dee4c1a9a1d3cf13c (patch)
treedc0d64f09d14108d1aebc5a6f69ddc1e359f08b6 /docs/refcounting.txt
parentf82814760ece61d9c7e500bbaae2696ec84cc50c (diff)
downloadgtk+-9258a7aecb1dfdff5fb0c91dee4c1a9a1d3cf13c.tar.gz
new function to perform the same actions as gtk_list_remove_items, but
Thu Feb 5 02:13:08 1998 Tim Janik <timj@gimp.org> * gtk/gtklist.h: * gtk/gtklist.c (gtk_list_remove_items_no_unref): new function to perform the same actions as gtk_list_remove_items, but supply the removed widgets with an additional reference count. * gtk/gtkmain.c (gtk_main_iteration_do): ignore events with event_widget == NULL, since they are bogus events from destroyed GdkWindows, exept for the case where event->type==GDK_PROPERTY_NOTIFY. Always handle expired timeout functions when returning from this function. * gtk/gtkwidget.c (gtk_widget_event): ignore GDK_EXPOSE events if event->window == NULL. Also, if this function couldn't handle the event for any reason (including failing assumptions), make the return value to look as if the event had been handled to avoid further processing (and warnings). * gtk/gtkwidget.h: * gtk/gtkwidget.c: remove gtk_widget_sink, because there is no point in providing such a function. * gdk/gdk.c (gdk_init): changed options `-name' and `-class' to `--name' and `--class', because the old names would confuse getopt(). these arguments have been introduced in the changes from gtk+970916 to gtk+970925 without a ChangeLog entry, changing argument names is painful, it would be nice if people would care about compatibility and consistency in the first place!
Diffstat (limited to 'docs/refcounting.txt')
-rw-r--r--docs/refcounting.txt8
1 files changed, 7 insertions, 1 deletions
diff --git a/docs/refcounting.txt b/docs/refcounting.txt
index 2315db62d2..aa8823e225 100644
--- a/docs/refcounting.txt
+++ b/docs/refcounting.txt
@@ -278,6 +278,13 @@ Example code sequences that require reference wraps:
gtk_widget_unref (GTK_WIDGET (tmp->data));
g_slist_free_1 (tmp);
}
+
+ /* Alternatively to the removal above you could just use
+ * gtk_list_remove_items_no_unref() which will add the additional
+ * reference count to the widget.
+ */
+ gtk_list_remove_items_no_unref (list, item_list);
+ gtk_list_prepend_items (other_list, item_list);
Now a (hopefully) complete list of functions that require
@@ -308,7 +315,6 @@ Events that a likely to trigger a missing check for the window pointer
currently are (and correspond to the trailing signals):
GDK_SELECTION_CLEAR GtkWidget::selection_clear_event
-GDK_EXPOSE GtkWidget::expose_event
GDK_FOCUS_CHANGE GtkWidget::focus_in_event
GtkWidget::focus_out_event