Merge lp:~mitya57/indicator-applet/libpanel-applet-3.22-part1 into lp:indicator-applet

Proposed by Dmitry Shachnev
Status: Merged
Merged at revision: 434
Proposed branch: lp:~mitya57/indicator-applet/libpanel-applet-3.22-part1
Merge into: lp:indicator-applet
Diff against target: 522 lines (+93/-249)
17 files modified
data/Makefile.am (+2/-22)
data/org.ayatana.panel.FastUserSwitchApplet.panel-applet.in.in (+2/-1)
data/org.ayatana.panel.IndicatorApplet.panel-applet.in.in (+2/-1)
data/org.ayatana.panel.IndicatorAppletAppmenu.panel-applet.in.in (+2/-1)
data/org.ayatana.panel.IndicatorAppletComplete.panel-applet.in.in (+2/-1)
data/org.gnome.panel.applet.FastUserSwitchAppletFactory.service.in (+0/-3)
data/org.gnome.panel.applet.IndicatorAppletAppmenuFactory.service.in (+0/-3)
data/org.gnome.panel.applet.IndicatorAppletCompleteFactory.service.in (+0/-3)
data/org.gnome.panel.applet.IndicatorAppletFactory.service.in (+0/-3)
debian/changelog (+14/-0)
debian/indicator-applet-appmenu.install (+2/-3)
debian/indicator-applet-complete.install (+2/-3)
debian/indicator-applet-session.install (+2/-3)
debian/indicator-applet.install (+4/-6)
debian/source_indicator-applet.py (+0/-42)
src/Makefile.am (+43/-82)
src/applet-main.c (+16/-72)
To merge this branch: bzr merge lp:~mitya57/indicator-applet/libpanel-applet-3.22-part1
Reviewer Review Type Date Requested Status
Alberts Muktupāvels Approve
Sebastien Bacher Pending
Jeremy Bícha Pending
Charles Kerr Pending
Iain Lane Pending
Indicator Applet Developers Pending
Review via email: mp+310741@code.launchpad.net

Commit message

Port to work with libpanel-applet 3.22.

Description of the change

Port to work with libpanel-applet 3.22

* Convert from out-of-process applet to in-process applet:
  - Do not call methods that change the global state, such as
    g_log_set_default_handler().
  - Refactor src/Makefile.am, reuse some flags for different builds.
  - Drop the D-Bus services files, no longer needed.
* Do not call panel_applet_set_background_widget(), this call is not
  needed with libpanel-applet ≥ 3.16.
* Update the install files according to in-process switch.

While it now builds with both gnome-panel 3.20 and 3.22, the packaging will need a minor update for install files when the actual switch to 3.22 is done (drop 5.0/ from the applets paths).

To post a comment you must log in.
Revision history for this message
Alberts Muktupāvels (muktupavels) wrote :

What about debian/source_indicator-applet.py file?

Revision history for this message
Dmitry Shachnev (mitya57) wrote :

OK, pushed a new commit.

Revision history for this message
Alberts Muktupāvels (muktupavels) :
review: Approve
435. By Dmitry Shachnev

Remove debian/source_indicator-applet.py, now that we have no log files.

Also remove the unused log_to_file() function.

436. By Dmitry Shachnev

