2.91.6: 2010-12-08 Murray Cumming Gdk::Color: Rename the setters and getters. * gdk/src/rgba.[hg|ccg]: Rename set/get_*_p(double) to set/get_*(), without the _p, because GdkRGBA uses doubles, though GdkColor used gushort. Rename set/get_*(gushort) (without the _p) to set/get_*_u(), as a convenience, particularly for older code that used Gdk::Color. 2010-12-07 Murray Cumming StyleContext: Add render_*() methods. * gtk/src/stylecontext.hg: Wrap the gtk_render_*() functions, as we previously wrapped the old gtk_paint_*() functions in GtkStyle. 2010-12-07 Murray Cumming Added Gdk::Cairo::set_source_rgba(). * gdk/gdkmm/general.[h|cc]: Wrapped gdk_cairo_set_source_rgba(). 2010-12-07 Murray Cumming Widget, StyleContext: Allow default StyleFlag values. * gtk/src/stylecontext.[hg|ccg]: get_color(), get_background_color(), get_border_color(), get_padding(), get_margin(). * gtk/src/widget.[hg|ccg]: override_color(), override_background_color(): Manually implement these methods so we can rearrange the parameters and then provide a default StateFlags value of 0. * demos/gtk-demo/example_colorsel.cc: * demos/gtk-demo/example_textview.cc: Adapted. 2010-12-07 Murray Cumming Widget: Added get_style_context(). * gtk/src/widget.hg: Wrap gtk_widget_get_style_context(). 2010-12-07 Murray Cumming Added CssProvider. * gtl/src/filelist.am: * gtk/src/cssprovider.[hg|ccg]: Added CssProvider, implementing StyleProvider. * gtk/gtkmm.h: Include the new header. 2010-12-07 Murray Cumming Added signals/properties .defs for GtkStyleContext. * tools/extra_defs_gen/generate_defs_gtk.cc: Added some new types. * gtk/src/gtk_signals.defs: Added the section for GtkStyleContext so that gmmproc can actuall generate the signal and property API for Gtk::StyleContext. 2010-12-07 Murray Cumming Added properties using Gdk::RGBA. * gdk/src/color.hg: * gtk/src/cellrenderer.hg: * gtk/src/cellrenderertext.hg: * gtk/src/cellview.hg: * gtk/src/colorbutton.hg: * gtk/src/texttag.hg: Added the new properties that take a Gdk::RGBA instead of Gdk::Color. We can remove Gdk::Color when it has been deprecated in GTK+ 3: https://bugzilla.gnome.org/show_bug.cgi?id=636695 2010-12-07 Murray Cumming > Fix Gdk::RGBA and fix the demos build (make check) * gdk/src/rgba.[hg|ccg]: Change set_rgb() to set_rgba(), adding an optional alpha parameter. Change set_rgb_p() to set_rgba_p(), adding an optional alpha parameter. Fix their implementation because GdkRGBA has double members instead of gushort members as in GdkColor. * gtk/src/colorselection.[hg|ccg]: Added get/set_current_rgba() and get/set_previous_rgba(). * demos/gtk-demo/example_colorsel.cc: * demos/gtk-demo/example_drawingarea.cc: * demos/gtk-demo/example_textview.cc: * demos/gtk-demo/textwidget.cc: Use Gdk::RGBA rather than Gdk::Color, using the Widget::override_*() methods instead of the old Widget::modify_*() methods. 2010-12-07 Murray Cumming Regenerate gtk_signals.defs. * gtk/src/gtk_signals.defs: Regenerated with extra_defs_gen. * gtk/src/gtk_signals.defs.patch: Updated this patch so it is easier to make the manual changes next time. * gtk/src/widget.hg: Removed the style_changed signal because the underlying style-set signal uses GtkStyle, which is deprecated. 2010-12-07 Murray Cumming Remove includes of style.h and rc.h. * gtk/src/iconinfo.hg: * gtk/src/iconset.ccg: * gtk/src/widget.ccg: * gtk/src/widget.hg: Removed includes of headers that do not exist now. 2010-12-06 Murray Cumming Restored the GtkPrintCapabilities enum. * gtk/src/gtk_enums.defs: Added the result from unix-print/gtk/, lost when regenerating. gtkmm now builds again against the latest GTK+ 3 from git master. 2010-12-06 Murray Cumming Add and use WidgetPath. * gtk/gtkmm.h: * gtk/src/filelist.am: * gtk/src/widgetpath.[hg|ccg]: Added WidgetPath, though not all methods are wrapped yet. * gtk/src/widget.[hg|ccg]: replace path() with get_path(), which uses WidgetPath. * tools/m4/convert_gtk.m4: Added necessary conversion. 2010-12-06 Murray Cumming Improved StyleContext. Removed Style and RcStyle classes. * gtk/src/rc.[hg|ccg] * gtk/src/style.[hg|ccg]: Removed these files because GtkStyle and GtkRcStyle are now deprecated in GTK+ 3. * gtk/src/styleprovider.[hg|ccg]: Added this class, used by StyleContext, though no methods are wrapped yet. * gtk/src/iconset.hg: Remove render_icon(), replacing it with render_icon_pixbuf(), which uses StyleContext instead of Style. * gtk/src/widget.[hg|ccg]: Removed the modify_*() methods, replacing them with override_*() methods, which use StyleContext instead of RcStyle and Style. 2010-12-06 Murray Cumming Added Gtk::StyleContext. * gtk/src/gtk_enums.defs: Regenerated with enums.pl. * gtk/src/enums.hg: Added RegionFlags, JunctionSides and StateFlags. * gtk/src/filelist.am: * gtk/src/stylecontext.[hg|ccg]: Added StyleContext, though some methods are not yet wrapped. * tools/m4/convert_gdk.m4: * tools/m4/convert_gtk.m4: Added necessary conversions. 2010-12-06 Murray Cumming Fix the gdkmm build with latest GTK+ 3 from git master. * gdk/src/gdk_methods.defs: Regenerated with h2defs.py. * gdk/src/window.hg: get_geometry(): Remove the depth parameter, to match the change in GTK+ 3. 2010-12-05 Murray Cumming Regenerate gtk_methods.defs. * gtk/src/gtk_methods.defs: Regenerated with h2defs.py. * gtk/src/iconinfo.[hg|ccg]: Remove use of gtk_icon_info_load_symbolic_for_style() because it is now deprecated in GTK+ 3. The build is still broken. We need to wrap GtkStyleContext. 2010-12-05 Murray Cumming Adapt to the GdkWindowObject -> GdkWindow change in GTK+ 3. * gdk/src/window.hg: Remove the extra parameter to _CLASS_GOBJECT(). Maybe we can now remove that option from gmmproc. * gdk/src/display.ccg: * gdk/src/dragcontext.ccg: * gtk/src/style.hg: Remove casts to GdkWindowObject*. * tools/m4/convert_gdk.m4: Change the conversions. This is much nicer. 2010-12-03 Murray Cumming Add Window methods to preserve API from Drawable. * gdk/src/window.hg: Aded set_background(RGBA) and renamed set_background_pattern() to set_background(Pattern). Added set_clip_region() and get_visible_region() and create_cairo_context(), which were previously in Drawable. * tools/m4/convert_gdk.m4: Added a conversion. 2010-12-03 Murray Cumming gtk-demo: Fix the build for the append_text() to append() change. * demos/gtk-demo/example_sizegroup.cc: * demos/gtk-demo/example_textview.cc: use append() instead of append_text() with Gtk::ComboBoxText. 2010-12-03 Murray Cumming Regenerated some .defs files. * gdk/src/gdk_signals.defs: Regenerated with extra_defs/. * gdk/src/gdk_methods.defs: * gtk/src/gtk_methods.defs: Regenerated with h2defs.py. 2010-12-03 Murray Cumming ComboBoxText: Add append()/prepend()/insert overloads. * gtk/src/comboboxtext.hg: Rename append_text(), prepend_text() and insert_text() to append(), prepend() and insert(). Add extra overloads that also take an id, to wrap the new gtk_combo_box_text_append(), gtk_combo_box_text_prepend() and gtk_combo_box_text_insert() functions. 2010-12-03 Murray Cumming Widget: Remove the no_expose_event signal to fix the build. * gtk/src/widget.hg: The signal was removed from GTK+. 2010-12-03 Murray Cumming Remove Gdk::Drawable, which is replaced by more use of Gdk::Window. * tools/extra_defs_gen/generate_defs_gtk.cc: Remove mention of GDK_TYPE_DRAWABLE. * gdk/src/drawable.[hg|ccg]: Removed. API generally uses Gdk::Window now instead. * gdk/src/filelist.am: * gdk/gdkmm.h: Removed mentions of drawable. * gdk/src/window.[hg|ccg]: This now derives from Glib::Object instead of Gdk::Drawable, though it still has a strangely-named typedef. * gdk/gdkmm/general.[h|cc]: * gdk/src/display.hg: * gdk/src/pixbuf.hg: Adapt the includes. 2010-12-02 Murray Cumming Revert the previous commit's removal of newer ComboBox methods. * gtk/src/combobox.hg: Added methods back now that we have a release that builds.