diff options
Diffstat (limited to 'meta/recipes-gnome/gtk+/gtk+-2.12.7/filechooser-sizefix.patch')
-rw-r--r-- | meta/recipes-gnome/gtk+/gtk+-2.12.7/filechooser-sizefix.patch | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/meta/recipes-gnome/gtk+/gtk+-2.12.7/filechooser-sizefix.patch b/meta/recipes-gnome/gtk+/gtk+-2.12.7/filechooser-sizefix.patch deleted file mode 100644 index 0973eca486..0000000000 --- a/meta/recipes-gnome/gtk+/gtk+-2.12.7/filechooser-sizefix.patch +++ /dev/null | |||
@@ -1,37 +0,0 @@ | |||
1 | Upstream-Status: Inappropriate [enable feature] | ||
2 | |||
3 | --- gtk+-2.12.7.orig/gtk/gtkfilechooserdialog.c | ||
4 | +++ gtk+-2.12.7/gtk/gtkfilechooserdialog.c | ||
5 | @@ -165,10 +165,10 @@ | ||
6 | gdk_screen_get_monitor_geometry (screen, monitor_num, &monitor); | ||
7 | |||
8 | if (width) | ||
9 | - *width = MIN (*width, (monitor.width * 3) / 4); | ||
10 | + *width = MIN (*width, monitor.width); | ||
11 | |||
12 | if (height) | ||
13 | - *height = MIN (*height, (monitor.height * 3) / 4); | ||
14 | + *height = MIN (*height, monitor.height); | ||
15 | } | ||
16 | |||
17 | static void | ||
18 | @@ -183,6 +183,7 @@ | ||
19 | |||
20 | priv = GTK_FILE_CHOOSER_DIALOG_GET_PRIVATE (dialog); | ||
21 | |||
22 | +#if 0 | ||
23 | /* Unset any previously set size */ | ||
24 | gtk_widget_set_size_request (GTK_WIDGET (dialog), -1, -1); | ||
25 | |||
26 | @@ -209,6 +210,11 @@ | ||
27 | /* Ideal target size plus any extra size */ | ||
28 | width = default_width + width + (2 * GTK_CONTAINER (dialog)->border_width); | ||
29 | height = default_height + height + (2 * GTK_CONTAINER (dialog)->border_width); | ||
30 | +#endif | ||
31 | + | ||
32 | + /* for small screens we just hard code a sensible value */ | ||
33 | + width = 350; | ||
34 | + height = 350; | ||
35 | |||
36 | if (GTK_WIDGET_REALIZED (dialog)) | ||
37 | clamp_to_screen (GTK_WIDGET (dialog), &width, &height); | ||