gtkmm r1106 - in branches/gtkmm-2-12: . gtk/src



Author: daniel
Date: Fri Mar  6 16:51:44 2009
New Revision: 1106
URL: http://svn.gnome.org/viewvc/gtkmm?rev=1106&view=rev

Log:
* gtk/src/gtk_enums_maemo.defs: New separate defs file for the
changes in the Maemo fork of GTK+.
* gtk/src/gtk_methods_maemo.defs: Likewise.
* gtk/src/gtk.defs: Include the Maemo defs files.
* gtk/src/Makefile.am (files_defs): Add the new defs files.

Added:
   branches/gtkmm-2-12/gtk/src/gtk_enums_maemo.defs
   branches/gtkmm-2-12/gtk/src/gtk_methods_maemo.defs
Modified:
   branches/gtkmm-2-12/ChangeLog
   branches/gtkmm-2-12/gtk/src/Makefile.am
   branches/gtkmm-2-12/gtk/src/gtk.defs

Modified: branches/gtkmm-2-12/gtk/src/Makefile.am
==============================================================================
--- branches/gtkmm-2-12/gtk/src/Makefile.am	(original)
+++ branches/gtkmm-2-12/gtk/src/Makefile.am	Fri Mar  6 16:51:44 2009
@@ -4,8 +4,8 @@
 sublib_name = gtkmm
 sublib_namespace = Gtk
 sublib_parentdir = gtkmm
-files_defs = gtk.defs gtk_methods.defs gtk_signals.defs gtk_vfuncs.defs gtk_other.defs gtk_enums.defs \
-             gtk_docs.xml gtk_docs_override.xml
+files_defs = gtk.defs gtk_methods.defs gtk_methods_maemo.defs gtk_signals.defs \
+	gtk_vfuncs.defs gtk_other.defs gtk_enums.defs gtk_enums_maemo.defs \
+	gtk_docs.xml gtk_docs_override.xml
 
 include $(top_srcdir)/build_shared/Makefile_gensrc.am_fragment
-

Modified: branches/gtkmm-2-12/gtk/src/gtk.defs
==============================================================================
--- branches/gtkmm-2-12/gtk/src/gtk.defs	(original)
+++ branches/gtkmm-2-12/gtk/src/gtk.defs	Fri Mar  6 16:51:44 2009
@@ -1,6 +1,7 @@
 (include gtk_methods.defs)
+(include gtk_methods_maemo.defs)
 (include gtk_signals.defs)
 (include gtk_vfuncs.defs)
 (include gtk_enums.defs)
+(include gtk_enums_maemo.defs)
 (include gtk_other.defs)
-

Added: branches/gtkmm-2-12/gtk/src/gtk_enums_maemo.defs
==============================================================================
--- (empty file)
+++ branches/gtkmm-2-12/gtk/src/gtk_enums_maemo.defs	Fri Mar  6 16:51:44 2009
@@ -0,0 +1,50 @@
+; hand-edited to fix enum.pl parsing error
+(define-flags-extended GtkInputMode
+  (in-module "Hildon")
+  (c-name "HildonGtkInputMode")
+  (values
+    '("alpha" "HILDON_GTK_INPUT_MODE_ALPHA" "1 << 0")
+    '("numeric" "HILDON_GTK_INPUT_MODE_NUMERIC" "1 << 1")
+    '("special" "HILDON_GTK_INPUT_MODE_SPECIAL" "1 << 2")
+    '("hexa" "HILDON_GTK_INPUT_MODE_HEXA" "1 << 3")
+    '("tele" "HILDON_GTK_INPUT_MODE_TELE" "1 << 4")
+    '("full" "HILDON_GTK_INPUT_MODE_FULL" "0x07")
+    '("multiline" "HILDON_GTK_INPUT_MODE_MULTILINE" "1 << 28")
+    '("invisible" "HILDON_GTK_INPUT_MODE_INVISIBLE" "1 << 29")
+    '("autocap" "HILDON_GTK_INPUT_MODE_AUTOCAP" "1 << 30")
+    '("dictionary" "HILDON_GTK_INPUT_MODE_DICTIONARY" "1 << 31")
+  )
+)
+
+(define-enum-extended Mode
+  (in-module "Hildon")
+  (c-name "HildonMode")
+  (values
+    '("diablo" "HILDON_DIABLO" "0")
+    '("fremantle" "HILDON_FREMANTLE" "1")
+  )
+)
+
+(define-enum-extended UIMode
+  (in-module "Hildon")
+  (c-name "HildonUIMode")
+  (values
+    '("normal" "HILDON_UI_MODE_NORMAL" "0")
+    '("edit" "HILDON_UI_MODE_EDIT" "1")
+  )
+)
+
+; hand-edited to fix enum.pl parsing errors, and also for sanity
+(define-flags-extended SizeType
+  (in-module "Hildon")
+  (c-name "HildonSizeType")
+  (values
+    '("auto-width" "HILDON_SIZE_AUTO_WIDTH" "0")
+    '("halfscreen-width" "HILDON_SIZE_HALFSCREEN_WIDTH" "1")
+    '("fullscreen-width" "HILDON_SIZE_FULLSCREEN_WIDTH" "2")
+    '("auto-height" "HILDON_SIZE_AUTO_HEIGHT" "0")
+    '("finger-height" "HILDON_SIZE_FINGER_HEIGHT" "4")
+    '("thumb-height" "HILDON_SIZE_THUMB_HEIGHT" "8")
+    '("auto" "HILDON_SIZE_AUTO" "0")
+  )
+)

