diff options
author | Ross Burton <ross@openedhand.com> | 2008-06-23 10:45:33 +0000 |
---|---|---|
committer | Ross Burton <ross@openedhand.com> | 2008-06-23 10:45:33 +0000 |
commit | 424de0873dda853a1071356d43772d0db975fbb9 (patch) | |
tree | 279db2422e557b3a71a2fa4441f510465435340e /meta/packages/gtk+/gtk+-2.13.3/filechooser-sizefix.patch | |
parent | 43f5623d4cf9f68ba34ae4f3843e154295473ded (diff) | |
download | openembedded-core-424de0873dda853a1071356d43772d0db975fbb9.tar.gz openembedded-core-424de0873dda853a1071356d43772d0db975fbb9.tar.bz2 openembedded-core-424de0873dda853a1071356d43772d0db975fbb9.tar.xz openembedded-core-424de0873dda853a1071356d43772d0db975fbb9.zip |
gtk: upgrade to 2.13.3 in bleeding
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4719 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/packages/gtk+/gtk+-2.13.3/filechooser-sizefix.patch')
-rw-r--r-- | meta/packages/gtk+/gtk+-2.13.3/filechooser-sizefix.patch | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/meta/packages/gtk+/gtk+-2.13.3/filechooser-sizefix.patch b/meta/packages/gtk+/gtk+-2.13.3/filechooser-sizefix.patch new file mode 100644 index 000000000..694b059b9 --- /dev/null +++ b/meta/packages/gtk+/gtk+-2.13.3/filechooser-sizefix.patch @@ -0,0 +1,35 @@ +--- gtk+-2.12.7.orig/gtk/gtkfilechooserdialog.c ++++ gtk+-2.12.7/gtk/gtkfilechooserdialog.c +@@ -165,10 +165,10 @@ + gdk_screen_get_monitor_geometry (screen, monitor_num, &monitor); + + if (width) +- *width = MIN (*width, (monitor.width * 3) / 4); ++ *width = MIN (*width, monitor.width); + + if (height) +- *height = MIN (*height, (monitor.height * 3) / 4); ++ *height = MIN (*height, monitor.height); + } + + static void +@@ -183,6 +183,7 @@ + + priv = GTK_FILE_CHOOSER_DIALOG_GET_PRIVATE (dialog); + ++#if 0 + /* Unset any previously set size */ + gtk_widget_set_size_request (GTK_WIDGET (dialog), -1, -1); + +@@ -209,6 +210,11 @@ + /* Ideal target size plus any extra size */ + width = default_width + width + (2 * GTK_CONTAINER (dialog)->border_width); + height = default_height + height + (2 * GTK_CONTAINER (dialog)->border_width); ++#endif ++ ++ /* for small screens we just hard code a sensible value */ ++ width = 350; ++ height = 350; + + if (GTK_WIDGET_REALIZED (dialog)) + clamp_to_screen (GTK_WIDGET (dialog), &width, &height); |