Add a changelog entry.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'data/Makefile.am'
2--- data/Makefile.am 2011-08-02 23:46:44 +0000
3+++ data/Makefile.am 2016-11-22 11:01:44 +0000
4@@ -14,31 +14,13 @@
5
6 %.panel-applet.in: %.panel-applet.in.in Makefile
7 $(AM_V_GEN)sed \
8- -e "s|\@LIBEXECDIR\@|$(libexecdir)|" \
9+ -e "s|\@PKGLIBDIR\@|$(pkglibdir)|" \
10 $< > $@
11
12 %.panel-applet: %.panel-applet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*po) ; $(AM_V_GEN) LC_ALL=C $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -d -u -c $(top_builddir)/po/.intltool-merge-cache
13
14
15 ##############################
16-# DBus Services
17-##############################
18-
19-servicedir = $(datadir)/dbus-1/services
20-service_in_files = \
21- org.gnome.panel.applet.IndicatorAppletFactory.service.in \
22- org.gnome.panel.applet.IndicatorAppletCompleteFactory.service.in \
23- org.gnome.panel.applet.IndicatorAppletAppmenuFactory.service.in \
24- org.gnome.panel.applet.FastUserSwitchAppletFactory.service.in
25-service_DATA = $(service_in_files:.service.in=.service)
26-
27-%.service: %.service.in Makefile
28- $(AM_V_GEN)sed \
29- -e "s|\@LIBEXECDIR\@|$(libexecdir)|" \
30- $< > $@
31-
32-
33-##############################
34 # Icons
35 ##############################
36
37@@ -67,13 +49,11 @@
38 CLEANFILES = \
39 $(applet_in_files) \
40 $(applet_DATA) \
41- $(service_DATA) \
42 *.bak
43
44 EXTRA_DIST = \
45 $(icons_DATA) \
46- $(applet_in_files:.in=.in.in) \
47- $(service_in_files)
48+ $(applet_in_files:.in=.in.in)
49
50 MAINTAINERCLEANFILES = \
51 Makefile.in
52
53=== modified file 'data/org.ayatana.panel.FastUserSwitchApplet.panel-applet.in.in'
54--- data/org.ayatana.panel.FastUserSwitchApplet.panel-applet.in.in 2010-11-10 18:28:18 +0000
55+++ data/org.ayatana.panel.FastUserSwitchApplet.panel-applet.in.in 2016-11-22 11:01:44 +0000
56@@ -1,6 +1,7 @@
57 [Applet Factory]
58 Id=FastUserSwitchAppletFactory
59-Location=@LIBEXECDIR@/indicator-applet-session
60+InProcess=true
61+Location=@PKGLIBDIR@/libindicator-applet-session.so
62 Name=Indicator Applet Factory
63 Description=Indicator Applet Factory
64
65
66=== modified file 'data/org.ayatana.panel.IndicatorApplet.panel-applet.in.in'
67--- data/org.ayatana.panel.IndicatorApplet.panel-applet.in.in 2010-11-10 18:28:18 +0000
68+++ data/org.ayatana.panel.IndicatorApplet.panel-applet.in.in 2016-11-22 11:01:44 +0000
69@@ -1,6 +1,7 @@
70 [Applet Factory]
71 Id=IndicatorAppletFactory
72-Location=@LIBEXECDIR@/indicator-applet
73+InProcess=true
74+Location=@PKGLIBDIR@/libindicator-applet.so
75 Name=Indicator Applet Factory
76 Description=Indicator Applet Factory
77
78
79=== modified file 'data/org.ayatana.panel.IndicatorAppletAppmenu.panel-applet.in.in'
80--- data/org.ayatana.panel.IndicatorAppletAppmenu.panel-applet.in.in 2010-11-10 18:28:18 +0000
81+++ data/org.ayatana.panel.IndicatorAppletAppmenu.panel-applet.in.in 2016-11-22 11:01:44 +0000
82@@ -1,6 +1,7 @@
83 [Applet Factory]
84 Id=IndicatorAppletAppmenuFactory
85-Location=@LIBEXECDIR@/indicator-applet-appmenu
86+InProcess=true
87+Location=@PKGLIBDIR@/libindicator-applet-appmenu.so
88 Name=Indicator Applet Appmenu Factory
89 Description=Indicator Applet Appmenu Factory
90
91
92=== modified file 'data/org.ayatana.panel.IndicatorAppletComplete.panel-applet.in.in'
93--- data/org.ayatana.panel.IndicatorAppletComplete.panel-applet.in.in 2010-11-10 18:28:18 +0000
94+++ data/org.ayatana.panel.IndicatorAppletComplete.panel-applet.in.in 2016-11-22 11:01:44 +0000
95@@ -1,6 +1,7 @@
96 [Applet Factory]
97 Id=IndicatorAppletCompleteFactory
98-Location=@LIBEXECDIR@/indicator-applet-complete
99+InProcess=true
100+Location=@PKGLIBDIR@/libindicator-applet-complete.so
101 Name=Indicator Applet Complete Factory
102 Description=Indicator Applet Complete Factory
103
104
105=== removed file 'data/org.gnome.panel.applet.FastUserSwitchAppletFactory.service.in'
106--- data/org.gnome.panel.applet.FastUserSwitchAppletFactory.service.in 2010-11-10 18:28:18 +0000
107+++ data/org.gnome.panel.applet.FastUserSwitchAppletFactory.service.in 1970-01-01 00:00:00 +0000
108@@ -1,3 +0,0 @@
109-[D-BUS Service]
110-Name=org.gnome.panel.applet.FastUserSwitchAppletFactory
111-Exec=@LIBEXECDIR@/indicator-applet-session
112
113=== removed file 'data/org.gnome.panel.applet.IndicatorAppletAppmenuFactory.service.in'
114--- data/org.gnome.panel.applet.IndicatorAppletAppmenuFactory.service.in 2010-11-10 18:28:18 +0000
115+++ data/org.gnome.panel.applet.IndicatorAppletAppmenuFactory.service.in 1970-01-01 00:00:00 +0000
116@@ -1,3 +0,0 @@
117-[D-BUS Service]
118-Name=org.gnome.panel.applet.IndicatorAppletAppmenuFactory
119-Exec=@LIBEXECDIR@/indicator-applet-appmenu
120
121=== removed file 'data/org.gnome.panel.applet.IndicatorAppletCompleteFactory.service.in'
122--- data/org.gnome.panel.applet.IndicatorAppletCompleteFactory.service.in 2010-11-10 18:28:18 +0000
123+++ data/org.gnome.panel.applet.IndicatorAppletCompleteFactory.service.in 1970-01-01 00:00:00 +0000
124@@ -1,3 +0,0 @@
125-[D-BUS Service]
126-Name=org.gnome.panel.applet.IndicatorAppletCompleteFactory
127-Exec=@LIBEXECDIR@/indicator-applet-complete
128
129=== removed file 'data/org.gnome.panel.applet.IndicatorAppletFactory.service.in'
130--- data/org.gnome.panel.applet.IndicatorAppletFactory.service.in 2010-11-10 18:28:18 +0000
131+++ data/org.gnome.panel.applet.IndicatorAppletFactory.service.in 1970-01-01 00:00:00 +0000
132@@ -1,3 +0,0 @@
133-[D-BUS Service]
134-Name=org.gnome.panel.applet.IndicatorAppletFactory
135-Exec=@LIBEXECDIR@/indicator-applet
136
137=== modified file 'debian/changelog'
138--- debian/changelog 2014-11-27 11:45:58 +0000
139+++ debian/changelog 2016-11-22 11:01:44 +0000
140@@ -1,3 +1,17 @@
141+indicator-applet (12.10.2+17.04.20161122.1-0ubuntu1) UNRELEASED; urgency=medium
142+
143+ * Convert from out-of-process applet to in-process applet:
144+ - Do not call methods that change the global state, such as
145+ g_log_set_default_handler().
146+ - Refactor src/Makefile.am, reuse some flags for different builds.
147+ - Drop the D-Bus services files, no longer needed.
148+ * Do not call panel_applet_set_background_widget(), this call is not
149+ needed with libpanel-applet ≥ 3.16.
150+ * Update the install files according to in-process switch.
151+ * Remove the apport hook, not useful without log files.
152+
153+ -- Dmitry Shachnev <mitya57@ubuntu.com> Mon, 14 Nov 2016 22:08:00 +0300
154+
155 indicator-applet (12.10.2+15.04.20141127.2-0ubuntu1) vivid; urgency=low
156
157 [ Dmitry Shachnev ]
158
159=== modified file 'debian/indicator-applet-appmenu.install'
160--- debian/indicator-applet-appmenu.install 2014-11-27 11:44:24 +0000
161+++ debian/indicator-applet-appmenu.install 2016-11-22 11:01:44 +0000
162@@ -1,3 +1,2 @@
163-debian/tmp/usr/lib/*/indicator-applet-appmenu
164-debian/tmp/usr/share/dbus-1/services/org.gnome.panel.applet.IndicatorAppletAppmenuFactory.service
165-debian/tmp/usr/share/gnome-panel/5.0/applets/org.ayatana.panel.IndicatorAppletAppmenu.panel-applet
166+usr/lib/*/indicator-applet/libindicator-applet-appmenu.so
167+usr/share/gnome-panel/5.0/applets/org.ayatana.panel.IndicatorAppletAppmenu.panel-applet
168
169=== modified file 'debian/indicator-applet-complete.install'
170--- debian/indicator-applet-complete.install 2014-11-27 11:44:24 +0000
171+++ debian/indicator-applet-complete.install 2016-11-22 11:01:44 +0000
172@@ -1,3 +1,2 @@
173-debian/tmp/usr/lib/*/indicator-applet-complete
174-debian/tmp/usr/share/dbus-1/services/org.gnome.panel.applet.IndicatorAppletCompleteFactory.service
175-debian/tmp/usr/share/gnome-panel/5.0/applets/org.ayatana.panel.IndicatorAppletComplete.panel-applet
176+usr/lib/*/indicator-applet/libindicator-applet-complete.so
177+usr/share/gnome-panel/5.0/applets/org.ayatana.panel.IndicatorAppletComplete.panel-applet
178
179=== modified file 'debian/indicator-applet-session.install'
180--- debian/indicator-applet-session.install 2014-11-27 11:44:24 +0000
181+++ debian/indicator-applet-session.install 2016-11-22 11:01:44 +0000
182@@ -1,3 +1,2 @@
183-debian/tmp/usr/lib/*/indicator-applet-session
184-debian/tmp/usr/share/dbus-1/services/org.gnome.panel.applet.FastUserSwitchAppletFactory.service
185-debian/tmp/usr/share/gnome-panel/5.0/applets/org.ayatana.panel.FastUserSwitchApplet.panel-applet
186+usr/lib/*/indicator-applet/libindicator-applet-session.so
187+usr/share/gnome-panel/5.0/applets/org.ayatana.panel.FastUserSwitchApplet.panel-applet
188
189=== modified file 'debian/indicator-applet.install'
190--- debian/indicator-applet.install 2014-11-27 11:44:24 +0000
191+++ debian/indicator-applet.install 2016-11-22 11:01:44 +0000
192@@ -1,7 +1,5 @@
193-debian/tmp/usr/lib/*/indicator-applet
194-debian/tmp/usr/share/dbus-1/services/org.gnome.panel.applet.IndicatorAppletFactory.service
195-debian/tmp/usr/share/gnome-panel/5.0/applets/org.ayatana.panel.IndicatorApplet.panel-applet
196-debian/tmp/usr/share/icons
197-debian/tmp/usr/share/locale
198-debian/source_indicator-applet.py usr/share/apport/package-hooks
199+usr/lib/*/indicator-applet/libindicator-applet.so
200+usr/share/gnome-panel/5.0/applets/org.ayatana.panel.IndicatorApplet.panel-applet
201+usr/share/icons
202+usr/share/locale
203 debian/indicator-applet-crashdb.conf /etc/apport/crashdb.conf.d/
204
205=== removed file 'debian/source_indicator-applet.py'
206--- debian/source_indicator-applet.py 2012-07-13 09:02:03 +0000
207+++ debian/source_indicator-applet.py 1970-01-01 00:00:00 +0000
208@@ -1,42 +0,0 @@
209-from __future__ import print_function
210-import os.path
211-from apport.hookutils import *
212-from xdg.BaseDirectory import xdg_cache_home
213-
214-APPLET_LOG = os.path.join(xdg_cache_home, 'indicator-applet.log')
215-APPLET_SESSION_LOG = os.path.join(xdg_cache_home, 'indicator-applet-session.log')
216-COMPLETE_LOG = os.path.join(xdg_cache_home, 'indicator-applet-complete.log')
217-APPMENU_LOG = os.path.join(xdg_cache_home, 'indicator-applet-appmenu.log')
218-
219-def add_info(report, ui):
220- if not apport.packaging.is_distro_package(report['Package'].split()[0]):
221- report['ThirdParty'] = 'True'
222- report['CrashDB'] = 'indicator_applet'
223-
224- response = ui.choice("How would you describe the issue?", ["None of the indicator menus are working correctly", "The Sound Menu is not working correctly", "The login/logout menu is not working correctly", "The Networking Menu is not working correctly", "The date/time menu is not working correctly", "The application testing menu is not working correctly", "The all-in-one (complete) applet is not working correctly", "Another menu is not working correctly"], False)
225- try:
226- if response == None: # user cancelled
227- raise StopIteration
228- if response[0] == 0: # an issue with indicator-applet
229- report.add_package_info("indicator-applet")
230- if response[0] == 1: # the issue is with indicator-sound
231- report.add_package_info("indicator-sound")
232- if response[0] == 2: # the issue is with indicator-session
233- report.add_package_info("indicator-session")
234- if response[0] == 3: # the issue is with network-manager
235- report.add_package_info("network-manager-applet")
236- if response[0] == 4: # the issue is with indicator-datetime in "unity"
237- report.add_package_info("indicator-datetime")
238- if response[0] == 5: # the issue is with indicator-applet-appmenu
239- report.add_package_info("indicator-applet-appmenu")
240- if response[0] == 6: # the issue is with indicator-applet-complete
241- report.add_package_info("indicator-applet-complete")
242- if response[0] == 7: # the issue is with indicator-application
243- report.add_package_info("indicator-application")
244- except:
245- print('Unfortunately, that package is not installed. Please refer to https://wiki.ubuntu.com/Bugs/FindRightPackage')
246-
247- attach_file_if_exists(report, APPLET_LOG, 'indicator-applet.log')
248- attach_file_if_exists(report, APPLET_SESSION_LOG, 'indicator-applet-session.log')
249- attach_file_if_exists(report, COMPLETE_LOG, 'indicator-applet-complete.log')
250- attach_file_if_exists(report, APPMENU_LOG, 'indicator-applet-appmenu.log')
251
252=== modified file 'src/Makefile.am'
253--- src/Makefile.am 2014-02-18 17:30:47 +0000
254+++ src/Makefile.am 2016-11-22 11:01:44 +0000
255@@ -1,86 +1,47 @@
256-
257-libexec_PROGRAMS = \
258- indicator-applet \
259- indicator-applet-appmenu \
260- indicator-applet-session \
261- indicator-applet-complete
262-
263-indicator_applet_CFLAGS = \
264+indicator_applet_libdir = ${pkglibdir}
265+indicator_applet_lib_LTLIBRARIES = \
266+ libindicator-applet.la \
267+ libindicator-applet-appmenu.la \
268+ libindicator-applet-session.la \
269+ libindicator-applet-complete.la
270+
271+APPLET_SOURCES = \
272+ applet-main.c \
273+ eggaccelerators.c \
274+ eggaccelerators.h \
275+ tomboykeybinder.c \
276+ tomboykeybinder.h
277+
278+APPLET_CPPFLAGS = \
279+ -DDATADIR=\""$(datadir)"\" \
280+ -DINDICATOR_DIR=\""$(INDICATORDIR)"\" \
281+ -DINDICATOR_ICONS_DIR=\""$(INDICATORICONSDIR)"\" \
282+ -DGDK_DISABLE_DEPRECATED \
283+ -I$(srcdir)/..
284+
285+AM_CFLAGS = $(APPLET_CFLAGS)
286+AM_LDFLAGS = -module -avoid-version
287+
288+libindicator_applet_la_SOURCES = $(APPLET_SOURCES)
289+libindicator_applet_la_CPPFLAGS = $(APPLET_CPPFLAGS) \
290 -DG_LOG_DOMAIN=\""Indicator-Applet"\" \
291- -DDATADIR=\""$(datadir)"\" \
292- -DINDICATOR_DIR=\""$(INDICATORDIR)"\" \
293- -DINDICATOR_ICONS_DIR=\""$(INDICATORICONSDIR)"\" \
294- -DINDICATOR_APPLET \
295- -DGDK_DISABLE_DEPRECATED \
296- -I$(srcdir)/.. \
297- $(APPLET_CFLAGS)
298-
299-indicator_applet_SOURCES = \
300- applet-main.c \
301- eggaccelerators.c \
302- eggaccelerators.h \
303- tomboykeybinder.c \
304- tomboykeybinder.h
305-
306-indicator_applet_LDADD = \
307- $(APPLET_LIBS)
308-
309-indicator_applet_appmenu_CFLAGS = \
310+ -DINDICATOR_APPLET
311+libindicator_applet_la_LIBADD = $(APPLET_LIBS)
312+
313+libindicator_applet_appmenu_la_SOURCES = $(APPLET_SOURCES)
314+libindicator_applet_appmenu_la_CPPFLAGS = $(APPLET_CPPFLAGS) \
315 -DG_LOG_DOMAIN=\""Indicator-Applet-Appmenu"\" \
316- -DDATADIR=\""$(datadir)"\" \
317- -DINDICATOR_DIR=\""$(INDICATORDIR)"\" \
318- -DINDICATOR_ICONS_DIR=\""$(INDICATORICONSDIR)"\" \
319- -DINDICATOR_APPLET_APPMENU \
320- -DGDK_DISABLE_DEPRECATED \
321- -I$(srcdir)/.. \
322- $(APPLET_CFLAGS)
323-
324-indicator_applet_appmenu_SOURCES = \
325- applet-main.c \
326- eggaccelerators.c \
327- eggaccelerators.h \
328- tomboykeybinder.c \
329- tomboykeybinder.h
330-
331-indicator_applet_appmenu_LDADD = \
332- $(APPLET_LIBS)
333-
334-indicator_applet_session_CFLAGS = \
335+ -DINDICATOR_APPLET_APPMENU
336+libindicator_applet_appmenu_la_LIBADD = $(APPLET_LIBS)
337+
338+libindicator_applet_session_la_SOURCES = $(APPLET_SOURCES)
339+libindicator_applet_session_la_CPPFLAGS = $(APPLET_CPPFLAGS) \
340 -DG_LOG_DOMAIN=\""Indicator-Applet-Session"\" \
341- -DDATADIR=\""$(datadir)"\" \
342- -DINDICATOR_DIR=\""$(INDICATORDIR)"\" \
343- -DINDICATOR_ICONS_DIR=\""$(INDICATORICONSDIR)"\" \
344- -DINDICATOR_APPLET_SESSION \
345- -DGDK_DISABLE_DEPRECATED \
346- -I$(srcdir)/.. \
347- $(APPLET_CFLAGS)
348-
349-indicator_applet_session_SOURCES = \
350- applet-main.c \
351- eggaccelerators.c \
352- eggaccelerators.h \
353- tomboykeybinder.c \
354- tomboykeybinder.h
355-
356-indicator_applet_session_LDADD = \
357- $(APPLET_LIBS)
358-
359-indicator_applet_complete_CFLAGS = \
360+ -DINDICATOR_APPLET_SESSION
361+libindicator_applet_session_la_LIBADD = $(APPLET_LIBS)
362+
363+libindicator_applet_complete_la_SOURCES = $(APPLET_SOURCES)
364+libindicator_applet_complete_la_CPPFLAGS = $(APPLET_CPPFLAGS) \
365 -DG_LOG_DOMAIN=\""Indicator-Applet-Complete"\" \
366- -DDATADIR=\""$(datadir)"\" \
367- -DINDICATOR_DIR=\""$(INDICATORDIR)"\" \
368- -DINDICATOR_ICONS_DIR=\""$(INDICATORICONSDIR)"\" \
369- -DINDICATOR_APPLET_COMPLETE \
370- -DGDK_DISABLE_DEPRECATED \
371- -I$(srcdir)/.. \
372- $(APPLET_CFLAGS)
373-
374-indicator_applet_complete_SOURCES = \
375- applet-main.c \
376- eggaccelerators.c \
377- eggaccelerators.h \
378- tomboykeybinder.c \
379- tomboykeybinder.h
380-
381-indicator_applet_complete_LDADD = \
382- $(APPLET_LIBS)
383+ -DINDICATOR_APPLET_COMPLETE
384+libindicator_applet_complete_la_LIBADD = $(APPLET_LIBS)
385
386=== modified file 'src/applet-main.c'
387--- src/applet-main.c 2014-08-15 09:47:51 +0000
388+++ src/applet-main.c 2016-11-22 11:01:44 +0000
389@@ -68,22 +68,22 @@
390 * ***********/
391
392 #ifdef INDICATOR_APPLET
393-PANEL_APPLET_OUT_PROCESS_FACTORY ("IndicatorAppletFactory",
394+PANEL_APPLET_IN_PROCESS_FACTORY ("IndicatorAppletFactory",
395 PANEL_TYPE_APPLET,
396 applet_fill_cb, NULL);
397 #endif
398 #ifdef INDICATOR_APPLET_SESSION
399-PANEL_APPLET_OUT_PROCESS_FACTORY ("FastUserSwitchAppletFactory",
400+PANEL_APPLET_IN_PROCESS_FACTORY ("FastUserSwitchAppletFactory",
401 PANEL_TYPE_APPLET,
402 applet_fill_cb, NULL);
403 #endif
404 #ifdef INDICATOR_APPLET_COMPLETE
405-PANEL_APPLET_OUT_PROCESS_FACTORY ("IndicatorAppletCompleteFactory",
406+PANEL_APPLET_IN_PROCESS_FACTORY ("IndicatorAppletCompleteFactory",
407 PANEL_TYPE_APPLET,
408 applet_fill_cb, NULL);
409 #endif
410 #ifdef INDICATOR_APPLET_APPMENU
411-PANEL_APPLET_OUT_PROCESS_FACTORY ("IndicatorAppletAppmenuFactory",
412+PANEL_APPLET_IN_PROCESS_FACTORY ("IndicatorAppletAppmenuFactory",
413 PANEL_TYPE_APPLET,
414 applet_fill_cb, NULL);
415 #endif
416@@ -844,6 +844,18 @@
417 license_i18n = g_strconcat (_(license[0]), "\n\n", _(license[1]), "\n\n", _(license[2]), NULL);
418
419 gtk_show_about_dialog(NULL,
420+#ifdef INDICATOR_APPLET
421+ "program-name", _("Indicator Applet"),
422+#endif
423+#ifdef INDICATOR_APPLET_SESSION
424+ "program-name", _("Indicator Applet Session"),
425+#endif
426+#ifdef INDICATOR_APPLET_COMPLETE
427+ "program-name", _("Indicator Applet Complete"),
428+#endif
429+#ifdef INDICATOR_APPLET_APPMENU
430+ "program-name", _("Indicator Applet Application Menu"),
431+#endif
432 "version", VERSION,
433 "copyright", "Copyright \xc2\xa9 2009-2010 Canonical, Ltd.",
434 #ifdef INDICATOR_APPLET_SESSION
435@@ -941,59 +953,6 @@
436 #endif
437 #define N_(x) x
438
439-static void
440-log_to_file (const gchar * domain,
441- GLogLevelFlags level,
442- const gchar * message,
443- gpointer data)
444-{
445- if (log_file == NULL) {
446- gchar *path;
447-
448- g_mkdir_with_parents(g_get_user_cache_dir(), 0755);
449- path = g_build_filename(g_get_user_cache_dir(), LOG_FILE_NAME, NULL);
450-
451- log_file = fopen(path, "w");
452-
453- g_free(path);
454- }
455-
456- if(log_file) {
457- const gchar *prefix;
458-
459- switch(level & G_LOG_LEVEL_MASK) {
460- case G_LOG_LEVEL_ERROR:
461- prefix = "ERROR:";
462- break;
463- case G_LOG_LEVEL_CRITICAL:
464- prefix = "CRITICAL:";
465- break;
466- case G_LOG_LEVEL_WARNING:
467- prefix = "WARNING:";
468- break;
469- case G_LOG_LEVEL_MESSAGE:
470- prefix = "MESSAGE:";
471- break;
472- case G_LOG_LEVEL_INFO:
473- prefix = "INFO:";
474- break;
475- case G_LOG_LEVEL_DEBUG:
476- prefix = "DEBUG:";
477- break;
478- default:
479- prefix = "LOG:";
480- break;
481- }
482-
483- fprintf(log_file, "%s %s - %s\n", prefix, domain, message);
484- fflush(log_file);
485- }
486-
487- g_log_default_handler(domain, level, message, data);
488-
489- return;
490-}
491-
492 static gboolean
493 applet_fill_cb (PanelApplet * applet, const gchar * iid G_GNUC_UNUSED,
494 gpointer data G_GNUC_UNUSED)
495@@ -1038,20 +997,6 @@
496 if (!first_time)
497 {
498 first_time = TRUE;
499-#ifdef INDICATOR_APPLET
500- g_set_application_name(_("Indicator Applet"));
501-#endif
502-#ifdef INDICATOR_APPLET_SESSION
503- g_set_application_name(_("Indicator Applet Session"));
504-#endif
505-#ifdef INDICATOR_APPLET_COMPLETE
506- g_set_application_name(_("Indicator Applet Complete"));
507-#endif
508-#ifdef INDICATOR_APPLET_APPMENU
509- g_set_application_name(_("Indicator Applet Application Menu"));
510-#endif
511-
512- g_log_set_default_handler(log_to_file, NULL);
513
514 tomboy_keybinder_init();
515 }
516@@ -1130,7 +1075,6 @@
517 gtk_widget_show(item);
518 } else {
519 gtk_container_add(GTK_CONTAINER(applet), menubar);
520- panel_applet_set_background_widget(applet, menubar);
521 gtk_widget_show(menubar);
522 }
523

Subscribers

People subscribed via source and target branches