summaryrefslogtreecommitdiffstats
path: root/meta/packages/gtk+/gtk+-2.12.7/filechooser-sizefix.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/packages/gtk+/gtk+-2.12.7/filechooser-sizefix.patch')
-rw-r--r--meta/packages/gtk+/gtk+-2.12.7/filechooser-sizefix.patch40
1 files changed, 22 insertions, 18 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 4de68dfb98..694b059b9a 100644
--- a/meta/packages/gtk+/gtk+-2.12.7/filechooser-sizefix.patch
+++ b/meta/packages/gtk+/gtk+-2.12.7/filechooser-sizefix.patch
@@ -1,21 +1,5 @@
1 1--- gtk+-2.12.7.orig/gtk/gtkfilechooserdialog.c
2diff -ur /tmp/gtk+-2.12.7/gtk/gtkfilechooserdefault.c ./gtk/gtkfilechooserdefault.c 2+++ gtk+-2.12.7/gtk/gtkfilechooserdialog.c
3--- /tmp/gtk+-2.12.7/gtk/gtkfilechooserdefault.c 2008-02-29 17:00:14.000000000 +0000
4+++ ./gtk/gtkfilechooserdefault.c 2008-02-29 17:25:21.000000000 +0000
5@@ -178,8 +178,8 @@
6 #define FALLBACK_ICON_SIZE 24
7
8 #define LIST_HBOX_SPACING DEFAULT_SPACING
9-#define NUM_LINES 45
10-#define NUM_CHARS 60
11+#define NUM_LINES 10
12+#define NUM_CHARS 12
13
14 static void gtk_file_chooser_default_iface_init (GtkFileChooserIface *iface);
15 static void gtk_file_chooser_embed_default_iface_init (GtkFileChooserEmbedIface *iface);
16diff -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 @@ 3@@ -165,10 +165,10 @@
20 gdk_screen_get_monitor_geometry (screen, monitor_num, &monitor); 4 gdk_screen_get_monitor_geometry (screen, monitor_num, &monitor);
21 5
@@ -29,3 +13,23 @@ diff -ur /tmp/gtk+-2.12.7/gtk/gtkfilechooserdialog.c ./gtk/gtkfilechooserdialog.
29 } 13 }
30 14
31 static void 15 static void
16@@ -183,6 +183,7 @@
17
18 priv = GTK_FILE_CHOOSER_DIALOG_GET_PRIVATE (dialog);
19
20+#if 0
21 /* Unset any previously set size */
22 gtk_widget_set_size_request (GTK_WIDGET (dialog), -1, -1);
23
24@@ -209,6 +210,11 @@
25 /* Ideal target size plus any extra size */
26 width = default_width + width + (2 * GTK_CONTAINER (dialog)->border_width);
27 height = default_height + height + (2 * GTK_CONTAINER (dialog)->border_width);
28+#endif
29+
30+ /* for small screens we just hard code a sensible value */
31+ width = 350;
32+ height = 350;
33
34 if (GTK_WIDGET_REALIZED (dialog))
35 clamp_to_screen (GTK_WIDGET (dialog), &width, &height);