diff --git a/docs/reference/gtk/gtk-docs.sgml b/docs/reference/gtk/gtk-docs.sgml index 33c9a3e5a1..60bf1af552 100644 --- a/docs/reference/gtk/gtk-docs.sgml +++ b/docs/reference/gtk/gtk-docs.sgml @@ -369,7 +369,6 @@ that is, GUI components such as #GtkButton or #GtkTextView. - diff --git a/docs/reference/gtk/gtk3-sections.txt b/docs/reference/gtk/gtk3-sections.txt index 4e77a959d3..cdce8d71ca 100644 --- a/docs/reference/gtk/gtk3-sections.txt +++ b/docs/reference/gtk/gtk3-sections.txt @@ -2239,28 +2239,6 @@ GtkNotebookTab GtkNotebookPrivate -
-gtkobject -GtkObject -GtkObject -GtkObjectFlags -GTK_OBJECT_FLAGS -gtk_object_destroy - -GTK_OBJECT -GTK_IS_OBJECT -GTK_TYPE_OBJECT -GTK_OBJECT_CLASS -GTK_IS_OBJECT_CLASS -GTK_OBJECT_GET_CLASS - - -gtk_object_get_type -GTK_ARG_READWRITE -GTK_OBJECT_SET_FLAGS -GTK_OBJECT_UNSET_FLAGS -
-
gtkoffscreenwindow GtkOffscreenWindow diff --git a/docs/reference/gtk/question_index.sgml b/docs/reference/gtk/question_index.sgml index c8c26dafaa..731978446a 100644 --- a/docs/reference/gtk/question_index.sgml +++ b/docs/reference/gtk/question_index.sgml @@ -95,10 +95,10 @@ from functions? -See the documentation for #GObject and #GtkObject. For #GObject note -specifically g_object_ref() and g_object_unref(). #GtkObject is a subclass -of #GObject so the same points apply, except that it has a "floating" state -(explained in its documentation). +See the documentation for #GObject and #GInitiallyUnowned. For #GObject note +specifically g_object_ref() and g_object_unref(). #GInitiallyUnowned is a +subclass of #GObject so the same points apply, except that it has a "floating" +state (explained in its documentation). @@ -115,7 +115,7 @@ url="http://bugzilla.gnome.org">http://bugzilla.gnome.org.) -Why does my program leak memory, if I destroy a widget immediately +Why does my program leak memory, if I destroy a widget immediately after creating it ? @@ -127,27 +127,26 @@ If GtkFoo isn't a toplevel window, then foo = gtk_foo_new (); gtk_widget_destroy (foo); -is a memory leak, because no one assumed the initial floating -reference. If you are using a widget and you aren't immediately -packing it into a container, then you probably want standard +is a memory leak, because no one assumed the initial floating +reference. If you are using a widget and you aren't immediately +packing it into a container, then you probably want standard reference counting, not floating reference counting. -To to get this, you must acquire a reference to the widget and drop the -floating reference (ref and sink in GTK+ parlance) after +To to get this, you must acquire a reference to the widget and drop the +floating reference (ref and sink in GTK+ parlance) after creating it: foo = gtk_foo_new (); - g_object_ref (foo); - gtk_object_sink (GTK_OBJECT (foo)); + g_object_ref_sink (foo); When you want to get rid of the widget, you must call gtk_widget_destroy() -to break any external connections to the widget before dropping your +to break any external connections to the widget before dropping your reference: - gtk_widget_destroy (foo); - g_object_unref (foo); + gtk_widget_destroy (foo); + g_object_unref (foo); When you immediately add a widget to a container, it takes care of assuming the initial floating reference and you don't have to worry