diff options
author | Richard Purdie <richard@openedhand.com> | 2008-02-29 17:45:52 +0000 |
---|---|---|
committer | Richard Purdie <richard@openedhand.com> | 2008-02-29 17:45:52 +0000 |
commit | 25081db18300fd5e3bda7bd8895bd9ec565ee876 (patch) | |
tree | 02faa49f9f78bb6a3c89f56d794edef9e4277455 | |
parent | 2e296ba3f83da9a3e8668e68911e4bd3b0a6c206 (diff) | |
download | poky-25081db18300fd5e3bda7bd8895bd9ec565ee876.tar.gz |
gtk+-2.12: Tweak filechooser size patch
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@3880 311d38ba-8fff-0310-9ca6-ca027cbcb966
-rw-r--r-- | meta/packages/gtk+/gtk+-2.12.7/filechooser-sizefix.patch | 28 | ||||
-rw-r--r-- | meta/packages/gtk+/gtk+_2.12.7.bb | 2 |
2 files changed, 23 insertions, 7 deletions
diff --git a/meta/packages/gtk+/gtk+-2.12.7/filechooser-sizefix.patch b/meta/packages/gtk+/gtk+-2.12.7/filechooser-sizefix.patch index 11ec6a2697..4de68dfb98 100644 --- a/meta/packages/gtk+/gtk+-2.12.7/filechooser-sizefix.patch +++ b/meta/packages/gtk+/gtk+-2.12.7/filechooser-sizefix.patch | |||
@@ -1,15 +1,31 @@ | |||
1 | Index: gtk+-2.12.7/gtk/gtkfilechooserdefault.c | 1 | |
2 | =================================================================== | 2 | diff -ur /tmp/gtk+-2.12.7/gtk/gtkfilechooserdefault.c ./gtk/gtkfilechooserdefault.c |
3 | --- gtk+-2.12.7.orig/gtk/gtkfilechooserdefault.c 2008-02-29 15:04:29.000000000 +0000 | 3 | --- /tmp/gtk+-2.12.7/gtk/gtkfilechooserdefault.c 2008-02-29 17:00:14.000000000 +0000 |
4 | +++ gtk+-2.12.7/gtk/gtkfilechooserdefault.c 2008-02-29 15:05:23.000000000 +0000 | 4 | +++ ./gtk/gtkfilechooserdefault.c 2008-02-29 17:25:21.000000000 +0000 |
5 | @@ -178,8 +178,8 @@ | 5 | @@ -178,8 +178,8 @@ |
6 | #define FALLBACK_ICON_SIZE 24 | 6 | #define FALLBACK_ICON_SIZE 24 |
7 | 7 | ||
8 | #define LIST_HBOX_SPACING DEFAULT_SPACING | 8 | #define LIST_HBOX_SPACING DEFAULT_SPACING |
9 | -#define NUM_LINES 45 | 9 | -#define NUM_LINES 45 |
10 | -#define NUM_CHARS 60 | 10 | -#define NUM_CHARS 60 |
11 | +#define NUM_LINES 15 | 11 | +#define NUM_LINES 10 |
12 | +#define NUM_CHARS 20 | 12 | +#define NUM_CHARS 12 |
13 | 13 | ||
14 | static void gtk_file_chooser_default_iface_init (GtkFileChooserIface *iface); | 14 | static void gtk_file_chooser_default_iface_init (GtkFileChooserIface *iface); |
15 | static void gtk_file_chooser_embed_default_iface_init (GtkFileChooserEmbedIface *iface); | 15 | static void gtk_file_chooser_embed_default_iface_init (GtkFileChooserEmbedIface *iface); |
16 | diff -ur /tmp/gtk+-2.12.7/gtk/gtkfilechooserdialog.c ./gtk/gtkfilechooserdialog.c | ||
17 | --- /tmp/gtk+-2.12.7/gtk/gtkfilechooserdialog.c 2008-01-30 03:11:07.000000000 +0000 | ||
18 | +++ ./gtk/gtkfilechooserdialog.c 2008-02-29 17:20:30.000000000 +0000 | ||
19 | @@ -165,10 +165,10 @@ | ||
20 | gdk_screen_get_monitor_geometry (screen, monitor_num, &monitor); | ||
21 | |||
22 | if (width) | ||
23 | - *width = MIN (*width, (monitor.width * 3) / 4); | ||
24 | + *width = MIN (*width, monitor.width); | ||
25 | |||
26 | if (height) | ||
27 | - *height = MIN (*height, (monitor.height * 3) / 4); | ||
28 | + *height = MIN (*height, monitor.height); | ||
29 | } | ||
30 | |||
31 | static void | ||
diff --git a/meta/packages/gtk+/gtk+_2.12.7.bb b/meta/packages/gtk+/gtk+_2.12.7.bb index bddddde51b..f66b4b80b2 100644 --- a/meta/packages/gtk+/gtk+_2.12.7.bb +++ b/meta/packages/gtk+/gtk+_2.12.7.bb | |||
@@ -1,7 +1,7 @@ | |||
1 | require gtk+.inc | 1 | require gtk+.inc |
2 | 2 | ||
3 | DEPENDS += "cairo" | 3 | DEPENDS += "cairo" |
4 | PR = "r4" | 4 | PR = "r5" |
5 | 5 | ||
6 | SRC_URI = "http://download.gnome.org/sources/gtk+/2.12/gtk+-${PV}.tar.bz2 \ | 6 | SRC_URI = "http://download.gnome.org/sources/gtk+/2.12/gtk+-${PV}.tar.bz2 \ |
7 | file://xsettings.patch;patch=1 \ | 7 | file://xsettings.patch;patch=1 \ |