diff options
author | Richard Purdie <richard@openedhand.com> | 2008-03-02 17:14:51 +0000 |
---|---|---|
committer | Richard Purdie <richard@openedhand.com> | 2008-03-02 17:14:51 +0000 |
commit | 9f9900b9b4ef2d2e855293f7850f81fa0f33a616 (patch) | |
tree | f226d9e5de74a3c40011a6b4b3751ba2d6d46dd9 /meta/packages | |
parent | 639f3823f570ae0b30e9dd39d7fee2ce8a310ad9 (diff) | |
download | openembedded-core-9f9900b9b4ef2d2e855293f7850f81fa0f33a616.tar.gz openembedded-core-9f9900b9b4ef2d2e855293f7850f81fa0f33a616.tar.bz2 openembedded-core-9f9900b9b4ef2d2e855293f7850f81fa0f33a616.tar.xz openembedded-core-9f9900b9b4ef2d2e855293f7850f81fa0f33a616.zip |
gtk+: Updated filechooser size patch from Thomas
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@3885 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/packages')
-rw-r--r-- | meta/packages/gtk+/gtk+-2.12.7/filechooser-sizefix.patch | 40 | ||||
-rw-r--r-- | meta/packages/gtk+/gtk+_2.12.7.bb | 2 |
2 files changed, 23 insertions, 19 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 4de68dfb9..694b059b9 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 @@ - -diff -ur /tmp/gtk+-2.12.7/gtk/gtkfilechooserdefault.c ./gtk/gtkfilechooserdefault.c ---- /tmp/gtk+-2.12.7/gtk/gtkfilechooserdefault.c 2008-02-29 17:00:14.000000000 +0000 -+++ ./gtk/gtkfilechooserdefault.c 2008-02-29 17:25:21.000000000 +0000 -@@ -178,8 +178,8 @@ - #define FALLBACK_ICON_SIZE 24 - - #define LIST_HBOX_SPACING DEFAULT_SPACING --#define NUM_LINES 45 --#define NUM_CHARS 60 -+#define NUM_LINES 10 -+#define NUM_CHARS 12 - - static void gtk_file_chooser_default_iface_init (GtkFileChooserIface *iface); - static void gtk_file_chooser_embed_default_iface_init (GtkFileChooserEmbedIface *iface); -diff -ur /tmp/gtk+-2.12.7/gtk/gtkfilechooserdialog.c ./gtk/gtkfilechooserdialog.c ---- /tmp/gtk+-2.12.7/gtk/gtkfilechooserdialog.c 2008-01-30 03:11:07.000000000 +0000 -+++ ./gtk/gtkfilechooserdialog.c 2008-02-29 17:20:30.000000000 +0000 +--- 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); @@ -29,3 +13,23 @@ diff -ur /tmp/gtk+-2.12.7/gtk/gtkfilechooserdialog.c ./gtk/gtkfilechooserdialog. } 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); diff --git a/meta/packages/gtk+/gtk+_2.12.7.bb b/meta/packages/gtk+/gtk+_2.12.7.bb index f66b4b80b..1f3e6e394 100644 --- a/meta/packages/gtk+/gtk+_2.12.7.bb +++ b/meta/packages/gtk+/gtk+_2.12.7.bb @@ -1,7 +1,7 @@ require gtk+.inc DEPENDS += "cairo" -PR = "r5" +PR = "r6" SRC_URI = "http://download.gnome.org/sources/gtk+/2.12/gtk+-${PV}.tar.bz2 \ file://xsettings.patch;patch=1 \ |