[maemo-commits] [maemo-commits] r9044 - in projects/haf/branches/maemo-af-desktop/python-hildon-desktop: . libhildondesktop

From: subversion at stage.maemo.org subversion at stage.maemo.org
Date: Wed Jan 10 18:02:02 EET 2007
Author: lucasr
Date: 2007-01-10 18:02:01 +0200 (Wed, 10 Jan 2007)
New Revision: 9044

Modified:
   projects/haf/branches/maemo-af-desktop/python-hildon-desktop/ChangeLog
   projects/haf/branches/maemo-af-desktop/python-hildon-desktop/libhildondesktop/Makefile.am
   projects/haf/branches/maemo-af-desktop/python-hildon-desktop/libhildondesktop/hildondesktop.defs
   projects/haf/branches/maemo-af-desktop/python-hildon-desktop/libhildondesktop/hildondesktop.override
Log:
2007-01-10  Lucas Rocha  <lucas.rocha at nokia.com>

	* libhildondesktop/hildondesktop.defs,
	libhildondesktop/hildondesktop.override, libhildondesktop/Makefile.am:
	python bindings cover all applicable objects from libhildondesktop.


Modified: projects/haf/branches/maemo-af-desktop/python-hildon-desktop/ChangeLog
===================================================================
--- projects/haf/branches/maemo-af-desktop/python-hildon-desktop/ChangeLog	2007-01-10 16:01:24 UTC (rev 9043)
+++ projects/haf/branches/maemo-af-desktop/python-hildon-desktop/ChangeLog	2007-01-10 16:02:01 UTC (rev 9044)
@@ -1,3 +1,9 @@
+2007-01-10  Lucas Rocha  <lucas.rocha at nokia.com>
+
+	* libhildondesktop/hildondesktop.defs,
+	libhildondesktop/hildondesktop.override, libhildondesktop/Makefile.am:
+	python bindings cover all applicable objects from libhildondesktop.
+
 2007-01-09  Lucas Rocha  <lucas.rocha at nokia.com>
 
 	* configure.ac: rename some vars for consistency.

Modified: projects/haf/branches/maemo-af-desktop/python-hildon-desktop/libhildondesktop/Makefile.am
===================================================================
--- projects/haf/branches/maemo-af-desktop/python-hildon-desktop/libhildondesktop/Makefile.am	2007-01-10 16:01:24 UTC (rev 9043)
+++ projects/haf/branches/maemo-af-desktop/python-hildon-desktop/libhildondesktop/Makefile.am	2007-01-10 16:02:01 UTC (rev 9044)
@@ -27,11 +27,17 @@
 		--prefix $* $(<F) ) > $@ 
 
 BINDING_LIBHILDONDESKTOP_IN = \
+	$(hildondesktopincludedir)/libhildondesktop/hildon-desktop-window.h		\
+	$(hildondesktopincludedir)/libhildondesktop/hildon-desktop-panel.h 		\
+	$(hildondesktopincludedir)/libhildondesktop/hildon-desktop-panel-window.h	\
+	$(hildondesktopincludedir)/libhildondesktop/hildon-desktop-panel-item.h 	\
+	$(hildondesktopincludedir)/libhildondesktop/hildon-desktop-multiscreen.h	\
+	$(hildondesktopincludedir)/libhildondesktop/hildon-home-window.h		\
+	$(hildondesktopincludedir)/libhildondesktop/hildon-home-area.h			\
+	$(hildondesktopincludedir)/libhildondesktop/hildon-home-applet.h		\
 	$(hildondesktopincludedir)/libhildondesktop/hildon-desktop-item.h 		\
-	$(hildondesktopincludedir)/libhildondesktop/hildon-desktop-panel-item.h 	\
 	$(hildondesktopincludedir)/libhildondesktop/statusbar-item.h			\
-	$(hildondesktopincludedir)/libhildondesktop/tasknavigator-item.h                \
-	$(hildondesktopincludedir)/libhildondesktop/hildon-home-applet.h
+	$(hildondesktopincludedir)/libhildondesktop/tasknavigator-item.h 
 
 regenerate-python-binding:
 	$(PYGTK_H2DEF) $(BINDING_LIBHILDONDESKTOP_IN) > hildondesktop.defs.new

