[gtkmm] Added Dialog::get_widget_for_response().
- From: Murray Cumming <murrayc src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gtkmm] Added Dialog::get_widget_for_response().
- Date: Fri, 27 Nov 2009 13:39:46 +0000 (UTC)
commit ba4e854d92d221f0e7c4902e00317f87317cef85
Author: Debarshi Ray <debarshir src gnome org>
Date: Mon Nov 2 14:38:21 2009 +0200
Added Dialog::get_widget_for_response().
* gtk/src/dialog.hg: Added get_widget_for_response(), wrapping
gtk_dialog_get_widget_for_response().
* gtk/src/gtk_methods.defs: Added the C function definition.
Bug #600411.
ChangeLog | 9 +++++++++
gtk/src/dialog.hg | 2 ++
gtk/src/gtk_methods.defs | 9 +++++++++
3 files changed, 20 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 0335d96..42c92e6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,14 @@
2009-10-30 Debarshi Ray <debarshi ray gmail com>
+ Added Dialog::get_widget_for_response().
+
+ * gtk/src/dialog.hg: Added get_widget_for_response(), wrapping
+ gtk_dialog_get_widget_for_response().
+ * gtk/src/gtk_methods.defs: Added the C function definition.
+ Bug #600411.
+
+2009-10-30 Debarshi Ray <debarshi ray gmail com>
+
Add CellRendererSpin and Spinner.
* gtk/src/cellrenderspin.[hg|ccg]:
diff --git a/gtk/src/dialog.hg b/gtk/src/dialog.hg
index 644c76e..9ec7cae 100644
--- a/gtk/src/dialog.hg
+++ b/gtk/src/dialog.hg
@@ -80,6 +80,8 @@ public:
_WRAP_METHOD(Button* add_button(const Gtk::StockID& stock_id, int response_id), gtk_dialog_add_button)
_WRAP_METHOD(void set_response_sensitive(int response_id, bool setting = true), gtk_dialog_set_response_sensitive)
_WRAP_METHOD(void set_default_response(int response_id), gtk_dialog_set_default_response)
+ _WRAP_METHOD(Widget* get_widget_for_response(int response_id), gtk_dialog_get_widget_for_response)
+ _WRAP_METHOD(const Widget* get_widget_for_response(int response_id) const, gtk_dialog_get_widget_for_response, constversion)
_WRAP_METHOD(int get_response_for_widget(const Gtk::Widget& widget) const, gtk_dialog_get_response_for_widget)
_WRAP_METHOD(void set_has_separator(bool setting = true), gtk_dialog_set_has_separator)
_WRAP_METHOD(bool get_has_separator() const, gtk_dialog_get_has_separator)
diff --git a/gtk/src/gtk_methods.defs b/gtk/src/gtk_methods.defs
index d92237f..ad8ee35 100644
--- a/gtk/src/gtk_methods.defs
+++ b/gtk/src/gtk_methods.defs
@@ -9255,6 +9255,15 @@
)
)
+(define-method get_widget_for_response
+ (of-object "GtkDialog")
+ (c-name "gtk_dialog_get_widget_for_response")
+ (return-type "GtkWidget*")
+ (parameters
+ '("gint" "response_id")
+ )
+)
+
(define-method get_response_for_widget
(of-object "GtkDialog")
(c-name "gtk_dialog_get_response_for_widget")
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]