Merge lp:~dbusmenu-team/ubuntu/precise/libdbusmenu/upstream into lp:~ubuntu-desktop/libdbusmenu/ubuntu

Proposed by Ted Gould
Status: Merged
Merged at revision: 176
Proposed branch: lp:~dbusmenu-team/ubuntu/precise/libdbusmenu/upstream
Merge into: lp:~ubuntu-desktop/libdbusmenu/ubuntu
Diff against target: 352 lines (+113/-35)
12 files modified
ChangeLog (+50/-0)
configure (+11/-11)
configure.ac (+3/-3)
debian/changelog (+8/-0)
docs/libdbusmenu-glib/reference/html/ch01.html (+1/-1)
docs/libdbusmenu-glib/reference/html/libdbusmenu-glib-DbusmenuMenuitem.html (+2/-2)
docs/libdbusmenu-glib/reference/version.xml (+1/-1)
docs/libdbusmenu-glib/reference/xml/menuitem.xml (+2/-2)
docs/libdbusmenu-gtk/reference/html/ch01.html (+1/-1)
docs/libdbusmenu-gtk/reference/version.xml (+1/-1)
libdbusmenu-gtk/client.c (+21/-9)
libdbusmenu-gtk/parser.c (+12/-4)
To merge this branch: bzr merge lp:~dbusmenu-team/ubuntu/precise/libdbusmenu/upstream
Reviewer Review Type Date Requested Status
Sebastien Bacher Pending
Ken VanDine Pending
Review via email: mp+96829@code.launchpad.net

Description of the change

