[rep-gtk] GtkCellEditable from 2.12 API added -- GtkCellRenderer from 2.12 API added -- Base Functions for Gtk
- From: Christopher Bratusek <chrisb src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [rep-gtk] GtkCellEditable from 2.12 API added -- GtkCellRenderer from 2.12 API added -- Base Functions for Gtk
- Date: Tue, 5 Jan 2010 19:08:52 +0000 (UTC)
commit 99ce1c5f012e78abf38f6b2f557acc7e50945f1c
Author: Christopher Roy Bratusek <chris nanolx org>
Date: Tue Jan 5 20:08:21 2010 +0100
GtkCellEditable from 2.12 API added
-- GtkCellRenderer from 2.12 API added
-- Base Functions for GtkTreeViewColumn added
ChangeLog | 45 +++++++++++++
gtktree.defs | 209 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 254 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index d98b205..a11380f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,49 @@
2010-01-05 Christopher Bratusek <zanghar freenet de>
+ * gtktree.defs:
+ ****************** gtkcelleditable.h ************
+ GtkCellEditable (object)
+ gtk_cell_editable_start_editing
+ gtk_cell_editable_editing_done
+ gtk_cell_editable_remove_widget
+ == GtkCellEditable 2.12 API complete ==
+ ****************** gtkcellrenderer.h ************
+ GtkCellRenderer (object)
+ GtkCellRendererState (enum)
+ GtkCellRendererMode (enum)
+ gtk_cell_renderer_get_size
+ gtk_cell_renderer_render
+ gtk_cell_renderer_activate
+ gtk_cell_renderer_start_editing
+ gtk_cell_renderer_stop_editing
+ gtk_cell_renderer_set_fixed_size
+ gtk_cell_renderer_get_fixed_size
+ == GtkCellRenderer 2.12 API complete ==
+ ****************** gtktreeviewcolumn.h **********
+ GtkTreeViewColumn (object)
+ GtkTreeViewColumnSizing (enum)
+ gtk_tree_view_column_new
+ gtk_tree_view_column_pack_start
+ gtk_tree_view_column_pack_end
+ gtk_tree_view_column_clear
+ gtk_tree_view_column_add_attribute
+ gtk_tree_view_column_clear_attributes
+ gtk_tree_view_column_set_spacing
+ gtk_tree_view_column_get_spacing
+ gtk_tree_view_column_set_visible
+ gtk_tree_view_column_get_visible
+ gtk_tree_view_column_set_resizable
+ gtk_tree_view_column_get_resizable
+ gtk_tree_view_column_set_sizing
+ gtk_tree_view_column_get_sizing
+ gtk_tree_view_column_get_width
+ gtk_tree_view_column_set_fixed_width
+ gtk_tree_view_column_get_fixed_width
+ gtk_tree_view_column_set_min_width
+ gtk_tree_view_column_get_min_width
+ gtk_tree_view_column_set_max_width
+ gtk_tree_view_column_get_max_width
+ gtk_tree_view_column_clicked
+
* gtkfilechooser.defs:
****************** gtkfilechooser.h *************
gtk_file_chooser_set_preview_widget
diff --git a/gtktree.defs b/gtktree.defs
index ef6ae68..800cc38 100644
--- a/gtktree.defs
+++ b/gtktree.defs
@@ -262,6 +262,8 @@
; (GtkTreeModelForeachFunc func)
; (GPointer data)))
+;; GtkTreeSelection
+
(define-object GtkTreeSelection (GObject))
(define-func gtk_tree_selection_set_mode
@@ -309,6 +311,213 @@
; ((GtkTreeSelection selection)
; (GtkTreeModel model)))
+;; GtkCellEditable
+
+(define-object GtkCellEditable (GInterface))
+
+(define-func gtk_cell_editable_start_editing
+ none
+ ((GtkCellEditable editable)
+ (GdkEvent event)))
+
+(define-func gtk_cell_editable_editing_done
+ none
+ ((GtkCellEditable editable)))
+
+(define-func gtk_cell_editable_remove_widget
+ none
+ ((GtkCellEditable editable)))
+
+;; GtkCellRenderer
+
+(define-object GtkCellRenderer (GtkObject))
+
+(define-enum GtkCellRendererState
+ (selected GTK_CELL_RENDERER_SELECTED)
+ (prelit GTK_CELL_RENDERER_PRELIT)
+ (insensitive GTK_CELL_RENDERER_INSENSITIVE)
+ (sorted GTK_CELL_RENDERER_SORTED)
+ (focused GTK_CELL_RENDERER_FOCUSED))
+
+(define-enum GtkCellRendererMode
+ (inert GTK_CELL_RENDERER_MODE_INERT)
+ (activatable GTK_CELL_RENDERER_MODE_ACTIVATABLE)
+ (editable GTK_CELL_RENDERER_MODE_EDITABLE))
+
+(define-func gtk_cell_renderer_get_size
+ none
+ ((GtkCellRenderer cell)
+ (GtkWidget widget)
+ ((tvec GdkRectangle in) area)
+ (int xoffset)
+ (int yoffset)
+ (int width)
+ (int height)))
+
+(define-func gtk_cell_renderer_render
+ none
+ ((GtkCellRenderer cell)
+ (GdkWindow window)
+ (GtkWidget widget)
+ ((tvec GdkRectangle in) background_area)
+ ((tvec GdkRectangle in) cell_area)
+ ((tvec GdkRectangle in) expose_area)
+ (GtkCellRendererState state)))
+
+(define-func gtk_cell_renderer_activate
+ bool
+ ((GtkCellRenderer cell)
+ (GdkEvent event)
+ (GtkWidget widget)
+ ((tvec string in) path)
+ ((tvec GdkRectangle in) background_area)
+ ((tvec GdkRectangle in) cell_area)
+ (GtkCellRendererState state)))
+
+(define-func gtk_cell_renderer_start_editing
+ GtkCellEditable
+ ((GtkCellRenderer cell)
+ (GdkEvent event)
+ (GtkWidget widget)
+ ((tvec string in) path)
+ ((tvec GdkRectangle in) background_area)
+ ((tvec GdkRectangle in) cell_area)
+ (GtkCellRendererState state)))
+
+(define-func gtk_cell_renderer_stop_editing
+ none
+ ((GtkCellRenderer cell)
+ (bool stop)))
+
+(define-func gtk_cell_renderer_set_fixed_size
+ none
+ ((GtkCellRenderer cell)
+ (int width)
+ (int height)))
+
+(define-func gtk_cell_renderer_get_fixed_size
+ none
+ ((GtkCellRenderer cell)
+ (int width)
+ (int height)))
+
+;; GtkTreeViewColumn [Base]
+
+(define-object GtkTreeViewColumn (GtkObject))
+
+(define-enum GtkTreeViewColumnSizing
+ (grow-only GTK_TREE_VIEW_COLUMN_GROW_ONLY)
+ (autosize GTK_TREE_VIEW_COLUMN_AUTOSIZE)
+ (fixed GTK_TREE_VIEW_COLUMN_FIXED))
+
+(define-func gtk_tree_view_column_new
+ GtkTreeViewColumn
+ ())
+
+(define-func gtk_tree_view_column_pack_start
+ none
+ ((GtkTreeViewColumn column)
+ (GtkCellRenderer cell)
+ (bool expand)))
+
+(define-func gtk_tree_view_column_pack_end
+ none
+ ((GtkTreeViewColumn column)
+ (GtkCellRenderer cell)
+ (bool expand)))
+
+(define-func gtk_tree_view_column_clear
+ none
+ ((GtkTreeViewColumn column)))
+
+(define-func gtk_tree_view_column_add_attribute
+ none
+ ((GtkTreeViewColumn tv_column)
+ (GtkCellRenderer cell)
+ ((tvec string in) attr)
+ (int column)))
+
+(define-func gtk_tree_view_column_clear_attributes
+ none
+ ((GtkTreeViewColumn column)
+ (GtkCellRenderer cell)))
+
+(define-func gtk_tree_view_column_set_spacing
+ none
+ ((GtkTreeViewColumn column)
+ (int spacing)))
+
+(define-func gtk_tree_view_column_get_spacing
+ int
+ ((GtkTreeViewColumn column)))
+
+(define-func gtk_tree_view_column_set_visible
+ none
+ ((GtkTreeViewColumn column)
+ (bool visible)))
+
+(define-func gtk_tree_view_column_get_visible
+ bool
+ ((GtkTreeViewColumn column)))
+
+(define-func gtk_tree_view_column_set_resizable
+ none
+ ((GtkTreeViewColumn column)
+ (bool resizable)))
+
+(define-func gtk_tree_view_column_get_resizable
+ bool
+ ((GtkTreeViewColumn column)))
+
+(define-func gtk_tree_view_column_set_sizing
+ none
+ ((GtkTreeViewColumn column)
+ (GtkTreeViewColumnSizing sizing)))
+
+(define-func gtk_tree_view_column_get_sizing
+ GtkTreeViewColumnSizing
+ ((GtkTreeViewColumn column)))
+
+(define-func gtk_tree_view_column_get_width
+ int
+ ((GtkTreeViewColumn column)))
+
+(define-func gtk_tree_view_column_set_fixed_width
+ none
+ ((GtkTreeViewColumn column)
+ (int width)))
+
+(define-func gtk_tree_view_column_get_fixed_width
+ int
+ ((GtkTreeViewColumn column)))
+
+(define-func gtk_tree_view_column_set_min_width
+ none
+ ((GtkTreeViewColumn column)
+ (int width)))
+
+(define-func gtk_tree_view_column_get_min_width
+ int
+ ((GtkTreeViewColumn column)))
+
+(define-func gtk_tree_view_column_set_max_width
+ none
+ ((GtkTreeViewColumn column)
+ (int width)))
+
+(define-func gtk_tree_view_column_get_max_width
+ int
+ ((GtkTreeViewColumn column)))
+
+(define-func gtk_tree_view_column_clicked
+ none
+ ((GtkTreeViewColumn column)))
+
+;;; XXX Need GList Returntype support
+;;(define-func gtk_tree_view_column_get_cell_renderers)
+
+;; GtkTreeView
+
(define-object GtkTreeView (GtkContainer))
(define-func gtk_tree_view_new
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]