Modified: projects/haf/branches/maemo-af-desktop/python-hildon-desktop/libhildondesktop/hildondesktop.defs
===================================================================
--- projects/haf/branches/maemo-af-desktop/python-hildon-desktop/libhildondesktop/hildondesktop.defs	2007-01-10 16:01:24 UTC (rev 9043)
+++ projects/haf/branches/maemo-af-desktop/python-hildon-desktop/libhildondesktop/hildondesktop.defs	2007-01-10 16:02:01 UTC (rev 9044)
@@ -7,6 +7,20 @@
   (gtype-id "HILDON_DESKTOP_TYPE_ITEM")
 )
 
+(define-object Multiscreen
+  (in-module "HildonDesktop")
+  (parent "GObject")
+  (c-name "HildonDesktopMultiscreen")
+  (gtype-id "HILDON_DESKTOP_TYPE_MULTISCREEN")
+)
+
+(define-object Panel
+  (in-module "HildonDesktop")
+  (parent "GtkBox")
+  (c-name "HildonDesktopPanel")
+  (gtype-id "HILDON_DESKTOP_TYPE_PANEL")
+)
+
 (define-object PanelItem
   (in-module "HildonDesktop")
   (parent "HildonDesktopItem")
@@ -14,6 +28,20 @@
   (gtype-id "HILDON_DESKTOP_TYPE_PANEL_ITEM")
 )
 
+(define-object Window
+  (in-module "HildonDesktop")
+  (parent "GtkWindow")
+  (c-name "HildonDesktopWindow")
+  (gtype-id "HILDON_DESKTOP_TYPE_WINDOW")
+)
+
+(define-object PanelWindow
+  (in-module "HildonDesktop")
+  (parent "HildonDesktopWindow")
+  (c-name "HildonDesktopPanelWindow")
+  (gtype-id "HILDON_DESKTOP_TYPE_PANEL_WINDOW")
+)
+
 (define-object HomeApplet
   (in-module "HildonDesktop")
   (parent "HildonDesktopItem")
@@ -21,6 +49,20 @@
   (gtype-id "HILDON_TYPE_HOME_APPLET")
 )
 
