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

From: subversion at stage.maemo.org subversion at stage.maemo.org
Date: Fri Feb 9 13:56:32 EET 2007
Author: moimart
Date: 2007-02-09 13:56:31 +0200 (Fri, 09 Feb 2007)
New Revision: 9770

Modified:
   projects/haf/branches/maemo-af-desktop/hildon-desktop/ChangeLog
   projects/haf/branches/maemo-af-desktop/hildon-desktop/libhildondesktop/hildon-desktop-panel-expandable.c
   projects/haf/branches/maemo-af-desktop/hildon-desktop/libhildondesktop/hildon-desktop-panel-expandable.h
Log:

	* libhildondesktop/hildon-desktop-panel-expandable.[ch]:
        - Added public method for accesing extension widget.
        - Put systray icons always at the beginning.
        - Emit signal when arrow is added.
	* ChangeLog updated.



Modified: projects/haf/branches/maemo-af-desktop/hildon-desktop/ChangeLog
===================================================================
--- projects/haf/branches/maemo-af-desktop/hildon-desktop/ChangeLog	2007-02-09 09:37:08 UTC (rev 9769)
+++ projects/haf/branches/maemo-af-desktop/hildon-desktop/ChangeLog	2007-02-09 11:56:31 UTC (rev 9770)
@@ -1,3 +1,10 @@
+2007-02-09  Moises Martinez  <moises.martinez at nokia.com>
+
+	* libhildondesktop/hildon-desktop-panel-expandable.[ch]:
+	- Added public method for accesing extension widget.
+	- Put systray icons always at the beginning.
+	- Emit signal when arrow is added.
+	
 2007-02-08  Moises Martinez  <moises.martinez at nokia.com>
 
 	* libhildondesktop/statusbar-item-socket.[ch]:

Modified: projects/haf/branches/maemo-af-desktop/hildon-desktop/libhildondesktop/hildon-desktop-panel-expandable.c
===================================================================
--- projects/haf/branches/maemo-af-desktop/hildon-desktop/libhildondesktop/hildon-desktop-panel-expandable.c	2007-02-09 09:37:08 UTC (rev 9769)
+++ projects/haf/branches/maemo-af-desktop/hildon-desktop/libhildondesktop/hildon-desktop-panel-expandable.c	2007-02-09 11:56:31 UTC (rev 9770)
@@ -52,6 +52,7 @@
 enum 
 {
   SIGNAL_QUEUED_BUTTON,
+  SIGNAL_ARROW_ADDED,
   N_SIGNALS
 };
 
@@ -163,6 +164,14 @@
                      g_cclosure_marshal_VOID__OBJECT,
                      G_TYPE_NONE, 1, GTK_TYPE_WIDGET);
 
+  signals[SIGNAL_ARROW_ADDED] =
+        g_signal_new("arrow-added",
+                     G_OBJECT_CLASS_TYPE(object_class),
+                     G_SIGNAL_RUN_FIRST,
+		     0, NULL, NULL,
+                     g_cclosure_marshal_VOID__OBJECT,
+                     G_TYPE_NONE, 1, GTK_TYPE_WIDGET);
+
 }
 
 static void 
@@ -583,7 +592,9 @@
   gtk_widget_set_size_request (arrow_image, item_width, item_height);
 
   gtk_widget_show (arrow_button);
-  
+
+  g_signal_emit_by_name (panel, "arrow-added", arrow_button);
+		  
   return arrow_button;
 }
 
@@ -788,6 +799,8 @@
 		  			      GTK_WIDGET (sb_socket));
   gtk_widget_show_all (GTK_WIDGET (sb_socket));
 
+  hildon_desktop_panel_expandable_arrange_items (panel);
+
   hildon_desktop_item_socket_add_id (HILDON_DESKTOP_ITEM_SOCKET (sb_socket), 
 		  		     wid);
 
@@ -796,3 +809,11 @@
 }
 #endif
 
+GtkWidget *
+hildon_desktop_panel_expandable_get_extension (HildonDesktopPanelExpandable *panel)
+{
+  g_assert (HILDON_DESKTOP_IS_PANEL_EXPANDABLE (panel));
+
+  return GTK_WIDGET (panel->priv->extension_table);
+}
+

Modified: projects/haf/branches/maemo-af-desktop/hildon-desktop/libhildondesktop/hildon-desktop-panel-expandable.h
===================================================================
--- projects/haf/branches/maemo-af-desktop/hildon-desktop/libhildondesktop/hildon-desktop-panel-expandable.h	2007-02-09 09:37:08 UTC (rev 9769)
+++ projects/haf/branches/maemo-af-desktop/hildon-desktop/libhildondesktop/hildon-desktop-panel-expandable.h	2007-02-09 11:56:31 UTC (rev 9770)
@@ -55,6 +55,8 @@
 
 GType           hildon_desktop_panel_expandable_get_type         (void);
 
+GtkWidget      *hildon_desktop_panel_expandable_get_extension    (HildonDesktopPanelExpandable *panel);
+
 G_END_DECLS
 
 #endif /* __HILDON_DESKTOP_PANEL_EXPANDABLE_H__ */ 


More information about the maemo-commits mailing list