[rep-gtk] added GtkScaleButton from 2.12 API (complete)



commit 8b7908a432c4275b30f43299307230bba499a558
Author: chrisb <zanghar freenet de>
Date:   Wed Jul 29 19:55:26 2009 +0200

    added GtkScaleButton from 2.12 API (complete)

 ChangeLog |    8 ++++++++
 gtk.defs  |   42 +++++++++++++++++++++++++++++++++++++++---
 2 files changed, 47 insertions(+), 3 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 2e8290d..2b1b842 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -42,6 +42,14 @@
 	gtk_link_button_get_uri
 	gtk_link_button_set_uri
 	== GtkLinkButton 2.12 API complete ==
+	*********** gtkscalebutton.h ***********
+	gtk_scale_button_new
+	gtk_scale_button_set_icons
+	gtk_scale_button_get_value
+	gtk_scale_button_set_value
+	gtk_scale_button_get_adjustment
+	gtk_scale_button_set_adjustment
+	== GtkScaleButton 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 f9965b1..1d9e9b9 100644
--- a/gtk.defs
+++ b/gtk.defs
@@ -4796,7 +4796,7 @@
   ((string font)))
 
 (define-func gtk_font_button_get_title
-  string
+  char
   ((GtkFontButton button)))
 
 (define-func gtk_font_button_set_title
@@ -4823,7 +4823,7 @@
    (bool option)))
 
 (define-func gtk_font_button_get_font_name
-  string
+  char
   ((GtkFontButton button)))
 
 (define-func gtk_font_button_set_font_name
@@ -4863,7 +4863,7 @@
    (string label)))
 
 (define-func gtk_link_button_get_uri
-  string
+  char
   ((GtkLinkButton button)))
 
 (define-func gtk_link_button_set_uri
@@ -4871,6 +4871,41 @@
   ((GtkLinkButton button)
    (string uri)))
 
+;; GtkScaleButton
+
+(define-object GtkScaleButton (GtkButton))
+
+(define-func gtk_scale_button_new
+  GtkWidget
+  ((GtkIconSize size)
+   (double min)
+   (double max)
+   (double step)
+   (string icons)))
+
+(define-func gtk_scale_button_set_icons
+  none
+  ((GtkScaleButton button)
+   (string icons)))
+
+(define-func gtk_scale_button_get_value
+  double
+  ((GtkScaleButton button)))
+
+(define-func gtk_scale_button_set_value
+  none
+  ((GtkScaleButton button)
+   (double value)))
+
+(define-func gtk_scale_button_get_adjustment
+  GtkAdjustment
+  ((GtkScaleButton button)))
+
+(define-func gtk_scale_button_set_adjustment
+  none
+  ((GtkScaleButton button)
+   (GtkAdjustment adjustment)))
+
 ;; More defs files
 
 (include "gtktext.defs")
@@ -4879,6 +4914,7 @@
 
 (options
  ;; XXX remove the enable-broken when possible
+ ;; XXX GtkTree{,Item} and c_tree{,_item} still force us to use it
  (includes "#define GTK_ENABLE_BROKEN\n#include <gtk/gtk.h>")
  (init-func "sgtk_init_gtk_gtk_glue")
  (other-inits "sgtk_init_gtk_glib_glue")



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]