+(define-object HomeArea
+  (in-module "HildonDesktop")
+  (parent "GtkFixed")
+  (c-name "HildonHomeArea")
+  (gtype-id "HILDON_TYPE_HOME_AREA")
+)
+
+(define-object HomeWindow
+  (in-module "HildonDesktop")
+  (parent "HildonDesktopWindow")
+  (c-name "HildonHomeWindow")
+  (gtype-id "HILDON_TYPE_HOME_WINDOW")
+)
+
 (define-object StatusbarItem
   (in-module "HildonDesktop")
   (parent "HildonDesktopPanelItem")
@@ -37,10 +79,22 @@
 
 ;; Enumerations and flags ...
 
+(define-enum DesktopPanelWindowOrientationType
+  (in-module "HildonDesktop")
+  (c-name "HildonDesktopPanelWindowOrientation")
+  (gtype-id "HILDON_DESKTOP_TYPE_PANEL_WINDOW_ORIENTATION")
+  (values
+    '("top" "HILDON_DESKTOP_PANEL_WINDOW_ORIENTATION_TOP")
+    '("left" "HILDON_DESKTOP_PANEL_WINDOW_ORIENTATION_LEFT")
+    '("right" "HILDON_DESKTOP_PANEL_WINDOW_ORIENTATION_RIGHT")
+    '("bottom" "HILDON_DESKTOP_PANEL_WINDOW_ORIENTATION_BOTTOM")
+  )
+)
+
 (define-enum HomeAppletResizeType
   (in-module "HildonDesktop")
   (c-name "HildonHomeAppletResizeType")
-  (gtype-id "HILDON_HOME_APPLET_RESIZE_TYPE_TYPE")
+  (gtype-id "HILDON_TYPE_HOME_APPLET_RESIZE_TYPE")
   (values
     '("none" "HILDON_HOME_APPLET_RESIZE_NONE")
     '("vertical" "HILDON_HOME_APPLET_RESIZE_VERTICAL")
@@ -49,42 +103,126 @@
   )
 )
 
-;; From /usr/include/libhildondesktop/libhildondesktop/hildon-desktop-item.h
+;; From /usr/include/libhildondesktop/libhildondesktop/hildon-desktop-window.h
 
-(define-function hildon_desktop_item_get_type
-  (c-name "hildon_desktop_item_get_type")
+(define-function hildon_desktop_window_get_type
+  (c-name "hildon_desktop_window_get_type")
   (return-type "GType")
 )
 
-(define-method get_widget
-  (of-object "HildonDesktopItem")
-  (c-name "hildon_desktop_item_get_widget")
-  (return-type "GtkWidget*")
+(define-method set_sensitive
+  (of-object "HildonDesktopWindow")
+  (c-name "hildon_desktop_window_set_sensitive")
+  (return-type "none")
+  (parameters
+    '("gboolean" "sensitive")
+  )
 )
 
-(define-method get_id
-  (of-object "HildonDesktopItem")
-  (c-name "hildon_desktop_item_get_id")
+(define-method set_focus
+  (of-object "HildonDesktopWindow")
+  (c-name "hildon_desktop_window_set_focus")
+  (return-type "none")
+  (parameters
+    '("gboolean" "focus")
+  )
+)
+
+(define-method get_config_file
+  (of-object "HildonDesktopWindow")
+  (c-name "hildon_desktop_window_get_config_file")
   (return-type "const-gchar*")
 )
 
-(define-method get_name
-  (of-object "HildonDesktopItem")
-  (c-name "hildon_desktop_item_get_name")
+(define-method set_config_file
+  (of-object "HildonDesktopWindow")
+  (c-name "hildon_desktop_window_set_config_file")
+  (return-type "none")
+  (parameters
+    '("gchar*" "config_file")
+  )
+)
+
+(define-method get_plugin_dir
+  (of-object "HildonDesktopWindow")
+  (c-name "hildon_desktop_window_get_plugin_dir")
   (return-type "const-gchar*")
 )
 
-(define-method find_by_id
-  (of-object "HildonDesktopItem")
-  (c-name "hildon_desktop_item_find_by_id")
-  (return-type "gint")
+(define-method set_plugin_dir
+  (of-object "HildonDesktopWindow")
+  (c-name "hildon_desktop_window_set_plugin_dir")
+  (return-type "none")
   (parameters
-    '("const-gchar*" "id")
+    '("gchar*" "plugin_dir")
   )
 )
 
 
 
+;; From /usr/include/libhildondesktop/libhildondesktop/hildon-desktop-panel.h
+
+(define-function hildon_desktop_panel_get_type
+  (c-name "hildon_desktop_panel_get_type")
+  (return-type "GType")
+)
+
+(define-method add_button
+  (of-object "HildonDesktopPanel")
+  (c-name "hildon_desktop_panel_add_button")
+  (return-type "none")
+  (parameters
+    '("GtkWidget*" "widget")
+  )
+)
+
+(define-method set_orientation
+  (of-object "HildonDesktopPanel")
+  (c-name "hildon_desktop_panel_set_orientation")
+  (return-type "none")
+  (parameters
+    '("GtkOrientation" "orientation")
+  )
+)
+
+(define-method get_orientation
+  (of-object "HildonDesktopPanel")
+  (c-name "hildon_desktop_panel_get_orientation")
+  (return-type "GtkOrientation")
+)
+
+(define-method flip
+  (of-object "HildonDesktopPanel")
+  (c-name "hildon_desktop_panel_flip")
+  (return-type "none")
+)
+
+
+
+;; From /usr/include/libhildondesktop/libhildondesktop/hildon-desktop-panel-window.h
+
+(define-function hildon_desktop_panel_window_get_type
+  (c-name "hildon_desktop_panel_window_get_type")
+  (return-type "GType")
+)
+
+(define-function hildon_desktop_panel_window_new
+  (c-name "hildon_desktop_panel_window_new")
+  (is-constructor-of "HildonDesktopPanelWindow")
+  (return-type "GtkWidget*")
+)
+
+(define-method set_multiscreen_handler
+  (of-object "HildonDesktopPanelWindow")
+  (c-name "hildon_desktop_panel_window_set_multiscreen_handler")
+  (return-type "none")
+  (parameters
+    '("HildonDesktopMultiscreen*" "ms")
+  )
+)
+
+
+
 ;; From /usr/include/libhildondesktop/libhildondesktop/hildon-desktop-panel-item.h
 
 (define-function hildon_desktop_panel_item_get_type
@@ -100,24 +238,255 @@
 
 
 
-;; From /usr/include/libhildondesktop/libhildondesktop/statusbar-item.h
+;; From /usr/include/libhildondesktop/libhildondesktop/hildon-desktop-multiscreen.h
 
-(define-function statusbar_item_get_type
-  (c-name "statusbar_item_get_type")
+(define-function hildon_desktop_ms_get_type
+  (c-name "hildon_desktop_ms_get_type")
   (return-type "GType")
 )
 
+(define-method reinit
+  (of-object "HildonDesktopMultiscreen")
+  (c-name "hildon_desktop_ms_reinit")
+  (return-type "none")
+)
 
+(define-method get_screens
+  (of-object "HildonDesktopMultiscreen")
+  (c-name "hildon_desktop_ms_get_screens")
+  (return-type "gint")
+)
 
-;; From /usr/include/libhildondesktop/libhildondesktop/tasknavigator-item.h
+(define-method get_monitors
+  (of-object "HildonDesktopMultiscreen")
+  (c-name "hildon_desktop_ms_get_monitors")
+  (return-type "gint")
+  (parameters
+    '("GdkScreen*" "screen")
+  )
+)
 
-(define-function tasknavigator_item_get_type
-  (c-name "tasknavigator_item_get_type")
+(define-method get_x
+  (of-object "HildonDesktopMultiscreen")
+  (c-name "hildon_desktop_ms_get_x")
+  (return-type "gint")
+  (parameters
+    '("GdkScreen*" "screen")
+    '("gint" "monitor")
+  )
+)
+
+(define-method get_y
+  (of-object "HildonDesktopMultiscreen")
+  (c-name "hildon_desktop_ms_get_y")
+  (return-type "gint")
+  (parameters
+    '("GdkScreen*" "screen")
+    '("gint" "monitor")
+  )
+)
+
+(define-method get_width
+  (of-object "HildonDesktopMultiscreen")
+  (c-name "hildon_desktop_ms_get_width")
+  (return-type "gint")
+  (parameters
+    '("GdkScreen*" "screen")
+    '("gint" "monitor")
+  )
+)
+
+(define-method get_height
+  (of-object "HildonDesktopMultiscreen")
+  (c-name "hildon_desktop_ms_get_height")
+  (return-type "gint")
+  (parameters
+    '("GdkScreen*" "screen")
+    '("gint" "monitor")
+  )
+)
+
+(define-method locate_widget_monitor
+  (of-object "HildonDesktopMultiscreen")
+  (c-name "hildon_desktop_ms_locate_widget_monitor")
+  (return-type "gint")
+  (parameters
+    '("GtkWidget*" "widget")
+  )
+)
+
+(define-method is_at_visible_extreme
+  (of-object "HildonDesktopMultiscreen")
+  (c-name "hildon_desktop_ms_is_at_visible_extreme")
+  (return-type "none")
+  (parameters
+    '("GdkScreen*" "screen")
+    '("gint" "monitor")
+    '("gboolean*" "leftmost")
+    '("gboolean*" "rightmost")
+    '("gboolean*" "topmost")
+    '("gboolean*" "bottommost")
+  )
+)
+
+(define-method make_environment_for_screen
+  (of-object "HildonDesktopMultiscreen")
+  (c-name "hildon_desktop_ms_make_environment_for_screen")
+  (return-type "gchar**")
+  (parameters
+    '("GdkScreen*" "screen")
+    '("gchar**" "envp")
+  )
+)
+
+
+
+;; From /usr/include/libhildondesktop/libhildondesktop/hildon-home-window.h
+
+(define-function hildon_home_window_get_type
+  (c-name "hildon_home_window_get_type")
   (return-type "GType")
 )
 
+(define-function hildon_home_window_new
+  (c-name "hildon_home_window_new")
+  (is-constructor-of "HildonHomeWindow")
+  (return-type "GtkWidget*")
+)
 
+(define-method get_titlebar
+  (of-object "HildonHomeWindow")
+  (c-name "hildon_home_window_get_titlebar")
+  (return-type "GtkWidget*")
+)
 
+(define-method show_information_note
+  (of-object "HildonHomeWindow")
+  (c-name "hildon_home_window_show_information_note")
+  (return-type "none")
+  (parameters
+    '("const-gchar*" "text")
+  )
+)
+
+(define-method show_information_banner
+  (of-object "HildonHomeWindow")
+  (c-name "hildon_home_window_show_information_banner")
+  (return-type "none")
+  (parameters
+    '("const-gchar*" "text")
+  )
+)
+
+(define-method applets_init
+  (of-object "HildonHomeWindow")
+  (c-name "hildon_home_window_applets_init")
+  (return-type "none")
+)
+
+(define-method select_applets
+  (of-object "HildonHomeWindow")
+  (c-name "hildon_home_window_select_applets")
+  (return-type "none")
+)
+
+(define-method layout_mode_activate
+  (of-object "HildonHomeWindow")
+  (c-name "hildon_home_window_layout_mode_activate")
+  (return-type "none")
+)
+
+(define-method set_desktop_dimmed
+  (of-object "HildonHomeWindow")
+  (c-name "hildon_home_window_set_desktop_dimmed")
+  (return-type "none")
+  (parameters
+    '("gboolean" "dimmed")
+  )
+)
+
+(define-method accept_layout
+  (of-object "HildonHomeWindow")
+  (c-name "hildon_home_window_accept_layout")
+  (return-type "none")
+)
+
+(define-method cancel_layout
+  (of-object "HildonHomeWindow")
+  (c-name "hildon_home_window_cancel_layout")
+  (return-type "none")
+)
+
+(define-method get_area
+  (of-object "HildonHomeWindow")
+  (c-name "hildon_home_window_get_area")
+  (return-type "GtkWidget*")
+)
+
+
+
+;; From /usr/include/libhildondesktop/libhildondesktop/hildon-home-area.h
+
+(define-function hildon_home_area_get_type
+  (c-name "hildon_home_area_get_type")
+  (return-type "GType")
+)
+
+(define-function hildon_home_area_new
+  (c-name "hildon_home_area_new")
+  (is-constructor-of "HildonHomeArea")
+  (return-type "GtkWidget*")
+)
+
+(define-method set_layout_mode
+  (of-object "HildonHomeArea")
+  (c-name "hildon_home_area_set_layout_mode")
+  (return-type "none")
+  (parameters
+    '("gboolean" "layout_mode")
+  )
+)
+
+(define-method get_layout_mode
+  (of-object "HildonHomeArea")
+  (c-name "hildon_home_area_get_layout_mode")
+  (return-type "gboolean")
+)
+
+(define-method save_configuration
+  (of-object "HildonHomeArea")
+  (c-name "hildon_home_area_save_configuration")
+  (return-type "gint")
+  (parameters
+    '("const-gchar*" "filename")
+    '("GError**" "error")
+  )
+)
+
+(define-method load_configuration
+  (of-object "HildonHomeArea")
+  (c-name "hildon_home_area_load_configuration")
+  (return-type "none")
+  (parameters
+    '("const-gchar*" "filename")
+    '("GError**" "error")
+  )
+)
+
+(define-method get_layout_changed
+  (of-object "HildonHomeArea")
+  (c-name "hildon_home_area_get_layout_changed")
+  (return-type "gboolean")
+)
+
+(define-method get_overlaps
+  (of-object "HildonHomeArea")
+  (c-name "hildon_home_area_get_overlaps")
+  (return-type "gboolean")
+)
+
+
+
 ;; From /usr/include/libhildondesktop/libhildondesktop/hildon-home-applet.h
 
 (define-function hildon_home_applet_resize_type_get_type
@@ -197,3 +566,57 @@
 )
 
 
+
+;; From /usr/include/libhildondesktop/libhildondesktop/hildon-desktop-item.h
+
+(define-function hildon_desktop_item_get_type
+  (c-name "hildon_desktop_item_get_type")
+  (return-type "GType")
+)
+
+(define-method get_widget
+  (of-object "HildonDesktopItem")
+  (c-name "hildon_desktop_item_get_widget")
+  (return-type "GtkWidget*")
+)
+
+(define-method get_id
+  (of-object "HildonDesktopItem")
+  (c-name "hildon_desktop_item_get_id")
+  (return-type "const-gchar*")
+)
+
+(define-method get_name
+  (of-object "HildonDesktopItem")
+  (c-name "hildon_desktop_item_get_name")
+  (return-type "const-gchar*")
+)
+
+(define-method find_by_id
+  (of-object "HildonDesktopItem")
+  (c-name "hildon_desktop_item_find_by_id")
+  (return-type "gint")
+  (parameters
+    '("const-gchar*" "id")
+  )
+)
+
+
+
+;; From /usr/include/libhildondesktop/libhildondesktop/statusbar-item.h
+
+(define-function statusbar_item_get_type
+  (c-name "statusbar_item_get_type")
+  (return-type "GType")
+)
+
+
+
+;; From /usr/include/libhildondesktop/libhildondesktop/tasknavigator-item.h
+
+(define-function tasknavigator_item_get_type
+  (c-name "tasknavigator_item_get_type")
+  (return-type "GType")
+)
+
+

Modified: projects/haf/branches/maemo-af-desktop/python-hildon-desktop/libhildondesktop/hildondesktop.override
===================================================================
--- projects/haf/branches/maemo-af-desktop/python-hildon-desktop/libhildondesktop/hildondesktop.override	2007-01-10 16:01:24 UTC (rev 9043)
+++ projects/haf/branches/maemo-af-desktop/python-hildon-desktop/libhildondesktop/hildondesktop.override	2007-01-10 16:02:01 UTC (rev 9044)
@@ -2,15 +2,28 @@
 headers
 #include <Python.h>               
 #include <pygobject.h>
+#include <libhildondesktop/hildon-desktop-window.h>
+#include <libhildondesktop/hildon-desktop-panel.h>
+#include <libhildondesktop/hildon-desktop-panel-window.h>
+#include <libhildondesktop/hildon-desktop-panel-item.h>
+#include <libhildondesktop/hildon-desktop-multiscreen.h>
+#include <libhildondesktop/hildon-home-window.h>
+#include <libhildondesktop/hildon-home-area.h>
+#include <libhildondesktop/hildon-home-applet.h>
+#include <libhildondesktop/hildon-desktop-plugin.h>
 #include <libhildondesktop/hildon-desktop-item.h>
-#include <libhildondesktop/hildon-desktop-panel-item.h>
+#include <libhildondesktop/statusbar-item.h>
 #include <libhildondesktop/tasknavigator-item.h>
-#include <libhildondesktop/statusbar-item.h>
-#include <libhildondesktop/hildon-home-applet.h>
 %%
 modulename hildondesktop 
 %%
 import gtk.Bin as PyGtkBin_Type
+import gtk.Box as PyGtkBox_Type 
+import gtk.Window as PyGtkWindow_Type 
+import gtk.Fixed as PyGtkFixed_Type
+import gtk.Widget as PyGtkWidget_Type
+import gtk.gdk.Screen as PyGdkScreen_Type
+import gobject.GObject as PyGObject_Type
 %%
 ignore-glob
   *_get_type 


More information about the maemo-commits mailing list