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

From: subversion at stage.maemo.org subversion at stage.maemo.org
Date: Thu Jan 11 14:33:23 EET 2007
Author: lucasr
Date: 2007-01-11 14:33:21 +0200 (Thu, 11 Jan 2007)
New Revision: 9059

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/Makefile.am,
	libhildondesktop/hildondesktop.override: fix flags binding for
	HildonDesktopWindow. Add HildonHomeTitlebar to the game.


Modified: projects/haf/branches/maemo-af-desktop/python-hildon-desktop/ChangeLog
===================================================================
--- projects/haf/branches/maemo-af-desktop/python-hildon-desktop/ChangeLog	2007-01-11 11:25:01 UTC (rev 9058)
+++ projects/haf/branches/maemo-af-desktop/python-hildon-desktop/ChangeLog	2007-01-11 12:33:21 UTC (rev 9059)
@@ -1,5 +1,11 @@
 2007-01-10  Lucas Rocha  <lucas.rocha at nokia.com>
 
+	* libhildondesktop/hildondesktop.defs, libhildondesktop/Makefile.am,
+	libhildondesktop/hildondesktop.override: fix flags binding for
+	HildonDesktopWindow. Add HildonHomeTitlebar to the game.
+
+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/libhildondesktop/Makefile.am
===================================================================
--- projects/haf/branches/maemo-af-desktop/python-hildon-desktop/libhildondesktop/Makefile.am	2007-01-11 11:25:01 UTC (rev 9058)
+++ projects/haf/branches/maemo-af-desktop/python-hildon-desktop/libhildondesktop/Makefile.am	2007-01-11 12:33:21 UTC (rev 9059)
@@ -34,6 +34,7 @@
 	$(hildondesktopincludedir)/libhildondesktop/hildon-desktop-multiscreen.h	\
 	$(hildondesktopincludedir)/libhildondesktop/hildon-home-window.h		\
 	$(hildondesktopincludedir)/libhildondesktop/hildon-home-area.h			\
+	$(hildondesktopincludedir)/libhildondesktop/hildon-home-titlebar.h		\
 	$(hildondesktopincludedir)/libhildondesktop/hildon-home-applet.h		\
 	$(hildondesktopincludedir)/libhildondesktop/hildon-desktop-item.h 		\
 	$(hildondesktopincludedir)/libhildondesktop/statusbar-item.h			\

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-11 11:25:01 UTC (rev 9058)
+++ projects/haf/branches/maemo-af-desktop/python-hildon-desktop/libhildondesktop/hildondesktop.defs	2007-01-11 12:33:21 UTC (rev 9059)
@@ -56,6 +56,13 @@
   (gtype-id "HILDON_TYPE_HOME_AREA")
 )
 
+(define-object HomeTitlebar
+  (in-module "HildonDesktop")
+  (parent "GtkEventBox")
+  (c-name "HildonHomeTitlebar")
+  (gtype-id "HILDON_TYPE_HOME_TITLEBAR")
+)
+
 (define-object HomeWindow
   (in-module "HildonDesktop")
   (parent "HildonDesktopWindow")
@@ -79,15 +86,19 @@
 
 ;; Enumerations and flags ...
 
-(define-enum DesktopPanelWindowOrientationType
+(define-flags DesktopPanelWindowOrientationType
   (in-module "HildonDesktop")
   (c-name "HildonDesktopPanelWindowOrientation")
   (gtype-id "HILDON_DESKTOP_TYPE_PANEL_WINDOW_ORIENTATION")
+)
+
+(define-enum HomeTitlebarMode
+  (in-module "HildonDesktop")
+  (c-name "HildonHomeTitlebarMode")
+  (gtype-id "HILDON_TYPE_HOME_TITLEBAR_MODE")
   (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")
+    '("normal" "HILDON_HOME_TITLEBAR_NORMAL")
+    '("layout" "HILDON_HOME_TITLEBAR_LAYOUT")
   )
 )
 
@@ -487,6 +498,77 @@
 
 
 
+;; From /usr/include/libhildondesktop/libhildondesktop/hildon-home-titlebar.h
+
+(define-function hildon_home_titlebar_mode_get_type
+  (c-name "hildon_home_titlebar_mode_get_type")
+  (return-type "GType")
+)
+
+(define-function hildon_home_titlebar_get_type
+  (c-name "hildon_home_titlebar_get_type")
+  (return-type "GType")
+)
+
+(define-function hildon_home_titlebar_new
+  (c-name "hildon_home_titlebar_new")
+  (is-constructor-of "HildonHomeTitlebar")
+  (return-type "GtkWidget*")
+)
+
+(define-method set_mode
+  (of-object "HildonHomeTitlebar")
+  (c-name "hildon_home_titlebar_set_mode")
+  (return-type "none")
+  (parameters
+    '("HildonHomeTitlebarMode" "mode")
+  )
+)
+
+(define-method toggle_menu
+  (of-object "HildonHomeTitlebar")
+  (c-name "hildon_home_titlebar_toggle_menu")
+  (return-type "none")
+)
+
+(define-method set_menu
+  (of-object "HildonHomeTitlebar")
+  (c-name "hildon_home_titlebar_set_menu")
+  (return-type "none")
+  (parameters
+    '("GtkWidget*" "menu")
+  )
+)
+
+(define-method set_layout_menu
+  (of-object "HildonHomeTitlebar")
+  (c-name "hildon_home_titlebar_set_layout_menu")
+  (return-type "none")
+  (parameters
+    '("GtkWidget*" "menu")
+  )
+)
+
+(define-method set_menu_title
+  (of-object "HildonHomeTitlebar")
+  (c-name "hildon_home_titlebar_set_menu_title")
+  (return-type "none")
+  (parameters
+    '("const-gchar*" "title")
+  )
+)
+
+(define-method set_layout_menu_title
+  (of-object "HildonHomeTitlebar")
+  (c-name "hildon_home_titlebar_set_layout_menu_title")
+  (return-type "none")
+  (parameters
+    '("const-gchar*" "title")
+  )
+)
+
+
+
 ;; From /usr/include/libhildondesktop/libhildondesktop/hildon-home-applet.h
 
 (define-function hildon_home_applet_resize_type_get_type

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-11 11:25:01 UTC (rev 9058)
+++ projects/haf/branches/maemo-af-desktop/python-hildon-desktop/libhildondesktop/hildondesktop.override	2007-01-11 12:33:21 UTC (rev 9059)
@@ -8,6 +8,7 @@
 #include <libhildondesktop/hildon-desktop-panel-item.h>
 #include <libhildondesktop/hildon-desktop-multiscreen.h>
 #include <libhildondesktop/hildon-home-window.h>
+#include <libhildondesktop/hildon-home-titlebar.h>
 #include <libhildondesktop/hildon-home-area.h>
 #include <libhildondesktop/hildon-home-applet.h>
 #include <libhildondesktop/hildon-desktop-plugin.h>
@@ -21,6 +22,7 @@
 import gtk.Box as PyGtkBox_Type 
 import gtk.Window as PyGtkWindow_Type 
 import gtk.Fixed as PyGtkFixed_Type
+import gtk.EventBox as PyGtkEventBox_Type
 import gtk.Widget as PyGtkWidget_Type
 import gtk.gdk.Screen as PyGdkScreen_Type
 import gobject.GObject as PyGObject_Type


More information about the maemo-commits mailing list