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

Proposed by Ted Gould
Status: Merged
Merged at revision: 97
Proposed branch: lp:~dbusmenu-team/libdbusmenu/ubuntu
Merge into: lp:~ubuntu-desktop/libdbusmenu/ubuntu
Diff against target: 245 lines (+70/-18)
8 files modified
configure (+11/-11)
configure.ac (+3/-3)
debian/changelog (+9/-0)
debian/control (+4/-1)
debian/rules (+1/-0)
docs/libdbusmenu-glib/reference/version.xml (+1/-1)
docs/libdbusmenu-gtk/reference/version.xml (+1/-1)
libdbusmenu-glib/server.c (+40/-1)
To merge this branch: bzr merge lp:~dbusmenu-team/libdbusmenu/ubuntu
Reviewer Review Type Date Requested Status
Ken VanDine Pending
Review via email: mp+35556@code.launchpad.net

Description of the change

0.3.14

To post a comment you must log in.
lp:~dbusmenu-team/libdbusmenu/ubuntu updated
97. By Ken VanDine

releasing version 0.3.14-0ubuntu1

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'configure'
2--- configure 2010-09-09 14:42:16 +0000
3+++ configure 2010-09-15 16:46:41 +0000
4@@ -1,6 +1,6 @@
5 #! /bin/sh
6 # Guess values for system-dependent variables and create Makefiles.
7-# Generated by GNU Autoconf 2.67 for libdbusmenu 0.3.13.
8+# Generated by GNU Autoconf 2.67 for libdbusmenu 0.3.14.
9 #
10 # Report bugs to <ted@canonical.com>.
11 #
12@@ -703,8 +703,8 @@
13 # Identity of this package.
14 PACKAGE_NAME='libdbusmenu'
15 PACKAGE_TARNAME='libdbusmenu'
16-PACKAGE_VERSION='0.3.13'
17-PACKAGE_STRING='libdbusmenu 0.3.13'
18+PACKAGE_VERSION='0.3.14'
19+PACKAGE_STRING='libdbusmenu 0.3.14'
20 PACKAGE_BUGREPORT='ted@canonical.com'
21 PACKAGE_URL=''
22
23@@ -1533,7 +1533,7 @@
24 # Omit some internal or obsolete options to make the list less imposing.
25 # This message is too long to be a string in the A/UX 3.1 sh.
26 cat <<_ACEOF
27-\`configure' configures libdbusmenu 0.3.13 to adapt to many kinds of systems.
28+\`configure' configures libdbusmenu 0.3.14 to adapt to many kinds of systems.
29
30 Usage: $0 [OPTION]... [VAR=VALUE]...
31
32@@ -1603,7 +1603,7 @@
33
34 if test -n "$ac_init_help"; then
35 case $ac_init_help in
36- short | recursive ) echo "Configuration of libdbusmenu 0.3.13:";;
37+ short | recursive ) echo "Configuration of libdbusmenu 0.3.14:";;
38 esac
39 cat <<\_ACEOF
40
41@@ -1741,7 +1741,7 @@
42 test -n "$ac_init_help" && exit $ac_status
43 if $ac_init_version; then
44 cat <<\_ACEOF
45-libdbusmenu configure 0.3.13
46+libdbusmenu configure 0.3.14
47 generated by GNU Autoconf 2.67
48
49 Copyright (C) 2010 Free Software Foundation, Inc.
50@@ -2112,7 +2112,7 @@
51 This file contains any messages produced by compilers while
52 running configure, to aid debugging if configure makes a mistake.
53
54-It was created by libdbusmenu $as_me 0.3.13, which was
55+It was created by libdbusmenu $as_me 0.3.14, which was
56 generated by GNU Autoconf 2.67. Invocation command line was
57
58 $ $0 $@
59@@ -2933,7 +2933,7 @@
60
61 # Define the identity of the package.
62 PACKAGE=libdbusmenu
63- VERSION=0.3.13
64+ VERSION=0.3.14
65
66
67 # Some tools Automake needs.
68@@ -13065,7 +13065,7 @@
69 ###########################
70
71 LIBDBUSMENU_CURRENT=1
72-LIBDBUSMENU_REVISION=15
73+LIBDBUSMENU_REVISION=16
74 LIBDBUSMENU_AGE=0
75
76
77@@ -14379,7 +14379,7 @@
78 # report actual input values of CONFIG_FILES etc. instead of their
79 # values after options handling.
80 ac_log="
81-This file was extended by libdbusmenu $as_me 0.3.13, which was
82+This file was extended by libdbusmenu $as_me 0.3.14, which was
83 generated by GNU Autoconf 2.67. Invocation command line was
84
85 CONFIG_FILES = $CONFIG_FILES
86@@ -14445,7 +14445,7 @@
87 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
88 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
89 ac_cs_version="\\
90-libdbusmenu config.status 0.3.13
91+libdbusmenu config.status 0.3.14
92 configured by $0, generated by GNU Autoconf 2.67,
93 with options \\"\$ac_cs_config\\"
94
95
96=== modified file 'configure.ac'
97--- configure.ac 2010-09-09 14:42:16 +0000
98+++ configure.ac 2010-09-15 16:46:41 +0000
99@@ -1,11 +1,11 @@
100
101-AC_INIT(libdbusmenu, 0.3.13, ted@canonical.com)
102+AC_INIT(libdbusmenu, 0.3.14, ted@canonical.com)
103 AC_COPYRIGHT([Copyright 2009,2010 Canonical])
104
105 AC_PREREQ(2.62)
106
107 AM_CONFIG_HEADER(config.h)
108-AM_INIT_AUTOMAKE(libdbusmenu, 0.3.13, [-Wno-portability])
109+AM_INIT_AUTOMAKE(libdbusmenu, 0.3.14, [-Wno-portability])
110
111 AM_MAINTAINER_MODE
112
113@@ -99,7 +99,7 @@
114 ###########################
115
116 LIBDBUSMENU_CURRENT=1
117-LIBDBUSMENU_REVISION=15
118+LIBDBUSMENU_REVISION=16
119 LIBDBUSMENU_AGE=0
120
121 AC_SUBST(LIBDBUSMENU_CURRENT)
122
123=== modified file 'debian/changelog'
124--- debian/changelog 2010-09-09 16:34:05 +0000
125+++ debian/changelog 2010-09-15 16:46:41 +0000
126@@ -1,3 +1,12 @@
127+libdbusmenu (0.3.14-0ubuntu1~ppa1) maverick; urgency=low
128+
129+ * New upstream release.
130+ * Fixing a memory leak by unref'ing a hashtable
131+ * Making a callback for the event dbus function happen off
132+ of the mainloop so it returns a response. (LP: #636756)
133+
134+ -- Ted Gould <ted@ubuntu.com> Wed, 15 Sep 2010 11:36:09 -0500
135+
136 libdbusmenu (0.3.13-0ubuntu1) maverick; urgency=low
137
138 * New upstream release.
139
140=== modified file 'debian/control'
141--- debian/control 2010-09-09 16:34:05 +0000
142+++ debian/control 2010-09-15 16:46:41 +0000
143@@ -20,7 +20,10 @@
144 gir1.0-glib-2.0,
145 gir1.0-gtk-2.0,
146 libx11-dev (>= 1.3),
147- valac
148+ valac,
149+# Check dependencies
150+ xvfb,
151+ dbus-test-runner
152 Standards-Version: 3.9.1
153 Homepage: https://launchpad.net/dbusmenu
154 Vcs-Bzr: https://code.launchpad.net/~dbusmenu-team/dbusmenu/ubuntu
155
156=== modified file 'debian/rules'
157--- debian/rules 2010-09-09 16:34:05 +0000
158+++ debian/rules 2010-09-15 16:46:41 +0000
159@@ -3,6 +3,7 @@
160 include /usr/share/cdbs/1/rules/debhelper.mk
161 include /usr/share/cdbs/1/class/gnome.mk
162
163+DEB_MAKE_CHECK_TARGET := check
164 DEB_CONFIGURE_EXTRA_FLAGS += --disable-scrollkeeper --enable-gtk-doc
165 LDFLAGS += -Wl,-z,defs -Wl,--as-needed
166
167
168=== modified file 'docs/libdbusmenu-glib/reference/version.xml'
169--- docs/libdbusmenu-glib/reference/version.xml 2010-09-09 14:42:16 +0000
170+++ docs/libdbusmenu-glib/reference/version.xml 2010-09-15 16:46:41 +0000
171@@ -1,1 +1,1 @@
172-0.3.13
173+0.3.14
174
175=== modified file 'docs/libdbusmenu-gtk/reference/version.xml'
176--- docs/libdbusmenu-gtk/reference/version.xml 2010-09-09 14:42:16 +0000
177+++ docs/libdbusmenu-gtk/reference/version.xml 2010-09-15 16:46:41 +0000
178@@ -1,1 +1,1 @@
179-0.3.13
180+0.3.14
181
182=== modified file 'libdbusmenu-glib/server.c'
183--- libdbusmenu-glib/server.c 2010-08-25 18:19:05 +0000
184+++ libdbusmenu-glib/server.c 2010-09-15 16:46:41 +0000
185@@ -633,6 +633,10 @@
186 _gvalue_array_append_hashtable(item, dict);
187
188 g_ptr_array_add(output, item);
189+
190+ g_hash_table_unref(dict);
191+
192+ return;
193 }
194
195 static gboolean
196@@ -659,6 +663,33 @@
197 return TRUE;
198 }
199
200+/* Structure for holding the event data for the idle function
201+ to pick it up. */
202+typedef struct _idle_event_t idle_event_t;
203+struct _idle_event_t {
204+ DbusmenuMenuitem * mi;
205+ gchar * eventid;
206+ GValue data;
207+ guint timestamp;
208+};
209+
210+/* A handler for else where in the main loop so that the dbusmenu
211+ event response doesn't get blocked */
212+static gboolean
213+event_local_handler (gpointer user_data)
214+{
215+ idle_event_t * data = (idle_event_t *)user_data;
216+
217+ dbusmenu_menuitem_handle_event(data->mi, data->eventid, &data->data, data->timestamp);
218+
219+ g_object_unref(data->mi);
220+ g_free(data->eventid);
221+ g_value_unset(&data->data);
222+ g_free(data);
223+ return FALSE;
224+}
225+
226+/* Handles the even coming off of DBus */
227 static gboolean
228 _dbusmenu_server_event (DbusmenuServer * server, gint id, gchar * eventid, GValue * data, guint timestamp, GError ** error)
229 {
230@@ -676,7 +707,15 @@
231 return FALSE;
232 }
233
234- dbusmenu_menuitem_handle_event(mi, eventid, data, timestamp);
235+ idle_event_t * event_data = g_new0(idle_event_t, 1);
236+ event_data->mi = mi;
237+ g_object_ref(event_data->mi);
238+ event_data->eventid = g_strdup(eventid);
239+ event_data->timestamp = timestamp;
240+ g_value_init(&(event_data->data), G_VALUE_TYPE(data));
241+ g_value_copy(data, &(event_data->data));
242+
243+ g_timeout_add(0, event_local_handler, event_data);
244 return TRUE;
245 }
246

Subscribers

People subscribed via source and target branches

to all changes: