aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/gtk+/gtk+-2.6.10/menu-styling.patch
blob: 8f792df190d10cb897be5ad8db1fb394745550fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#
# This patch improves menu styling (based on version in 2.7.0
# which features a background pixmap for the menu). ---Mickey.
#
--- gtk+-2.6.10/gtk/gtkmenu.c	2005-08-18 16:10:58.000000000 +0200
+++ gtk+-2.7.0/gtk/gtkmenu.c	2005-04-07 21:56:57.000000000 +0200
@@ -2490,6 +2495,15 @@
 			   arrow_size, arrow_size);
 	}
     }
+  else if (event->window == menu->bin_window)
+    {
+      gtk_paint_box (widget->style,
+		     menu->bin_window,
+		     GTK_STATE_NORMAL,
+		     GTK_SHADOW_OUT,
+		     NULL, widget, "menu",
+		     -border_x, -border_y, width, height);
+    }
 }
 
 static gboolean
ber.Integer.Long */ }
#
# Patch to allow /dev to reside permanently in the file
# system.
#
--- old/devices	2005-05-28 21:51:39.012078699 -0700
+++ new/devices	2005-06-12 00:16:29.222686303 -0700
@@ -6,7 +6,7 @@
 . /etc/default/rcS
 
 # exit without doing anything if udev is active
-if test -e /dev/.udev -o -e /dev/.udevdb; then
+if test -e /dev/.udev -o -e /dev/.udevdb -o -e /dev/.permanent; then
 	exit 0
 fi
 
@@ -37,12 +37,20 @@
 	mknod /dev/ppp c 108 0
 	if test "$VERBOSE" != "no"; then echo "done"; fi
 else
-	if test "$VERBOSE" != "no"; then echo -n "Mounting /dev ramdisk: "; fi
-	mount -t ramfs ramfs /dev || mount -t tmpfs ramfs /dev
-	if test $? -ne 0; then
-		if test "$VERBOSE" != "no"; then echo "failed"; fi
+	if test -e /dev/.noram
+	then
+		# There should be no files, any files will damage the
+		# makedevs script below.
+		rm $(find /dev -type f -print)
+		:>/dev/.noram
 	else
-		if test "$VERBOSE" != "no"; then echo "done"; fi
+		if test "$VERBOSE" != "no"; then echo -n "Mounting /dev ramdisk: "; fi
+		mount -t ramfs ramfs /dev || mount -t tmpfs ramfs /dev
+		if test $? -ne 0; then
+			if test "$VERBOSE" != "no"; then echo "failed"; fi
+		else
+			if test "$VERBOSE" != "no"; then echo "done"; fi
+		fi
 	fi
 	if test "$VERBOSE" != "no"; then echo -n "Populating /dev: "; fi
 	cd /
@@ -60,6 +68,10 @@
 		if test "$VERBOSE" != "no"; then echo "failed"; fi
 	else
 		if test "$VERBOSE" != "no"; then echo "done"; fi
+		if test -e /dev/.noram
+		then
+			:>/dev/.permanent
+		fi
 	fi
 fi