[rep-gtk] implemented GtkComboBox from 2.12 API



commit 0ec6bae599d1673465f8d922a75bcf35b6efc28a
Author: chrisb <zanghar freenet de>
Date:   Thu Oct 1 22:26:15 2009 +0200

    implemented GtkComboBox from 2.12 API

 ChangeLog        |   30 +++++++++++++
 Makefile.in      |    3 +-
 gtk.defs         |    9 ++--
 gtkcombobox.defs |  120 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 155 insertions(+), 7 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index a367b97..f9fb103 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,33 @@
+2009-10-01  Christopher Bratusek <zanghar freenet de>
+	* gtkcombobox.defs: GtkComboBox implemented
+	*********** gtkcombobox.h ***********
+	gtk_combo_box_new
+	gtk_combo_box_new_with_model
+	gtk_combo_box_set_wrap_width
+	gtk_combo_box_get_wrap_width
+	gtk_combo_box_set_row_span_column
+	gtk_combo_box_get_row_span_column
+	gtk_combo_box_set_column_span_column
+	gtk_combo_box_get_column_span_column
+	gtk_combo_box_set_add_tearoffs
+	gtk_combo_box_get_add_tearoffs
+	gtk_combo_box_set_title
+	gtk_combo_box_get_title
+	gtk_combo_box_set_focus_on_click
+	gtk_combo_box_get_focus_on_click
+	gtk_combo_box_set_active
+	gtk_combo_box_get_active
+	gtk_combo_box_set_active_iter
+	gtk_combo_box_get_active_iter
+	gtk_combo_box_set_model
+	gtk_combo_box_get_model
+	gtk_combo_box_append_text
+	gtk_combo_box_insert_text
+	gtk_combo_box_prepend_text
+	gtk_combo_box_remove_text
+	gtk_combo_box_get_active_text
+	== GtkComboBox 2.12 API complete ==
+
 2009-09-24  Christopher Bratusek <zanghar freenet de>
 	* rep-gtk.ebuild.in: small update
 
diff --git a/Makefile.in b/Makefile.in
index cd56548..6da4a5b 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -105,5 +105,4 @@ gtk-2 :
 	mkdir gtk-2
 
 # hand-needed dependences
-gtk-glue.c : gtk.defs gtktext.defs gtktree.defs gtkbuilder.defs gtkuimanager.defs build-gtk.jlc
-
+gtk-glue.c : gtk.defs gtktext.defs gtktree.defs gtkbuilder.defs gtkuimanager.defs gtkcombobox.defs build-gtk.jlc
diff --git a/gtk.defs b/gtk.defs
index dff323b..b63cb3e 100644
--- a/gtk.defs
+++ b/gtk.defs
@@ -4,7 +4,7 @@
 
 ;; GtkButton, GtkToggleButton, GtkCheckButton, GtkRadioButton, GtkFontButton
 ;; GtkLinkButton, GtkColorButton, GtkVolumeButton, GtkStatusIcon
-;; GtkBuilder GtkUIManager GtkActionGroup GtkAction
+;; GtkBuilder GtkUIManager GtkActionGroup GtkAction GtkComboBox
 
 ;; updated for gtk+ 1.3:
 
@@ -5172,7 +5172,6 @@
   bool
   ((GtkAccelLabel label)))
 
-
 ;; GtkAccelLabel
 
 ;; GtkAction
@@ -5180,10 +5179,10 @@
 (define-object GtkAction (GtkObject))
 
 (define-func gtk_action_new
-  GtkAction 
+  GtkAction
   ((string name)
    (string label (= 0))
-   (string tooltip (=  0)) 
+   (string tooltip (=  0))
    (string stock_id (= 0))))
 
 (define-object GtkActionGroup (GtkObject))
@@ -5203,13 +5202,13 @@
    (GtkAction action)
    (string accelerator)))
 
-
 ;; More defs files
 
 (include "gtktext.defs")
 (include "gtktree.defs")
 (include "gtkbuilder.defs")
 (include "gtkuimanager.defs")
+(include "gtkcombobox.defs")
 
 ;; Options
 
diff --git a/gtkcombobox.defs b/gtkcombobox.defs
new file mode 100644
index 0000000..ac75aab
--- /dev/null
+++ b/gtkcombobox.defs
@@ -0,0 +1,120 @@
+;; -*- lisp -*-
+
+;; GtkComboBox
+
+(define-object GtkComboBox (GObject))
+
+(define-func gtk_combo_box_new
+  GtkWidget
+  ())
+
+(define-func gtk_combo_box_new_with_model
+  GtkWidget
+  ((GtkTreeModel model)))
+
+(define-func gtk_combo_box_set_wrap_width
+  none
+  ((GtkComboBox box)
+   (int width)))
+
+(define-func gtk_combo_box_get_wrap_width
+  int
+  ((GtkComboBox box)))
+
+(define-func gtk_combo_box_set_row_span_column
+  none
+  ((GtkComboBox box)
+   (int column)))
+
+(define-func gtk_combo_box_get_row_span_column
+  int
+  ((GtkComboBox box)))
+
+(define-func gtk_combo_box_set_column_span_column
+  none
+  ((GtkComboBox box)
+   (int column)))
+
+(define-func gtk_combo_box_get_column_span_column
+  int
+  ((GtkComboBox box)))
+
+(define-func gtk_combo_box_set_add_tearoffs
+  none
+  ((GtkComboBox box)
+   (bool tearoffs)))
+
+(define-func gtk_combo_box_get_add_tearoffs
+  bool
+  ((GtkComboBox box)))
+
+(define-func gtk_combo_box_set_title
+  none
+  ((GtkComboBox box)
+   ((tvec string in) title)))
+
+(define-func gtk_combo_box_get_title
+  static_string
+  ((GtkComboBox box)))
+
+(define-func gtk_combo_box_set_focus_on_click
+  none
+  ((GtkComboBox box)
+   (bool focus)))
+
+(define-func gtk_combo_box_get_focus_on_click
+  bool
+  ((GtkComboBox box)))
+
+(define-func gtk_combo_box_set_active
+  none
+  ((GtkComboBox box)
+   (int active)))
+
+(define-func gtk_combo_box_get_active
+  int
+  ((GtkComboBox box)))
+
+(define-func gtk_combo_box_set_active_iter
+  none
+  ((GtkComboBox box)
+   (GtkTreeIter iter)))
+
+(define-func gtk_combo_box_get_active_iter
+  bool
+  ((GtkComboBox box)
+   (GtkTreeIter iter)))
+
+(define-func gtk_combo_box_set_model
+  none
+  ((GtkComboBox box)
+   (GtkTreeModel model)))
+
+(define-func gtk_combo_box_get_model
+  GtkTreeModel
+  ((GtkComboBox box)))
+
+(define-func gtk_combo_box_append_text
+  none
+  ((GtkComboBox box)
+   ((tvec string in) text)))
+
+(define-func gtk_combo_box_insert_text
+  none
+  ((GtkComboBox box)
+   (int position)
+   ((tvec string in) text)))
+
+(define-func gtk_combo_box_prepend_text
+  none
+  ((GtkComboBox box)
+   ((tvec string in) text)))
+
+(define-func gtk_combo_box_remove_text
+  none
+  ((GtkComboBox box)
+   (int position)))
+
+(define-func gtk_combo_box_get_active_text
+  static_string
+  ((GtkComboBox box)))



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