2017-01-11 Murray Cumming 3.89.2 2017-01-10 Kjell Ahlstedt Gtk::CellView: Remove background properties Remove property_background(), property_background_rgba() and property_background_set(), which have been removed from gtk+4. 2017-01-10 Kjell Ahlstedt Gtk::PlacesSidebar, TextView: Update signal_populate_popup() Change Menu* to Container* in signal_populate_popup(). In gtk+ it's a GtkWidget*, but the documentation says that it's a container. 2017-01-10 Kjell Ahlstedt Regenerate gtk_signals.defs and gtk_signals.defs.patch 2017-01-09 Kjell Ahlstedt Gtk: Remove API which has been removed in gtk+-4 * gtk/src/treeview.hg: Remove get_bin_window(). * gtk/src/viewport.hg: Remove get_bin_window() and get_view_window(). * gtk/src/widget.hg: Remove get_style_property_value() because gtk_widget_style_get_property() has been removed. Use the still existing gtk_widget_style_get() in get_style_property(). Remove declarations of the previously removed Gtk::Action and Gtk::Style classes. 2017-01-08 Kjell Ahlstedt Gtk::TreeRow and TreeNodeChildren: Make real const versions Split TreeRow and TreeNodeChildren into TreeRow+TreeConstRow and TreeNodeChildren+TreeNodeConstChildren. Since TreeRow and TreeNodeChildren are just disguised iterators, they too shall have const versions that can't be implicitly copied to non-const versions that can be used for changing the underlying TreeModel. Add const versions of TreeModel::get_iter(). Bug #134520 2017-01-08 Kjell Ahlstedt Gtk::TreeModelFilter, TreeModelSort: More use of const_iterator Make real const and non-const versions of convert_child_iter_to_iter() and convert_iter_to_child_iter(). Use const_iterator in the const versions. Bug #134520 In the previous commit message, "You can use select(*iter)" should be "You can use select(row.get_iter())". 2017-01-05 Kjell Ahlstedt Gtk::TreeSelection: Add const versions of get_selected() and use TreeModel::const_iterator where appropriate, now that there is a real TreeModel::const_iterator. Bug 94742 Remove TreeSelection::select(row). It's inconsistent to have a select(row) but no unselect(row). You can use select(*iter). 2017-01-05 Kjell Ahlstedt Gtk::TreeIter: Make a real const_iterator Rewrite the whole TreeIter class hierarchy, including TreeRow and TreeNodeChildren. TreeRow and TreeNodeChildren (a TreeRow container) are no longer subclasses of TreeIter. TreeIter is a template class, instantiated as TreeIter and TreeIter to get TreeNodeChildren::iterator and TreeNodeChildren::const_iterator, a.k.a. TreeModel::iterator and TreeModel::const_iterator. Bug #134520 2017-01-02 Kjell Ahlstedt Remove enum JunctionsSides * gtk/src/enums.hg: Remove enum JunctionSides. * gtk/src/stylecontext.hg: Remove set/get_junction_sides(). * tools/m4/convert_gtk.m4: Remove conversions for JunctionSides. This API has been removed from gtk+. 2017-01-02 Kjell Ahlstedt Gtk::CellArea, CellRenderer, CheckMenuItem: Remove render functions * gtk/src/cellarea.hg: Remove render(). * gtk/src/cellrenderer.hg: Remove render() and render_vfunc(). * gtk/src/checkmenuitem.hg: Remove draw_indicator_vfunc(). * gtk/src/gtk_vfuncs.defs: Replace render vfuncs by snapshot vfuncs. These render functions have been replaced in gtk+ by snapshot functions, taking a GtkSnapshot instead of a cairo_t. The snapshot functions can be added to gtkmm when GtkSnapshot has been wrapped. Bug 776659 2016-12-31 Daniel Boles label.ccg: update align args to match doc fix @ hg https://bugzilla.gnome.org/show_bug.cgi?id=774652 2016-12-30 Kjell Ahlstedt Gdk::Display: Add is_composited() and is_rgba() and add property_composited() and property_rgba(). Remove the const version of get_event(). 2016-12-30 Kjell Ahlstedt Remove some deprecated API * gdk/src/device.[ccg|hg]: Remove grab() and ungrab(). Remove enum GrabOwnership, although it's not deprecated in gtk+. It's not used any more in gtkmm. * gdk/src/devicemanager.hg: Remove list_devices(). * gdk/src/display.hg: Remove get_device_manager(). * gdk/src/pixbuf.[ccg|hg]: Remove create_from_inline(). Remove non-const versions of save() and save_to_buffer(). * gtk/gtkmm/radiobuttongroup.h: Remove an obsolete class declaration. * gtk/src/stylecontext.[ccg|hg]: Remove get_background_color() and get_border_color(). These functions have been deprecated but not removed in gtk+ and gdk-pixbuf. 2016-12-30 Kjell Ahlstedt Gtk::Container: Improve some vfuncs Let forall_vfunc() take a sigc::slot instead of a function pointer. Let get_child_property_vfunc() and set_child_property_vfunc() take Gtk::Widget* and Glib::ValueBase& instead of GtkWidget* and GValue*. Add get_path_for_child_vfunc(). Bug 670204 2016-12-28 Kjell Ahlstedt Gtk::IconInfo, FlowBox, ListBox: Fix some docs typos 2016-12-28 Kjell Ahlstedt Gtk::Scrollable, ToolShell: Add some vfuncs * gtk/src/gtk_vfuncs.defs: Add some vfuncs. * gtk/src/scrollable.[ccg|hg]: Add get_border_vfunc(). * gtk/src/toolshell.hg: Add 4 vfuncs. Make most vfuncs const. 2016-12-28 Kjell Ahlstedt Gtk::IconInfo: Rename one of the overloaded load_symbolic() * demos/gtk-demo/example_iconbrowser.cc: * gtk/src/iconinfo.[ccg|hg]: Rename load_symbolic(context) to load_symbolic_for_context() for consistency. Make load_icon() and one of the other load_symbolic() non-const. This also increases consistency. The other load_*() methods are non-const. It's not clear from the gtk+ docs whether the gtk_icon_info_load_*() functions can modify the GtkIconInfo object. The source code shows that they can. 2016-12-28 Kjell Ahlstedt Gtk::LevelBar, Toolbar: Implement the Orientable interface 2016-12-28 Kjell Ahlstedt Gtk::RecentChooser: Add refreturn to get_recent_manager_vfunc() 2016-12-21 Kjell Ahlstedt Remove Gtk::TreeView::_auto_store_on_cellrenderer_toggle_edited() 2016-12-20 Kjell Ahlstedt Gtk::CellView: Remove set_background_rgba() gtk_cell_view_set_background_rgba() has been removed in gtk+. 2016-12-17 Murray Cumming Gdk::Window: Remove ensure_native(). Because it was removed from GTK+: https://git.gnome.org/browse/gtk+/commit/?id=5bf28a386937847a171435bf55be16769565e402 2016-12-17 Murray Cumming Gdk::Window: Remove reparent(). Because it was removed from GTK+: https://git.gnome.org/browse/gtk+/commit/?id=330c7feaa2cae359f43e6cb7372dba812ff7dfd2 2016-12-17 Murray Cumming Widget: Add set_margin(). This is slightly nicer than using property_margin(), which is apparently the appropriate replacement for Gtk::Container::set_border_width(), or gtk_container_set_border_width. That GtkWidget margin property sets all 4 other properties. 2016-12-15 Kjell Ahlstedt FlowBox, ListBox: Replace unnecessary RefPtr<>::cast_static() The g++ compiler detects some errors in a template function only when a call to the function is compiled. With these replacements for cast_static() gtkmm_documentation/examples/book/listmodel/example can still be built. 2016-12-14 Kjell Ahlstedt Gtk::Application: Set the global locale The constructors set the global locale as specified by Glib::get_init_to_users_preferred_locale(). Bug 661588 2016-12-12 Kjell Ahlstedt Revert "FlowBox, ListBox: Remove unnecessary static cast." This reverts commit a1a75cff258797e61885a32600e13a9ffb282907. These static casts in template functions are necessary, but the compiler notices it only when the functions are called. Glib::unwrap() must unwrap to a GListModel. A GListStore won't do. 2016-12-12 Kjell Ahlstedt Add Gdk::DrawContext * .gitignore: Add drawcontext.cc, drawcontext.h. * gdk/src/filelist.am: Add drawcontext.hg. * gdk/src/gdk_extra_objects.defs: Add DrawContext. * tools/m4/convert_gdk.m4: Add conversions for DrawContext. * gdk/src/drawcontext.[ccg|hg]: New files. * gdk/src/drawingcontext.[ccg|hg]: Add get_paint_context() and property_paint_context(). * gdk/src/glcontext.hg: Derive from Gdk::DrawContext. Add get_damage(). Remove property_display() and property_window(), which are moved to DrawContext. * gdk/src/window.[ccg|hg]: Fix begin_draw_frame(). 2016-12-12 Kjell Ahlstedt Regenerate gdk_docs.xml and gdk_signals.defs * tools/extra_defs_gen/generate_defs_gdk.cc: Add GDK_TYPE_DRAW_CONTEXT. * gdk/src/gdk_docs.xml: * gdk/src/gdk_signals.defs: Regenerate. 2016-12-12 Murray Cumming TextIter: PredicateAdapter: Make constructor explicit. Noticed by cppcheck. 2016-12-12 Murray Cumming RadioItem: Make a constructor explicit. Noticed by cppcheck. 2016-12-12 Murray Cumming Demos: Use explicit keyword on single-parameter constructors. Noticed by cppcheck. 2016-12-09 Murray Cumming FlowBox, ListBox: Remove unnecessary static cast. 2016-12-07 Murray Cumming Use Cairo::make_refptr_for_instance(). This is new in cairomm. It lets us hide the construction details of the RefPtr. 2016-12-07 Murray Cumming Widget: Remove get_preferred_height_for_width() that takes a baseline. Because gtk_widget_get_preferred_height_and_baseline_for_width() was removed from GTK+. 2016-12-07 Murray Cumming Regenerate gtk_methods.defs. 2016-12-07 Murray Cumming Gdk::Window: begin_draw_frame(): Add (optional) context. 2016-12-07 Murray Cumming Regenerate gtk_methods.defs.