[gtkmm] Added a const version of get_drop_item().
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtkmm] Added a const version of get_drop_item().
- Date: Mon, 22 Mar 2010 08:04:25 +0000 (UTC)
commit f465c23068137a88c86bd685dc78925a6c5b9a84
Author: Murray Cumming <murrayc murrayc com>
Date: Mon Mar 22 09:03:41 2010 +0100
Added a const version of get_drop_item().
ChangeLog | 16 ++++++++++------
gtk/src/toolpalette.hg | 1 +
2 files changed, 11 insertions(+), 6 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 6f8f4b8..461b9ab 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2010-03-22 Murray Cumming <murrayc murrayc com>
+
+ * gtk/src/toolpalette.hg: Added a const version of get_drop_item().
+
2010-03-19 Murray Cumming <murrayc murrayc com>
Regenerated C documentation XML files.
@@ -10,7 +14,7 @@
Demo: Fix use of deprecated API.
* configure.ac: Add PANGOMM to the list of deprecations to check for.
- * demos/Makefile.am: Add GTKMM's own deprecation defines so we don't ever use
+ * demos/Makefile.am: Add GTKMM's own deprecation defines so we don't ever use
deprecated API in this code.
* demos/gtk-demo/example_colorsel.cc:
* demos/gtk-demo/example_uimanager.cc: Correct use of deprecated API.
@@ -40,7 +44,7 @@
* gtk/src/toolitem.hg: Added get_text_alignment(), get_text_orientation(),
get_text_size_group().
- * gtk/src/toolshell.hg: Added get_text_orientation(), get_text_alignment(),
+ * gtk/src/toolshell.hg: Added get_text_orientation(), get_text_alignment(),
get_ellipsize_mode(), get_text_size_group()
* tools/m4/convert_gtk.m4: Added SizeGroup conversions.
@@ -67,14 +71,14 @@
* gtk/src/table.hg:
* gtk/src/tearoffmenuitem.hg:
* gtk/src/textview.hg:
- * gtk/src/widget.[hg|ccg]: Replace uses of GSEAL()ed struct fields where
- possible by using new C functions. But some have no replacement so
+ * gtk/src/widget.[hg|ccg]: Replace uses of GSEAL()ed struct fields where
+ possible by using new C functions. But some have no replacement so
we must undef GSEAL_ENABLE in the .cpp file to keep our now-deprecated API.
* gtk/src/printer.hg: Add get_hard_margins().
* gtk/src/viewport.hg: Added get_bin_window().
- * gtk/src/window.[hg|ccg]: Added get_window_type(), deprecating
- get_is_toplevel() and get_is_popup(). Removed get_is_dialog() because it
+ * gtk/src/window.[hg|ccg]: Added get_window_type(), deprecating
+ get_is_toplevel() and get_is_popup(). Removed get_is_dialog() because it
never had any implmentation, so nobody could be using it.
2010-03-10 Murray Cumming <murrayc murrayc com>
diff --git a/gtk/src/toolpalette.hg b/gtk/src/toolpalette.hg
index fa9c131..5593c56 100644
--- a/gtk/src/toolpalette.hg
+++ b/gtk/src/toolpalette.hg
@@ -73,6 +73,7 @@ public:
_WRAP_METHOD(ToolbarStyle get_style() const, gtk_tool_palette_get_style)
_WRAP_METHOD(ToolItem* get_drop_item(int x, int y), gtk_tool_palette_get_drop_item)
+ _WRAP_METHOD(const ToolItem* get_drop_item(int x, int y) const, gtk_tool_palette_get_drop_item, constversion)
//This conversion is needed because of https://bugzilla.gnome.org/show_bug.cgi?id=567729#c37
#m4 _CONVERSION(`GtkWidget*',`ToolItemGroup*',`Glib::wrap(GTK_TOOL_ITEM_GROUP($3))')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]