[maemo-commits] [maemo-commits] r8318 - in projects/haf/trunk/python-hildon: . defs examples
From: www-data at stage.maemo.org www-data at stage.maemo.orgDate: Fri Nov 24 20:01:41 EET 2006
- Previous message: [maemo-commits] r8317 - in projects/haf/branches/maemo-af-desktop/hildon-desktop: . libhildonwm test
- Next message: [maemo-commits] r8319 - in projects/haf/trunk/python-hildon: . defs
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Author: luciano
Date: 2006-11-24 20:01:33 +0200 (Fri, 24 Nov 2006)
New Revision: 8318
Modified:
projects/haf/trunk/python-hildon/defs/hildon-app.defs
projects/haf/trunk/python-hildon/defs/hildon-caption.defs
projects/haf/trunk/python-hildon/defs/hildon-font-selection-dialog.defs
projects/haf/trunk/python-hildon/defs/hildon-get-password-dialog.defs
projects/haf/trunk/python-hildon/defs/hildon-time-editor.defs
projects/haf/trunk/python-hildon/examples/hildon-test.py
projects/haf/trunk/python-hildon/hildon-types.h
Log:
Disabling DEPRECATED functions
Modified: projects/haf/trunk/python-hildon/defs/hildon-app.defs
===================================================================
--- projects/haf/trunk/python-hildon/defs/hildon-app.defs 2006-11-24 17:47:53 UTC (rev 8317)
+++ projects/haf/trunk/python-hildon/defs/hildon-app.defs 2006-11-24 18:01:33 UTC (rev 8318)
@@ -93,11 +93,11 @@
; (return-type "HildonZoomLevel")
;)
-(define-method get_default_font
- (of-object "HildonApp")
- (c-name "hildon_app_get_default_font")
- (return-type "PangoFontDescription*")
-)
+;(define-method get_default_font
+; (of-object "HildonApp")
+; (c-name "hildon_app_get_default_font")
+; (return-type "PangoFontDescription*")
+;)
;(define-method get_zoom_font
; (of-object "HildonApp")
Modified: projects/haf/trunk/python-hildon/defs/hildon-caption.defs
===================================================================
--- projects/haf/trunk/python-hildon/defs/hildon-caption.defs 2006-11-24 17:47:53 UTC (rev 8317)
+++ projects/haf/trunk/python-hildon/defs/hildon-caption.defs 2006-11-24 18:01:33 UTC (rev 8318)
@@ -45,20 +45,20 @@
)
)
-(define-method get_sizegroup
- (of-object "HildonCaption")
- (c-name "hildon_caption_get_sizegroup")
- (return-type "GtkSizeGroup*")
-)
+;(define-method get_sizegroup
+; (of-object "HildonCaption")
+; (c-name "hildon_caption_get_sizegroup")
+; (return-type "GtkSizeGroup*")
+;)
-(define-method set_sizegroup
- (of-object "HildonCaption")
- (c-name "hildon_caption_set_sizegroup")
- (return-type "none")
- (parameters
- '("GtkSizeGroup*" "new_group")
- )
-)
+;(define-method set_sizegroup
+; (of-object "HildonCaption")
+; (c-name "hildon_caption_set_sizegroup")
+; (return-type "none")
+; (parameters
+; '("GtkSizeGroup*" "new_group")
+; )
+;)
(define-method is_mandatory
(of-object "HildonCaption")
@@ -141,20 +141,20 @@
(return-type "gfloat")
)
-(define-method get_control
- (of-object "HildonCaption")
- (c-name "hildon_caption_get_control")
- (return-type "GtkWidget*")
-)
+;(define-method get_control
+; (of-object "HildonCaption")
+; (c-name "hildon_caption_get_control")
+; (return-type "GtkWidget*")
+;)
-(define-method set_control
- (of-object "HildonCaption")
- (c-name "hildon_caption_set_control")
- (return-type "none")
- (parameters
- '("GtkWidget*" "control")
- )
-)
+;(define-method set_control
+; (of-object "HildonCaption")
+; (c-name "hildon_caption_set_control")
+; (return-type "none")
+; (parameters
+; '("GtkWidget*" "control")
+; )
+;)
(define-method set_child_expand
(of-object "HildonCaption")
Modified: projects/haf/trunk/python-hildon/defs/hildon-font-selection-dialog.defs
===================================================================
--- projects/haf/trunk/python-hildon/defs/hildon-font-selection-dialog.defs 2006-11-24 17:47:53 UTC (rev 8317)
+++ projects/haf/trunk/python-hildon/defs/hildon-font-selection-dialog.defs 2006-11-24 18:01:33 UTC (rev 8318)
@@ -12,20 +12,20 @@
;; From hildon-font-selection-dialog.h
-(define-method get_font
- (of-object "HildonFontSelectionDialog")
- (c-name "hildon_font_selection_dialog_get_font")
- (return-type "PangoAttrList*")
-)
+;(define-method get_font
+; (of-object "HildonFontSelectionDialog")
+; (c-name "hildon_font_selection_dialog_get_font")
+; (return-type "PangoAttrList*")
+;)
-(define-method set_font
- (of-object "HildonFontSelectionDialog")
- (c-name "hildon_font_selection_dialog_set_font")
- (return-type "none")
- (parameters
- '("PangoAttrList*" "list")
- )
-)
+;(define-method set_font
+; (of-object "HildonFontSelectionDialog")
+; (c-name "hildon_font_selection_dialog_set_font")
+; (return-type "none")
+; (parameters
+; '("PangoAttrList*" "list")
+; )
+;)
(define-function hildon_font_selection_dialog_get_type
(c-name "hildon_font_selection_dialog_get_type")
@@ -42,20 +42,20 @@
)
)
-(define-method set_buffer
- (of-object "HildonFontSelectionDialog")
- (c-name "hildon_font_selection_dialog_set_buffer")
- (return-type "none")
- (parameters
- '("GtkTextBuffer*" "buffer")
- )
-)
+;(define-method set_buffer
+; (of-object "HildonFontSelectionDialog")
+; (c-name "hildon_font_selection_dialog_set_buffer")
+; (return-type "none")
+; (parameters
+; '("GtkTextBuffer*" "buffer")
+; )
+;)
-(define-method get_text_tag
- (of-object "HildonFontSelectionDialog")
- (c-name "hildon_font_selection_dialog_get_text_tag")
- (return-type "GtkTextTag*")
-)
+;(define-method get_text_tag
+; (of-object "HildonFontSelectionDialog")
+; (c-name "hildon_font_selection_dialog_get_text_tag")
+; (return-type "GtkTextTag*")
+;)
(define-method get_preview_text
(of-object "HildonFontSelectionDialog")
Modified: projects/haf/trunk/python-hildon/defs/hildon-get-password-dialog.defs
===================================================================
--- projects/haf/trunk/python-hildon/defs/hildon-get-password-dialog.defs 2006-11-24 17:47:53 UTC (rev 8317)
+++ projects/haf/trunk/python-hildon/defs/hildon-get-password-dialog.defs 2006-11-24 18:01:33 UTC (rev 8318)
@@ -70,13 +70,13 @@
(return-type "const-gchar*")
)
-(define-method set_title
- (of-object "HildonGetPasswordDialog")
- (c-name "hildon_get_password_dialog_set_title")
- (return-type "none")
- (parameters
- '("const-gchar*" "new_title")
- )
-)
+;(define-method set_title
+; (of-object "HildonGetPasswordDialog")
+; (c-name "hildon_get_password_dialog_set_title")
+; (return-type "none")
+; (parameters
+; '("const-gchar*" "new_title")
+; )
+;)
Modified: projects/haf/trunk/python-hildon/defs/hildon-time-editor.defs
===================================================================
--- projects/haf/trunk/python-hildon/defs/hildon-time-editor.defs 2006-11-24 17:47:53 UTC (rev 8317)
+++ projects/haf/trunk/python-hildon/defs/hildon-time-editor.defs 2006-11-24 18:01:33 UTC (rev 8318)
@@ -9,26 +9,26 @@
;; Enumerations and flags ...
-(define-enum TimeEditorErrorType
- (in-module "Hildon")
- (c-name "HildonTimeEditorErrorType")
- (gtype-id "HILDON_TYPE_TIME_EDITOR_ERROR_TYPE")
- (values
- '("no-time-error" "NO_TIME_ERROR")
- '("max-hours" "MAX_HOURS")
- '("max-mins" "MAX_MINS")
- '("max-secs" "MAX_SECS")
- '("min-hours" "MIN_HOURS")
- '("min-mins" "MIN_MINS")
- '("min-secs" "MIN_SECS")
- '("empty-hours" "EMPTY_HOURS")
- '("empty-mins" "EMPTY_MINS")
- '("empty-secs" "EMPTY_SECS")
- '("min-dur" "MIN_DUR")
- '("max-dur" "MAX_DUR")
- '("invalid-time" "INVALID_TIME")
- )
-)
+;(define-enum TimeEditorErrorType
+; (in-module "Hildon")
+; (c-name "HildonTimeEditorErrorType")
+; (gtype-id "HILDON_TYPE_TIME_EDITOR_ERROR_TYPE")
+; (values
+; '("no-time-error" "NO_TIME_ERROR")
+; '("max-hours" "MAX_HOURS")
+; '("max-mins" "MAX_MINS")
+; '("max-secs" "MAX_SECS")
+; '("min-hours" "MIN_HOURS")
+; '("min-mins" "MIN_MINS")
+; '("min-secs" "MIN_SECS")
+; '("empty-hours" "EMPTY_HOURS")
+; '("empty-mins" "EMPTY_MINS")
+; '("empty-secs" "EMPTY_SECS")
+; '("min-dur" "MIN_DUR")
+; '("max-dur" "MAX_DUR")
+; '("invalid-time" "INVALID_TIME")
+; )
+;)
;; From hildon-time-editor.h
@@ -66,23 +66,23 @@
)
)
-(define-method show_seconds
- (of-object "HildonTimeEditor")
- (c-name "hildon_time_editor_show_seconds")
- (return-type "none")
- (parameters
- '("gboolean" "enable")
- )
-)
+;(define-method show_seconds
+; (of-object "HildonTimeEditor")
+; (c-name "hildon_time_editor_show_seconds")
+; (return-type "none")
+; (parameters
+; '("gboolean" "enable")
+; )
+;)
-(define-method enable_duration_mode
- (of-object "HildonTimeEditor")
- (c-name "hildon_time_editor_enable_duration_mode")
- (return-type "none")
- (parameters
- '("gboolean" "enable")
- )
-)
+;(define-method enable_duration_mode
+; (of-object "HildonTimeEditor")
+; (c-name "hildon_time_editor_enable_duration_mode")
+; (return-type "none")
+; (parameters
+; '("gboolean" "enable")
+; )
+;)
(define-method set_duration_range
(of-object "HildonTimeEditor")
Modified: projects/haf/trunk/python-hildon/examples/hildon-test.py
===================================================================
--- projects/haf/trunk/python-hildon/examples/hildon-test.py 2006-11-24 17:47:53 UTC (rev 8317)
+++ projects/haf/trunk/python-hildon/examples/hildon-test.py 2006-11-24 18:01:33 UTC (rev 8318)
@@ -239,7 +239,10 @@
obj.connect("clicked", self.onTest)
self.vboxTests[0].pack_start(obj)
- self.vboxTests[1].pack_start(hildon.Controlbar())
+ obj = hildon.Controlbar()
+ obj.set_range(0,40)
+ obj.set_value(18)
+ self.vboxTests[1].pack_start(obj)
self.vboxTests[2].pack_start(hildon.DateEditor())
Modified: projects/haf/trunk/python-hildon/hildon-types.h
===================================================================
--- projects/haf/trunk/python-hildon/hildon-types.h 2006-11-24 17:47:53 UTC (rev 8317)
+++ projects/haf/trunk/python-hildon/hildon-types.h 2006-11-24 18:01:33 UTC (rev 8318)
@@ -25,6 +25,7 @@
#define HILDON_TYPES_H
#include <glib.h>
+#include <glib/gtypes.h>
#include <gtk/gtkuimanager.h>
#include <hildon-base-lib/hildon-base-dnotify.h>
#include <hildon-base-lib/hildon-base-types.h>
- Previous message: [maemo-commits] r8317 - in projects/haf/branches/maemo-af-desktop/hildon-desktop: . libhildonwm test
- Next message: [maemo-commits] r8319 - in projects/haf/trunk/python-hildon: . defs
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
