? menuclamp.patch
Index: window-menu.c
===================================================================
RCS file: /cvs/gnome/gnome-panel/applets/wncklet/window-menu.c,v
retrieving revision 1.9
diff -u -r1.9 window-menu.c
--- window-menu.c	13 Oct 2003 19:32:20 -0000	1.9
+++ window-menu.c	21 Oct 2003 12:36:01 -0000
@@ -342,18 +342,22 @@
 	GtkWidget *item;
 	GtkWidget *ellipsizing_label;
 	int screen_width;
+	GtkRequisition requisition;
 
 	item = gtk_image_menu_item_new ();
 
-	screen_width = gdk_screen_get_width (
-				gtk_widget_get_screen (window_menu->applet));
-	gtk_widget_set_size_request (item, screen_width / 6, -1);
-
 	ellipsizing_label = eel_ellipsizing_label_new (label);
 	gtk_misc_set_alignment (GTK_MISC (ellipsizing_label), 0.0, 0.5);
 
 	gtk_container_add (GTK_CONTAINER (item), ellipsizing_label);
-	gtk_widget_show (ellipsizing_label);
+	gtk_widget_show_all (item);
+
+	screen_width = gdk_screen_get_width (
+				gtk_widget_get_screen (window_menu->applet));
+
+	gtk_widget_size_request (item, &requisition);
+	if (requisition.width > screen_width / 2)
+		gtk_widget_set_size_request (item, screen_width / 2, -1);
 
 	return item;
 }
