[maemo-commits] [maemo-commits] r8483 - projects/haf/trunk/pygtk/gtk
From: www-data at stage.maemo.org www-data at stage.maemo.orgDate: Wed Nov 29 22:57:03 EET 2006
- Previous message: [maemo-commits] r8482 - projects/haf/branches/hildon-fm/1.x/hildon-fm
- Next message: [maemo-commits] r8484 - projects/haf/trunk/python/Lib/email/mime
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Author: osantana
Date: 2006-11-29 22:56:57 +0200 (Wed, 29 Nov 2006)
New Revision: 8483
Modified:
projects/haf/trunk/pygtk/gtk/gdk-2.10.defs
projects/haf/trunk/pygtk/gtk/gdk-base.defs
projects/haf/trunk/pygtk/gtk/gtk-base-types.defs
projects/haf/trunk/pygtk/gtk/gtk-base.defs
Log:
- added the hildon extensions
Modified: projects/haf/trunk/pygtk/gtk/gdk-2.10.defs
===================================================================
--- projects/haf/trunk/pygtk/gtk/gdk-2.10.defs 2006-11-29 18:34:44 UTC (rev 8482)
+++ projects/haf/trunk/pygtk/gtk/gdk-2.10.defs 2006-11-29 20:56:57 UTC (rev 8483)
@@ -181,18 +181,19 @@
(return-type "gdouble")
)
-(define-method get_active_window
- (of-object "GdkScreen")
- (c-name "gdk_screen_get_active_window")
- (return-type "GdkWindow*")
-)
+; INDT: moved to gdk-base.defs
+;(define-method get_active_window
+; (of-object "GdkScreen")
+; (c-name "gdk_screen_get_active_window")
+; (return-type "GdkWindow*")
+;)
+;
+;(define-method get_window_stack
+; (of-object "GdkScreen")
+; (c-name "gdk_screen_get_window_stack")
+; (return-type "GList*")
+;)
-(define-method get_window_stack
- (of-object "GdkScreen")
- (c-name "gdk_screen_get_window_stack")
- (return-type "GList*")
-)
-
(define-virtual composited_changed
(of-object "GdkScreen")
(return-type "none")
@@ -252,11 +253,12 @@
(return-type "none")
)
-(define-method get_type_hint
- (of-object "GdkWindow")
- (c-name "gdk_window_get_type_hint")
- (return-type "GdkWindowTypeHint")
-)
+; INDT: moved to gdk-base.defs
+;(define-method get_type_hint
+; (of-object "GdkWindow")
+; (c-name "gdk_window_get_type_hint")
+; (return-type "GdkWindowTypeHint")
+;)
Modified: projects/haf/trunk/pygtk/gtk/gdk-base.defs
===================================================================
--- projects/haf/trunk/pygtk/gtk/gdk-base.defs 2006-11-29 18:34:44 UTC (rev 8482)
+++ projects/haf/trunk/pygtk/gtk/gdk-base.defs 2006-11-29 20:56:57 UTC (rev 8483)
@@ -3742,6 +3742,20 @@
(return-type "GdkColormap*")
)
+; INDT: moved from gdk-2.10.defs
+(define-method get_active_window
+ (of-object "GdkScreen")
+ (c-name "gdk_screen_get_active_window")
+ (return-type "GdkWindow*")
+)
+
+(define-method get_window_stack
+ (of-object "GdkScreen")
+ (c-name "gdk_screen_get_window_stack")
+ (return-type "GList*")
+)
+; /INDT: moved from gdk-2.10.defs
+
; INDT: backport (2.8)
;(define-method get_rgba_colormap
; (of-object "GdkScreen")
@@ -3957,6 +3971,14 @@
)
)
+; INDT: moved from gdk-2.10.defs
+(define-method get_type_hint
+ (of-object "GdkWindow")
+ (c-name "gdk_window_get_type_hint")
+ (return-type "GdkWindowTypeHint")
+)
+; /INDT: moved from gdk-2.10.defs
+
(define-function selection_send_notify
(c-name "gdk_selection_send_notify")
(return-type "none")
@@ -4975,15 +4997,14 @@
(return-type "none")
)
-; INDT: backport (2.8)
-;(define-method set_urgency_hint
-; (of-object "GdkWindow")
-; (c-name "gdk_window_set_urgency_hint")
-; (return-type "none")
-; (parameters
-; '("gboolean" "urgent")
-; )
-;)
+(define-method set_urgency_hint
+ (of-object "GdkWindow")
+ (c-name "gdk_window_set_urgency_hint")
+ (return-type "none")
+ (parameters
+ '("gboolean" "urgent")
+ )
+)
;; From /mondo/local/gtk-2.10/include/gtk-2.0/gdk/gdkwindow.h
Modified: projects/haf/trunk/pygtk/gtk/gtk-base-types.defs
===================================================================
--- projects/haf/trunk/pygtk/gtk/gtk-base-types.defs 2006-11-29 18:34:44 UTC (rev 8482)
+++ projects/haf/trunk/pygtk/gtk/gtk-base-types.defs 2006-11-29 20:56:57 UTC (rev 8483)
@@ -382,6 +382,10 @@
'("button" "GTK_ICON_SIZE_BUTTON")
'("dnd" "GTK_ICON_SIZE_DND")
'("dialog" "GTK_ICON_SIZE_DIALOG")
+ '("hildon-size-26" "HILDON_ICON_SIZE_26")
+ '("hildon-size-40" "HILDON_ICON_SIZE_40")
+ '("hildon-size-50" "HILDON_ICON_SIZE_50")
+ '("hildon-size-64" "HILDON_ICON_SIZE_64")
)
)
@@ -690,6 +694,7 @@
'("stock" "GTK_RC_TOKEN_STOCK")
'("ltr" "GTK_RC_TOKEN_LTR")
'("rtl" "GTK_RC_TOKEN_RTL")
+ '("logical-color" "GTK_RC_TOKEN_LOGICAL_COLOR")
'("last" "GTK_RC_TOKEN_LAST")
)
)
@@ -2734,5 +2739,58 @@
'("bad-filename" "GTK_FILE_SYSTEM_ERROR_BAD_FILENAME")
'("failed" "GTK_FILE_SYSTEM_ERROR_FAILED")
'("already-exists" "GTK_FILE_SYSTEM_ERROR_ALREADY_EXISTS")
+ '("timeout" "GTK_FILE_SYSTEM_ERROR_TIMEOUT")
)
)
+
+(define-flags InputMode
+ (in-module "Gtk")
+ (c-name "HildonGtkInputMode")
+ (gtype-id "GTK_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")
+ '("invisible" "HILDON_GTK_INPUT_MODE_INVISIBLE")
+ '("autocap" "HILDON_GTK_INPUT_MODE_AUTOCAP")
+ )
+)
+
+(define-flags TapAndHoldFlags
+ (in-module "Gtk")
+ (c-name "GtkWidgetTapAndHoldFlags")
+ (gtype-id "GTK_TYPE_WIDGET_TAP_AND_HOLD_FLAGS")
+ (values
+ '("none" "GTK_TAP_AND_HOLD_NONE")
+ '("pass-press" "GTK_TAP_AND_HOLD_PASS_PRESS")
+ '("no-signals" "GTK_TAP_AND_HOLD_NO_SIGNALS")
+ '("no-internals" "GTK_TAP_AND_HOLD_NO_INTERNALS")
+ )
+)
+
+(define-flags InvalidInputType
+ (in-module "Gtk")
+ (c-name "GtkInvalidInputType")
+ (gtype-id "GTK_TYPE_INVALID_INPUT_TYPE")
+ (values
+ '("max-chars-reached" "GTK_INVALID_INPUT_MAX_CHARS_REACHED")
+ '("mode-restriction" "GTK_INVALID_INPUT_MODE_RESTRICTION")
+ )
+)
+
+(define-flags ButtonAttachFlags
+ (in-module "Gtk")
+ (c-name "OssoGtkButtonAttachFlags")
+ (gtype-id "GTK_TYPE_GTK_BUTTON_ATTACH_FLAGS")
+ (values
+ '("attach-north" "OSSO_GTK_BUTTON_ATTACH_NORTH")
+ '("attach-east" "OSSO_GTK_BUTTON_ATTACH_EAST")
+ '("attach-south" "OSSO_GTK_BUTTON_ATTACH_SOUTH")
+ '("attach-west" "OSSO_GTK_BUTTON_ATTACH_WEST")
+ '("attach-enum-end" "OSSO_GTK_BUTTON_ATTACH_ENUM_END")
+ )
+)
+
Modified: projects/haf/trunk/pygtk/gtk/gtk-base.defs
===================================================================
--- projects/haf/trunk/pygtk/gtk/gtk-base.defs 2006-11-29 18:34:44 UTC (rev 8482)
+++ projects/haf/trunk/pygtk/gtk/gtk-base.defs 2006-11-29 20:56:57 UTC (rev 8483)
@@ -1795,6 +1795,26 @@
(return-type "GtkWidget*")
)
+; INDT: hildon extension
+(define-method set_depressed
+ (of-object "GtkButton")
+ (c-name "hildon_gtk_button_set_depressed")
+ (return-type "none")
+ (parameters
+ '("gboolean" "depressed")
+ )
+)
+
+(define-method set_detail_from_attach_flags
+ (of-object "GtkButton")
+ (c-name "osso_gtk_button_set_detail_from_attach_flags")
+ (return-type "none")
+ (parameters
+ '("OssoGtkButtonAttachFlags" "flags")
+ )
+)
+; /INDT: hildon extension
+
(define-virtual pressed
(of-object "GtkButton")
(return-type "none")
@@ -2511,6 +2531,12 @@
)
)
+(define-method set_cell_data
+ (of-object "GtkCellView")
+ (c-name "gtk_cell_view_set_cell_data")
+ (return-type "none")
+)
+
(define-method get_cell_renderers
(of-object "GtkCellView")
(c-name "gtk_cell_view_get_cell_renderers")
@@ -5732,15 +5758,14 @@
)
)
-; INDT: backport (2.8)
-;(define-method get_response_for_widget
-; (of-object "GtkDialog")
-; (c-name "gtk_dialog_get_response_for_widget")
-; (return-type "gint")
-; (parameters
-; '("GtkWidget*" "widget")
-; )
-;)
+(define-method get_response_for_widget
+ (of-object "GtkDialog")
+ (c-name "gtk_dialog_get_response_for_widget")
+ (return-type "gint")
+ (parameters
+ '("GtkWidget*" "widget")
+ )
+)
(define-method set_has_separator
(of-object "GtkDialog")
@@ -6115,6 +6140,52 @@
(return-type "none")
)
+; INDT: maemo extensions...
+;(define-method set_hildon_focus_handling
+; (of-object "GtkWidget")
+; (c-name "gtk_widget_set_hildon_focus_handling")
+; (return-type "none")
+; (parameters
+; '("gboolean" "hildon_like")
+; )
+;)
+;
+;(define-method get_hildon_focus_handling
+; (of-object "GtkWidget")
+; (c-name "gtk_widget_get_hildon_focus_handling")
+; (return-type "gboolean")
+;)
+
+(define-method tap_and_hold_menu_position_top
+ (of-object "GtkWidget")
+ (c-name "gtk_widget_tap_and_hold_menu_position_top")
+ (return-type "none")
+ (parameters
+ '("gint*" "x")
+ '("gint*" "y")
+ '("gboolean*" "push_in")
+ '("GtkWidget*" "widget")
+ )
+)
+
+(define-method insensitive_press
+ (of-object "GtkWidget")
+ (c-name "gtk_widget_insensitive_press")
+ (return-type "none")
+)
+
+(define-method tap_and_hold_setup
+ (of-object "GtkWidget")
+ (c-name "gtk_widget_tap_and_hold_setup")
+ (return-type "none")
+ (parameters
+ '("GtkWidget*" "menu")
+ '("GtkCallback" "func")
+ '("GtkWidgetTapAndHoldFlags" "flags")
+ )
+)
+; /INDT: maemo extensions...
+
(define-function target_list_add_text_targets
(c-name "gtk_target_list_add_text_targets")
(return-type "none")
@@ -6615,6 +6686,23 @@
)
)
+; INDT: hildon extensions
+(define-method set_input_mode
+ (of-object "GtkEntry")
+ (c-name "hildon_gtk_entry_set_input_mode")
+ (return-type "none")
+ (parameters
+ '("HildonGtkInputMode" "input_mode")
+ )
+)
+
+(define-method get_input_mode
+ (of-object "GtkEntry")
+ (c-name "hildon_gtk_entry_get_input_mode")
+ (return-type "HildonGtkInputMode")
+)
+; /INDT: hildon extensions
+
(define-virtual populate_popup
(of-object "GtkEntry")
(return-type "none")
@@ -6680,6 +6768,17 @@
(return-type "none")
)
+; INDT: maemo extension...
+(define-virtual invalid_input
+ (of-object "GtkEntry")
+ (return-type "none")
+ (parameters
+ '("GtkInvalidInputType" "type")
+ )
+)
+; /INDT: maemo extension...
+
+
;; From /opt/gtk2/include/gtk-2.0/gtk/gtkentrycompletion.h
(define-function gtk_entry_completion_get_type
@@ -8039,6 +8138,17 @@
)
)
+; INDT: maemo extensions...
+(define-method create
+ (of-object "GtkFileSystem")
+ (c-name "hildon_gtk_file_system_create")
+ (return-type "GtkFileSystem*")
+ (parameters
+ '("const-gchar*" "file_system_name")
+ )
+)
+; /INDT: maemo extensions...
+
(define-method remove_bookmark
(of-object "GtkFileSystem")
(c-name "gtk_file_system_remove_bookmark")
@@ -10510,6 +10620,65 @@
)
)
+; INDT: hildon extensions
+(define-method filter_event
+ (of-object "GtkIMContext")
+ (c-name "hildon_gtk_im_context_filter_event")
+ (return-type "gboolean")
+ (parameters
+ '("GdkEvent*" "event")
+ )
+)
+
+(define-method show
+ (of-object "GtkIMContext")
+ (c-name "gtk_im_context_show")
+ (return-type "none")
+)
+
+(define-method hide
+ (of-object "GtkIMContext")
+ (c-name "gtk_im_context_hide")
+ (return-type "none")
+)
+
+(define-method copy
+ (of-object "GtkIMContext")
+ (c-name "hildon_gtk_im_context_copy")
+ (return-type "none")
+)
+
+(define-method cut
+ (of-object "GtkIMContext")
+ (c-name "hildon_gtk_im_context_cut")
+ (return-type "none")
+)
+
+(define-method paste
+ (of-object "GtkIMContext")
+ (c-name "hildon_gtk_im_context_paste")
+ (return-type "none")
+)
+
+(define-method hildon_show
+ (of-object "GtkIMContext")
+ (c-name "hildon_gtk_im_context_show")
+ (return-type "none")
+)
+
+(define-method hildon_hide
+ (of-object "GtkIMContext")
+ (c-name "hildon_gtk_im_context_hide")
+ (return-type "none")
+)
+
+(define-method has_selection
+ (of-object "GtkIMContext")
+ (c-name "hildon_gtk_im_context_has_selection")
+ (return-type "gboolean")
+)
+; /INDT: hildon extensions
+
(define-method focus_in
(of-object "GtkIMContext")
(c-name "gtk_im_context_focus_in")
@@ -10675,7 +10844,40 @@
)
)
+; INDT: maemo extensions...
+(define-virtual show
+ (of-object "GtkIMContext")
+ (return-type "none")
+)
+(define-virtual hide
+ (of-object "GtkIMContext")
+ (return-type "none")
+)
+
+(define-virtual has_selection
+ (of-object "GtkIMContext")
+ (return-type "gboolean")
+)
+
+(define-virtual clipboard_operation
+ (of-object "GtkIMContext")
+ (return-type "none")
+ (parameters
+ '("GtkIMContextClipboardOperation" "operation")
+ )
+)
+
+(define-virtual filter_event
+ (of-object "GtkIMContext")
+ (return-type "gboolean")
+ (parameters
+ '("GdkEvent*" "event")
+ )
+)
+; /INDT: maemo extensions...
+
+
;; From /opt/gtk2/include/gtk-2.0/gtk/gtkimcontextsimple.h
(define-function gtk_im_context_simple_get_type
@@ -12972,23 +13174,27 @@
(return-type "gint")
)
-; INDT: backport (2.8)
-;(define-method get_take_focus
-; (of-object "GtkMenuShell")
-; (c-name "gtk_menu_shell_get_take_focus")
-; (return-type "gboolean")
-;)
-;
-;(define-method set_take_focus
-; (of-object "GtkMenuShell")
-; (c-name "gtk_menu_shell_set_take_focus")
-; (return-type "none")
-; (parameters
-; '("gboolean" "take_focus")
-; )
-;)
+(define-virtual close
+ (of-object "GtkMenuShell")
+ (return-type "none")
+)
+(define-method get_take_focus
+ (of-object "GtkMenuShell")
+ (c-name "gtk_menu_shell_get_take_focus")
+ (return-type "gboolean")
+)
+(define-method set_take_focus
+ (of-object "GtkMenuShell")
+ (c-name "gtk_menu_shell_set_take_focus")
+ (return-type "none")
+ (parameters
+ '("gboolean" "take_focus")
+ )
+)
+
+
;; From /opt/gnome-2.10/include/gtk-2.0/gtk/gtkmenutoolbutton.h
(define-function gtk_menu_tool_button_get_type
@@ -15063,7 +15269,35 @@
(return-type "gdouble")
)
+; INDT: maemo extensions...
+(define-method set_stream_indicator
+ (of-object "GtkRange")
+ (c-name "osso_gtk_range_set_stream_indicator")
+ (return-type "none")
+ (parameters
+ '("gboolean" "stream_indicator")
+ )
+)
+(define-method get_stream_indicator
+ (of-object "GtkRange")
+ (c-name "osso_gtk_range_get_stream_indicator")
+ (return-type "gboolean")
+)
+(define-method set_stream_position
+ (of-object "GtkRange")
+ (c-name "osso_gtk_range_set_stream_position")
+ (return-type "none")
+ (parameters
+ '("gdouble" "position")
+ )
+)
+(define-method get_stream_position
+ (of-object "GtkRange")
+ (c-name "osso_gtk_range_get_stream_position")
+ (return-type "gdouble")
+)
+
(define-virtual value_changed
(of-object "GtkRange")
(return-type "none")
@@ -16782,6 +17016,18 @@
)
)
+; INDT: maemo extensions...
+(define-method lookup_logical_color
+ (of-object "GtkStyle")
+ (c-name "gtk_style_lookup_logical_color")
+ (return-type "gboolean")
+ (parameters
+ '("const-gchar*" "color_name")
+ '("GdkColor*" "color")
+ )
+)
+; /INDT: maemo extensions...
+
(define-method lookup_icon_set
(of-object "GtkStyle")
(c-name "gtk_style_lookup_icon_set")
@@ -18784,6 +19030,38 @@
(return-type "none")
)
+; INDT: maemo extensions...
+(define-method set_can_paste_rich_text
+ (of-object "GtkTextBuffer")
+ (c-name "gtk_text_buffer_set_can_paste_rich_text")
+ (return-type "none")
+ (parameters
+ '("gboolean" "can_paste_rich_text")
+ )
+)
+
+(define-method get_can_paste_rich_text
+ (of-object "GtkTextBuffer")
+ (c-name "gtk_text_buffer_get_can_paste_rich_text")
+ (return-type "gboolean")
+)
+
+(define-method set_rich_text_format
+ (of-object "GtkTextBuffer")
+ (c-name "gtk_text_buffer_set_rich_text_format")
+ (return-type "none")
+ (parameters
+ '("const-gchar*" "format")
+ )
+)
+
+(define-method get_rich_text_format
+ (of-object "GtkTextBuffer")
+ (c-name "gtk_text_buffer_get_rich_text_format")
+ (return-type "const-gchar*")
+)
+; /INDT: maemo extensions...
+
(define-virtual insert_text
(of-object "GtkTextBuffer")
(return-type "none")
@@ -20815,6 +21093,22 @@
(return-type "PangoTabArray*")
)
+; INDT: maemo extensions...
+(define-method get_input_mode
+ (of-object "GtkTextView")
+ (c-name "hildon_gtk_text_view_get_input_mode")
+ (return-type "HildonGtkInputMode")
+)
+(define-method set_input_mode
+ (of-object "GtkTextView")
+ (c-name "hildon_gtk_text_view_set_input_mode")
+ (return-type "none")
+ (parameters
+ '("HildonGtkInputMode" "mode")
+ )
+)
+; /INDT: maemo extensions...
+
(define-method get_default_attributes
(of-object "GtkTextView")
(c-name "gtk_text_view_get_default_attributes")
@@ -24358,6 +24652,15 @@
(return-type "gboolean")
)
+; INDT: maemo extensions...
+(define-virtual row_insensitive
+ (of-object "GtkTreeView")
+ (return-type "none")
+ (parameters
+ '("GtkTreePath*" "path")
+ )
+)
+; /INDT: maemo extensions...
;; From /opt/gtk2/include/gtk-2.0/gtk/gtktreeviewcolumn.h
@@ -27212,6 +27515,36 @@
)
)
+; INDT: maemo extensions...
+(define-virtual tap_and_hold
+ (of-object "GtkWidget")
+ (return-type "none")
+)
+
+(define-virtual tap_and_hold_setup
+ (of-object "GtkWidget")
+ (return-type "none")
+ (parameters
+ '("GtkWidget*" "menu")
+ '("GtkCallback" "func")
+ '("GtkWidgetTapAndHoldFlags" "flags")
+ )
+)
+
+(define-virtual tap_and_hold_query
+ (of-object "GtkWidget")
+ (return-type "gboolean")
+ (parameters
+ '("GdkEvent*" "event")
+ )
+)
+
+(define-virtual insensitive_press
+ (of-object "GtkWidget")
+ (return-type "none")
+)
+; /INDT: maemo extensions...
+
; INDT: backport
;(define-virtual grab_broken_event
; (of-object "GtkWidget")
@@ -27422,22 +27755,20 @@
(return-type "gboolean")
)
+(define-method set_urgency_hint
+ (of-object "GtkWindow")
+ (c-name "gtk_window_set_urgency_hint")
+ (return-type "none")
+ (parameters
+ '("gboolean" "setting")
+ )
+)
-; INDT: backport (2.8)
-;(define-method set_urgency_hint
-; (of-object "GtkWindow")
-; (c-name "gtk_window_set_urgency_hint")
-; (return-type "none")
-; (parameters
-; '("gboolean" "setting")
-; )
-;)
-;
-;(define-method get_urgency_hint
-; (of-object "GtkWindow")
-; (c-name "gtk_window_get_urgency_hint")
-; (return-type "gboolean")
-;)
+(define-method get_urgency_hint
+ (of-object "GtkWindow")
+ (c-name "gtk_window_get_urgency_hint")
+ (return-type "gboolean")
+)
(define-method set_accept_focus
(of-object "GtkWindow")
@@ -27631,6 +27962,23 @@
(return-type "GdkPixbuf*")
)
+; INDT: maemo extensions...
+(define-method set_prev_focus_widget
+ (of-object "GtkWindow")
+ (c-name "gtk_window_set_prev_focus_widget")
+ (return-type "none")
+ (parameters
+ '("GtkWidget*" "widget")
+ )
+)
+
+(define-method get_prev_focus_widget
+ (of-object "GtkWindow")
+ (c-name "gtk_window_get_prev_focus_widget")
+ (return-type "GtkWidget*")
+)
+; /INDT: maemo extensions...
+
(define-function window_set_default_icon_list
(c-name "gtk_window_set_default_icon_list")
(return-type "none")
- Previous message: [maemo-commits] r8482 - projects/haf/branches/hildon-fm/1.x/hildon-fm
- Next message: [maemo-commits] r8484 - projects/haf/trunk/python/Lib/email/mime
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
