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

From: subversion at stage.maemo.org subversion at stage.maemo.org
Date: Mon Sep 17 14:45:24 EEST 2007
Author: lucasr
Date: 2007-09-17 14:45:21 +0300 (Mon, 17 Sep 2007)
New Revision: 13846

Modified:
   projects/haf/trunk/hildon-desktop/ChangeLog
   projects/haf/trunk/hildon-desktop/src/hn-app-button.c
Log:
2007-09-17  Lucas Rocha  <lucas.rocha at nokia.com>

	* src/hn-app-button.c (hn_app_button_create_menu): set toplevel window
	name for application instances menu to make it consistent with other
	plugins in tasknavigator.


Modified: projects/haf/trunk/hildon-desktop/ChangeLog
===================================================================
--- projects/haf/trunk/hildon-desktop/ChangeLog	2007-09-17 11:31:34 UTC (rev 13845)
+++ projects/haf/trunk/hildon-desktop/ChangeLog	2007-09-17 11:45:21 UTC (rev 13846)
@@ -1,3 +1,9 @@
+2007-09-17  Lucas Rocha  <lucas.rocha at nokia.com>
+
+	* src/hn-app-button.c (hn_app_button_create_menu): set toplevel window
+	name for application instances menu to make it consistent with other
+	plugins in tasknavigator.
+
 2007-09-17  Moises Martinez  <moises.martinez at nokia.com>
 
 	* src/hn-app-pixbuf-anim-blinker.c: (get_delay_time):

Modified: projects/haf/trunk/hildon-desktop/src/hn-app-button.c
===================================================================
--- projects/haf/trunk/hildon-desktop/src/hn-app-button.c	2007-09-17 11:31:34 UTC (rev 13845)
+++ projects/haf/trunk/hildon-desktop/src/hn-app-button.c	2007-09-17 11:45:21 UTC (rev 13846)
@@ -400,6 +400,7 @@
 hn_app_button_create_menu (HNAppButton *app_button)
 {
   GtkWidget *menu;
+  GtkWidget *toplevel;
   GtkWidget *active_item = NULL;
   HDWMEntryInfo *info;
   const GList *children, *l;
@@ -444,6 +445,14 @@
 		  	       AS_MENU_ITEM_WIDTH,/*MAX (width, req.width),*/
 			       -1);
 
+  toplevel = gtk_widget_get_toplevel (GTK_WIDGET (menu));
+
+  if (GTK_IS_WIDGET (toplevel))
+  {
+    gtk_widget_set_name (toplevel, "hildon-menu-window-thumb");
+    gtk_widget_reset_rc_styles (toplevel);
+  }
+  
   return menu;
 }
 


More information about the maemo-commits mailing list