2011-02-02 Murray Cumming DragContext: Remove the deprecated constructor and create() method. * gdk/src/dragcontext.hg: There should be no deprecated API in gtkmm 3.0.0. 2011-02-02 Murray Cumming Fix the build against GTK+ from git master. * gdk/src/gdk_methods.defs: Regenerated with h2defs.py. * gdk/src/display.[hg|ccg]: selection_send_notify(): This now takes a Gdk::Window instead of a (now removed) GdkNativeWindow. Remove the use of gdk_drag_get_protocol_for_display(), which was removed from GTK+. * gdk/src/types.hg: Remove the mention of GdkNativeWindow. 2011-02-02 Murray Cumming Button: Restore the clicked() method. * gtk/src/button.hg: gtk_button_clicked() is not deprecated. Fix that mistake. Thanks to Aurimas Černius. 2011-02-02 Murray Cumming Pixbuf: Minor documentation improvement. * gdk/src/pixbuf.hg: Dealt with a TODO comment. 2011-02-01 Murray Cumming Require the recent glibmm version for the std::vector utilities. * configure.ac: We actually check for giomm, but that brings in glibmm. 2011-02-01 Murray Cumming Plug, Socket: Fix the build by using Window as ::Window. * gtk/src/plug.[hg|ccg]: * gtk/src/socket.hg: Include the namespacing-destroying gtkx.h and use ::Window when we mean the nasty X11 Window type. 2011-02-01 Murray Cumming Display, Event: Remove ClientEvent methods. * gdk/src/gdk_methods.defs: Regenerated with h2defs.py. * gdk/src/display.hg: Remove add_client_message_filter(). * gdk/srd/screen.hg: Remove send_client_message(). * gtk/src/widget.hg: Remove client_event signal. 2011-02-01 Murray Cumming Plug, Socket: Use the X11 Window type. Not my idea. * gtk/src/gtk_methods.defs: Regenerated with h2defs.py. * gtk/src/plug.hg: * gtk/src/socket.hg: Use the (awfully, stupidly, no-namespacingly named, but historical) Window X11 type instead of GdkNativeWindow, as now done in the C API. Anyone including these headers may now expect compiler and linker confusion. Luckily they are not included by gtkmm.h. 2011-01-30 Murray Cumming Fix the build with the latest GTK+ from git master. * tools/extra_defs_gen/generate_defs_gtk.cc: Include gtkx.h and put ifdefs around the use of GTK_TYPE_PLUG and GTK_TYPE_SOCKET. * gtk/src/plug.ccg: * gtk/src/socket.ccg: Include the new gtkx.h header, because the declaration have moved. 2011-01-28 Murray Cumming Fix make check. * demos/gtk-demo/example_stockbrowser.cc: Adapt for the previous commit that changed IconSet to need RefPtr. 2011-01-28 Murray Cumming IconSet: Use this via a RefPtr. * gtk/src/iconset.[h|cc]: Use this via RefPtr, because that is what the C API expects, though this is not a GObject. * gtk/gtkmm/stock.[h|cc]: * gtk/src/iconfactory.hg: * gtk/src/image.[hg|ccg]: * gtk/src/stylecontext.hg: * tools/m4/convert_gtk.m4: Adapt. 2011-01-28 Murray Cumming Widget: Add some methods. * gtk/src/widget.hg: Added set_state_flags(), get_state_flags(), reset_state_flags(), set_device_enable(), get_device_enabled(), and reset_style(). 2011-01-28 Murray Cumming Widget: Simplify the get_request_mode vfunc wrapping. * gtk/src/widget.[hg|ccg]: Use a simple _WRAP_VFUNC() now that the C code behaves properly. See https://bugzilla.gnome.org/show_bug.cgi?id=639073#c17 2011-01-28 Murray Cumming Wrapped some new GTK+ functions, removing some too. * gtk/src/gtk_methods.defs: Regenerated with h2defs.py. * gtk/src/cellarea.hg: Remove set_style_detail() and get_style_detail(). * gtk/src/cellrenderer.hg: Added get_state(). * gtk/src/textview.hg: Added get_cursor_locations(). 2011-01-27 Krzesimir Nowak Fixed compilation errors introduced in previous changes. * gdk/src/types.ccg: * gdk/src/types.hg: Added traits for Glib::ustring GdkAtoms. * gdk/src/display.ccg: * gdk/src/window.ccg: Use new traits. * gtk/src/textbuffer.ccg: Ditto. And remove the bogus word. 2011-01-27 Krzesimir Nowak Adapted Gdk and Gtk to vectorutils. * gdk/gdkmm/list.h: Deleted. * gdk/gdkmm/filelist.am: Removed list.h from build. * gdk/src/color.hg: * gdk/src/device.ccg: * gdk/src/device.hg: * gdk/src/devicemanager.ccg: * gdk/src/devicemanager.hg: * gdk/src/display.ccg: * gdk/src/dragcontext.ccg: * gdk/src/dragcontext.hg: * gdk/src/pixbuf.ccg: * gdk/src/pixbuf.hg: * gdk/src/pixbufformat.hg: * gdk/src/rgba.hg: * gdk/src/screen.hg: * gdk/src/timecoord.hg: * gdk/src/types.hg: * gdk/src/window.ccg: * gdk/src/window.hg: Adapted Gdk to vectorutils. * gtk/gtkmm/listviewtext.cc: * gtk/gtkmm/stock.cc: * gtk/gtkmm/stock.h: * gtk/gtkmm/stockid.h: * gtk/gtkmm/targetentry.h: * gtk/src/aboutdialog.ccg: * gtk/src/aboutdialog.hg: * gtk/src/action.ccg: * gtk/src/action.hg: * gtk/src/actiongroup.ccg: * gtk/src/actiongroup.hg: * gtk/src/application.ccg: * gtk/src/application.hg: * gtk/src/box.hg: * gtk/src/builder.ccg: * gtk/src/builder.hg: * gtk/src/celllayout.ccg: * gtk/src/celllayout.hg: * gtk/src/clipboard.ccg: * gtk/src/clipboard.hg: * gtk/src/colorselection.ccg: * gtk/src/colorselection.hg: * gtk/src/container.ccg: * gtk/src/container.hg: * gtk/src/dialog.ccg: * gtk/src/dialog.hg: * gtk/src/enums.hg: * gtk/src/filechooser.ccg: * gtk/src/filechooser.hg: * gtk/src/iconinfo.ccg: * gtk/src/iconinfo.hg: * gtk/src/iconset.ccg: * gtk/src/iconset.hg: * gtk/src/icontheme.ccg: * gtk/src/icontheme.hg: * gtk/src/iconview.ccg: * gtk/src/iconview.hg: * gtk/src/liststore.ccg: * gtk/src/liststore.hg: * gtk/src/main.ccg: * gtk/src/main.hg: * gtk/src/menushell.ccg: * gtk/src/menushell.hg: * gtk/src/notebook.hg: * gtk/src/papersize.ccg: * gtk/src/papersize.hg: * gtk/src/printer.ccg: * gtk/src/printer.hg: * gtk/src/printsettings.ccg: * gtk/src/printsettings.hg: * gtk/src/recentchooser.ccg: * gtk/src/recentchooser.hg: * gtk/src/recentinfo.ccg: * gtk/src/recentinfo.hg: * gtk/src/recentmanager.ccg: * gtk/src/recentmanager.hg: * gtk/src/scalebutton.ccg: * gtk/src/scalebutton.hg: * gtk/src/selectiondata.ccg: * gtk/src/selectiondata.hg: * gtk/src/sizegroup.ccg: * gtk/src/sizegroup.hg: * gtk/src/table.hg: * gtk/src/targetlist.ccg: * gtk/src/targetlist.hg: * gtk/src/textbuffer.ccg: * gtk/src/textbuffer.hg: * gtk/src/textchildanchor.ccg: * gtk/src/textchildanchor.hg: * gtk/src/textiter.ccg: * gtk/src/textiter.hg: * gtk/src/toolbar.hg: * gtk/src/treemodel.ccg: * gtk/src/treemodel.hg: * gtk/src/treepath.hg: * gtk/src/treeselection.ccg: * gtk/src/treeselection.hg: * gtk/src/treestore.ccg: * gtk/src/treestore.hg: * gtk/src/treeview.ccg: * gtk/src/treeview.hg: * gtk/src/treeviewcolumn.hg: * gtk/src/uimanager.ccg: * gtk/src/uimanager.hg: * gtk/src/widget.ccg: * gtk/src/widget.hg: * gtk/src/window.ccg: * gtk/src/window.hg: Adapted Gtk to vectorutils. * demos/gtk-demo/example_change_display.cc: * demos/gtk-demo/example_textview.cc: * tests/refcount_dialog/main.cc: Fixed tests and examples. 2011-01-27 Murray Cumming Documentation: Added some since tags. * gtk/src/combobox.hg: Added newin{2,24} to some new methods that I just put in the gtkmm-2-24 branch too. 2011-01-19 Kjell Ahlstedt Widget (and others): Add methods needed by custom widgets. * gtk/src/cssprovider.hg: Added _WRAP_CREATE. Added refreturn on get_default() and get_named(). * gtk/src/stylecontext.ccg: The 'get' methods return a copy of the local objects, not a pointer to them. * gtk/src/gtk_vfuncs.defs: * gtk/src/widget.[hg|ccg]: Added vfuncs get_request_mode, get_preferred_[width|height_for_width|height|width_for_height]. Bug 639073. 2011-01-23 Armin Burgmeier Widget: Wrap the style-updated signal. * gtk/src/widget.hg: Wrap the style-updated signal 2011-01-21 Murray Cumming Application: Added run() with no parameters. * gtk/src/application.[hg|ccg]: Add a run() that takes no argc, argv parameters, though see my TODO comments. 2011-01-20 Murray Cumming Gtk::Application: Let run(window) actually return. * gtk/src/application.[hg|ccg]: add_window(): Hand-code this, so we can respond to the window's hide signal. This is because GtkApplication actually responds to window destruction, not window closing. 2011-01-20 Murray Cumming Gtk::Application: Try to make this a replacement for Gtk::Main. * gtk/src/application.[hg|ccg]: Add a copy of init_gtkmm_internals() from Gtk::Main's main.cc and call it from the constructor, so that Gtk::Application can be a replacement for Gtk::Main. Add a constructor that takes argc and argv, so we can completely initialize GTK+ and gtkmm, because doing it in run() will be too late for some code: See bug #639925. Add a run() that does not take argc, argv, for when you have supplied them to the constructor instead. Add a run() that takes a window, like Gtk::Main::run(), so it can return when the window closes. However, see bug #639931 about it really responding to destruction, not closing. We show the window in an activate signal handler, because GTK+ complains if we don't have such a handler. See bug #640042. 2011-01-18 Murray Cumming Range: Added get/set_round_digits() and property. * gtk/src/range.hg: This API Is new in GTK+ in git master. 2011-01-16 Murray Cumming Added NumerableIcon. * gtk/src/numerableicon.[hg|ccg]: Added NumerableIcon. * gtk/src/filelist.am: Mentioned the new files. * gtk/gtkmm.h: Include the new header. 2011-01-15 Murray Cumming ListViewText: Rename methods to be consistent with ComboBoxText. * gtk/gtkmm/listviewtext.[h|cc]: Rename append_text(), insert_text(), and prepend_text() to append(), insert() and prepend() because that is what ComboBoxText now uses (because it has other append overloads). 2011-01-15 Murray Cumming ComboBoxText: Remove the constructor that takes a model. * gtk/src/comboboxtext.[hg|ccg]: Remove the (model, bool) constructor because there is no such gtk_combo_box_new_with_model() function to match, and because this would be silly. This was mentioned in bug #619656 by Kjell Ahlstedt. 2011-01-14 Murray Cumming ComboBox: Documentation: Correct the overview * gtk/src/combobox.hg: Update the overview comment now that the documentation for the C API has been improved. This removes the mention of OptionMenu, mention has-entry, and talks more about ComboBoxEntry. This was mentioned in bug #619656 by Kjell Ahlstedt. 2011-01-14 Murray Cumming ComboBoxText: Documentation: Correct the overview. * gtk/src/comboboxtext.hg: Mention append(), etc, instead of append_text(), etc. Bug #638405 (Dingeman van der Laan) 2011-01-13 Murray Cumming Window: Correct my broken begin_drag() implementation. * gdk/src/window.ccg: gdk_drag_begin() takes a GList*, not an array. 2011-01-14 Murray Cumming DragContext: Deprecate create(), adding Window::drag_begin(). * gdk/src/dragcontext.hg: Deprecate the constructor and create(), because the equivalent gdk_drag_context_new() is deprecated. * gdk/src/window.[hg|ccg]: Added begin_drag(), wrapping gdk_drag_begin(), mentioned in the deprecation comment. * tools/m4/convert_gdk.m4: Added a DragContext conversion. 2011-01-14 Murray Cumming Widget: Make some methods protected. * gtk/src/widget.hg: set_window(), set_has_window(), and get_requisition() should only be used by the widget itself, in derived classes, so they can be protected, to simplify the public API. 2011-01-13 Murray Cumming Documentation: Remove mentions of Pixmap. * gdk/src/window.hg: Remove declaration of set_icon(pixmap), which had no definition. * gtk/src/bin.ccg: * gtk/src/button.hg: * gtk/src/checkbutton.hg: * gtk/src/offscreenwindow.hg: * gtk/src/togglebutton.hg: Remove or replace mentions of Gdk::Pixmap in the documentation. 2011-01-13 Murray Cumming Documentation: Don't mention non-existant Gdk::Colormap class. * gdk/src/color.hg: * gdk/src/screen.hg: * gdk/src/types.hg: * gdk/src/visual.hg: Remove mentions of Colormap, which no longer exists and which doesn't seem to need any replacement. 2011-01-11 Kjell Ahlstedt Widget::set_window(): Increase the ref count of the Gdk::Window. * gdk/src/widget.[hg|ccg]: set_window() increases the ref count of the Gdk::Window, since gtk_widget_set_window() does not. Bug #606903 (Hammered)