[maemo-commits] [maemo-commits] r12439 - in projects/haf/trunk/hildon-desktop: . src

From: subversion at stage.maemo.org subversion at stage.maemo.org
Date: Mon Jun 25 11:18:17 EEST 2007
Author: lucasr
Date: 2007-06-25 11:18:00 +0300 (Mon, 25 Jun 2007)
New Revision: 12439

Modified:
   projects/haf/trunk/hildon-desktop/ChangeLog
   projects/haf/trunk/hildon-desktop/src/hd-applications-menu.c
Log:
2007-06-25  Lucas Rocha  <lucas.rocha at nokia.com>

	* src/hd-applications-menu.c: added padding to the categories pane.


Modified: projects/haf/trunk/hildon-desktop/ChangeLog
===================================================================
--- projects/haf/trunk/hildon-desktop/ChangeLog	2007-06-25 08:01:27 UTC (rev 12438)
+++ projects/haf/trunk/hildon-desktop/ChangeLog	2007-06-25 08:18:00 UTC (rev 12439)
@@ -1,5 +1,9 @@
 2007-06-25  Lucas Rocha  <lucas.rocha at nokia.com>
 
+	* src/hd-applications-menu.c: added padding to the categories pane.
+
+2007-06-25  Lucas Rocha  <lucas.rocha at nokia.com>
+
 	* src/hd-switcher-menu.c: correctly add separators when populating the
 	notifications menu on startup.
 

Modified: projects/haf/trunk/hildon-desktop/src/hd-applications-menu.c
===================================================================
--- projects/haf/trunk/hildon-desktop/src/hd-applications-menu.c	2007-06-25 08:01:27 UTC (rev 12438)
+++ projects/haf/trunk/hildon-desktop/src/hd-applications-menu.c	2007-06-25 08:18:00 UTC (rev 12439)
@@ -599,10 +599,32 @@
     if (!item_desktop_id || strlen (item_desktop_id) == 0)
     {
       GtkTreeIter child_iter;
+      GtkWidget *hbox, *label;
 
+#if 0
       menu_item = gtk_image_menu_item_new_with_label (
                                 (item_text_domain && *item_text_domain) ?
                                 dgettext(item_text_domain, item_name) : _(item_name));
+#else
+      menu_item = gtk_menu_item_new ();
+      
+      hbox = gtk_hbox_new (FALSE, 0);
+      
+      label = gtk_label_new ((item_text_domain && *item_text_domain) ?
+      		        dgettext(item_text_domain, item_name) : _(item_name)), 
+      
+      gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
+      
+      gtk_box_pack_start (GTK_BOX (hbox),
+      		          label,
+      		          TRUE, 
+      		          TRUE, 
+      		          15);
+      
+      gtk_container_add (GTK_CONTAINER (menu_item), hbox);
+      
+      gtk_widget_show_all (hbox);
+#endif
 
       GTK_WIDGET_SET_FLAGS (menu_item, GTK_CAN_FOCUS);
 


More information about the maemo-commits mailing list