summaryrefslogtreecommitdiff
path: root/meta
diff options
context:
space:
mode:
authorRoss Burton <ross@openedhand.com>2007-06-04 11:51:33 +0000
committerRoss Burton <ross@openedhand.com>2007-06-04 11:51:33 +0000
commit8dad92a852716ee89a88813142b0a3d8124a0f15 (patch)
treef73c3d0e695a826e43fd818e99c07eb08e5eec74 /meta
parent78ecf7c3b7d32026e2f0a3d61d88ed80299cfc1c (diff)
downloadopenembedded-core-8dad92a852716ee89a88813142b0a3d8124a0f15.tar.gz
openembedded-core-8dad92a852716ee89a88813142b0a3d8124a0f15.tar.bz2
openembedded-core-8dad92a852716ee89a88813142b0a3d8124a0f15.tar.xz
openembedded-core-8dad92a852716ee89a88813142b0a3d8124a0f15.zip
Add useful but unused patch
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@1857 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta')
-rw-r--r--meta/packages/gtk+/gtk+-2.6.10/smaller-filechooser.patch47
1 files changed, 47 insertions, 0 deletions
diff --git a/meta/packages/gtk+/gtk+-2.6.10/smaller-filechooser.patch b/meta/packages/gtk+/gtk+-2.6.10/smaller-filechooser.patch
new file mode 100644
index 000000000..3c6f7217e
--- /dev/null
+++ b/meta/packages/gtk+/gtk+-2.6.10/smaller-filechooser.patch
@@ -0,0 +1,47 @@
+Index: gtkfilechooserdefault.c
+===================================================================
+RCS file: /cvs/gnome/gtk+/gtk/gtkfilechooserdefault.c,v
+retrieving revision 1.240.2.25
+diff -u -p -r1.240.2.25 gtkfilechooserdefault.c
+--- gtk+/gtk/gtkfilechooserdefault.c 7 Jul 2005 17:14:09 -0000 1.240.2.25
++++ gtk+/gtk/gtkfilechooserdefault.c 27 Oct 2006 14:22:28 -0000
+@@ -3728,6 +3728,7 @@ browse_widgets_create (GtkFileChooserDef
+ GtkWidget *vbox;
+ GtkWidget *hpaned;
+ GtkWidget *widget;
++ GtkWidget *shortcuts_pane;
+ GtkSizeGroup *size_group;
+
+ /* size group is used by the [+][-] buttons and the filter combo */
+@@ -3740,12 +3741,29 @@ browse_widgets_create (GtkFileChooserDef
+ gtk_paned_set_position (GTK_PANED (hpaned), 200); /* FIXME: this sucks */
+ gtk_box_pack_start (GTK_BOX (vbox), hpaned, TRUE, TRUE, 0);
+
+- widget = shortcuts_pane_create (impl, size_group);
+- gtk_paned_pack1 (GTK_PANED (hpaned), widget, FALSE, FALSE);
++ shortcuts_pane = shortcuts_pane_create (impl, size_group);
++ gtk_paned_pack1 (GTK_PANED (hpaned), shortcuts_pane, FALSE, FALSE);
+ widget = file_pane_create (impl, size_group);
+ gtk_paned_pack2 (GTK_PANED (hpaned), widget, TRUE, FALSE);
+
+ g_object_unref (size_group);
++
++
++ /* remove excess baggage from the filechooser for small displays */
++
++ /* get the columns in the tree view and remove the last column (should be Modified column) */
++ GList *column_list;
++ column_list = gtk_tree_view_get_columns (GTK_TREE_VIEW (impl->browse_files_tree_view));
++ gtk_tree_view_remove_column (GTK_TREE_VIEW (impl->browse_files_tree_view), (g_list_last (column_list))->data);
++ g_list_free (column_list);
++
++ /* hide the tree view headers */
++ gtk_tree_view_set_headers_visible (GTK_TREE_VIEW (impl->browse_files_tree_view), FALSE);
++
++ /* hide the shortcuts pane */
++ gtk_widget_hide (GTK_WIDGET (shortcuts_pane));
++
++
+
+ return vbox;
+ }