2017-08-25 Murray Cumming 3.91.2 2017-08-25 Murray Cumming Build: Use latest pangomm and atkmm. These uses glibmm-2.56 instead of glibmm-2.54. 2017-08-25 Murray Cumming Use glibmm-2.56 instead of glibmm-2.54. We changed the ABI name in glibmm. 2017-08-25 Murray Cumming Container: Remove propagate_draw(). Because it was removed from GTK+: https://git.gnome.org/browse/gtk+/commit/?id=b24535ea7542c505e100faad25f9fa53da773440 2017-08-14 Kjell Ahlstedt Add Gtk::CenterBox * .gitignore: Add centerbox.cc and centerbox.h. * gtk/gtkmm.h: Add centerbox.h. * gtk/src/filelist.am: Add centerbox.hg. * gtk/src/gtk_extra_objects.defs: Add CenterBox. * gtk/src/centerbox.[ccg|hg]: New files. 2017-08-14 Kjell Ahlstedt Regenerate gtk_signals.defs CenterBox has been added, EventBox has been removed. 2017-08-14 Kjell Ahlstedt Gdk, Gtk: Remove API which has been removed in gtk+-4 * gdk/src/screen.hg: Remove get_root_window(). * gdk/src/window.hg: Remove get_default_root_window() and create_input(). * gtk/src/widget.hg: Remove set_redraw_on_allocate(). 2017-08-06 Kjell Ahlstedt Remove Gtk::EventBox GtkEventBox has been removed from gtk+. All widgets can receive events. 2017-08-01 Kjell Ahlstedt Gtk::EventBox: Remove set/get/property_visible_window() They have been removed from the gtk+ API. 2017-07-26 Kjell Ahlstedt Gtk::TreeModelFilter, TreeModelSort: Implement TreeDragSource The corresponding gtk+ classes implement GtkTreeDragSource. 2017-07-26 Kjell Ahlstedt Gtk::Settings: Implement StyleProvider GtkSettings implements GtkStyleProvider. 2017-07-26 Kjell Ahlstedt Gtk::FileFilter, RecentFilter, TextTagTable, TreeViewColumn: Implement Buildable The corresponding gtk+ classes implement GtkBuildable. 2017-07-26 Kjell Ahlstedt Gdk::Pixbuf: Implement Gio::LoadableIcon GdkPixbuf implements GLoadableIcon. 2017-07-26 Kjell Ahlstedt Gtk::Snapshot: Update a comment 2017-07-26 Kjell Ahlstedt Gdk::TimeCoord: Fix copy and move assignment Use the technique with a temporary object and swap(). It's easy and safe, and it handles self assignment. 2017-07-26 Kjell Ahlstedt Gdk::Point: Fix copy assignment Change const Point&& to const Point&. 2017-07-25 Kjell Ahlstedt Gtk::ActionBar: Inherit from Container, add new API GtkActionBar now inherits from Container. Add child properties and set/get/property_revealed(). 2017-07-25 Kjell Ahlstedt Regenerate gtk_signals.defs 2017-07-24 Kjell Ahlstedt Gdk::TimeCoord: Make it the owner of the wrapped GdkTimeCoord Add destructor and copy operations. Add a make_a_copy parameter in the constructor. Correct the move operations. Bug 784955 2017-07-24 Kjell Ahlstedt Gtk::FileChooserButton, FontButton: Inherit from Widget The corresponding gtk+ classes now inherit from GtkWidget. 2017-07-21 Kjell Ahlstedt Gtk::AccelLabel, Scrollbar, SpinButton: Inherit from Widget, add new API * gtk/src/accellabel.[ccg|hg]: Add set/get/property_label() and set/get/property_use_underline(). Make get_accel() const. * gtk/src/scrollbar.[ccg|hg]: Implement the Orientable interface. Add set/unset/get/property_adjustment() and get_wheel_delta(). * gtk/src/spinbutton.hg: Implement the Orientable and Editable interfaces. Add set/get/property_text(), set/get/property_width_chars() and set/get/property_max_width_chars(). 2017-07-21 Kjell Ahlstedt Gtk:Expander: Inherit from Container GtkExpander now inherits from GtkContainer. 2017-07-21 Kjell Ahlstedt Gtk::ColorButton, Statusbar: Inherit from Widget The corresponding gtk+ classes now inherit from GtkWidget. 2017-07-21 Kjell Ahlstedt Gtk::[App|File|Font|Recent]ChooserWidget: Inherit from Widget The corresponding gtk+ classes now inherit from GtkWidget. 2017-07-21 Kjell Ahlstedt Gtk::Range, ScaleButton: Use RefPtr consistently Don't use Adjustment* in property_adjustment(). 2017-07-20 Kjell Ahlstedt Gtk::Scale: Remove calc_digits_() It was once used by the now removed HScale and VScale classes. Remove unnecessary doxygen comments before _WRAP_PROPERTY(). They duplicate comments that gmmproc adds. 2017-07-20 Kjell Ahlstedt Gtk::Clipboard: Remove an obsolete comment gtk_clipboard_get_default() is now defined in gtkclipboard-quartz.c. 2017-07-20 Kjell Ahlstedt Gtk: Remove API which has been removed in gtk+-4 * gtk/gtkmm.h: Remove styleproperty.h. * gtk/gtkmm/filelist.am: Remove styleproperty.[cc|h]. * gtk/gtkmm/styleproperty.[cc|h]: Removed files. * gtk/src/checkmenuitem.[ccg|hg]: Remove snapshot_indicator_vfunc(). * gtk/src/iconview.hg: Remove convert_widget_to_bin_window_coords(). * gtk/src/layout.hg: remove get_bin_window(). * gtk/src/paned.hg: Remove get_handle_window(). * gtk/src/range.hg: Remove get/set/property_lower_stepper_sensitivity() and get/set/property_upper_stepper_sensitivity(). * gtk/src/scale.hg: Remove draw_value_vfunc(). * gtk/src/stylecontext.hg: Remove get_style_property() and get_style_property_value(). * gtk/src/widget.[ccg|hg]: Remove set_allocation(), set_clip(), get_style_property(), transform_cairo_context_to_window(), queue_draw_region_vfunc() and queue_draw_child_vfunc(). Add new parameters to size_allocate() and signal_size_allocate() handlers. * tools/m4/convert_gtk.m4: Add a conversion for Gtk::Allocation. Style properties have been completely removed from gtk+. 2017-07-20 Kjell Ahlstedt Gtk: Regenerate .defs and docs.xml files, update gtk_vfuncs.defs and update gtk_signals.defs.patch. 2017-07-14 Kjell Ahlstedt Gtk::PaperSizeTraits: Implement release_c_type() Contrary to the comment, release_c_type() is called from get_paper_sizes(). If release_c_type() is a no-op, get_paper_sizes() leaks memory. 2017-07-11 Kjell Ahlstedt Gtk::TreeSortable and Window: Remove some TODO comments * gtk/src/treesortable.hg: TreeSortable shall not derive from TreeModel. Every interface shall derive directly from Glib::Interface, whatever other interfaces or classes it requires. See bug 776537 * gtk/src/window.hg: Correct the since tag of set_icon_name(). 2017-07-11 Kjell Ahlstedt Gtk::CellRenderer::get_aligned_area(): Return value instead of output par Let the returned rectangle be the return value of get_aligned_area(), although gtk_cell_renderer_get_aligned_area() has an output parameter and return type void. Add implementation of the get_state() overload without a Widget parameter. That was apparently forgotten when get_state() was added. 2017-07-11 Kjell Ahlstedt Gtk::AspectFrame::set(): Remove default value of obey_child The obey_child parameter has different default values in set() and in the constructors. That's inconsistent and a bit confusing. 2017-07-11 Kjell Ahlstedt Gtk::PaperSize: Throw exception from a constructor The constructor that reads from a Glib::KeyFile can fail. If it does, throw an exception instead of creating an invalid PaperSize instance. 2017-07-10 Kjell Ahlstedt Gtk::PrintJob: Fix a call to Glib::throw_exception() Glib::throw_exception(GError*) takes ownership of the GError. SignalProxy_Custom_gtk_callback() must give a copy to throw_exception(). 2017-07-10 Kjell Ahlstedt Gtk::SpinButton: Make a constructor explicit and add documentation 2017-07-07 Kjell Ahlstedt Gdk::EventConfigure: Add implementation of get_rect() This was apparently overlooked in commit 346905f426d0486c91ec9cfe94033f92f8e71efb 2017-07-06 Kjell Ahlstedt convert_gdk.m4: Wrap GdkDragContext with take_copy==false In gtkmm, these conversions are used only by Gdk::EventDND::get_context() and Gtk::Widget::drag_begin(). They both take a ref after calling wrap(), like other conversions to Glib::RefPtr where the C code does not give the caller a ref. An extra copy by wrap() means memory leak. 2017-07-06 Daniel Boles Gdk::RGBA: Update ctor(ustring) docs from GTK+ https://bugzilla.gnome.org/show_bug.cgi?id=784483 2017-06-30 Kjell Ahlstedt Add Gtk::NativeDialog and Gtk::FileChooserNative Bug 783801 2017-06-30 Kjell Ahlstedt Regenerate gtk_signals.defs Bug 783801 2017-06-30 Kjell Ahlstedt generate_defs_gtk.cc: Add NativeDialog and FileChooserNative Bug 783801 2017-06-26 Kjell Ahlstedt Gtk::ComboBox and Scale: Fix signals that return a gchar* ComboBox::signal_format_entry_text() and Scale::signal_format_value() shall delete the returned character array after it has been copied to a Glib::ustring, or else they leak memory. They shall also convert an empty Glib::ustring to a null gchar*. Bug 783360 2017-06-26 Kjell Ahlstedt Gtk::Editable and RecentChooser: Plug memory leaks in vfuncs Editable::get_chars_vfunc() and RecentChooser::get_current_uri_vfunc() shall delete the returned character array after it has been copied to a Glib::ustring. Bug 783360 2017-06-23 Murray Cumming Box: pack_end(): Don't call a pack_start() method. This was a copy/paste error. Bug #784118 (Marc Micalizzi) 2017-06-11 Kjell Ahlstedt Demos: Remove static_cast on Pango::Weight * demos/gtk-demo/example_textview.cc: * demos/gtk-demo/textwidget.cc: Remove unnecessary static_cast. Pango::Weight can now be implicitly converted to int. Bug 86864 2017-06-11 Kjell Ahlstedt Make enum Gtk::ResponseType implicitly convertible to int * gtk/src/dialog.hg: Add CONV_TO_INT to _WRAP_ENUM. Remove helper class Dialog::ResponseTypeOrInt. Bug 86864 2017-06-06 Kjell Ahlstedt Gtk::Widget: Add insert_before() and insert_after() 2017-06-06 Kjell Ahlstedt Gdk::Rectangle: Add contains_point() 2017-06-06 Kjell Ahlstedt Regenerate gtk_docs.xml 2017-06-06 Kjell Ahlstedt Regenerate gdk_docs.xml 2017-06-05 Daniel Boles SpinButton: Pass signal_input double&, not double* The double* argument is to store the converted value from the text in the SpinButton, so there is always a target to write to. Therefore, to correctly use C++ style, this should use a reference and not a pointer. https://bugzilla.gnome.org/show_bug.cgi?id=783136 2017-06-05 Daniel Boles convert_gtk.m4: Remove redundant conversions These are already defined in convert_glib.m4, which is included as-is. https://bugzilla.gnome.org/show_bug.cgi?id=783136 2017-06-05 Daniel Boles gtk-demo/demowindow: Remove unnecessary null check There is no way that the pointer d can become null here. 2017-06-04 Kjell Ahlstedt Gdk::Cursor: Make get_image() and get_surface() const-correct gdk_cursor_get_image() returns a pointer to a newly created GdkPixbuf. gdk_cursor_get_surface() returns a pointer to a newly created cairo_surface_t. get_image() and get_surface() can be const methods, and return non-const Gdk::Pixbuf and Cairo::Surface. 2017-06-01 Kjell Ahlstedt Docs: Update names of enumerators when _WRAP_ENUM generates enum class Fix hand-written documentation. 2017-06-01 Kjell Ahlstedt convert_gdk/gtk.m4: Remove obsolete conversions Remove _CONVERSIONs with removed classes, and _CONV_ENUMs with removed enums. Move a _CONVERSION of WidgetPath from convert_gdk.m4 to convert_gtk.m4. 2017-06-01 Kjell Ahlstedt gdk/src/types.hg: Remove some forward declarations Gdk::Font and Gdk::Color does not exist any more. Remove forward declarations of them. 2017-05-31 Kjell Ahlstedt Gtk: Use Gdk::Event instead of GdkEvent Use Gdk::Event and its subclasses. Bug 135978 2017-05-30 Kjell Ahlstedt Gdk::Event: Add operator bool(), make get_type() visible Event::get_type() is not skipped by doxygen. It's visible in other types of classes, e.g. _CLASS_BOXEDTYPE. It can be confusing with both get_type() and get_event_type(), even more so for someone who by mistake writes event.get_type() instead of event.get_event_type() and can't find get_type() in the documentation. Bug 135978 2017-05-29 Kjell Ahlstedt Gdk::Display, Seat, Window: Use Gdk::Event instead of GdkEvent Bug 135978 2017-05-29 Kjell Ahlstedt gdk/src/enums.hg: Shadow DELETE macro Like in event.hg, the DELETE macro from winnt.h interferes with an enumerator. Bug 135978 2017-05-29 Kjell Ahlstedt Gdk:Event: Split event.hg and event.ccg Split them into event.[hg|ccg] with the Event class and events.[hg|ccg] with all the subclasses. This split makes it easier to avoid cyclic inclusions (where a.h includes b.h, and b.h includes a.h). Bug 135978 2017-05-29 Kjell Ahlstedt Gtk::Widget: Remove property_events() Because it was removed from the GTK+ API: https://git.gnome.org/browse/gtk+/commit/?id=a72404dd5ab1874ac3d601cd94e0fa7184873851 2017-05-29 Murray Cumming Regenerate gtk .defs. 2017-05-29 Murray Cumming Regenerate gdk .defs. 2017-05-29 Murray Cumming Widget: Remove get/set/add events()/device_events(). Because they were removed from the GTK+ API: https://git.gnome.org/browse/gtk+/commit/?id=a72404dd5ab1874ac3d601cd94e0fa7184873851 2017-05-29 Murray Cumming ToolItem: Remove set/get_use_drag_window(). Because it was removed from the GTK+ API: https://git.gnome.org/browse/gtk+/commit/gtk/gtktoolitem.h?id=d9d0c56eb72cc433e21bf067fd8059f16e09b2a9 2017-05-29 Murray Cumming Gesture: Remove get/set/unset_window() and property. Because it was removed from the GTK+ API: https://git.gnome.org/browse/gtk+/commit/gtk/gtkgesture.h?id=02932bc406502aa88e36ff840a983e1bcb24eb25