[rep-gtk] updated GtkButton to 2.12 API (complete, execpt gtk_button_get_alignment)
- From: Christopher Bratusek <chrisb src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [rep-gtk] updated GtkButton to 2.12 API (complete, execpt gtk_button_get_alignment)
- Date: Wed, 29 Jul 2009 16:29:48 +0000 (UTC)
commit eca58166e3dcead361a82a32ffec220160d036bb
Author: chrisb <zanghar freenet de>
Date: Wed Jul 29 18:28:35 2009 +0200
updated GtkButton to 2.12 API (complete, execpt gtk_button_get_alignment)
ChangeLog | 14 ++++++++++++++
gtk.defs | 42 +++++++++++++++++++++++++++++++++++++++++-
2 files changed, 55 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 5cd3e0c..214f720 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,17 @@
+2009-07-29 Christopher Bratusek <zanghar freenet de>
+ * gtk.defs: gtk+ 2.12 API added:
+ *********** gtkbutton.h ***********
+ gtk_button_set_focus_on_click
+ gtk_button_get_focus_on_click
+ gtk_button_set_alignment
+ gtk_button_get_alignment [not working, not compiled]
+ gtk_button_set_image
+ gtk_button_get_image
+ gtk_button_set_image_position
+ gtk_button_get_image_position
+ Changed subtype of GtkButton from GtkContainer to GtkBin
+ == GtkButton 2.12 API complete ==
+
2009-07-15 Christopher Bratusek <zanghar freenet de>
* configure.in: small improvement
diff --git a/gtk.defs b/gtk.defs
index 622d336..3148d2d 100644
--- a/gtk.defs
+++ b/gtk.defs
@@ -2111,7 +2111,7 @@
;;; Button
-(define-object GtkButton (GtkContainer)
+(define-object GtkButton (GtkBin)
(fields
(bool in_button)
(bool button_down)))
@@ -2188,6 +2188,46 @@
bool
((GtkButton button)))
+(define-func gtk_button_set_focus_on_click
+ none
+ ((GtkButton button)
+ (bool focus_on_click)))
+
+(define-func gtk_button_get_focus_on_click
+ bool
+ ((GtkButton button)))
+
+(define-func gtk_button_set_alignment
+ none
+ ((GtkButton button)
+ (double xalign)
+ (double yalin)))
+
+;; XXX not working!
+;;(define-func gtk_button_get_alignment
+;; none
+;; ((GtkButton button)
+;; (double xalign)
+;; (double yalin)))
+
+(define-func gtk_button_set_image
+ none
+ ((GtkButton button)
+ (GtkImage image)))
+
+(define-func gtk_button_get_image
+ GtkWidget
+ ((GtkButton button)))
+
+(define-func gtk_button_set_image_position
+ none
+ ((GtkButton button)
+ (GtkPositionType position)))
+
+(define-func gtk_button_get_image_position
+ GtkPositionType
+ ((GtkButton button)))
+
;;; ToggleButton
(define-object GtkToggleButton (GtkButton))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]