Added: branches/gtkmm-2-12/gtk/src/gtk_methods_maemo.defs
==============================================================================
--- (empty file)
+++ branches/gtkmm-2-12/gtk/src/gtk_methods_maemo.defs	Fri Mar  6 16:51:44 2009
@@ -0,0 +1,265 @@
+;; -*- scheme -*-
+;; These functions are only available on the Maemo platform (patched Gtk+).
+;; So they are surrounded by #ifdefs in the gtkmm source code.
+
+(define-flags GtkInputMode
+  (in-module "Hildon")
+  (c-name "HildonGtkInputMode")
+  (gtype-id "HILDON_TYPE_GTK_INPUT_MODE")
+  (values
+    '("alpha" "HILDON_GTK_INPUT_MODE_ALPHA")
+    '("numeric" "HILDON_GTK_INPUT_MODE_NUMERIC")
+    '("special" "HILDON_GTK_INPUT_MODE_SPECIAL")
+    '("hexa" "HILDON_GTK_INPUT_MODE_HEXA")
+    '("tele" "HILDON_GTK_INPUT_MODE_TELE")
+    '("full" "HILDON_GTK_INPUT_MODE_FULL")
+    '("multiline" "HILDON_GTK_INPUT_MODE_MULTILINE")
+    '("invisible" "HILDON_GTK_INPUT_MODE_INVISIBLE")
+    '("autocap" "HILDON_GTK_INPUT_MODE_AUTOCAP")
+    '("dictionary" "HILDON_GTK_INPUT_MODE_DICTIONARY")
+  )
+)
+
+(define-enum Mode
+  (in-module "Hildon")
+  (c-name "HildonMode")
+  (gtype-id "HILDON_TYPE_MODE")
+  (values
+    '("diablo" "HILDON_DIABLO")
+    '("fremantle" "HILDON_FREMANTLE")
+  )
+)
+
+(define-enum UIMode
+  (in-module "Hildon")
+  (c-name "HildonUIMode")
+  (gtype-id "HILDON_TYPE_UI_MODE")
+  (values
+    '("normal" "HILDON_UI_MODE_NORMAL")
+    '("edit" "HILDON_UI_MODE_EDIT")
+  )
+)
+
+(define-flags SizeType
+  (in-module "Hildon")
+  (c-name "HildonSizeType")
+  (gtype-id "HILDON_TYPE_SIZE_TYPE")
+  (values
+    '("auto-width" "HILDON_SIZE_AUTO_WIDTH")
+    '("halfscreen-width" "HILDON_SIZE_HALFSCREEN_WIDTH")
+    '("fullscreen-width" "HILDON_SIZE_FULLSCREEN_WIDTH")
+    '("auto-height" "HILDON_SIZE_AUTO_HEIGHT")
+    '("finger-height" "HILDON_SIZE_FINGER_HEIGHT")
+    '("thumb-height" "HILDON_SIZE_THUMB_HEIGHT")
+    '("auto" "HILDON_SIZE_AUTO")
+  )
+)
+
+(define-function hildon_gtk_entry_set_input_mode
+  (c-name "hildon_gtk_entry_set_input_mode")
+  (return-type "none")
+  (parameters
+    '("GtkEntry*" "entry")
+    '("HildonGtkInputMode" "input_mode")
+  )
+)
+
+(define-function hildon_gtk_entry_get_input_mode
+  (c-name "hildon_gtk_entry_get_input_mode")
+  (return-type "HildonGtkInputMode")
+  (parameters
+    '("GtkEntry*" "entry")
+  )
+)
+
+(define-function hildon_gtk_entry_set_progress_adjustment
+  (c-name "hildon_gtk_entry_set_progress_adjustment")
+  (return-type "none")
+  (parameters
+    '("GtkEntry*" "entry")
+    '("GtkAdjustment*" "adjustment")
+  )
+)
+
+(define-function hildon_gtk_file_chooser_install_properties
+  (c-name "hildon_gtk_file_chooser_install_properties")
+  (return-type "none")
+  (parameters
+    '("GObjectClass*" "klass")
+  )
+)
+
+(define-function hildon_icon_view_get_row_header_func
+  (c-name "hildon_icon_view_get_row_header_func")
+  (return-type "HildonIconViewRowHeaderFunc")
+  (parameters
+    '("GtkIconView*" "icon_view")
+  )
+)
+
+(define-function hildon_icon_view_set_row_header_func
+  (c-name "hildon_icon_view_set_row_header_func")
+  (return-type "none")
+  (parameters
+    '("GtkIconView*" "icon_view")
+    '("HildonIconViewRowHeaderFunc" "func")
+    '("gpointer" "data")
+    '("GDestroyNotify" "destroy")
+  )
+)
+
+(define-function hildon_icon_view_get_hildon_ui_mode
+  (c-name "hildon_icon_view_get_hildon_ui_mode")
+  (return-type "HildonUIMode")
+  (parameters
+    '("GtkIconView*" "icon_view")
+  )
+)
+
+(define-function hildon_icon_view_set_hildon_ui_mode
+  (c-name "hildon_icon_view_set_hildon_ui_mode")
+  (return-type "none")
+  (parameters
+    '("GtkIconView*" "icon_view")
+    '("HildonUIMode" "mode")
+  )
+)
+
+(define-function hildon_gtk_im_context_filter_event
+  (c-name "hildon_gtk_im_context_filter_event")
+  (return-type "gboolean")
+  (parameters
+    '("GtkIMContext*" "context")
+    '("GdkEvent*" "event")
+  )
+)
+
+(define-function hildon_gtk_im_context_show
+  (c-name "hildon_gtk_im_context_show")
+  (return-type "none")
+  (parameters
+    '("GtkIMContext*" "context")
+  )
+)
+
+(define-function hildon_gtk_im_context_hide
+  (c-name "hildon_gtk_im_context_hide")
+  (return-type "none")
+  (parameters
+    '("GtkIMContext*" "context")
+  )
+)
+
+(define-function hildon_gtk_im_context_has_selection
+  (c-name "hildon_gtk_im_context_has_selection")
+  (return-type "gboolean")
+  (parameters
+    '("GtkIMContext*" "context")
+  )
+)
+
+(define-function hildon_gtk_im_context_copy
+  (c-name "hildon_gtk_im_context_copy")
+  (return-type "none")
+  (parameters
+    '("GtkIMContext*" "context")
+  )
+)
+
+(define-function hildon_gtk_im_context_cut
+  (c-name "hildon_gtk_im_context_cut")
+  (return-type "none")
+  (parameters
+    '("GtkIMContext*" "context")
+  )
+)
+
+(define-function hildon_gtk_im_context_paste
+  (c-name "hildon_gtk_im_context_paste")
+  (return-type "none")
+  (parameters
+    '("GtkIMContext*" "context")
+  )
+)
+
+(define-function hildon_gtk_text_view_set_input_mode
+  (c-name "hildon_gtk_text_view_set_input_mode")
+  (return-type "none")
+  (parameters
+    '("GtkTextView*" "text_view")
+    '("HildonGtkInputMode" "mode")
+  )
+)
+
+(define-function hildon_gtk_text_view_get_input_mode
+  (c-name "hildon_gtk_text_view_get_input_mode")
+  (return-type "HildonGtkInputMode")
+  (parameters
+    '("GtkTextView*" "text_view")
+  )
+)
+
+(define-function hildon_tree_view_get_row_header_func
+  (c-name "hildon_tree_view_get_row_header_func")
+  (return-type "HildonTreeViewRowHeaderFunc")
+  (parameters
+    '("GtkTreeView*" "tree_view")
+  )
+)
+
+(define-function hildon_tree_view_set_row_header_func
+  (c-name "hildon_tree_view_set_row_header_func")
+  (return-type "none")
+  (parameters
+    '("GtkTreeView*" "tree_view")
+    '("HildonTreeViewRowHeaderFunc" "func")
+    '("gpointer" "data")
+    '("GDestroyNotify" "destroy")
+  )
+)
+
+(define-function hildon_tree_view_get_hildon_ui_mode
+  (c-name "hildon_tree_view_get_hildon_ui_mode")
+  (return-type "HildonUIMode")
+  (parameters
+    '("GtkTreeView*" "tree_view")
+  )
+)
+
+(define-function hildon_tree_view_set_hildon_ui_mode
+  (c-name "hildon_tree_view_set_hildon_ui_mode")
+  (return-type "none")
+  (parameters
+    '("GtkTreeView*" "tree_view")
+    '("HildonUIMode" "mode")
+  )
+)
+
+(define-function hildon_gtk_input_mode_get_type
+  (c-name "hildon_gtk_input_mode_get_type")
+  (return-type "GType")
+)
+
+(define-function hildon_mode_get_type
+  (c-name "hildon_mode_get_type")
+  (return-type "GType")
+)
+
+(define-function hildon_ui_mode_get_type
+  (c-name "hildon_ui_mode_get_type")
+  (return-type "GType")
+)
+
+(define-function hildon_size_type_get_type
+  (c-name "hildon_size_type_get_type")
+  (return-type "GType")
+)
+
+(define-function hildon_gtk_widget_set_theme_size
+  (c-name "hildon_gtk_widget_set_theme_size")
+  (return-type "none")
+  (parameters
+    '("GtkWidget*" "widget")
+    '("HildonSizeType" "size")
+  )
+)



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