Fix gedit for Seb

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'ChangeLog'
2--- ChangeLog 2012-03-08 15:58:14 +0000
3+++ ChangeLog 2012-03-09 20:38:32 +0000
4@@ -1,5 +1,55 @@
5 # Generated by Makefile. Do not edit.
6
7+2012-03-09 Ted Gould <ted@gould.cx>
8+
9+ 0.5.94
10+
11+2012-03-09 Ted Gould <ted@gould.cx>
12+
13+ Removing underscores in the ATK name
14+
15+2012-03-09 Ted Gould <ted@gould.cx>
16+
17+ Restructuring slightly to have two cases, allocating memory and not allocating
18+
19+2012-03-09 Luke Yelavich <luke.yelavich@canonical.com>
20+
21+ Remove the underscores used for mnewmonics, as orca speaks them, which is not
22+ what we want.
23+
24+2012-03-09 Ted Gould <ted@gould.cx>
25+
26+ Making sure to disconnect theme changed handler universally
27+
28+2012-03-09 Ted Gould <ted@gould.cx>
29+
30+ Attaching bug
31+
32+2012-03-09 Ted Gould <ted@gould.cx>
33+
34+ Missing a couple of cases of removing the signal handler and clearing the stored value
35+
36+2012-03-08 Ted Gould <ted@gould.cx>
37+
38+ Making sure the ATK object name always gets set to the label if nothing else
39+
40+2012-03-08 Luke Yelavich <luke.yelavich@canonical.com>
41+
42+ Set the accessible name from the dbusmenu item label. THis is a work-around until GTK follows atk docs.
43+
44+2012-03-08 Luke Yelavich <luke.yelavich@canonical.com>
45+
46+ Merge from trunk.
47+
48+2012-02-17 Luke Yelavich <luke.yelavich@canonical.com>
49+
50+ Do not set the accessible name to an empty string if the accessible_desc
51+ property = NULL. Yes this was recently changed so that dbusmenu conformed
52+ to Atk documentation, but the GTK menu item accessibility code does not yet
53+ conform to sed documentation. As a result, all dbusmenu menu items that do not
54+ have the accessible_desc property set end up getting an empty string for their
55+ accessible name. In the long term, GTK accessibility needs to be fixed.
56+
57 2012-03-08 Ted Gould <ted@gould.cx>
58
59 0.5.93
60
61=== modified file 'configure'
62--- configure 2012-03-08 16:01:54 +0000
63+++ configure 2012-03-09 20:38:32 +0000
64@@ -1,6 +1,6 @@
65 #! /bin/sh
66 # Guess values for system-dependent variables and create Makefiles.
67-# Generated by GNU Autoconf 2.68 for libdbusmenu 0.5.93.
68+# Generated by GNU Autoconf 2.68 for libdbusmenu 0.5.94.
69 #
70 # Report bugs to <ted@canonical.com>.
71 #
72@@ -572,8 +572,8 @@
73 # Identity of this package.
74 PACKAGE_NAME='libdbusmenu'
75 PACKAGE_TARNAME='libdbusmenu'
76-PACKAGE_VERSION='0.5.93'
77-PACKAGE_STRING='libdbusmenu 0.5.93'
78+PACKAGE_VERSION='0.5.94'
79+PACKAGE_STRING='libdbusmenu 0.5.94'
80 PACKAGE_BUGREPORT='ted@canonical.com'
81 PACKAGE_URL=''
82
83@@ -1437,7 +1437,7 @@
84 # Omit some internal or obsolete options to make the list less imposing.
85 # This message is too long to be a string in the A/UX 3.1 sh.
86 cat <<_ACEOF
87-\`configure' configures libdbusmenu 0.5.93 to adapt to many kinds of systems.
88+\`configure' configures libdbusmenu 0.5.94 to adapt to many kinds of systems.
89
90 Usage: $0 [OPTION]... [VAR=VALUE]...
91
92@@ -1507,7 +1507,7 @@
93
94 if test -n "$ac_init_help"; then
95 case $ac_init_help in
96- short | recursive ) echo "Configuration of libdbusmenu 0.5.93:";;
97+ short | recursive ) echo "Configuration of libdbusmenu 0.5.94:";;
98 esac
99 cat <<\_ACEOF
100
101@@ -1656,7 +1656,7 @@
102 test -n "$ac_init_help" && exit $ac_status
103 if $ac_init_version; then
104 cat <<\_ACEOF
105-libdbusmenu configure 0.5.93
106+libdbusmenu configure 0.5.94
107 generated by GNU Autoconf 2.68
108
109 Copyright (C) 2010 Free Software Foundation, Inc.
110@@ -2027,7 +2027,7 @@
111 This file contains any messages produced by compilers while
112 running configure, to aid debugging if configure makes a mistake.
113
114-It was created by libdbusmenu $as_me 0.5.93, which was
115+It was created by libdbusmenu $as_me 0.5.94, which was
116 generated by GNU Autoconf 2.68. Invocation command line was
117
118 $ $0 $@
119@@ -2848,7 +2848,7 @@
120
121 # Define the identity of the package.
122 PACKAGE=libdbusmenu
123- VERSION=0.5.93
124+ VERSION=0.5.94
125
126
127 # Some tools Automake needs.
128@@ -14423,7 +14423,7 @@
129 ###########################
130
131 LIBDBUSMENU_CURRENT=4
132-LIBDBUSMENU_REVISION=10
133+LIBDBUSMENU_REVISION=11
134 LIBDBUSMENU_AGE=0
135
136
137@@ -15777,7 +15777,7 @@
138 # report actual input values of CONFIG_FILES etc. instead of their
139 # values after options handling.
140 ac_log="
141-This file was extended by libdbusmenu $as_me 0.5.93, which was
142+This file was extended by libdbusmenu $as_me 0.5.94, which was
143 generated by GNU Autoconf 2.68. Invocation command line was
144
145 CONFIG_FILES = $CONFIG_FILES
146@@ -15843,7 +15843,7 @@
147 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
148 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
149 ac_cs_version="\\
150-libdbusmenu config.status 0.5.93
151+libdbusmenu config.status 0.5.94
152 configured by $0, generated by GNU Autoconf 2.68,
153 with options \\"\$ac_cs_config\\"
154
155
156=== modified file 'configure.ac'
157--- configure.ac 2012-03-08 16:01:54 +0000
158+++ configure.ac 2012-03-09 20:38:32 +0000
159@@ -1,11 +1,11 @@
160
161-AC_INIT(libdbusmenu, 0.5.93, ted@canonical.com)
162+AC_INIT(libdbusmenu, 0.5.94, ted@canonical.com)
163 AC_COPYRIGHT([Copyright 2009,2010 Canonical])
164
165 AC_PREREQ(2.62)
166
167 AM_CONFIG_HEADER(config.h)
168-AM_INIT_AUTOMAKE(libdbusmenu, 0.5.93, [-Wno-portability])
169+AM_INIT_AUTOMAKE(libdbusmenu, 0.5.94, [-Wno-portability])
170
171 AM_MAINTAINER_MODE
172
173@@ -165,7 +165,7 @@
174 ###########################
175
176 LIBDBUSMENU_CURRENT=4
177-LIBDBUSMENU_REVISION=10
178+LIBDBUSMENU_REVISION=11
179 LIBDBUSMENU_AGE=0
180
181 AC_SUBST(LIBDBUSMENU_CURRENT)
182
183=== modified file 'debian/changelog'
184--- debian/changelog 2012-03-09 12:03:10 +0000
185+++ debian/changelog 2012-03-09 20:38:32 +0000
186@@ -1,3 +1,11 @@
187+libdbusmenu (0.5.94-0ubuntu1~ppa1) precise; urgency=low
188+
189+ * New upstream release.
190+ * Fixing setting name of ATK objects
191+ * Cleaning up a warning on shutdown (LP: #950762)
192+
193+ -- Ted Gould <ted@ubuntu.com> Fri, 09 Mar 2012 14:35:38 -0600
194+
195 libdbusmenu (0.5.93-0ubuntu1) precise; urgency=low
196
197 * New upstream release.
198
199=== modified file 'docs/libdbusmenu-glib/reference/html/ch01.html'
200--- docs/libdbusmenu-glib/reference/html/ch01.html 2012-03-08 15:58:14 +0000
201+++ docs/libdbusmenu-glib/reference/html/ch01.html 2012-03-09 20:38:32 +0000
202@@ -21,7 +21,7 @@
203 </tr></table>
204 <div class="chapter">
205 <div class="titlepage"><div><div><h2 class="title">
206-<a name="idp114464"></a>API</h2></div></div></div>
207+<a name="idp3882768"></a>API</h2></div></div></div>
208 <div class="toc"><dl>
209 <dt>
210 <span class="refentrytitle"><a href="libdbusmenu-glib-DbusmenuServer.html">DbusmenuServer</a></span><span class="refpurpose"> — The server signals changed and
211
212=== modified file 'docs/libdbusmenu-glib/reference/html/libdbusmenu-glib-DbusmenuMenuitem.html'
213--- docs/libdbusmenu-glib/reference/html/libdbusmenu-glib-DbusmenuMenuitem.html 2012-01-31 05:20:48 +0000
214+++ docs/libdbusmenu-glib/reference/html/libdbusmenu-glib-DbusmenuMenuitem.html 2012-03-09 20:38:32 +0000
215@@ -1568,8 +1568,8 @@
216 </tr>
217 <tr>
218 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
219-<td>A list of strings or NULL if there are
220-none. <span class="annotation">[<acronym title="Free data container after the code is done."><span class="acronym">transfer container</span></acronym>]</span>
221+<td>A list of
222+strings or NULL if there are none. <span class="annotation">[<acronym title="Free data container after the code is done."><span class="acronym">transfer container</span></acronym>][<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> utf8]</span>
223 </td>
224 </tr>
225 </tbody>
226
227=== modified file 'docs/libdbusmenu-glib/reference/version.xml'
228--- docs/libdbusmenu-glib/reference/version.xml 2012-03-08 16:01:54 +0000
229+++ docs/libdbusmenu-glib/reference/version.xml 2012-03-09 20:38:32 +0000
230@@ -1,1 +1,1 @@
231-0.5.93
232+0.5.94
233
234=== modified file 'docs/libdbusmenu-glib/reference/xml/menuitem.xml'
235--- docs/libdbusmenu-glib/reference/xml/menuitem.xml 2012-01-31 05:20:48 +0000
236+++ docs/libdbusmenu-glib/reference/xml/menuitem.xml 2012-03-09 20:38:32 +0000
237@@ -1137,8 +1137,8 @@
238 </para><variablelist role="params">
239 <varlistentry><term><parameter>mi</parameter>&#160;:</term>
240 <listitem><simpara><link linkend="DbusmenuMenuitem"><type>DbusmenuMenuitem</type></link> to list the properties on</simpara></listitem></varlistentry>
241-<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara>A list of strings or NULL if there are
242-none. <emphasis role="annotation">[<acronym>transfer container</acronym>]</emphasis></simpara></listitem></varlistentry>
243+<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara>A list of
244+strings or NULL if there are none. <emphasis role="annotation">[<acronym>transfer container</acronym>][<acronym>element-type</acronym> utf8]</emphasis></simpara></listitem></varlistentry>
245 </variablelist></refsect2>
246 <refsect2 id="dbusmenu-menuitem-properties-copy" role="function">
247 <title>dbusmenu_menuitem_properties_copy ()</title>
248
249=== modified file 'docs/libdbusmenu-gtk/reference/html/ch01.html'
250--- docs/libdbusmenu-gtk/reference/html/ch01.html 2012-03-08 15:58:14 +0000
251+++ docs/libdbusmenu-gtk/reference/html/ch01.html 2012-03-09 20:38:32 +0000
252@@ -21,7 +21,7 @@
253 </tr></table>
254 <div class="chapter">
255 <div class="titlepage"><div><div><h2 class="title">
256-<a name="idp3304320"></a>API</h2></div></div></div>
257+<a name="idp3527472"></a>API</h2></div></div></div>
258 <div class="toc"><dl>
259 <dt>
260 <span class="refentrytitle"><a href="libdbusmenu-gtk-DbusmenuGtkMenu.html">DbusmenuGtkMenu</a></span><span class="refpurpose"> — A GTK Menu Object that syncronizes over DBus</span>
261
262=== modified file 'docs/libdbusmenu-gtk/reference/version.xml'
263--- docs/libdbusmenu-gtk/reference/version.xml 2012-03-08 16:01:54 +0000
264+++ docs/libdbusmenu-gtk/reference/version.xml 2012-03-09 20:38:32 +0000
265@@ -1,1 +1,1 @@
266-0.5.93
267+0.5.94
268
269=== modified file 'libdbusmenu-gtk/client.c'
270--- libdbusmenu-gtk/client.c 2012-02-15 17:36:32 +0000
271+++ libdbusmenu-gtk/client.c 2012-03-09 20:38:32 +0000
272@@ -735,17 +735,29 @@
273 return;
274 }
275
276- const gchar * setname = NULL;
277
278 if (variant != NULL) {
279- setname = g_variant_get_string(variant, NULL);
280- }
281-
282- if (setname == NULL) {
283- setname = "";
284- }
285-
286- atk_object_set_name(aobj, setname);
287+ const gchar * setname = NULL;
288+ setname = g_variant_dup_string(variant, NULL);
289+ atk_object_set_name(aobj, setname);
290+ } else {
291+ /* The atk docs advise to set the name of the atk object to an empty
292+ * string, but GTK doesn't yet do the same, and setting the name to NULL
293+ * causes tests to fail.
294+ */
295+ gchar * setname = NULL;
296+ const gchar * label = NULL;
297+ /* We don't want the underscore for mnewmonics */
298+ label = dbusmenu_menuitem_property_get(mi, DBUSMENU_MENUITEM_PROP_LABEL);
299+
300+ GRegex * regex = g_regex_new ("_", 0, 0, NULL);
301+ setname = g_regex_replace_literal (regex, label, -1, 0, "", 0, NULL);
302+ g_regex_unref(regex);
303+
304+ atk_object_set_name(aobj, setname);
305+ g_free(setname);
306+ }
307+
308 return;
309 }
310
311
312=== modified file 'libdbusmenu-gtk/parser.c'
313--- libdbusmenu-gtk/parser.c 2012-03-08 16:01:54 +0000
314+++ libdbusmenu-gtk/parser.c 2012-03-09 20:38:32 +0000
315@@ -229,7 +229,12 @@
316 static void
317 widget_freed (gpointer data, GObject * obj)
318 {
319- g_signal_handlers_disconnect_by_func(gtk_icon_theme_get_default(), G_CALLBACK(theme_changed_cb), obj);
320+ ParserData * pdata = (ParserData *)data;
321+
322+ if (pdata->theme_changed_sig != 0) {
323+ g_signal_handler_disconnect(gtk_icon_theme_get_default(), pdata->theme_changed_sig);
324+ pdata->theme_changed_sig = 0;
325+ }
326
327 return;
328 }
329@@ -242,9 +247,12 @@
330 ParserData *pdata = (ParserData *)g_object_get_data(G_OBJECT(obj), PARSER_DATA);
331
332 if (pdata != NULL && pdata->widget != NULL) {
333- g_signal_handlers_disconnect_by_func(gtk_icon_theme_get_default(), G_CALLBACK(theme_changed_cb), pdata->widget);
334+ if (pdata->theme_changed_sig != 0) {
335+ g_signal_handler_disconnect(gtk_icon_theme_get_default(), pdata->theme_changed_sig);
336+ pdata->theme_changed_sig = 0;
337+ }
338 g_object_steal_data(G_OBJECT(pdata->widget), CACHED_MENUITEM);
339- g_object_weak_unref(G_OBJECT(pdata->widget), widget_freed, NULL);
340+ g_object_weak_unref(G_OBJECT(pdata->widget), widget_freed, pdata);
341 }
342 }
343
344@@ -286,7 +294,7 @@
345 g_object_set_data_full(G_OBJECT(item), PARSER_DATA, pdata, parse_data_free);
346
347 g_object_weak_ref(G_OBJECT(item), dbusmenu_item_freed, NULL);
348- g_object_weak_ref(G_OBJECT(widget), widget_freed, NULL);
349+ g_object_weak_ref(G_OBJECT(widget), widget_freed, pdata);
350
351 pdata->widget = widget;
352 g_object_add_weak_pointer(G_OBJECT (widget), (gpointer*)&pdata->widget);

Subscribers

People subscribed via source and target branches

to all changes: