2.21.5: 2010-07-14 Murray Cumming Rearrange includes in tests and demos for the undefs. * demos/gtk-demo/demowindow.cc: * demos/gtk-demo/demowindow.h: * demos/gtk-demo/main.cc: * tests/child_widget/main.cc: These now build again with enable-warnings=fatal . 2010-07-14 Murray Cumming More rearranging of includes for the undef in gdkmm/region.hg. * gtk/gtkmm/menu_elems.[h|cc]: * gtk/gtkmm/stock.[h|cc]: * gtk/src/bin.[hg|ccg]: * gtk/src/iconinfo.[hg|ccg]: * gtk/src/liststore.hg: * gtk/src/main.hg: * gtk/src/stockitem.hg: * gtk/src/tooltips.ccg: * gtk/src/treedragsource.hg: * gtk/src/treemodel.[hg|ccg]: * gtk/src/treemodelfilter.[hg|ccg]: * gtk/src/treemodelsort.hg: * gtk/src/treepath.hg: * gtk/src/treerowreference.hg: * gtk/src/treeselection.hg: * gtk/src/treestore.hg: Include treepath.h before others, such as treemodel.h, so that gdkmm/region is (indirectly) included before the others, so that is the first include of gdk/gdk.h, so our undef is used. 2010-07-13 Murray Cumming Yet more rearranging of includes for the undef in box.hg * gtk/src/treedragdest.hg: Include treemodel.h later, because it includes gtk/gtk.h without the undef. 2010-07-13 Murray Cumming Even more work on the undef in box.hg. * gdk/gdkmm.h: * gtk/gtkmm.h: * gtk/src/box.hg: * gtk/src/main.hg: * gtk/src/table.hg: * gtk/src/textiter.hg: * gtk/src/treemodel.hg: * gtk/src/treeviewcolumn.hg: Rearrange includes to make it more likely that applications will be able to build with deprecated API disabled and warnings as errors. However, this is just impossible to do completely, because any other header (such as goocanvasitem.h via goocanvasmm) might include gtk/gtk.h first. 2010-07-13 Murray Cumming More work on the undef in box.hg. * gtk/src/combo.hg: * gtk/src/dialog.hg: * gtk/src/fileselection.hg: * gtk/src/fontselection.hg: Make sure that box.h is included first, so the undef can work. 2010-07-13 Murray Cumming Fix the build with warnings-as-errors with the latest gtk+ 2.22.x. * gdk/src/gdk_methods.defs: * gdk/src/gdk_pixbuf_methods.defs: Regenerate with h2defs.py. * gdk/src/color.[hg|ccg]: Move ColorTraits implementations to the .ccg file. * gdk/src/screen.hg: get_name(), get_source(), get_mode(), get_has_cursor(): Reimplement with the new C functions, instead of using direct struct access. * gdk/src/dragcontext.[hg|ccg]: get_source_window(), get_destination_window(), get_actions(), get_suggested_action(), get_action(): Reimplement with the new C functions, instead of using direct struct access. get_action(): Deprecate, replacing with get_selected_action(). Temporarily undef GSEAL_ENABLE to allow use of struct members that that have no replacement, to avoid breaking our API. * gdk/src/image.hg: get_image_type(), get_visual(), get_width(), get_height(), get_bpp(), get_bpl(): Reimplement with the new C functions, instead of using direct struct access. get_bpp(), get_bpl(): Deprecate, replacing with get_bytes_per_pixel() and get_bytes_per_line(). Addef get_depth(). * gdk/src/region.hg: Temporarily undef GSEAL_ENABLE to allow use of the deprecated GdkSpanFunc type in our API, to avoid breaking our API. * gdk/src/bitmap[hg|ccg]: * gdk/src/cursor.hg: * gdk/src/device.hg: * gdk/src/drawable.hg: * gdk/src/gc.hg: * gdk/src/visual.hg: * gdk/src/window.hg: Rearrange includes to let our temporary undefs elsewhere work. * gtk/src/box.hg: Temporarily undef GTK_DISABLE_DEPRECATED, so we can still use _GtkBoxChild in our API, to avoid breaking our API. * gtk/src/activatable.hg: * gtk/src/bin.ccg: * gtk/src/editable.hg: * gtk/src/orientable.hg: * gtk/src/printoperationpreview.hg: * gtk/src/recentchooser.hg: * gtk/src/textiter.hg: * gtk/src/treesortable.hg: * gtk/src/toolshell.hg: * gtk/src/main.hg: Do not include gtk+.h. Add prototype declarations instead, as elsewhere. Rearrange includes to allow our undefs to work. 2010-07-06 Murray Cumming Added copyright headers. Patch from Kalev Lember. * tools/m4/convert.m4: * tools/m4/convert_atk.m4: * tools/m4/convert_gdk.m4: * tools/m4/convert_gtk.m4: * tools/m4/convert_gtkmm.m4: * tools/m4/convert_pango.m4: * tools/m4/filelist.am: Added LGPL2.1+ headers, like the other files. 2010-06-28 Murray Cumming PrintOperation: get_default_page_setup(): refcount fix. * gtk/src/printoperation.hg: get_default_page_setup(), get_print_settings(): Use refreturn, fixing bug #622957 (Kjell Ahlstedt).