]> Pileus Git - ~andy/gtk/commit
Deprecate flag macros for toplevel, state, no window and composite child
authorChristian Dywan <christian@twotoasts.de>
Mon, 4 Jan 2010 06:49:26 +0000 (07:49 +0100)
committerChristian Dywan <christian@twotoasts.de>
Mon, 4 Jan 2010 06:57:05 +0000 (07:57 +0100)
commitbb1824c131f247c2ef64f3c5f8b9ffe3885c9d90
tree4a3b900d5f439856679fd0fcf9c8394c177e8c6f
parentac26960e62346558737073ac516790005d7c64ad
Deprecate flag macros for toplevel, state, no window and composite child

Deprecate widget flag macros GTK_WIDGET_STATE, GTK_WIDGET_SAVED_STATE,
GTK_WIDGET_FLAGS, GTK_WIDGET_TOPLEVEL, GTK_WIDGET_NO_WINDOW and
GTK_WIDGET_COMPOSITE_CHILD.

Also deprecate the type macros GTK_WIDGET_TYPE, GTK_OBJECT_TYPE_NAME and
GTK_OBJECT_TYPE which have become redundant.

Instances of GTK_WIDGET_TOPLEVEL are replaced with gtk_widget_is_toplevel,
GTK_WIDGET_TYPE is replaced with G_OBJECT_TYPE, GTK_WIDGET_COMPOSITE_CHILD
is replaced with use of the "composite-child" property and uses of
GTK_WIDGET_NO_WINDOW are adjusted to use gtk_widget_get_has_window.

Uses of GTK_WIDGET_SAVED_STATE and GTK_WIDGET_FLAGS inside GtkWidget are
changed to direct flag usage.

Documentation is updated to refer to gtk_widget_set_has_window and
gtk_widget_get_has_window.

Gail and tests are updated as well.

Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=69872
51 files changed:
docs/reference/gtk/drawing-model.xml
docs/reference/gtk/glossary.xml
docs/reference/gtk/tmpl/gtkobject.sgml
gtk/gtkassistant.c
gtk/gtkclist.c
gtk/gtkcolorbutton.c
gtk/gtkcombobox.c
gtk/gtkcontainer.c
gtk/gtkdnd-quartz.c
gtk/gtkdnd.c
gtk/gtkdrawingarea.c
gtk/gtkfilechooserbutton.c
gtk/gtkfilechooserdefault.c
gtk/gtkfontbutton.c
gtk/gtkfontsel.c
gtk/gtkhandlebox.c
gtk/gtkiconview.c
gtk/gtklabel.c
gtk/gtkmenu.c
gtk/gtkmenubar.c
gtk/gtkmisc.c
gtk/gtknotebook.c
gtk/gtkobject.h
gtk/gtkoptionmenu.c
gtk/gtkpaned.c
gtk/gtkplug.c
gtk/gtkprintunixdialog.c
gtk/gtkrecentchooserdefault.c
gtk/gtkscrolledwindow.c
gtk/gtksizegroup.c
gtk/gtksocket.c
gtk/gtktextview.c
gtk/gtktooltip.c
gtk/gtktreeitem.c
gtk/gtktreeview.c
gtk/gtktreeviewcolumn.c
gtk/gtkviewport.c
gtk/gtkwidget.c
gtk/gtkwidget.h
gtk/gtkwindow.c
modules/input/gtkimcontextxim.c
modules/other/gail/gailtreeview.c
modules/other/gail/gailwidget.c
modules/other/gail/gailwindow.c
modules/other/gail/tests/testaction.c
modules/other/gail/tests/testnotebook.c
modules/other/gail/tests/testobject.c
modules/other/gail/tests/testselection.c
perf/gtkwidgetprofiler.c
tests/testdnd.c
tests/testgtk.c