[gtkmm] MenuItem, MenuShell: Add signals.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtkmm] MenuItem, MenuShell: Add signals.
- Date: Mon, 26 Mar 2012 16:47:00 +0000 (UTC)
commit 3ef4db453b2f66a35ead9b0ce0489595986776e1
Author: Murray Cumming <murrayc murrayc com>
Date: Mon Mar 26 18:45:02 2012 +0200
MenuItem, MenuShell: Add signals.
* gtk/src/menuitem.hg: Add signal_select() and signal_deselect(),
* gtk/src/menushell.hg: Add signal_insert().
ChangeLog | 7 +++++++
gtk/src/menuitem.hg | 4 ++++
gtk/src/menushell.hg | 3 +++
3 files changed, 14 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index c0a5ed9..50d1f8f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -14,6 +14,13 @@
2012-03-26 Murray Cumming <murrayc murrayc com>
+ MenuItem, MenuShell: Add signals.
+
+ * gtk/src/menuitem.hg: Add signal_select() and signal_deselect(),
+ * gtk/src/menushell.hg: Add signal_insert().
+
+2012-03-26 Murray Cumming <murrayc murrayc com>
+
ComboBox: Add signal_format_entry_text().
* gtk/src/gtk_signals.defs: Correct the costness of the gchar* result.
diff --git a/gtk/src/menuitem.hg b/gtk/src/menuitem.hg
index 42c686d..4ac8936 100644
--- a/gtk/src/menuitem.hg
+++ b/gtk/src/menuitem.hg
@@ -95,6 +95,10 @@ public:
_WRAP_SIGNAL(void toggle_size_request(int* requisition), "toggle_size_request")
_WRAP_SIGNAL(void toggle_size_allocate(int allocation), "toggle_size_allocate")
+ //TODO: Remove no_default_handler when we can break ABI
+ _WRAP_SIGNAL(void select(), "select", no_default_handler)
+ _WRAP_SIGNAL(void deselect(), "deselect", no_default_handler)
+
void accelerate(Window& window);
_WRAP_PROPERTY("right-justified", bool)
diff --git a/gtk/src/menushell.hg b/gtk/src/menushell.hg
index 5db996f..928162c 100644
--- a/gtk/src/menushell.hg
+++ b/gtk/src/menushell.hg
@@ -66,6 +66,9 @@ public:
_WRAP_SIGNAL(void selection_done(), "selection_done")
_WRAP_SIGNAL(gboolean move_selected(int distance), "move-selected")
+ //TODO: Remove no_default_handler when we can break ABI.
+ _WRAP_SIGNAL(void insert(Widget* child, int position), "insert", no_default_handler)
+
//Keybinding signals:
_IGNORE_SIGNAL("move_current")
_IGNORE_SIGNAL("activate_current")
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]