~ubuntu-desktop/gtk/ubuntu

« back to all changes in this revision

Viewing changes to debian/patches/004_gtk+-ximian-gtk2-filesel-navbutton-5.patch

  • Committer: Gianfranco Costamagna
  • Date: 2018-07-02 10:05:37 UTC
  • Revision ID: costamagnagianfranco@yahoo.it-20180702100537-q9b1n6o6cmd9q9ev
Tags: 2.24.32-2ubuntu1
releasing package gtk+2.0 version 2.24.32-2ubuntu1

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
Index: gtk+2.0-2.22.0/gtk/gtkfilesel.c
2
 
===================================================================
3
 
--- gtk+2.0-2.22.0.orig/gtk/gtkfilesel.c        2010-09-23 05:00:36.000000000 +0200
4
 
+++ gtk+2.0-2.22.0/gtk/gtkfilesel.c     2010-09-23 20:29:26.590578775 +0200
 
1
From: Debian GNOME Maintainers
 
2
 <pkg-gnome-maintainers@lists.alioth.debian.org>
 
3
Date: Sun, 13 Jul 2003 21:26:49 +0900
 
4
Subject: Ximian patch to improve the GtkFileSel UI
 
5
 
 
6
Requested by Ross Burton in 2003.
 
7
 
 
8
TODO: What does this patch do and why do we have it?
 
9
 
 
10
[Jonathan Brandmeyer: Use ~/Desktop instead of ~/.gnome2-desktop]
 
11
 
 
12
Forwarded: no
 
13
---
 
14
 gtk/gtkfilesel.c               | 291 +++++++++++++--
 
15
 gtk/stock-icons/ximian-icons.h | 825 +++++++++++++++++++++++++++++++++++++++++
 
16
 2 files changed, 1089 insertions(+), 27 deletions(-)
 
17
 create mode 100644 gtk/stock-icons/ximian-icons.h
 
18
 
 
19
diff --git a/gtk/gtkfilesel.c b/gtk/gtkfilesel.c
 
20
index d18c307..96e708a 100644
 
21
--- a/gtk/gtkfilesel.c
 
22
+++ b/gtk/gtkfilesel.c
5
23
@@ -80,9 +80,13 @@
6
24
 #include "gtkeventbox.h"
7
25
 #include "gtkoptionmenu.h"
16
34
 #include "gtkalias.h"
17
35
 
18
36
 #ifdef G_OS_WIN32
19
 
@@ -318,6 +322,9 @@
 
37
@@ -318,6 +322,9 @@ static gint                cmpl_last_valid_char    (CompletionState* cmpl_state)
20
38
  */
21
39
 static gchar*              cmpl_completion_fullname (const gchar*, CompletionState* cmpl_state);
22
40
 
26
44
 
27
45
 /* Directory operations. */
28
46
 static CompletionDir* open_ref_dir         (gchar* text_to_complete,
29
 
@@ -627,6 +634,10 @@
 
47
@@ -627,6 +634,10 @@ gtk_file_selection_init (GtkFileSelection *filesel)
30
48
   GtkWidget *spacer;
31
49
   GtkDialog *dialog;
32
50
 
37
55
   GtkListStore *model;
38
56
   GtkTreeViewColumn *column;
39
57
   
40
 
@@ -640,18 +651,9 @@
 
58
@@ -640,18 +651,9 @@ gtk_file_selection_init (GtkFileSelection *filesel)
41
59
   filesel->main_vbox = dialog->vbox;
42
60
   gtk_container_set_border_width (GTK_CONTAINER (filesel), 10);
43
61
 
57
75
   gtk_box_pack_start (GTK_BOX (filesel->main_vbox), pulldown_hbox, FALSE, FALSE, 0);
58
76
   gtk_widget_show (pulldown_hbox);
59
77
   
60
 
@@ -663,14 +665,27 @@
 
78
@@ -663,14 +665,27 @@ gtk_file_selection_init (GtkFileSelection *filesel)
61
79
     
62
80
   /*  The horizontal box containing the directory and file listboxes  */
63
81
 
87
105
   if (WANT_HPANED)
88
106
     list_container = g_object_new (GTK_TYPE_HPANED,
89
107
                                   "visible", TRUE,
90
 
@@ -682,9 +697,78 @@
 
108
@@ -682,9 +697,78 @@ gtk_file_selection_init (GtkFileSelection *filesel)
91
109
 
92
110
   spacer = gtk_hbox_new (FALSE, 0);
93
111
   gtk_widget_set_size_request (spacer, -1, 5);
167
185
   /* The directories list */
168
186
 
169
187
   model = gtk_list_store_new (1, G_TYPE_STRING);
170
 
@@ -757,6 +841,15 @@
 
188
@@ -757,6 +841,15 @@ gtk_file_selection_init (GtkFileSelection *filesel)
171
189
   gtk_widget_show (filesel->file_list);
172
190
   gtk_widget_show (scrolled_win);
173
191
 
183
201
   /* action area for packing buttons into. */
184
202
   filesel->action_area = gtk_hbox_new (TRUE, 0);
185
203
   gtk_box_pack_start (GTK_BOX (filesel->main_vbox), filesel->action_area, 
186
 
@@ -1012,39 +1105,94 @@
 
204
@@ -1012,39 +1105,94 @@ gtk_file_selection_new (const gchar *title)
187
205
 void
188
206
 gtk_file_selection_show_fileop_buttons (GtkFileSelection *filesel)
189
207
 {
292
310
       gtk_widget_show (filesel->fileop_ren_file);
293
311
     }
294
312
   
295
 
@@ -1752,6 +1900,95 @@
 
313
@@ -1752,6 +1900,95 @@ gtk_file_selection_update_fileops (GtkFileSelection *fs)
296
314
     gtk_widget_set_sensitive (fs->fileop_ren_file, sensitive);
297
315
 }
298
316
 
388
406
 static gint
389
407
 gtk_file_selection_key_press (GtkWidget   *widget,
390
408
                              GdkEventKey *event,
391
 
Index: gtk+2.0-2.22.0/gtk/stock-icons/ximian-icons.h
392
 
===================================================================
393
 
--- /dev/null   1970-01-01 00:00:00.000000000 +0000
394
 
+++ gtk+2.0-2.22.0/gtk/stock-icons/ximian-icons.h       2010-09-23 20:29:26.817579822 +0200
 
409
diff --git a/gtk/stock-icons/ximian-icons.h b/gtk/stock-icons/ximian-icons.h
 
410
new file mode 100644
 
411
index 0000000..e8173a8
 
412
--- /dev/null
 
413
+++ b/gtk/stock-icons/ximian-icons.h
395
414
@@ -0,0 +1,825 @@
396
415
+/* GdkPixbuf RGBA C-Source image dump 1-byte-run-length-encoded */
397
416
+