Gentoo Archives: gentoo-commits

From: "Gilles Dartiguelongue (eva)" <eva@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in gnome-base/nautilus/files: nautilus-2.24.2-filechooser-icon.patch nautilus-2.24.2-playlist-preview.patch
Date: Sat, 21 Mar 2009 12:59:29
Message-Id: E1Ll0nI-0000RR-TA@stork.gentoo.org
1 eva 09/03/21 12:59:20
2
3 Added: nautilus-2.24.2-filechooser-icon.patch
4 nautilus-2.24.2-playlist-preview.patch
5 Log:
6 Bump to 2.24.2-r2. Thanks to Pacho Ramos,
7 * Fix preview on playlists, bug #263162
8 * Fix non asyncness in custom icon filechooser, bug #263165
9 (Portage version: 2.2_rc25/cvs/Linux x86_64)
10
11 Revision Changes Path
12 1.1 gnome-base/nautilus/files/nautilus-2.24.2-filechooser-icon.patch
13
14 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/gnome-base/nautilus/files/nautilus-2.24.2-filechooser-icon.patch?rev=1.1&view=markup
15 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/gnome-base/nautilus/files/nautilus-2.24.2-filechooser-icon.patch?rev=1.1&content-type=text/plain
16
17 Index: nautilus-2.24.2-filechooser-icon.patch
18 ===================================================================
19 # https://bugzilla.gnome.org/show_bug.cgi?id=575344
20 # https://bugs.gentoo.org/show_bug.cgi?id=263165
21 --- a/src/file-manager/fm-properties-window.c 2009/03/08 00:33:28 15067
22 +++ b/src/file-manager/fm-properties-window.c 2009/03/20 14:35:04 15145
23 @@ -5677,6 +5677,31 @@
24 }
25
26 static void
27 +custom_icon_file_chooser_response_cb (GtkDialog *dialog,
28 + gint response,
29 + FMPropertiesWindow *window)
30 +{
31 + char *uri;
32 +
33 + switch (response) {
34 + case GTK_RESPONSE_NO:
35 + reset_icon (window);
36 + break;
37 +
38 + case GTK_RESPONSE_OK:
39 + uri = gtk_file_chooser_get_uri (GTK_FILE_CHOOSER (dialog));
40 + set_icon (uri, window);
41 + g_free (uri);
42 + break;
43 +
44 + default:
45 + break;
46 + }
47 +
48 + gtk_widget_hide (GTK_WIDGET (dialog));
49 +}
50 +
51 +static void
52 select_image_button_callback (GtkWidget *widget,
53 FMPropertiesWindow *window)
54 {
55 @@ -5684,8 +5709,8 @@
56 GtkFileFilter *filter;
57 GList *l;
58 NautilusFile *file;
59 - char *image_path;
60 char *uri;
61 + char *image_path;
62 gboolean revert_is_sensitive;
63
64 g_assert (FM_IS_PROPERTIES_WINDOW (window));
65 @@ -5751,22 +5776,9 @@
66 }
67 gtk_dialog_set_response_sensitive (GTK_DIALOG (dialog), GTK_RESPONSE_NO, revert_is_sensitive);
68
69 - switch (gtk_dialog_run (GTK_DIALOG (dialog))) {
70 - case GTK_RESPONSE_NO:
71 - reset_icon (window);
72 - break;
73 -
74 - case GTK_RESPONSE_OK:
75 - uri = gtk_file_chooser_get_uri (GTK_FILE_CHOOSER (dialog));
76 - set_icon (uri, window);
77 - g_free (uri);
78 - break;
79 -
80 - default:
81 - break;
82 - }
83 -
84 - gtk_widget_hide (dialog);
85 + g_signal_connect (dialog, "response",
86 + G_CALLBACK (custom_icon_file_chooser_response_cb), window);
87 + gtk_widget_show (dialog);
88 }
89
90 static void
91
92
93
94 1.1 gnome-base/nautilus/files/nautilus-2.24.2-playlist-preview.patch
95
96 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/gnome-base/nautilus/files/nautilus-2.24.2-playlist-preview.patch?rev=1.1&view=markup
97 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/gnome-base/nautilus/files/nautilus-2.24.2-playlist-preview.patch?rev=1.1&content-type=text/plain
98
99 Index: nautilus-2.24.2-playlist-preview.patch
100 ===================================================================
101 # https://bugzilla.gnome.org/show_bug.cgi?id=575345
102 # https://bugs.gentoo.org/show_bug.cgi?id=263162
103 --- a/src/file-manager/nautilus-audio-mime-types.h (revision 15140)
104 +++ b/src/file-manager/nautilus-audio-mime-types.h (working copy)
105 @@ -1,6 +1,6 @@
106 /* generated with mime-types-include.sh in the totem module, don't edit or
107 commit in the nautilus module without filing a bug against totem */
108 -static char *audio_mime_types[] = {
109 +static const char *audio_mime_types[] = {
110 "audio/3gpp",
111 "audio/ac3",
112 "audio/AMR",
113 @@ -9,18 +9,18 @@
114 "audio/midi",
115 "audio/mp4",
116 "audio/mpeg",
117 -"audio/mpegurl",
118 "audio/ogg",
119 +"audio/prs.sid",
120 "audio/vnd.rn-realaudio",
121 "audio/x-ape",
122 "audio/x-flac",
123 +"audio/x-gsm",
124 "audio/x-it",
125 "audio/x-m4a",
126 "audio/x-matroska",
127 "audio/x-mod",
128 "audio/x-mp3",
129 "audio/x-mpeg",
130 -"audio/x-mpegurl",
131 "audio/x-ms-asf",
132 "audio/x-ms-asx",
133 "audio/x-ms-wax",
134 @@ -33,7 +33,6 @@
135 "audio/x-realaudio",
136 "audio/x-real-audio",
137 "audio/x-sbc",
138 -"audio/x-scpls",
139 "audio/x-speex",
140 "audio/x-tta",
141 "audio/x-wav",