1 |
eva 09/03/22 02:20:27 |
2 |
|
3 |
Added: screem-0.16.1-dbus-closing.patch |
4 |
screem-0.16.1-deprecated.patch |
5 |
screem-0.16.1-goption.patch |
6 |
screem-0.16.1-add-tag-file.patch |
7 |
screem-0.16.1-fix-about-dialog.patch |
8 |
Log: |
9 |
Bump to 0.16.1-r1, |
10 |
* Remove deprecation warnings, bug #127486. |
11 |
* Make add tag file feature work, bug #256611. |
12 |
* About dialog does not close, bug #256803. |
13 |
* Fix error in exit due to old dbus calls, bug #255750. |
14 |
* Port to GOption, fix tests. |
15 |
* Install translations, bug #256611. |
16 |
(Portage version: 2.2_rc25/cvs/Linux x86_64) |
17 |
|
18 |
Revision Changes Path |
19 |
1.1 app-editors/screem/files/screem-0.16.1-dbus-closing.patch |
20 |
|
21 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-editors/screem/files/screem-0.16.1-dbus-closing.patch?rev=1.1&view=markup |
22 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-editors/screem/files/screem-0.16.1-dbus-closing.patch?rev=1.1&content-type=text/plain |
23 |
|
24 |
Index: screem-0.16.1-dbus-closing.patch |
25 |
=================================================================== |
26 |
--- |
27 |
https://bugs.gentoo.org/show_bug.cgi?id=255750 |
28 |
https://sourceforge.net/tracker/index.php?func=detail&aid=2543239&group_id=142&atid=100142 |
29 |
|
30 |
This removes some obsolete calls to dbus-0.33.0 which were introduced in 2005, |
31 |
according to the internal ChangeLog of the package. |
32 |
|
33 |
|
34 |
--- a/src/screem-dbus.c 2009-01-18 12:26:29.000000000 +0100 |
35 |
+++ b/src/screem-dbus.c 2009-01-18 21:57:55.000000000 +0100 |
36 |
@@ -129,19 +129,9 @@ |
37 |
|
38 |
#ifdef HAVE_DBUS |
39 |
if( priv->conn ) { |
40 |
-#if DBUS_VERSION > 33000 |
41 |
- dbus_connection_close( priv->conn ); |
42 |
-#else |
43 |
- dbus_connection_disconnect( priv->conn ); |
44 |
-#endif |
45 |
dbus_connection_unref( priv->conn ); |
46 |
} |
47 |
if( priv->sconn ) { |
48 |
-#if DBUS_VERSION > 33000 |
49 |
- dbus_connection_close( priv->sconn ); |
50 |
-#else |
51 |
- dbus_connection_disconnect( priv->sconn ); |
52 |
-#endif |
53 |
dbus_connection_unref( priv->sconn ); |
54 |
} |
55 |
#endif |
56 |
|
57 |
|
58 |
|
59 |
1.1 app-editors/screem/files/screem-0.16.1-deprecated.patch |
60 |
|
61 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-editors/screem/files/screem-0.16.1-deprecated.patch?rev=1.1&view=markup |
62 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-editors/screem/files/screem-0.16.1-deprecated.patch?rev=1.1&content-type=text/plain |
63 |
|
64 |
Index: screem-0.16.1-deprecated.patch |
65 |
=================================================================== |
66 |
--- |
67 |
http://patches.ubuntu.com/by-release/extracted/ubuntu/s/screem/0.16.1-4.2ubuntu1/no-disable-deprecated.patch |
68 |
|
69 |
--- a/configure.ac 2007-11-15 09:17:22.000000000 +0100 |
70 |
+++ b/configure.ac 2007-11-15 09:17:31.000000000 +0100 |
71 |
@@ -255,7 +255,7 @@ |
72 |
dnl being the blocker here, need a util function which does the |
73 |
dnl same for utf-8 |
74 |
|
75 |
-DEPRECATION_FLAGS="-DGTK_DISABLE_DEPRECATED -DGNOME_DISABLE_DEPRECATED -DGNOMEUI_DISABLE_DEPRECATED" |
76 |
+DEPRECATION_FLAGS="" |
77 |
|
78 |
CFLAGS="$SCREEM_CFLAGS -Wall $DEPRECATION_FLAGS $CFLAGS" |
79 |
AC_SUBST(CFLAGS) |
80 |
--- a/configure |
81 |
+++ b/configure |
82 |
@@ -26003,7 +26003,7 @@ |
83 |
|
84 |
|
85 |
|
86 |
-DEPRECATION_FLAGS="-DGTK_DISABLE_DEPRECATED -DGNOME_DISABLE_DEPRECATED -DGNOMEUI_DISABLE_DEPRECATED" |
87 |
+DEPRECATION_FLAGS="" |
88 |
|
89 |
CFLAGS="$SCREEM_CFLAGS -Wall $DEPRECATION_FLAGS $CFLAGS" |
90 |
|
91 |
|
92 |
|
93 |
|
94 |
1.1 app-editors/screem/files/screem-0.16.1-goption.patch |
95 |
|
96 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-editors/screem/files/screem-0.16.1-goption.patch?rev=1.1&view=markup |
97 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-editors/screem/files/screem-0.16.1-goption.patch?rev=1.1&content-type=text/plain |
98 |
|
99 |
Index: screem-0.16.1-goption.patch |
100 |
=================================================================== |
101 |
--- |
102 |
Use GOption in place of popt. |
103 |
|
104 |
http://patches.ubuntu.com/by-release/extracted/ubuntu/s/screem/0.16.1-4.2ubuntu1/switch-to-goption.patch |
105 |
|
106 |
--- a/src/screem-main.c 2005-10-10 20:17:58.000000000 +0100 |
107 |
+++ b/src/screem-main.c 2006-04-24 23:11:08.732661938 +0100 |
108 |
@@ -54,12 +54,23 @@ |
109 |
static gchar *session_filename = SESSION_LAST; |
110 |
|
111 |
/* passed parameters stuff */ |
112 |
+#ifndef GNOME_PARAM_GOPTION_CONTEXT |
113 |
static const struct poptOption options[] = { |
114 |
{ "load-session", 'l', POPT_ARG_STRING, &session_filename, 0, |
115 |
N_("Load the given session file"), |
116 |
N_("FILE") }, |
117 |
{ NULL, '\0', 0, NULL, 0, NULL, NULL } |
118 |
}; |
119 |
+#else /* USE GOption interface */ |
120 |
+static const gchar **remaining_args = NULL; |
121 |
+static GOptionEntry option_entries[] = { |
122 |
+ { "load-session", 'l', 0, G_OPTION_ARG_STRING, &(session_filename), |
123 |
+ N_("Load the given session file"), N_("FILE") }, |
124 |
+ { G_OPTION_REMAINING, 0, 0, G_OPTION_ARG_FILENAME_ARRAY, &remaining_args, |
125 |
+ "Special option that collects any remaining arguments for us" }, |
126 |
+ { NULL } |
127 |
+}; |
128 |
+#endif |
129 |
|
130 |
typedef enum { |
131 |
MISSING_GLADE, |
132 |
@@ -75,8 +86,10 @@ |
133 |
int main( int argc, char *argv[] ) |
134 |
{ |
135 |
GnomeProgram *program; |
136 |
+ const gchar** start_files; |
137 |
+#ifndef GNOME_PARAM_GOPTION_CONTEXT |
138 |
poptContext ctx; |
139 |
- const gchar** start_files; |
140 |
+#endif |
141 |
const gchar *icon; |
142 |
|
143 |
gchar *dotdir; |
144 |
@@ -88,11 +101,21 @@ |
145 |
bind_textdomain_codeset( GETTEXT_PACKAGE, "UTF-8" ); |
146 |
textdomain( GETTEXT_PACKAGE ); |
147 |
#endif |
148 |
+ |
149 |
+#ifdef GNOME_PARAM_GOPTION_CONTEXT |
150 |
+ GOptionContext *option_context = g_option_context_new("screem"); |
151 |
+ g_option_context_add_main_entries(option_context, option_entries, NULL); |
152 |
+#endif |
153 |
+ |
154 |
program = gnome_program_init( PACKAGE, VERSION, |
155 |
LIBGNOMEUI_MODULE, |
156 |
argc, argv, |
157 |
GNOME_PROGRAM_STANDARD_PROPERTIES, |
158 |
+#ifndef GNOME_PARAM_GOPTION_CONTEXT |
159 |
GNOME_PARAM_POPT_TABLE, options, |
160 |
+#else |
161 |
+ GNOME_PARAM_GOPTION_CONTEXT, option_context, |
162 |
+#endif |
163 |
GNOME_PARAM_APP_DATADIR, DATADIR, |
164 |
LIBGNOMEUI_PARAM_DEFAULT_ICON, |
165 |
DATADIR"/pixmaps/screem.png", |
166 |
@@ -105,10 +128,14 @@ |
167 |
icon = DATADIR"/pixmaps/screem.png"; |
168 |
gtk_window_set_default_icon_from_file( icon, NULL ); |
169 |
|
170 |
+#ifndef GNOME_PARAM_GOPTION_CONTEXT |
171 |
/* parse arguments */ |
172 |
g_object_get( G_OBJECT( program ), |
173 |
GNOME_PARAM_POPT_CONTEXT, &ctx, NULL ); |
174 |
start_files = parse_args( ctx, argc, argv ); |
175 |
+#else |
176 |
+ start_files = remaining_args; |
177 |
+#endif |
178 |
|
179 |
gnome_vfs_init(); |
180 |
gnome_authentication_manager_init(); |
181 |
@@ -160,6 +187,7 @@ |
182 |
return FALSE; |
183 |
} |
184 |
|
185 |
+#ifndef GNOME_PARAM_GOPTION_CONTEXT |
186 |
static const gchar **parse_args( poptContext ctx, int argc, char *argv[] ) |
187 |
{ |
188 |
const gchar** start_files; |
189 |
@@ -169,6 +197,7 @@ |
190 |
|
191 |
return start_files; |
192 |
} |
193 |
+#endif |
194 |
|
195 |
static void screem_main_missing( MissingType type ) |
196 |
{ |
197 |
|
198 |
|
199 |
|
200 |
1.1 app-editors/screem/files/screem-0.16.1-add-tag-file.patch |
201 |
|
202 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-editors/screem/files/screem-0.16.1-add-tag-file.patch?rev=1.1&view=markup |
203 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-editors/screem/files/screem-0.16.1-add-tag-file.patch?rev=1.1&content-type=text/plain |
204 |
|
205 |
Index: screem-0.16.1-add-tag-file.patch |
206 |
=================================================================== |
207 |
--- |
208 |
Tag tree feature does not work. |
209 |
|
210 |
https://bugs.gentoo.org/show_bug.cgi?id=256611 |
211 |
https://sourceforge.net/support/tracker.php?aid=2543273 |
212 |
|
213 |
--- a/src/screem-tagtree.c 2009-01-21 20:00:39.000000000 +0100 |
214 |
+++ b/src/screem-tagtree.c 2009-01-27 15:37:12.000000000 +0100 |
215 |
@@ -673,12 +673,8 @@ |
216 |
G_TYPE_POINTER ); |
217 |
|
218 |
priv->dtdbranch = screem_tag_file_new(); |
219 |
+ model=priv->umodel; |
220 |
|
221 |
- model = gtk_tree_model_sort_new_with_model( priv->umodel ); |
222 |
- gtk_tree_sortable_set_sort_func( GTK_TREE_SORTABLE( model ), |
223 |
- 0, screem_tag_tree_sort, tree, NULL ); |
224 |
- gtk_tree_sortable_set_sort_column_id( GTK_TREE_SORTABLE( model ), |
225 |
- SCREEM_TAG_FILE_NAME, GTK_SORT_ASCENDING ); |
226 |
priv->sorted = model; |
227 |
|
228 |
screem_tag_tree_add_file( tree, priv->dtdbranch, TRUE ); |
229 |
@@ -688,7 +684,6 @@ |
230 |
model ); |
231 |
gdk_threads_leave(); |
232 |
|
233 |
- g_object_unref( model ); |
234 |
|
235 |
return FALSE; |
236 |
} |
237 |
--- a/src/screem-preferences.c 2009-01-27 16:50:33.000000000 +0100 |
238 |
+++ b/src/screem-preferences.c 2009-01-27 17:25:38.000000000 +0100 |
239 |
@@ -1387,7 +1387,8 @@ |
240 |
glade_xml_signal_autoconnect( dxml ); |
241 |
|
242 |
if( gtk_dialog_run( GTK_DIALOG( widget ) ) == GTK_RESPONSE_OK ) { |
243 |
- widget = glade_xml_get_widget( dxml, "url" ); |
244 |
+ widget = glade_xml_get_widget( dxml, "open_file_uri" ); |
245 |
+ widget = GTK_BIN( widget )->child; |
246 |
url = gtk_entry_get_text( GTK_ENTRY( widget ) ); |
247 |
|
248 |
found = screem_gtk_list_store_find_string( GTK_LIST_STORE( model ), &it, TAG_FILE_URI_COL, url ); |
249 |
|
250 |
|
251 |
|
252 |
1.1 app-editors/screem/files/screem-0.16.1-fix-about-dialog.patch |
253 |
|
254 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-editors/screem/files/screem-0.16.1-fix-about-dialog.patch?rev=1.1&view=markup |
255 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-editors/screem/files/screem-0.16.1-fix-about-dialog.patch?rev=1.1&content-type=text/plain |
256 |
|
257 |
Index: screem-0.16.1-fix-about-dialog.patch |
258 |
=================================================================== |
259 |
--- |
260 |
The "about" window does not close. |
261 |
|
262 |
https://bugs.gentoo.org/show_bug.cgi?id=256803 |
263 |
http://patches.ubuntu.com/by-release/extracted/ubuntu/s/screem/0.16.1-4.2ubuntu1/fix_help_about_dialog.patch |
264 |
https://sourceforge.net/tracker/index.php?func=detail&aid=1752102&group_id=142&atid=100142 |
265 |
|
266 |
--- a/src/screem-window-menus.c 2005-11-12 13:56:37.000000000 -0500 |
267 |
+++ b/src/screem-window-menus.c 2008-10-13 09:43:30.000000000 -0400 |
268 |
@@ -3030,6 +3030,9 @@ |
269 |
g_signal_connect_swapped( G_OBJECT( about ), "destroy", |
270 |
G_CALLBACK( g_nullify_pointer ), |
271 |
&about ); |
272 |
+ g_signal_connect( G_OBJECT( about ), "response", |
273 |
+ G_CALLBACK( gtk_widget_destroy ), |
274 |
+ NULL ); |
275 |
} |
276 |
gtk_window_set_transient_for( GTK_WINDOW( about ), |
277 |
GTK_WINDOW( user_data ) ); |