Merge lp:~logan/ubuntu/raring/syncmaildir/debian-merge into lp:ubuntu/raring/syncmaildir

Proposed by Logan Rosen
Status: Merged
Merged at revision: 14
Proposed branch: lp:~logan/ubuntu/raring/syncmaildir/debian-merge
Merge into: lp:ubuntu/raring/syncmaildir
Diff against target: 9238 lines (+4068/-2438)
56 files modified
.pc/fix-ftbfs-libgthread-link.patch/Makefile (+26/-19)
ChangeLog (+83/-0)
DESIGN (+8/-2)
Makefile (+26/-19)
README (+71/-6)
debian/changelog (+32/-1)
debian/control (+2/-2)
debian/patches/fix-ftbfs-libgthread-link.patch (+4/-6)
debian/rules (+9/-1)
debian/syncmaildir-applet.NEWS (+13/-0)
debian/syncmaildir-applet.install (+0/-1)
debian/syncmaildir.install (+2/-0)
debian/syncmaildir.manpages (+2/-0)
mddiff.1.txt (+8/-2)
mddiff.c (+49/-18)
smd-applet.c (+1677/-1499)
smd-applet.ui (+815/-673)
smd-applet.vala (+39/-9)
smd-client (+148/-5)
smd-client.1.txt (+9/-1)
smd-common (+124/-27)
smd-config.5.txt (+21/-0)
smd-loop (+1/-1)
smd-loop.1.txt (+2/-2)
smd-pull (+7/-2)
smd-pull.1.txt (+3/-1)
smd-push (+7/-2)
smd-push.1.txt (+3/-1)
smd-restricted-shell (+26/-0)
smd-restricted-shell.1.txt (+22/-0)
smd-server (+64/-4)
smd-server.1.txt (+10/-1)
smd-translate (+29/-3)
smd-translate.1.txt (+5/-0)
smd-uniform-names (+99/-0)
smd-uniform-names.1.txt (+29/-0)
syncmaildir.lua (+133/-87)
tests.d/client-server/summarize.sh (+1/-1)
tests.d/common (+46/-36)
tests.d/mddiff/02-first-run (+2/-0)
tests.d/mddiff/09-no-delete (+29/-0)
tests.d/migration/01-uniform (+18/-0)
tests.d/migration/02-unif-w-trans (+28/-0)
tests.d/migration/03-fail-not-first-sync (+12/-0)
tests.d/migration/04-noop (+16/-0)
tests.d/migration/05-unif-w-trans-w-exclude (+52/-0)
tests.d/migration/06-unif-bug-zack (+33/-0)
tests.d/pull-push/09-pull-dry-run (+4/-0)
tests.d/pull-push/14-translator (+7/-6)
tests.d/pull-push/20-push-verbose (+18/-0)
tests.d/pull-push/21-pull-verbose (+16/-0)
tests.d/pull-push/22-local-pull (+28/-0)
tests.d/pull-push/23-smd-translate-bug (+95/-0)
tests.d/pull-push/24-local-translator (+26/-0)
tests.d/pull-push/25-pull-nodel (+19/-0)
tests.d/pull-push/26-check-dot-dot (+10/-0)
To merge this branch: bzr merge lp:~logan/ubuntu/raring/syncmaildir/debian-merge
Reviewer Review Type Date Requested Status
Andrew Starr-Bochicchio (community) Approve
Ubuntu branches Pending
Review via email: mp+136290@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Andrew Starr-Bochicchio (andrewsomething) wrote :

Looks good! Uploading.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file '.pc/fix-ftbfs-libgthread-link.patch/Makefile'
--- .pc/fix-ftbfs-libgthread-link.patch/Makefile 2011-12-13 07:43:14 +0000
+++ .pc/fix-ftbfs-libgthread-link.patch/Makefile 2012-11-26 22:25:07 +0000
@@ -3,12 +3,12 @@
3# should care about them3# should care about them
44
5PROJECTNAME=syncmaildir5PROJECTNAME=syncmaildir
6VERSION=1.2.26VERSION=1.2.5
7COPYRIGHT=© 2008-2011 Enrico Tassi <gares@fettunta.org>7COPYRIGHT=© 2008-2012 Enrico Tassi <gares@fettunta.org>
8BINARIES=mddiff smd-applet8BINARIES=mddiff smd-applet
9MANPAGES1=mddiff.1 smd-server.1 smd-client.1 \9MANPAGES1=mddiff.1 smd-server.1 smd-client.1 \
10 smd-pull.1 smd-push.1 smd-loop.1 smd-applet.1 smd-translate.1 \10 smd-pull.1 smd-push.1 smd-loop.1 smd-applet.1 smd-translate.1 \
11 smd-check-conf.111 smd-check-conf.1 smd-restricted-shell.1 smd-uniform-names.1
12MANPAGES5=smd-config.512MANPAGES5=smd-config.5
13HTML=index.html design.html hooks.html13HTML=index.html design.html hooks.html
14DESTDIR=14DESTDIR=
@@ -17,17 +17,17 @@
17SF_WEB=htdocs17SF_WEB=htdocs
18TEST_SIZE=10018TEST_SIZE=100
19TEST_MAILBOX=misc/Mail.TEST.tgz19TEST_MAILBOX=misc/Mail.TEST.tgz
20TEST_SUITES=mddiff client-server pull-push20TEST_SUITES=mddiff client-server pull-push migration
21BENCH_SIZE=2500021BENCH_SIZE=25000
22BENCH_MAILBOX=misc/Mail.BENCH.tgz22BENCH_MAILBOX=misc/Mail.BENCH.tgz
23BENCH_SUITES=benchmarks23BENCH_SUITES=benchmarks
24PKG_GTK=gtk+-3.0 24PKG_GTK=gtk+-3.0
25SMD_APPLET_C=smd-applet.c 25SMD_APPLET_C=smd-applet.c
26PKGS_VALA=glib-2.0 $(PKG_GTK) libnotify gconf-2.0 gee-1.0 gio-2.026PKGS_VALA=glib-2.0 $(PKG_GTK) libnotify gconf-2.0 gee-1.0 gio-2.0
27MIN_GLIB_VERSION=2.19.127TARGET_GLIB=2.32
28PKGCONFIG_CHECK_GLIB_VERSION=--atleast-version=$(MIN_GLIB_VERSION) glib-2.028PKGCONFIG_CHECK_GLIB_VERSION=--atleast-version=$(TARGET_GLIB) glib-2.0
29PKGCONFIG_GLIB_VERSION=--modversion glib-2.029PKGCONFIG_GLIB_VERSION=--modversion glib-2.0
30VALAC=valac-0.1430VALAC=valac-0.16
31H=@31H=@
3232
33# ----------------------------------------------------------------------------33# ----------------------------------------------------------------------------
@@ -41,8 +41,7 @@
41SSH=ssh41SSH=ssh
42LUAV=5.142LUAV=5.1
43LUA=lua$(LUAV)43LUA=lua$(LUAV)
44CFLAGS=-O2 -Wall -Wextra -Wcast-align -g -I .44CFLAGS=-O2 -Wall -Wextra -Wcast-align -g
45CFLAGS_VALA=-O2 -w -g -I .
46PKG_FLAGS=45PKG_FLAGS=
4746
48# ----------------------------------------------------------------------------47# ----------------------------------------------------------------------------
@@ -66,6 +65,7 @@
66 $H if which $(VALAC) >/dev/null; then \65 $H if which $(VALAC) >/dev/null; then \
67 echo "VALAC $^"; \66 echo "VALAC $^"; \
68 $(VALAC) -C $^ --thread --vapidir=./ \67 $(VALAC) -C $^ --thread --vapidir=./ \
68 --target-glib=$(TARGET_GLIB) \
69 --pkg posix $(patsubst %,--pkg %,$(PKGS_VALA)); \69 --pkg posix $(patsubst %,--pkg %,$(PKGS_VALA)); \
70 elif [ -e smd-applet.c ]; then \70 elif [ -e smd-applet.c ]; then \
71 echo "** No $(VALAC), reusing precompiled .c files"; \71 echo "** No $(VALAC), reusing precompiled .c files"; \
@@ -82,18 +82,19 @@
82mddiff: mddiff.c smd-config.h82mddiff: mddiff.c smd-config.h
83 @echo CC $<83 @echo CC $<
84 $H $(CC) $(CFLAGS) $< -o $@ \84 $H $(CC) $(CFLAGS) $< -o $@ \
85 `pkg-config $(PKG_FLAGS) --cflags --libs glib-2.0` 85 `pkg-config $(PKG_FLAGS) --cflags --libs glib-2.0` $(LDFLAGS)
8686
87smd-applet: $(SMD_APPLET_C) smd-config.h87smd-applet: $(SMD_APPLET_C) smd-config.h
88 @echo CC $<88 @echo CC $<
89 $H $(CC) $(CFLAGS_VALA) $< -o $@ \89 $H $(CC) $(CFLAGS) -w $< -o $@ \
90 `pkg-config $(PKG_FLAGS) --cflags --libs $(PKGS_VALA)`90 `pkg-config $(PKG_FLAGS) --cflags --libs $(PKGS_VALA)` \
91 $(LDFLAGS)
9192
92check-build: check-w-gcc check-w-$(VALAC)93check-build: check-w-gcc check-w-$(VALAC)
93 $H pkg-config $(PKGCONFIG_CHECK_GLIB_VERSION) || \94 $H pkg-config $(PKGCONFIG_CHECK_GLIB_VERSION) || \
94 (echo glib version too old: \95 (echo glib version too old: \
95 `pkg-config $(PKGCONFIG_GLIB_VERSION)`; \96 `pkg-config $(PKGCONFIG_GLIB_VERSION)`; \
96 echo required version: $(MIN_GLIB_VERSION); \97 echo required version: $(TARGET_GLIB); \
97 false)98 false)
9899
99check-run: check-w-$(LUA) check-w-bash 100check-run: check-w-$(LUA) check-w-bash
@@ -171,15 +172,17 @@
171 $(call install-replacing,smd-push,bin)172 $(call install-replacing,smd-push,bin)
172 $(call install-replacing,smd-translate,bin)173 $(call install-replacing,smd-translate,bin)
173 $(call install-replacing,smd-check-conf,bin)174 $(call install-replacing,smd-check-conf,bin)
175 $(call install-replacing,smd-uniform-names,bin)
176 $(call install-replacing,smd-restricted-shell,bin)
174 $(call install-replacing,smd-loop,bin)177 $(call install-replacing,smd-loop,bin)
175 $(call install-replacing,smd-common,share/$(PROJECTNAME))178 $(call install-replacing,smd-common,share/$(PROJECTNAME))
176 $(call install-replacing,syncmaildir.lua,share/lua/$(LUAV))179 $(call install-replacing,syncmaildir.lua,share/lua/$(LUAV))
177180
178install-misc: $(MANPAGES1) $(MANPAGES5)181install-misc: $(MANPAGES1) $(MANPAGES5)
179 mkdir -p $(DESTDIR)/etc/xdg/autostart182 mkdir -p $(DESTDIR)/etc/xdg/autostart
180 cp smd-applet.desktop $(DESTDIR)/etc/xdg/autostart
181 $(call mkdir-p,share/applications)183 $(call mkdir-p,share/applications)
182 $(call install,smd-applet-configure.desktop,share/applications)184 $(call install,smd-applet-configure.desktop,share/applications)
185 $(call install,smd-applet.desktop,share/applications)
183 $(call install,smd-applet.ui,share/$(PROJECTNAME)-applet)186 $(call install,smd-applet.ui,share/$(PROJECTNAME)-applet)
184 $(call mkdir-p,share/man/man1)187 $(call mkdir-p,share/man/man1)
185 $(call mkdir-p,share/man/man5)188 $(call mkdir-p,share/man/man5)
@@ -255,27 +258,31 @@
255 $H $(MAKE) $* \258 $H $(MAKE) $* \
256 BINARIES="$(subst smd-applet,,$(BINARIES))" \259 BINARIES="$(subst smd-applet,,$(BINARIES))" \
257 MANPAGES1="$(subst smd-applet.1,,$(MANPAGES1))" \260 MANPAGES1="$(subst smd-applet.1,,$(MANPAGES1))" \
258 PREFIX="$(PREFIX)" VALAC=ls H=$H261 PREFIX="$(PREFIX)" VALAC=ls H=$H \
262 CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)"
259263
260static/%:264static/%:
261 $H $(MAKE) $* \265 $H $(MAKE) $* \
262 CFLAGS="$(CFLAGS) -static " \266 CFLAGS="$(CFLAGS) -static " \
263 PKG_FLAGS="$(PKG_FLAGS) --static " \267 PKG_FLAGS="$(PKG_FLAGS) --static " \
264 PREFIX="$(PREFIX)" H=$H268 PREFIX="$(PREFIX)" H=$H LDFLAGS="$(LDFLAGS)"
265269
266gnome2/%:270gnome2/%:
267 $H gunzip -c misc/smd-applet-1.0.0.c.gz > misc/smd-applet-1.0.0.c271 $H gunzip -c misc/smd-applet-1.0.0.c.gz > misc/smd-applet-1.0.0.c
268 $H $(MAKE) $* \272 $H $(MAKE) $* \
269 SMD_APPLET_C=misc/smd-applet-1.0.0.c PKG_GTK=gtk+-2.0273 SMD_APPLET_C=misc/smd-applet-1.0.0.c PKG_GTK=gtk+-2.0 \
274 CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" TARGET_GLIB="2.19.1"
270275
271276
272osx/%:277osx/%:
273 $H $(MAKE) $* SED=sed PREFIX="$(PREFIX)" H=$H278 $H $(MAKE) $* SED=sed PREFIX="$(PREFIX)" H=$H \
279 CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)"
274280
275abspath/%:281abspath/%:
276 $H $(MAKE) $* SED=/bin/sed \282 $H $(MAKE) $* SED=/bin/sed \
277 XDELTA=/usr/bin/xdelta SSH=/usr/bin/ssh \283 XDELTA=/usr/bin/xdelta SSH=/usr/bin/ssh \
278 PREFIX="$(PREFIX)" H=$H284 PREFIX="$(PREFIX)" H=$H \
285 CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)"
279286
280.PHONY : update-smd-config287.PHONY : update-smd-config
281# eof288# eof
282289
=== modified file 'ChangeLog'
--- ChangeLog 2011-12-01 16:17:28 +0000
+++ ChangeLog 2012-11-26 22:25:07 +0000
@@ -1,3 +1,86 @@
111/06/2012 - minor fix release - version 1.2.5
2 * mddiff:
3 - Hashtable from body sha1 to mail now holds a list of
4 mails so that COPY actions are generated whenever possible.
5 It used to be the case that on body collisions a COPYBODY
6 action could have been generated instead.
7 - Fix: --sha1sum works on empty files too
8 - Better error messages for malformed db-file (including line number)
9 * syncmaildir.lua:
10 - During handshake handle the case in which mddiff is unable to
11 sha1sum the db file
12 - Code for calling external tools refactored
13 - Optimize calls to external translator spawning only
14 one process (translators must be line bufferd now)
15 * smd-uniform-names, smd-client:
16 - Fix escaping of ~ that was always performed on the local host
17 - Handle server ERROR messages while computing renamings
18 - Generate better smd-rename.sh script that calls cp instead
19 of mv if the source message has to be used later on
20 * smd-client:
21 - Mode --dry-run prints the list of messages transferred over the
22 network
23
2428/05/2012 - minor feature improvement - version 1.2.4
25 * smd-uniform-names:
26 - New tool to ease the migration from offlineimap.
27 When the mailboxes have roughly the same content but emails are
28 named differently this tool generates a shell script that
29 renames local mails to conform to the remote mailbox
30 * smd-applet:
31 - XDG compliant autostart, with a button in the options window
32 - Target GLib 2.32 and Gtk+ 3.0 for the .ui file
33 * smd-push, smd-pull, smd-common, smd-client, smd-server:
34 - New option -n --nodelete to not propagate deletions
35 - Support for local synchronizations: -l option to smd-client.
36 It is now possible to set SERVERNAME=localhost and pass -l
37 to smd-client (via SMDCLIENTOPTS) to obtain a synchronization
38 on the same host. (Thanks Miguel Fernandes for the idea
39 and his time for testing/debugging my prototype implementation).
40 - Do not use ssh if it is a local synchronization
41 - Support for SMDCLIENTOPTS and SMDSERVEROPTS in config file
42 - Code refactoring for external tools invocation
43 - Put a minimal README in the hooks/ directory to tell the user
44 what these directories are for
45 - Fix inconsistency in escaping of the value of TRANSLATOR_LR/RL
46 - Turn off grep buffered mode for progress reporting (Thanks
47 Stefano Zacchiroli for enlightening me on the subject)
48 * smd-translate:
49 - Fix bug in removing trailing / or " or ' from the
50 MAILBOX_REMOTE/LOCAL value
51 - New trasnlator mode: 'move'. It just replaces MAILBOX_LOCAL
52 with MAILBOX_REMOTE and vice versa, useful for local
53 synchronizations
54 * mddiff:
55 - New option -n --no-delete to not generate DELETE actions
56 * Makefile:
57 - Fix templates: C/LDFLAGS are now correctly preserved
58 * README:
59 - Update copyright dates to include 2012
60 - Document smd-uniform-names
61
6203/03/2012 - minor feature improvement - version 1.2.3
63 * smd-pull, smd-push:
64 - print progress report if -v is passed
65 * smd-client:
66 - generate progress report if verbose mode is on
67 - generate verbose progress report during first synchronization
68 - log "translating:" only when meaningful (i.e. not a noop)
69 * smd-common:
70 - create a new fifo for progress reporters
71 - standard progress reporter printing on stdout PROGRESS: lines
72 - use mddiff as mkdir and mkfifo (no more calls to mkfifo and mkdir)
73 * smd-applet:
74 - ported to vala 0.16
75 * smd-loop:
76 - fixed cleanup process (Thanks Ralf Schmitt for the patch)
77 * smd-restricted-shell:
78 - new utility to be used in .ssh/authorized_keys, see the command=
79 option (Thanks Luca Capello for the idea and the documentation)
80 * syncmaildir.lua:
81 - When mddiff fails to sha1 a message print the file name (thanks
82 Zhengdao Wang for the idea)
83
101/12/2011 - minor fix - version 1.2.28401/12/2011 - minor fix - version 1.2.2
2 * smd-config.5:85 * smd-config.5:
3 - fixed typo and use `quotes' to delimit strings86 - fixed typo and use `quotes' to delimit strings
487
=== modified file 'DESIGN'
--- DESIGN 2011-12-01 16:17:28 +0000
+++ DESIGN 2012-11-26 22:25:07 +0000
@@ -271,7 +271,7 @@
271statistical one respectively. Then a list of improperly called tags is output.271statistical one respectively. Then a list of improperly called tags is output.
272Their meaning should be easy to guess.272Their meaning should be easy to guess.
273273
274 <M> ::= "error::" <ET> | "stats::" <ST>274 <M> ::= "error::" <ET> | "stats::" <ST> | "stats::" <DR>
275 <ET> ::= "context(" <STR> ")" 275 <ET> ::= "context(" <STR> ")"
276 "probable-cause(" <STR> ")"276 "probable-cause(" <STR> ")"
277 "human-intervention(" <HI> ")"277 "human-intervention(" <HI> ")"
@@ -283,7 +283,13 @@
283 <A> ::= "run(" <STR> ")" 283 <A> ::= "run(" <STR> ")"
284 | "display-mail(" <STR> ")" 284 | "display-mail(" <STR> ")"
285 | "display-permissions(" <STR> ")"285 | "display-permissions(" <STR> ")"
286 <ET> ::= "new-mails(" <NUM> ")" <SPC> "del-mails(" <NUM> ")"286 <ST> ::= "new-mails(" <NUM> ")" <SPC>
287 "del-mails(" <NUM> ")" <SPC>
288 "bytes-received(" <NUM> ")" <SPC>
289 "xdelta-received(" <NUM> ")" <SPC>
290 "xdelta-received(" <NUM> ")"
291 <DR> ::= "mail-transferred(" <ML> ")"
292 <ML> ::= <STR> | <STR> " , " <ML>
287 <NUM> ::= `[0-9]+`293 <NUM> ::= `[0-9]+`
288 <SPC> ::= ` *,? *`294 <SPC> ::= ` *,? *`
289295
290296
=== modified file 'Makefile'
--- Makefile 2011-12-13 07:43:14 +0000
+++ Makefile 2012-11-26 22:25:07 +0000
@@ -3,12 +3,12 @@
3# should care about them3# should care about them
44
5PROJECTNAME=syncmaildir5PROJECTNAME=syncmaildir
6VERSION=1.2.26VERSION=1.2.5
7COPYRIGHT=© 2008-2011 Enrico Tassi <gares@fettunta.org>7COPYRIGHT=© 2008-2012 Enrico Tassi <gares@fettunta.org>
8BINARIES=mddiff smd-applet8BINARIES=mddiff smd-applet
9MANPAGES1=mddiff.1 smd-server.1 smd-client.1 \9MANPAGES1=mddiff.1 smd-server.1 smd-client.1 \
10 smd-pull.1 smd-push.1 smd-loop.1 smd-applet.1 smd-translate.1 \10 smd-pull.1 smd-push.1 smd-loop.1 smd-applet.1 smd-translate.1 \
11 smd-check-conf.111 smd-check-conf.1 smd-restricted-shell.1 smd-uniform-names.1
12MANPAGES5=smd-config.512MANPAGES5=smd-config.5
13HTML=index.html design.html hooks.html13HTML=index.html design.html hooks.html
14DESTDIR=14DESTDIR=
@@ -17,17 +17,17 @@
17SF_WEB=htdocs17SF_WEB=htdocs
18TEST_SIZE=10018TEST_SIZE=100
19TEST_MAILBOX=misc/Mail.TEST.tgz19TEST_MAILBOX=misc/Mail.TEST.tgz
20TEST_SUITES=mddiff client-server pull-push20TEST_SUITES=mddiff client-server pull-push migration
21BENCH_SIZE=2500021BENCH_SIZE=25000
22BENCH_MAILBOX=misc/Mail.BENCH.tgz22BENCH_MAILBOX=misc/Mail.BENCH.tgz
23BENCH_SUITES=benchmarks23BENCH_SUITES=benchmarks
24PKG_GTK=gtk+-3.0 24PKG_GTK=gtk+-3.0
25SMD_APPLET_C=smd-applet.c 25SMD_APPLET_C=smd-applet.c
26PKGS_VALA=glib-2.0 $(PKG_GTK) libnotify gconf-2.0 gee-1.0 gio-2.0 gthread-2.026PKGS_VALA=glib-2.0 $(PKG_GTK) libnotify gconf-2.0 gee-1.0 gio-2.0 gthread-2.0
27MIN_GLIB_VERSION=2.19.127TARGET_GLIB=2.32
28PKGCONFIG_CHECK_GLIB_VERSION=--atleast-version=$(MIN_GLIB_VERSION) glib-2.028PKGCONFIG_CHECK_GLIB_VERSION=--atleast-version=$(TARGET_GLIB) glib-2.0
29PKGCONFIG_GLIB_VERSION=--modversion glib-2.029PKGCONFIG_GLIB_VERSION=--modversion glib-2.0
30VALAC=valac-0.1430VALAC=valac-0.16
31H=@31H=@
3232
33# ----------------------------------------------------------------------------33# ----------------------------------------------------------------------------
@@ -41,8 +41,7 @@
41SSH=ssh41SSH=ssh
42LUAV=5.142LUAV=5.1
43LUA=lua$(LUAV)43LUA=lua$(LUAV)
44CFLAGS=-O2 -Wall -Wextra -Wcast-align -g -I .44CFLAGS=-O2 -Wall -Wextra -Wcast-align -g
45CFLAGS_VALA=-O2 -w -g -I .
46PKG_FLAGS=45PKG_FLAGS=
4746
48# ----------------------------------------------------------------------------47# ----------------------------------------------------------------------------
@@ -66,6 +65,7 @@
66 $H if which $(VALAC) >/dev/null; then \65 $H if which $(VALAC) >/dev/null; then \
67 echo "VALAC $^"; \66 echo "VALAC $^"; \
68 $(VALAC) -C $^ --thread --vapidir=./ \67 $(VALAC) -C $^ --thread --vapidir=./ \
68 --target-glib=$(TARGET_GLIB) \
69 --pkg posix $(patsubst %,--pkg %,$(PKGS_VALA)); \69 --pkg posix $(patsubst %,--pkg %,$(PKGS_VALA)); \
70 elif [ -e smd-applet.c ]; then \70 elif [ -e smd-applet.c ]; then \
71 echo "** No $(VALAC), reusing precompiled .c files"; \71 echo "** No $(VALAC), reusing precompiled .c files"; \
@@ -82,18 +82,19 @@
82mddiff: mddiff.c smd-config.h82mddiff: mddiff.c smd-config.h
83 @echo CC $<83 @echo CC $<
84 $H $(CC) $(CFLAGS) $< -o $@ \84 $H $(CC) $(CFLAGS) $< -o $@ \
85 `pkg-config $(PKG_FLAGS) --cflags --libs glib-2.0` 85 `pkg-config $(PKG_FLAGS) --cflags --libs glib-2.0` $(LDFLAGS)
8686
87smd-applet: $(SMD_APPLET_C) smd-config.h87smd-applet: $(SMD_APPLET_C) smd-config.h
88 @echo CC $<88 @echo CC $<
89 $H $(CC) $(CFLAGS_VALA) $< -o $@ \89 $H $(CC) $(CFLAGS) -w $< -o $@ \
90 `pkg-config $(PKG_FLAGS) --cflags --libs $(PKGS_VALA)`90 `pkg-config $(PKG_FLAGS) --cflags --libs $(PKGS_VALA)` \
91 $(LDFLAGS)
9192
92check-build: check-w-gcc check-w-$(VALAC)93check-build: check-w-gcc check-w-$(VALAC)
93 $H pkg-config $(PKGCONFIG_CHECK_GLIB_VERSION) || \94 $H pkg-config $(PKGCONFIG_CHECK_GLIB_VERSION) || \
94 (echo glib version too old: \95 (echo glib version too old: \
95 `pkg-config $(PKGCONFIG_GLIB_VERSION)`; \96 `pkg-config $(PKGCONFIG_GLIB_VERSION)`; \
96 echo required version: $(MIN_GLIB_VERSION); \97 echo required version: $(TARGET_GLIB); \
97 false)98 false)
9899
99check-run: check-w-$(LUA) check-w-bash 100check-run: check-w-$(LUA) check-w-bash
@@ -171,15 +172,17 @@
171 $(call install-replacing,smd-push,bin)172 $(call install-replacing,smd-push,bin)
172 $(call install-replacing,smd-translate,bin)173 $(call install-replacing,smd-translate,bin)
173 $(call install-replacing,smd-check-conf,bin)174 $(call install-replacing,smd-check-conf,bin)
175 $(call install-replacing,smd-uniform-names,bin)
176 $(call install-replacing,smd-restricted-shell,bin)
174 $(call install-replacing,smd-loop,bin)177 $(call install-replacing,smd-loop,bin)
175 $(call install-replacing,smd-common,share/$(PROJECTNAME))178 $(call install-replacing,smd-common,share/$(PROJECTNAME))
176 $(call install-replacing,syncmaildir.lua,share/lua/$(LUAV))179 $(call install-replacing,syncmaildir.lua,share/lua/$(LUAV))
177180
178install-misc: $(MANPAGES1) $(MANPAGES5)181install-misc: $(MANPAGES1) $(MANPAGES5)
179 mkdir -p $(DESTDIR)/etc/xdg/autostart182 mkdir -p $(DESTDIR)/etc/xdg/autostart
180 cp smd-applet.desktop $(DESTDIR)/etc/xdg/autostart
181 $(call mkdir-p,share/applications)183 $(call mkdir-p,share/applications)
182 $(call install,smd-applet-configure.desktop,share/applications)184 $(call install,smd-applet-configure.desktop,share/applications)
185 $(call install,smd-applet.desktop,share/applications)
183 $(call install,smd-applet.ui,share/$(PROJECTNAME)-applet)186 $(call install,smd-applet.ui,share/$(PROJECTNAME)-applet)
184 $(call mkdir-p,share/man/man1)187 $(call mkdir-p,share/man/man1)
185 $(call mkdir-p,share/man/man5)188 $(call mkdir-p,share/man/man5)
@@ -255,27 +258,31 @@
255 $H $(MAKE) $* \258 $H $(MAKE) $* \
256 BINARIES="$(subst smd-applet,,$(BINARIES))" \259 BINARIES="$(subst smd-applet,,$(BINARIES))" \
257 MANPAGES1="$(subst smd-applet.1,,$(MANPAGES1))" \260 MANPAGES1="$(subst smd-applet.1,,$(MANPAGES1))" \
258 PREFIX="$(PREFIX)" VALAC=ls H=$H261 PREFIX="$(PREFIX)" VALAC=ls H=$H \
262 CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)"
259263
260static/%:264static/%:
261 $H $(MAKE) $* \265 $H $(MAKE) $* \
262 CFLAGS="$(CFLAGS) -static " \266 CFLAGS="$(CFLAGS) -static " \
263 PKG_FLAGS="$(PKG_FLAGS) --static " \267 PKG_FLAGS="$(PKG_FLAGS) --static " \
264 PREFIX="$(PREFIX)" H=$H268 PREFIX="$(PREFIX)" H=$H LDFLAGS="$(LDFLAGS)"
265269
266gnome2/%:270gnome2/%:
267 $H gunzip -c misc/smd-applet-1.0.0.c.gz > misc/smd-applet-1.0.0.c271 $H gunzip -c misc/smd-applet-1.0.0.c.gz > misc/smd-applet-1.0.0.c
268 $H $(MAKE) $* \272 $H $(MAKE) $* \
269 SMD_APPLET_C=misc/smd-applet-1.0.0.c PKG_GTK=gtk+-2.0273 SMD_APPLET_C=misc/smd-applet-1.0.0.c PKG_GTK=gtk+-2.0 \
274 CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" TARGET_GLIB="2.19.1"
270275
271276
272osx/%:277osx/%:
273 $H $(MAKE) $* SED=sed PREFIX="$(PREFIX)" H=$H278 $H $(MAKE) $* SED=sed PREFIX="$(PREFIX)" H=$H \
279 CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)"
274280
275abspath/%:281abspath/%:
276 $H $(MAKE) $* SED=/bin/sed \282 $H $(MAKE) $* SED=/bin/sed \
277 XDELTA=/usr/bin/xdelta SSH=/usr/bin/ssh \283 XDELTA=/usr/bin/xdelta SSH=/usr/bin/ssh \
278 PREFIX="$(PREFIX)" H=$H284 PREFIX="$(PREFIX)" H=$H \
285 CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)"
279286
280.PHONY : update-smd-config287.PHONY : update-smd-config
281# eof288# eof
282289
=== modified file 'README'
--- README 2011-12-01 16:17:28 +0000
+++ README 2012-11-26 22:25:07 +0000
@@ -3,7 +3,7 @@
33
4Sync Mail Dir (`smd`) is a set of tools to synchronize a pair of mailboxes4Sync Mail Dir (`smd`) is a set of tools to synchronize a pair of mailboxes
5in Maildir format. It is Free Software, released under the terms of GPLv3,5in Maildir format. It is Free Software, released under the terms of GPLv3,
6Copyright © 2008-2011 Enrico Tassi.6Copyright © 2008-2012 Enrico Tassi.
77
8It differs from other solutions in terms of performances and lower8It differs from other solutions in terms of performances and lower
9installation requirements. The widespread solution IMAP-server plus9installation requirements. The widespread solution IMAP-server plus
@@ -76,6 +76,14 @@
76 performs a quick check that a setup, especially when it involves76 performs a quick check that a setup, especially when it involves
77 some folders renaming, actually works as expected. This tool is meant to77 some folders renaming, actually works as expected. This tool is meant to
78 be manually called by the user to check a given configuration file.78 be manually called by the user to check a given configuration file.
79- [`smd-restricted-shell`](smd-restricted-shell.1.html)
80 only meant to be used in conjunction with an SSH key and specifically in
81 the remote OpenSSH's authorized_keys file to restrict the commands allowed.
82- [`smd-uniform-names`](smd-uniform-names.1.html)
83 meant to be used before the first synchronization, when the content of
84 the local and remote mailboxes is similar, but mails are named differently.
85 This is often the case when migrating from offlineimap, that encodes
86 some metadata in the local file names.
79- [`smd-loop`](smd-loop.1.html) 87- [`smd-loop`](smd-loop.1.html)
80 runs runs smd-push and smd-pull at regular intervals as defined88 runs runs smd-push and smd-pull at regular intervals as defined
81 by the user in a configuration file, in the style of a crontab, but89 by the user in a configuration file, in the style of a crontab, but
@@ -198,6 +206,20 @@
198Advanced Usage206Advanced Usage
199==============207==============
200208
209### restricted remote shell
210
211Version `1.2.3` comes with `smd-restricted-shell` to improve security,
212especially when using password-less SSH keys. This tool takes
213advantage of the OpenSSH command= option, which permits to restrict
214the command that is allowed to be executed on the remote host when the
215login is performed using a particular SSH key.
216
217Once you have identified in the ~/.ssh/authorized_keys on the remote
218host the SSH key you use together with Sync Mail Dir, prepend the line
219as in the following example:
220
221 command="/usr/bin/smd-restricted-shell" ssh-rsa AAAABBBBCCCC....
222
201### multiple servers223### multiple servers
202224
203From verion `0.9.4` multiple configuration files are supported. This means225From verion `0.9.4` multiple configuration files are supported. This means
@@ -234,7 +256,7 @@
234 `smd-push/pull` will return after the hooks terminate256 `smd-push/pull` will return after the hooks terminate
235257
236Hooks should not fail, if they do so then `smd-push/pull` will fail too.258Hooks should not fail, if they do so then `smd-push/pull` will fail too.
237Sample hooks are available in the source tarball under the `sample-hooks/`.259Sample hooks are available in the source tarball under `sample-hooks/`.
238Some documentation about [available hooks](hooks.html) is also present.260Some documentation about [available hooks](hooks.html) is also present.
239261
240### folder renaming262### folder renaming
@@ -275,7 +297,11 @@
275could be:297could be:
276298
277 #!/bin/sh299 #!/bin/sh
278 sed 's/^Maildir\(.*\)$/Mail\1/' | sed 's?/\.?/?'300 sed --unbuffered -e 's/^Maildir\(.*\)$/Mail\1/' -e 's?/\.?/?'
301
302Note the `--unbuffered`: translators should not work in buffered mode.
303I.e. when given a line in input (terminated by `\n`) they must output a
304line without expecting any additional input.
279305
280Translating the way back is trickier, since the leading `.` must be306Translating the way back is trickier, since the leading `.` must be
281added only to sub-folders:307added only to sub-folders:
@@ -283,9 +309,9 @@
283 #!/bin/sh309 #!/bin/sh
284 t() {310 t() {
285 if [ "$1" = Mail/cur -o "$1" = Mail/tmp -o "$1" = Mail/new ]; then311 if [ "$1" = Mail/cur -o "$1" = Mail/tmp -o "$1" = Mail/new ]; then
286 echo $1 | sed 's?^Mail/\(.*\)?Maildir/\1?'312 echo $1 | sed --unbuffered 's?^Mail/\(.*\)?Maildir/\1?'
287 else313 else
288 echo $1 | sed 's?^Mail/\(.*\)?Maildir/.\1?'314 echo $1 | sed --unbuffered 's?^Mail/\(.*\)?Maildir/.\1?'
289 fi315 fi
290 }316 }
291 while read M; do t "$M"; done317 while read M; do t "$M"; done
@@ -339,6 +365,46 @@
339the matching succeeds the derectory and all its subdirectories are skipped.365the matching succeeds the derectory and all its subdirectories are skipped.
340Thus there is no need to specify a trailing '`/*`' in every expression.366Thus there is no need to specify a trailing '`/*`' in every expression.
341367
368### local synchronization
369
370If the remote and local mailboxes are on the same filesystem, one has
371to specify the `-l` option to `smd-client`. This option can be specified
372adding to the configuration file `SMDCLIENTOPTS=-l` and set
373`SERVERNAME=localhost`.
374
375### avoid deletions
376
377In some cases, usually unidirectional synchronizations, one may want
378to not propagate deletions. E.g. one keeps a slim working mailbox but
379pushes to a backup mailbox to save every email. For that scenario
380smd-pull and smd-push accept a -n, --no-delete, option.
381To avoid specifying this option every time one can put it in the
382configuration file:
383
384 SMDSERVEROPTS=-n
385
386### migration from offlineimap
387
388Migrating from offlineimap may require an extra step, since the local and
389remote mailboxes may not only differ in their names and sub folders, but also
390in the names of the single mail messages. Indeed offlineimap encodes some
391metadata in the file names local to the client. The `smd-translate` utility
392translates only folder names and not messages names.
393
394To uniform the names used on the client to the ones used on the server you can
395do as follows:
396
3971. Remove `X-OfflineIMAP` from every mail that contains it.
398 Often the same email has that extra header line on the server but not on
399 the client. A not so dirty way of achieving that is the following snippet:
400 `find Mail -type f -exec sed -i '/^X-OfflineIMAP/d' {} \;`
401
4022. Run the `smd-uniform-names` utility.
403 This utility has to be run before the first synchronization, but after smd
404 is configured and `smd-check-conf` has reported no errors.
405 `smd-uniform-names` does not modify the mailbox, but instead it generates a
406 shell script that you can run to perform the renaming.
407
342Installation408Installation
343============409============
344410
@@ -356,7 +422,6 @@
356install text mode only syncmaildir utilities on an MacOSX platform.422install text mode only syncmaildir utilities on an MacOSX platform.
357423
358Runtime dependencies are: `ssh`, `xdelta`, `lua5.1` and `bash`.424Runtime dependencies are: `ssh`, `xdelta`, `lua5.1` and `bash`.
359Moreover some core utilities are also needed: `sha1sum`, `mkfifo` and `mkdir`.
360425
361Design426Design
362======427======
363428
=== modified file 'debian/changelog'
--- debian/changelog 2011-12-13 07:43:14 +0000
+++ debian/changelog 2012-11-26 22:25:07 +0000
@@ -1,3 +1,34 @@
1syncmaildir (1.2.5-1ubuntu1) raring; urgency=low
2
3 * Merge from Debian unstable. Remaining changes:
4 - fix-ftbfs-libgthread-link.patch: Fix FTBFS with libgthread linking.
5 * Refreshed fix-ftbfs-libgthread-link.patch.
6
7 -- Logan Rosen <logatronico@gmail.com> Mon, 26 Nov 2012 17:14:33 -0500
8
9syncmaildir (1.2.5-1) unstable; urgency=low
10
11 * New upstream release
12
13 -- Enrico Tassi <gareuselesinge@debian.org> Mon, 11 Jun 2012 12:15:44 +0200
14
15syncmaildir (1.2.4-1) unstable; urgency=low
16
17 * New upstream release
18 * NEWS.Debian announces that smd-applet is able to handle XDG compliant
19 autostrat in user's session (no more system wide)
20
21 -- Enrico Tassi <gareuselesinge@debian.org> Mon, 28 May 2012 19:39:23 +0200
22
23syncmaildir (1.2.3-1) unstable; urgency=low
24
25 * New upstream release including the new utility smd-restricted-shell to
26 be used in conjunction with .ssh/authorized_keys command option
27 * This version of the software emits progress reports when run in verbose
28 mode (Closes: #659263)
29
30 -- Enrico Tassi <gareuselesinge@debian.org> Sat, 03 Mar 2012 12:55:55 +0100
31
1syncmaildir (1.2.2-1ubuntu1) precise; urgency=low32syncmaildir (1.2.2-1ubuntu1) precise; urgency=low
233
3 * Fix FTBFS with libgthread linking.34 * Fix FTBFS with libgthread linking.
@@ -8,7 +39,7 @@
839
9 * New upstream release40 * New upstream release
1041
11 -- Enrico Tassi <gareuselesinge@debian.org> Thu, 01 Dec 2011 16:17:28 +010042 -- Enrico Tassi <gareuselesinge@debian.org> Sat, 25 Feb 2012 13:57:47 +0100
1243
13syncmaildir (1.2.1-1) unstable; urgency=low44syncmaildir (1.2.1-1) unstable; urgency=low
1445
1546
=== modified file 'debian/control'
--- debian/control 2011-12-13 07:43:14 +0000
+++ debian/control 2012-11-26 22:25:07 +0000
@@ -4,7 +4,7 @@
4Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>4Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
5XSBC-Original-Maintainer: Enrico Tassi <gareuselesinge@debian.org>5XSBC-Original-Maintainer: Enrico Tassi <gareuselesinge@debian.org>
6Build-Depends: debhelper (>= 7.0.50~), txt2man, pkg-config, libglib2.0-dev (>= 2.19.1), libgtk-3-dev, libnotify-dev (>= 0.7), libgconf2-dev, libgee-dev, lua5.1, xdelta, moreutils (>= 0.38)6Build-Depends: debhelper (>= 7.0.50~), txt2man, pkg-config, libglib2.0-dev (>= 2.19.1), libgtk-3-dev, libnotify-dev (>= 0.7), libgconf2-dev, libgee-dev, lua5.1, xdelta, moreutils (>= 0.38)
7Standards-Version: 3.9.17Standards-Version: 3.9.3
8Vcs-Git: git://git.debian.org/git/collab-maint/syncmaildir.git8Vcs-Git: git://git.debian.org/git/collab-maint/syncmaildir.git
9Vcs-Browser: http://git.debian.org/?p=collab-maint/syncmaildir.git9Vcs-Browser: http://git.debian.org/?p=collab-maint/syncmaildir.git
10Homepage: http://syncmaildir.sourceforge.net10Homepage: http://syncmaildir.sourceforge.net
@@ -32,7 +32,7 @@
3232
33Package: syncmaildir-applet33Package: syncmaildir-applet
34Architecture: any34Architecture: any
35Depends: syncmaildir (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends}, libgnome2-035Depends: syncmaildir (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends}
36Description: Sync Mail Dir GNOME applet36Description: Sync Mail Dir GNOME applet
37 Sync Mail Dir is a set of utilities to synchronize a pair of mail boxes37 Sync Mail Dir is a set of utilities to synchronize a pair of mail boxes
38 in Maildir format, using SSH to transfer data. 38 in Maildir format, using SSH to transfer data.
3939
=== modified file 'debian/patches/fix-ftbfs-libgthread-link.patch'
--- debian/patches/fix-ftbfs-libgthread-link.patch 2011-12-13 07:43:14 +0000
+++ debian/patches/fix-ftbfs-libgthread-link.patch 2012-11-26 22:25:07 +0000
@@ -1,13 +1,11 @@
1Index: fix-ftbfs-precise/Makefile1--- a/Makefile
2===================================================================2+++ b/Makefile
3--- fix-ftbfs-precise.orig/Makefile 2011-12-13 06:02:56.907864000 +0000
4+++ fix-ftbfs-precise/Makefile 2011-12-13 06:05:00.689731641 +0000
5@@ -23,7 +23,7 @@3@@ -23,7 +23,7 @@
6 BENCH_SUITES=benchmarks4 BENCH_SUITES=benchmarks
7 PKG_GTK=gtk+-3.0 5 PKG_GTK=gtk+-3.0
8 SMD_APPLET_C=smd-applet.c 6 SMD_APPLET_C=smd-applet.c
9-PKGS_VALA=glib-2.0 $(PKG_GTK) libnotify gconf-2.0 gee-1.0 gio-2.07-PKGS_VALA=glib-2.0 $(PKG_GTK) libnotify gconf-2.0 gee-1.0 gio-2.0
10+PKGS_VALA=glib-2.0 $(PKG_GTK) libnotify gconf-2.0 gee-1.0 gio-2.0 gthread-2.08+PKGS_VALA=glib-2.0 $(PKG_GTK) libnotify gconf-2.0 gee-1.0 gio-2.0 gthread-2.0
11 MIN_GLIB_VERSION=2.19.19 TARGET_GLIB=2.32
12 PKGCONFIG_CHECK_GLIB_VERSION=--atleast-version=$(MIN_GLIB_VERSION) glib-2.010 PKGCONFIG_CHECK_GLIB_VERSION=--atleast-version=$(TARGET_GLIB) glib-2.0
13 PKGCONFIG_GLIB_VERSION=--modversion glib-2.011 PKGCONFIG_GLIB_VERSION=--modversion glib-2.0
1412
=== modified file 'debian/rules'
--- debian/rules 2011-03-04 10:53:56 +0000
+++ debian/rules 2012-11-26 22:25:07 +0000
@@ -9,7 +9,12 @@
9FLAVOUR=abspath/9FLAVOUR=abspath/
1010
11override_dh_auto_build:11override_dh_auto_build:
12 $(MAKE) $(FLAVOUR)all PREFIX=usr H=12 $(MAKE) $(FLAVOUR)all PREFIX=usr H= \
13 CFLAGS="$(shell dpkg-buildflags --get CFLAGS)" \
14 LDFLAGS="$(shell dpkg-buildflags --get LDFLAGS)"
15
16 # Use this after weezy
17 # $(shell dpkg-buildflags --export=configure)
13 18
14override_dh_auto_install:19override_dh_auto_install:
15 $(MAKE) $(FLAVOUR)install DESTDIR=debian/tmp PREFIX=usr H=20 $(MAKE) $(FLAVOUR)install DESTDIR=debian/tmp PREFIX=usr H=
@@ -17,3 +22,6 @@
17override_dh_auto_test:22override_dh_auto_test:
18 VALGRIND=" " $(MAKE) --no-print-directory $(FLAVOUR)test PREFIX=usr H=23 VALGRIND=" " $(MAKE) --no-print-directory $(FLAVOUR)test PREFIX=usr H=
1924
25override_dh_auto_clean:
26 dh_auto_clean
27 rm -f smd-config.h
2028
=== added file 'debian/syncmaildir-applet.NEWS'
--- debian/syncmaildir-applet.NEWS 1970-01-01 00:00:00 +0000
+++ debian/syncmaildir-applet.NEWS 2012-11-26 22:25:07 +0000
@@ -0,0 +1,13 @@
1syncmaildir (1.2.4-1) unstable; urgency=low
2
3 The syncmaildir-applet package does not ship an autostart file any
4 longer. It used to ship /etc/xdg/autostart/smd-applet.desktop
5
6 smd-applet is now able to register itself in the set of per-user
7 automatically started applications in ~/.config/autostart/
8
9 To start smd-applet automatically start it by hand and right click
10 on the notification icon to open the options menu. There you will find
11 a "Start automatically" checkbox.
12
13 -- Enrico Tassi <gareuselesinge@debian.org> Mon, 21 May 2012 17:41:17 +0200
014
=== modified file 'debian/syncmaildir-applet.install'
--- debian/syncmaildir-applet.install 2009-07-26 18:56:41 +0000
+++ debian/syncmaildir-applet.install 2012-11-26 22:25:07 +0000
@@ -1,4 +1,3 @@
1usr/bin/smd-applet1usr/bin/smd-applet
2usr/share/syncmaildir-applet/smd-applet.ui2usr/share/syncmaildir-applet/smd-applet.ui
3etc/xdg/autostart/smd-applet.desktop
4usr/share/applications/*3usr/share/applications/*
54
=== modified file 'debian/syncmaildir.install'
--- debian/syncmaildir.install 2011-09-07 11:02:36 +0000
+++ debian/syncmaildir.install 2012-11-26 22:25:07 +0000
@@ -6,6 +6,8 @@
6usr/bin/smd-loop6usr/bin/smd-loop
7usr/bin/smd-translate7usr/bin/smd-translate
8usr/bin/smd-check-conf8usr/bin/smd-check-conf
9usr/bin/smd-restricted-shell
10usr/bin/smd-uniform-names
9usr/share/lua/5.1/syncmaildir.lua11usr/share/lua/5.1/syncmaildir.lua
10usr/share/syncmaildir/smd-common12usr/share/syncmaildir/smd-common
11usr/share/doc/syncmaildir/13usr/share/doc/syncmaildir/
1214
=== modified file 'debian/syncmaildir.manpages'
--- debian/syncmaildir.manpages 2011-09-07 11:02:36 +0000
+++ debian/syncmaildir.manpages 2012-11-26 22:25:07 +0000
@@ -7,3 +7,5 @@
7smd-translate.17smd-translate.1
8smd-config.58smd-config.5
9smd-check-conf.19smd-check-conf.1
10smd-restricted-shell.1
11smd-uniform-names.1
1012
=== modified file 'mddiff.1.txt'
--- mddiff.1.txt 2011-12-01 16:17:28 +0000
+++ mddiff.1.txt 2012-11-26 22:25:07 +0000
@@ -2,8 +2,8 @@
2 mddiff - computes diff for maildirs2 mddiff - computes diff for maildirs
3SYNOPSIS3SYNOPSIS
4 mddiff [--max-mailno mno] [--db-file dbf] [-l|--list] [-s|--symlink]4 mddiff [--max-mailno mno] [--db-file dbf] [-l|--list] [-s|--symlink]
5 [--exclude globexpr] [-v|--verbose] [-d|--dry-run] [--help]5 [--exclude globexpr] [-v|--verbose] [-d|--dry-run]
6 [--sha1sum] paths6 [-n|--no-delete] [--help] [--sha1sum] paths
7DESCRIPTION7DESCRIPTION
8 mddiff computes the delta from an old status of a maildir (previously8 mddiff computes the delta from an old status of a maildir (previously
9 recorded in a support file, called db file) and the current status, 9 recorded in a support file, called db file) and the current status,
@@ -54,6 +54,11 @@
54 entered. If the match is successful, the directory and all its 54 entered. If the match is successful, the directory and all its
55 subedirectories are skipped.55 subedirectories are skipped.
5656
57 The --no-delete option tells mddiff to not output a DELETE action for
58 files that disappear. Note that a DELETE action is anyway generated for
59 files that are moved (i.e. move is COPY plus DELETE). The result is that
60 deletions are not propagated to the other endpoint.
61
57OPTIONS62OPTIONS
58 --max-mailno mno Estimation of max mail message number (defaults to the63 --max-mailno mno Estimation of max mail message number (defaults to the
59 number of messages in the db-file + 1000 or 50000064 number of messages in the db-file + 1000 or 500000
@@ -69,6 +74,7 @@
69 -s --symlink Create symlinks for paths read on the input fifo74 -s --symlink Create symlinks for paths read on the input fifo
70 -v --verbose Increase program verbosity (printed on stderr)75 -v --verbose Increase program verbosity (printed on stderr)
71 -d --dry-run Do not generate a new db-file76 -d --dry-run Do not generate a new db-file
77 -n --no-delete Do not track deleted files
72 --help This help screen78 --help This help screen
7379
74NOTES80NOTES
7581
=== modified file 'mddiff.c'
--- mddiff.c 2011-12-01 16:17:28 +0000
+++ mddiff.c 2012-11-26 22:25:07 +0000
@@ -138,6 +138,8 @@
138 return outbuff;138 return outbuff;
139}139}
140140
141#define PROMOTE(what,from,to) ((what) = ((what) == (from)) ? (to) : (what))
142
141// flags used to mark struct mail so that at the end of the scanning 143// flags used to mark struct mail so that at the end of the scanning
142// we output commands lookig that flag144// we output commands lookig that flag
143enum sight {145enum sight {
@@ -188,6 +190,7 @@
188STATIC int only_mkfifo;190STATIC int only_mkfifo;
189STATIC int n_excludes;191STATIC int n_excludes;
190STATIC char **excludes;192STATIC char **excludes;
193STATIC int no_delete;
191194
192// ============================ helpers =====================================195// ============================ helpers =====================================
193196
@@ -431,13 +434,14 @@
431STATIC void load_db(const char* dbname){434STATIC void load_db(const char* dbname){
432 FILE* fd;435 FILE* fd;
433 int fields;436 int fields;
437 int line=0;
434 char new_dbname[PATH_MAX];438 char new_dbname[PATH_MAX];
435439
436 snprintf(new_dbname,PATH_MAX,"%s.mtime",dbname);440 snprintf(new_dbname,PATH_MAX,"%s.mtime",dbname);
437441
438 fd = fopen(new_dbname,"r");442 fd = fopen(new_dbname,"r");
439 if (fd == NULL){443 if (fd == NULL){
440 WARNING(fopen,"unable to load db file '%s'\n",new_dbname);444 WARNING(fopen,"unable to open db file '%s'\n",new_dbname);
441 lastcheck = 0L;445 lastcheck = 0L;
442 } else {446 } else {
443 fields = fscanf(fd,"%1$lu",&lastcheck);447 fields = fscanf(fd,"%1$lu",&lastcheck);
@@ -462,6 +466,7 @@
462 fields = fscanf(fd,466 fields = fscanf(fd,
463 "%1$40s %2$40s %3$" tostring(MAX_EMAIL_NAME_LEN) "[^\n]\n",467 "%1$40s %2$40s %3$" tostring(MAX_EMAIL_NAME_LEN) "[^\n]\n",
464 tmpbuff_1, tmpbuff_2, next_name());468 tmpbuff_1, tmpbuff_2, next_name());
469 line++;
465470
466 if (fields == EOF) {471 if (fields == EOF) {
467 // deallocate mail entry472 // deallocate mail entry
@@ -471,7 +476,8 @@
471 476
472 // sanity checks477 // sanity checks
473 if (fields != 3)478 if (fields != 3)
474 ERROR(fscanf,"malformed db file '%s', please remove it\n",dbname);479 ERROR(fscanf, "%s: malformed line %d: %d != 3 fields."
480 " Please remove this db file.\n", dbname, line, fields);
475481
476 shatxt(tmpbuff_1, mail(m)->hsha);482 shatxt(tmpbuff_1, mail(m)->hsha);
477 shatxt(tmpbuff_2, mail(m)->bsha);483 shatxt(tmpbuff_2, mail(m)->bsha);
@@ -483,7 +489,8 @@
483 mail(m)->seen=NOT_SEEN;489 mail(m)->seen=NOT_SEEN;
484490
485 // store it in the hash tables491 // store it in the hash tables
486 g_hash_table_insert(bsha2mail,GPTR(m),GPTR(m));492 g_hash_table_insert(bsha2mail,GPTR(m),
493 g_slist_prepend(g_hash_table_lookup(bsha2mail,GPTR(m)),GPTR(m)));
487 g_hash_table_insert(filename2mail,GPTR(m),GPTR(m));494 g_hash_table_insert(filename2mail,GPTR(m),GPTR(m));
488 495
489 } 496 }
@@ -533,9 +540,10 @@
533 unsigned char *addr,*next;540 unsigned char *addr,*next;
534 int fd;541 int fd;
535 struct stat sb;542 struct stat sb;
536 mail_t alias, bodyalias, m;543 mail_t alias, m;
537 GChecksum* ctx;544 GChecksum* ctx;
538 gsize ctx_len;545 gsize ctx_len;
546 GSList *bodyaliases = NULL;
539547
540 m = alloc_mail();548 m = alloc_mail();
541 snprintf(next_name(), MAX_EMAIL_NAME_LEN,"%s/%s",dir,file);549 snprintf(next_name(), MAX_EMAIL_NAME_LEN,"%s/%s",dir,file);
@@ -618,18 +626,25 @@
618 }626 }
619 }627 }
620628
621 bodyalias = MAIL(g_hash_table_lookup(bsha2mail,GPTR(m)));629 bodyaliases = g_hash_table_lookup(bsha2mail,GPTR(m));
622630
623 if (bodyalias != 0) {631 // some messages with the same body are there
624 if (hsha_equal(GPTR(bodyalias), GPTR(m))) {632 if (bodyaliases != NULL) {
625 COMMAND_COPY(bodyalias,m);633 mail_t firstalias = MAIL(bodyaliases->data);
626 mail(m)->seen=SEEN;634 for(; bodyaliases != NULL; bodyaliases = g_slist_next(bodyaliases)) {
627 return;635 mail_t bodyalias = MAIL(bodyaliases->data);
628 } else {636 if (hsha_equal(GPTR(bodyalias), GPTR(m))) {
629 COMMAND_COPYBODY(bodyalias,m);637 // this one has the same header too
630 mail(m)->seen=SEEN;638 COMMAND_COPY(bodyalias,m);
631 return;639 PROMOTE(mail(bodyalias)->seen, NOT_SEEN, MOVED);
640 mail(m)->seen=SEEN;
641 return;
642 }
632 }643 }
644 // no full alias, we just recycle the body
645 COMMAND_COPYBODY(firstalias,m);
646 mail(m)->seen=SEEN;
647 return;
633 }648 }
634649
635 // we should add that file650 // we should add that file
@@ -727,7 +742,11 @@
727 size_t m;742 size_t m;
728743
729 for(m=1; m < mailno; m++){744 for(m=1; m < mailno; m++){
730 if (mail(m)->seen == NOT_SEEN) 745 if (!no_delete && (mail(m)->seen == NOT_SEEN || mail(m)->seen == MOVED))
746 // normally moved or removed mails are deleted
747 COMMAND_DELETE(m);
748 else if (no_delete && mail(m)->seen == MOVED)
749 // if --no-delete only moved mails should be deleted
731 COMMAND_DELETE(m);750 COMMAND_DELETE(m);
732 else 751 else
733 VERBOSE(seen,"STATUS OF %s %s %s IS %s\n",752 VERBOSE(seen,"STATUS OF %s %s %s IS %s\n",
@@ -808,7 +827,14 @@
808 if (fstat(fd, &sb) == -1) ERROR(fstat,"unable to stat file '%s'\n",file);827 if (fstat(fd, &sb) == -1) ERROR(fstat,"unable to stat file '%s'\n",file);
809828
810 addr = mmap(NULL, sb.st_size, PROT_READ, MAP_PRIVATE, fd, 0);829 addr = mmap(NULL, sb.st_size, PROT_READ, MAP_PRIVATE, fd, 0);
811 if (addr == MAP_FAILED) ERROR(mmap, "unable to load '%s'\n",file);830 if (addr == MAP_FAILED){
831 if (sb.st_size == 0)
832 // empty file
833 ;
834 else
835 // mmap failed
836 ERROR(mmap, "unable to load '%s'\n",file);
837 }
812838
813 // calculate sha1839 // calculate sha1
814 fprintf(stdout, "%s %s\n", 840 fprintf(stdout, "%s %s\n",
@@ -816,7 +842,7 @@
816 file);842 file);
817 g_free(sha1);843 g_free(sha1);
818 844
819 munmap(addr, sb.st_size);845 if (addr != MAP_FAILED) munmap(addr, sb.st_size);
820 close(fd);846 close(fd);
821}847}
822848
@@ -841,6 +867,7 @@
841 {"symlink" , no_argument , NULL, 's'},867 {"symlink" , no_argument , NULL, 's'},
842 {"verbose" , no_argument , NULL, 'v'},868 {"verbose" , no_argument , NULL, 'v'},
843 {"dry-run" , no_argument , NULL, 'd'},869 {"dry-run" , no_argument , NULL, 'd'},
870 {"no-delete" , no_argument , NULL, 'n'},
844 {"help" , no_argument , NULL, 'h'},871 {"help" , no_argument , NULL, 'h'},
845 {NULL , no_argument , NULL, 0},872 {NULL , no_argument , NULL, 0},
846};873};
@@ -866,6 +893,7 @@
866 "Symbolic Link generation mode (short -s)",893 "Symbolic Link generation mode (short -s)",
867 "Increase program verbosity (printed on stderr, short -v)",894 "Increase program verbosity (printed on stderr, short -v)",
868 "Do not generate a new db file (short -d)",895 "Do not generate a new db file (short -d)",
896 "Do not track deletions (short -n)",
869 "This help screen",897 "This help screen",
870 NULL898 NULL
871};899};
@@ -919,7 +947,7 @@
919 g_assert(MAIL(GPTR(1)) == 1);947 g_assert(MAIL(GPTR(1)) == 1);
920948
921 for(;;) {949 for(;;) {
922 c = getopt_long(argc, argv, "vhdls", long_options, &option_index);950 c = getopt_long(argc, argv, "vhndls", long_options, &option_index);
923 if (c == -1) break; // no more args951 if (c == -1) break; // no more args
924 switch (c) {952 switch (c) {
925 case OPT_MAX_MAILNO:953 case OPT_MAX_MAILNO:
@@ -948,6 +976,9 @@
948 case 'd':976 case 'd':
949 dry_run = 1;977 dry_run = 1;
950 break;978 break;
979 case 'n':
980 no_delete = 1;
981 break;
951 case 'l':982 case 'l':
952 only_list_subfolders = 1;983 only_list_subfolders = 1;
953 break;984 break;
954985
=== modified file 'smd-applet.c'
--- smd-applet.c 2011-12-01 16:17:28 +0000
+++ smd-applet.c 2012-11-26 22:25:07 +0000
@@ -1,4 +1,4 @@
1/* smd-applet.c generated by valac 0.14.0, the Vala compiler1/* smd-applet.c generated by valac 0.16.0, the Vala compiler
2 * generated from smd-applet.vala, do not modify */2 * generated from smd-applet.vala, do not modify */
33
4/* Released under the terms of GPLv3 or at your option any later version.*/4/* Released under the terms of GPLv3 or at your option any later version.*/
@@ -21,7 +21,7 @@
21#include <sys/types.h>21#include <sys/types.h>
22#include <unistd.h>22#include <unistd.h>
23#include <sys/wait.h>23#include <sys/wait.h>
24#include <smd-config.h>24#include "smd-config.h"
25#include <gobject/gvaluecollector.h>25#include <gobject/gvaluecollector.h>
2626
2727
@@ -62,7 +62,7 @@
62typedef struct _smdApplet smdApplet;62typedef struct _smdApplet smdApplet;
63typedef struct _smdAppletClass smdAppletClass;63typedef struct _smdAppletClass smdAppletClass;
64typedef struct _smdAppletPrivate smdAppletPrivate;64typedef struct _smdAppletPrivate smdAppletPrivate;
65#define _g_mutex_free0(var) ((var == NULL) ? NULL : (var = (g_mutex_free (var), NULL)))65#define _g_thread_unref0(var) ((var == NULL) ? NULL : (var = (g_thread_unref (var), NULL)))
66#define _g_hash_table_unref0(var) ((var == NULL) ? NULL : (var = (g_hash_table_unref (var), NULL)))66#define _g_hash_table_unref0(var) ((var == NULL) ? NULL : (var = (g_hash_table_unref (var), NULL)))
67#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))67#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
68#define _smd_applet_unref0(var) ((var == NULL) ? NULL : (var = (smd_applet_unref (var), NULL)))68#define _smd_applet_unref0(var) ((var == NULL) ? NULL : (var = (smd_applet_unref (var), NULL)))
@@ -137,7 +137,7 @@
137 GThread* thread;137 GThread* thread;
138 gboolean thread_die;138 gboolean thread_die;
139 GPid pid;139 GPid pid;
140 GMutex* events_lock;140 GMutex events_lock;
141 GeeArrayList* events;141 GeeArrayList* events;
142 gboolean error_mode;142 gboolean error_mode;
143 gboolean network_error_mode;143 gboolean network_error_mode;
@@ -162,6 +162,8 @@
162gchar* SMD_LOOP_CFG = NULL;162gchar* SMD_LOOP_CFG = NULL;
163extern gchar* SMD_PP_DEF_CFG;163extern gchar* SMD_PP_DEF_CFG;
164gchar* SMD_PP_DEF_CFG = NULL;164gchar* SMD_PP_DEF_CFG = NULL;
165extern gchar* XDG_AUTORUN_FILE;
166gchar* XDG_AUTORUN_FILE = NULL;
165static gpointer smd_applet_parent_class = NULL;167static gpointer smd_applet_parent_class = NULL;
166extern gchar* smd_applet_smd_loop_cmd;168extern gchar* smd_applet_smd_loop_cmd;
167gchar* smd_applet_smd_loop_cmd = NULL;169gchar* smd_applet_smd_loop_cmd = NULL;
@@ -169,6 +171,8 @@
169gchar* smd_applet_smd_applet_ui = NULL;171gchar* smd_applet_smd_applet_ui = NULL;
170extern gchar* smd_applet_smd_push_cmd;172extern gchar* smd_applet_smd_push_cmd;
171gchar* smd_applet_smd_push_cmd = NULL;173gchar* smd_applet_smd_push_cmd = NULL;
174extern gchar* smd_applet_smd_applet_desktop;
175gchar* smd_applet_smd_applet_desktop = NULL;
172176
173GQuark exit_quark (void);177GQuark exit_quark (void);
174void debug (const gchar* message);178void debug (const gchar* message);
@@ -210,6 +214,8 @@
210#define SMD_LOOP "/bin/smd-loop"214#define SMD_LOOP "/bin/smd-loop"
211#define SMD_PUSH "/bin/smd-push"215#define SMD_PUSH "/bin/smd-push"
212#define SMD_APPLET_UI "/share/syncmaildir-applet/smd-applet.ui"216#define SMD_APPLET_UI "/share/syncmaildir-applet/smd-applet.ui"
217#define SMD_APPLET_DESKTOP "/share/applications/smd-applet.desktop"
218#define GNOME_AUTOSTART_DISABLED "X-GNOME-Autostart-enabled=false"
213gpointer smd_applet_ref (gpointer instance);219gpointer smd_applet_ref (gpointer instance);
214void smd_applet_unref (gpointer instance);220void smd_applet_unref (gpointer instance);
215GParamSpec* param_spec_smd_applet (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);221GParamSpec* param_spec_smd_applet (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
@@ -225,48 +231,50 @@
225#define SMD_APPLET_key_newmail "/apps/smd-applet/notify_new_mail"231#define SMD_APPLET_key_newmail "/apps/smd-applet/notify_new_mail"
226smdApplet* smd_applet_new (gboolean hide_status_icon, GError** error);232smdApplet* smd_applet_new (gboolean hide_status_icon, GError** error);
227smdApplet* smd_applet_construct (GType object_type, gboolean hide_status_icon, GError** error);233smdApplet* smd_applet_construct (GType object_type, gboolean hide_status_icon, GError** error);
228static void ___lambda0_ (smdApplet* self, guint s);234static void ___lambda2_ (smdApplet* self, guint s);
229static void ____lambda0__network_manager_state_changed (NetworkManager* _sender, guint state, gpointer self);235static void ____lambda2__network_manager_state_changed (NetworkManager* _sender, guint state, gpointer self);
230static void __lambda1_ (smdApplet* self, GtkComboBox* cb);236static void __lambda3_ (smdApplet* self, GtkComboBox* cb);
231static void ___lambda1__gtk_combo_box_changed (GtkComboBox* _sender, gpointer self);237static void ___lambda3__gtk_combo_box_changed (GtkComboBox* _sender, gpointer self);
232static void smd_applet_close_logs_action (smdApplet* self, GtkButton* b);238static void smd_applet_close_logs_action (smdApplet* self, GtkButton* b);
233static void _smd_applet_close_logs_action_gtk_button_clicked (GtkButton* _sender, gpointer self);239static void _smd_applet_close_logs_action_gtk_button_clicked (GtkButton* _sender, gpointer self);
234static gboolean smd_applet_close_logs_event (smdApplet* self, GdkEventAny* e);240static gboolean smd_applet_close_logs_event (smdApplet* self, GdkEventAny* e);
235static gboolean _smd_applet_close_logs_event_gtk_widget_delete_event (GtkWidget* _sender, GdkEventAny* event, gpointer self);241static gboolean _smd_applet_close_logs_event_gtk_widget_delete_event (GtkWidget* _sender, GdkEventAny* event, gpointer self);
236static void smd_applet_close_prefs_action (smdApplet* self, GtkButton* b);242static void smd_applet_close_prefs_action (smdApplet* self, GtkButton* b);
237static void _smd_applet_close_prefs_action_gtk_button_clicked (GtkButton* _sender, gpointer self);243static void _smd_applet_close_prefs_action_gtk_button_clicked (GtkButton* _sender, gpointer self);
238static void __lambda3_ (smdApplet* self, GtkToggleButton* b);244static void __lambda5_ (smdApplet* self, GtkToggleButton* b);
239static void ___lambda3__gtk_toggle_button_toggled (GtkToggleButton* _sender, gpointer self);245static void ___lambda5__gtk_toggle_button_toggled (GtkToggleButton* _sender, gpointer self);
240static void __lambda4_ (smdApplet* self, GtkToggleButton* b);246static void __lambda6_ (smdApplet* self, GtkToggleButton* b);
241static void ___lambda4__gtk_toggle_button_toggled (GtkToggleButton* _sender, gpointer self);247static void ___lambda6__gtk_toggle_button_toggled (GtkToggleButton* _sender, gpointer self);
248static void __lambda7_ (smdApplet* self, GtkToggleButton* b);
249static void ___lambda7__gtk_toggle_button_toggled (GtkToggleButton* _sender, gpointer self);
242static void smd_applet_close_err_action (smdApplet* self, GtkButton* b);250static void smd_applet_close_err_action (smdApplet* self, GtkButton* b);
243static void _smd_applet_close_err_action_gtk_button_clicked (GtkButton* _sender, gpointer self);251static void _smd_applet_close_err_action_gtk_button_clicked (GtkButton* _sender, gpointer self);
244static void __lambda5_ (smdApplet* self, GtkButton* b);252static void __lambda8_ (smdApplet* self, GtkButton* b);
245static gboolean smd_applet_is_smd_loop_configured (smdApplet* self);253static gboolean smd_applet_is_smd_loop_configured (smdApplet* self);
246static void ___lambda5__gtk_button_clicked (GtkButton* _sender, gpointer self);254static void ___lambda8__gtk_button_clicked (GtkButton* _sender, gpointer self);
247static void __lambda6_ (smdApplet* self, GtkButton* b);255static void __lambda9_ (smdApplet* self, GtkButton* b);
248static gboolean smd_applet_is_smd_pushpull_configured (smdApplet* self);256static gboolean smd_applet_is_smd_pushpull_configured (smdApplet* self);
249static void ___lambda6__gtk_button_clicked (GtkButton* _sender, gpointer self);257static void ___lambda9__gtk_button_clicked (GtkButton* _sender, gpointer self);
250static void __lambda7_ (smdApplet* self, GtkMenuItem* b);258static void __lambda10_ (smdApplet* self, GtkMenuItem* b);
251static void ___lambda7__gtk_menu_item_activate (GtkMenuItem* _sender, gpointer self);259static void ___lambda10__gtk_menu_item_activate (GtkMenuItem* _sender, gpointer self);
252static void __lambda8_ (smdApplet* self, GtkCheckMenuItem* b);260static void __lambda11_ (smdApplet* self, GtkCheckMenuItem* b);
253static void smd_applet_pause (smdApplet* self);261static void smd_applet_pause (smdApplet* self);
254static void smd_applet_unpause (smdApplet* self);262static void smd_applet_unpause (smdApplet* self);
255static void ___lambda8__gtk_check_menu_item_toggled (GtkCheckMenuItem* _sender, gpointer self);263static void ___lambda11__gtk_check_menu_item_toggled (GtkCheckMenuItem* _sender, gpointer self);
256static void __lambda9_ (smdApplet* self, gint id);264static void __lambda12_ (smdApplet* self, gint id);
257static void ___lambda9__gtk_dialog_response (GtkDialog* _sender, gint response_id, gpointer self);265static void ___lambda12__gtk_dialog_response (GtkDialog* _sender, gint response_id, gpointer self);
258static void __lambda10_ (smdApplet* self, GtkMenuItem* b);266static void __lambda13_ (smdApplet* self, GtkMenuItem* b);
259static void ___lambda10__gtk_menu_item_activate (GtkMenuItem* _sender, gpointer self);267static void ___lambda13__gtk_menu_item_activate (GtkMenuItem* _sender, gpointer self);
260static void __lambda11_ (smdApplet* self, GtkMenuItem* b);268static void __lambda14_ (smdApplet* self, GtkMenuItem* b);
261static void ___lambda11__gtk_menu_item_activate (GtkMenuItem* _sender, gpointer self);269static void ___lambda14__gtk_menu_item_activate (GtkMenuItem* _sender, gpointer self);
262static void __lambda12_ (smdApplet* self, GtkMenuItem* b);270static void __lambda15_ (smdApplet* self, GtkMenuItem* b);
263static void smd_applet_update_loglist (smdApplet* self);271static void smd_applet_update_loglist (smdApplet* self);
264static void ___lambda12__gtk_menu_item_activate (GtkMenuItem* _sender, gpointer self);272static void ___lambda15__gtk_menu_item_activate (GtkMenuItem* _sender, gpointer self);
265static void __lambda13_ (smdApplet* self, guint button, guint time);273static void __lambda16_ (smdApplet* self, guint button, guint time);
266static void _gtk_status_icon_position_menu_gtk_menu_position_func (GtkMenu* menu, gint* x, gint* y, gboolean* push_in, gpointer self);274static void _gtk_status_icon_position_menu_gtk_menu_position_func (GtkMenu* menu, gint* x, gint* y, gboolean* push_in, gpointer self);
267static void ___lambda13__gtk_status_icon_popup_menu (GtkStatusIcon* _sender, guint button, guint activate_time, gpointer self);275static void ___lambda16__gtk_status_icon_popup_menu (GtkStatusIcon* _sender, guint button, guint activate_time, gpointer self);
268static void __lambda14_ (smdApplet* self, GtkStatusIcon* s);276static void __lambda17_ (smdApplet* self, GtkStatusIcon* s);
269static void ___lambda14__gtk_status_icon_activate (GtkStatusIcon* _sender, gpointer self);277static void ___lambda17__gtk_status_icon_activate (GtkStatusIcon* _sender, gpointer self);
270static void _g_object_unref0_ (gpointer var);278static void _g_object_unref0_ (gpointer var);
271static void _g_free0_ (gpointer var);279static void _g_free0_ (gpointer var);
272static void* smd_applet_smdThread (smdApplet* self);280static void* smd_applet_smdThread (smdApplet* self);
@@ -275,13 +283,13 @@
275static gpointer _smd_applet_smdThread_gthread_func (gpointer self);283static gpointer _smd_applet_smdThread_gthread_func (gpointer self);
276static gboolean smd_applet_eval_smd_loop_error_message (smdApplet* self, const gchar* args, const gchar* account, const gchar* host, GError** error);284static gboolean smd_applet_eval_smd_loop_error_message (smdApplet* self, const gchar* args, const gchar* account, const gchar* host, GError** error);
277static gboolean smd_applet_eval_smd_loop_message (smdApplet* self, const gchar* s);285static gboolean smd_applet_eval_smd_loop_message (smdApplet* self, const gchar* s);
278static void ___lambda2_ (smdApplet* self);286static void ___lambda4_ (smdApplet* self);
279static void ____lambda2__gspawn_child_setup_func (gpointer self);287static void ____lambda4__gspawn_child_setup_func (gpointer self);
280static gboolean smd_applet_eat_event (smdApplet* self);288static gboolean smd_applet_eat_event (smdApplet* self);
281static void ______lambda15_ (smdApplet* self, NotifyNotification* not, const gchar* action);289static void ______lambda18_ (smdApplet* self, NotifyNotification* not, const gchar* action);
282static void _______lambda15__notify_action_callback (NotifyNotification* notification, const gchar* action, gpointer self);290static void _______lambda18__notify_action_callback (NotifyNotification* notification, const gchar* action, gpointer self);
283static void ______lambda16_ (smdApplet* self, GtkButton* b);291static void ______lambda19_ (smdApplet* self, GtkButton* b);
284static void _______lambda16__gtk_button_clicked (GtkButton* _sender, gpointer self);292static void _______lambda19__gtk_button_clicked (GtkButton* _sender, gpointer self);
285static void smd_applet_reset_to_regular_run (smdApplet* self, gboolean force);293static void smd_applet_reset_to_regular_run (smdApplet* self, gboolean force);
286static gboolean smd_applet_close_err_event (smdApplet* self, GdkEventAny* e);294static gboolean smd_applet_close_err_event (smdApplet* self, GdkEventAny* e);
287static void smd_applet_close_prefs (smdApplet* self);295static void smd_applet_close_prefs (smdApplet* self);
@@ -923,7 +931,7 @@
923}931}
924932
925933
926static void ___lambda0_ (smdApplet* self, guint s) {934static void ___lambda2_ (smdApplet* self, guint s) {
927 guint _tmp0_;935 guint _tmp0_;
928 gboolean _tmp1_ = FALSE;936 gboolean _tmp1_ = FALSE;
929 _tmp0_ = s;937 _tmp0_ = s;
@@ -940,12 +948,12 @@
940}948}
941949
942950
943static void ____lambda0__network_manager_state_changed (NetworkManager* _sender, guint state, gpointer self) {951static void ____lambda2__network_manager_state_changed (NetworkManager* _sender, guint state, gpointer self) {
944 ___lambda0_ (self, state);952 ___lambda2_ (self, state);
945}953}
946954
947955
948static void __lambda1_ (smdApplet* self, GtkComboBox* cb) {956static void __lambda3_ (smdApplet* self, GtkComboBox* cb) {
949 GtkComboBoxText* _tmp0_;957 GtkComboBoxText* _tmp0_;
950 gint _tmp1_ = 0;958 gint _tmp1_ = 0;
951 gint selected;959 gint selected;
@@ -1094,8 +1102,8 @@
1094}1102}
10951103
10961104
1097static void ___lambda1__gtk_combo_box_changed (GtkComboBox* _sender, gpointer self) {1105static void ___lambda3__gtk_combo_box_changed (GtkComboBox* _sender, gpointer self) {
1098 __lambda1_ (self, _sender);1106 __lambda3_ (self, _sender);
1099}1107}
11001108
11011109
@@ -1116,7 +1124,7 @@
1116}1124}
11171125
11181126
1119static void __lambda3_ (smdApplet* self, GtkToggleButton* b) {1127static void __lambda5_ (smdApplet* self, GtkToggleButton* b) {
1120 GError * _inner_error_ = NULL;1128 GError * _inner_error_ = NULL;
1121 g_return_if_fail (b != NULL);1129 g_return_if_fail (b != NULL);
1122 {1130 {
@@ -1169,12 +1177,12 @@
1169}1177}
11701178
11711179
1172static void ___lambda3__gtk_toggle_button_toggled (GtkToggleButton* _sender, gpointer self) {1180static void ___lambda5__gtk_toggle_button_toggled (GtkToggleButton* _sender, gpointer self) {
1173 __lambda3_ (self, _sender);1181 __lambda5_ (self, _sender);
1174}1182}
11751183
11761184
1177static void __lambda4_ (smdApplet* self, GtkToggleButton* b) {1185static void __lambda6_ (smdApplet* self, GtkToggleButton* b) {
1178 GError * _inner_error_ = NULL;1186 GError * _inner_error_ = NULL;
1179 g_return_if_fail (b != NULL);1187 g_return_if_fail (b != NULL);
1180 {1188 {
@@ -1215,8 +1223,86 @@
1215}1223}
12161224
12171225
1218static void ___lambda4__gtk_toggle_button_toggled (GtkToggleButton* _sender, gpointer self) {1226static void ___lambda6__gtk_toggle_button_toggled (GtkToggleButton* _sender, gpointer self) {
1219 __lambda4_ (self, _sender);1227 __lambda6_ (self, _sender);
1228}
1229
1230
1231static void __lambda7_ (smdApplet* self, GtkToggleButton* b) {
1232 GtkToggleButton* _tmp0_;
1233 gboolean _tmp1_;
1234 gboolean _tmp2_;
1235 GError * _inner_error_ = NULL;
1236 g_return_if_fail (b != NULL);
1237 _tmp0_ = b;
1238 _tmp1_ = gtk_toggle_button_get_active (_tmp0_);
1239 _tmp2_ = _tmp1_;
1240 if (_tmp2_) {
1241 gchar* content = NULL;
1242 {
1243 const gchar* _tmp3_;
1244 gchar* _tmp4_ = NULL;
1245 const gchar* _tmp5_;
1246 const gchar* _tmp6_;
1247 _tmp3_ = smd_applet_smd_applet_desktop;
1248 g_file_get_contents (_tmp3_, &_tmp4_, NULL, &_inner_error_);
1249 _g_free0 (content);
1250 content = _tmp4_;
1251 if (_inner_error_ != NULL) {
1252 if (_inner_error_->domain == G_FILE_ERROR) {
1253 goto __catch8_g_file_error;
1254 }
1255 _g_free0 (content);
1256 g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
1257 g_clear_error (&_inner_error_);
1258 return;
1259 }
1260 _tmp5_ = XDG_AUTORUN_FILE;
1261 _tmp6_ = content;
1262 g_file_set_contents (_tmp5_, _tmp6_, (gssize) (-1), &_inner_error_);
1263 if (_inner_error_ != NULL) {
1264 if (_inner_error_->domain == G_FILE_ERROR) {
1265 goto __catch8_g_file_error;
1266 }
1267 _g_free0 (content);
1268 g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
1269 g_clear_error (&_inner_error_);
1270 return;
1271 }
1272 }
1273 goto __finally8;
1274 __catch8_g_file_error:
1275 {
1276 GError* e = NULL;
1277 FILE* _tmp7_;
1278 GError* _tmp8_;
1279 const gchar* _tmp9_;
1280 e = _inner_error_;
1281 _inner_error_ = NULL;
1282 _tmp7_ = stderr;
1283 _tmp8_ = e;
1284 _tmp9_ = _tmp8_->message;
1285 fprintf (_tmp7_, "%s\n", _tmp9_);
1286 _g_error_free0 (e);
1287 }
1288 __finally8:
1289 if (_inner_error_ != NULL) {
1290 _g_free0 (content);
1291 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
1292 g_clear_error (&_inner_error_);
1293 return;
1294 }
1295 _g_free0 (content);
1296 } else {
1297 const gchar* _tmp10_;
1298 _tmp10_ = XDG_AUTORUN_FILE;
1299 g_remove (_tmp10_);
1300 }
1301}
1302
1303
1304static void ___lambda7__gtk_toggle_button_toggled (GtkToggleButton* _sender, gpointer self) {
1305 __lambda7_ (self, _sender);
1220}1306}
12211307
12221308
@@ -1225,7 +1311,7 @@
1225}1311}
12261312
12271313
1228static void __lambda5_ (smdApplet* self, GtkButton* b) {1314static void __lambda8_ (smdApplet* self, GtkButton* b) {
1229 GError * _inner_error_ = NULL;1315 GError * _inner_error_ = NULL;
1230 g_return_if_fail (b != NULL);1316 g_return_if_fail (b != NULL);
1231 {1317 {
@@ -1246,7 +1332,7 @@
1246 _g_free0 (_tmp3_);1332 _g_free0 (_tmp3_);
1247 if (_inner_error_ != NULL) {1333 if (_inner_error_ != NULL) {
1248 if (_inner_error_->domain == G_SPAWN_ERROR) {1334 if (_inner_error_->domain == G_SPAWN_ERROR) {
1249 goto __catch7_g_spawn_error;1335 goto __catch9_g_spawn_error;
1250 }1336 }
1251 g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);1337 g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
1252 g_clear_error (&_inner_error_);1338 g_clear_error (&_inner_error_);
@@ -1261,7 +1347,7 @@
1261 if (_inner_error_ != NULL) {1347 if (_inner_error_ != NULL) {
1262 _g_free0 (cmd);1348 _g_free0 (cmd);
1263 if (_inner_error_->domain == G_SPAWN_ERROR) {1349 if (_inner_error_->domain == G_SPAWN_ERROR) {
1264 goto __catch7_g_spawn_error;1350 goto __catch9_g_spawn_error;
1265 }1351 }
1266 _g_free0 (cmd);1352 _g_free0 (cmd);
1267 g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);1353 g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
@@ -1271,8 +1357,8 @@
1271 smd_applet_is_smd_loop_configured (self);1357 smd_applet_is_smd_loop_configured (self);
1272 _g_free0 (cmd);1358 _g_free0 (cmd);
1273 }1359 }
1274 goto __finally7;1360 goto __finally9;
1275 __catch7_g_spawn_error:1361 __catch9_g_spawn_error:
1276 {1362 {
1277 GError* e = NULL;1363 GError* e = NULL;
1278 FILE* _tmp7_;1364 FILE* _tmp7_;
@@ -1286,7 +1372,7 @@
1286 fprintf (_tmp7_, "%s\n", _tmp9_);1372 fprintf (_tmp7_, "%s\n", _tmp9_);
1287 _g_error_free0 (e);1373 _g_error_free0 (e);
1288 }1374 }
1289 __finally7:1375 __finally9:
1290 if (_inner_error_ != NULL) {1376 if (_inner_error_ != NULL) {
1291 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);1377 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
1292 g_clear_error (&_inner_error_);1378 g_clear_error (&_inner_error_);
@@ -1295,12 +1381,12 @@
1295}1381}
12961382
12971383
1298static void ___lambda5__gtk_button_clicked (GtkButton* _sender, gpointer self) {1384static void ___lambda8__gtk_button_clicked (GtkButton* _sender, gpointer self) {
1299 __lambda5_ (self, _sender);1385 __lambda8_ (self, _sender);
1300}1386}
13011387
13021388
1303static void __lambda6_ (smdApplet* self, GtkButton* b) {1389static void __lambda9_ (smdApplet* self, GtkButton* b) {
1304 GError * _inner_error_ = NULL;1390 GError * _inner_error_ = NULL;
1305 g_return_if_fail (b != NULL);1391 g_return_if_fail (b != NULL);
1306 {1392 {
@@ -1321,7 +1407,7 @@
1321 _g_free0 (_tmp3_);1407 _g_free0 (_tmp3_);
1322 if (_inner_error_ != NULL) {1408 if (_inner_error_ != NULL) {
1323 if (_inner_error_->domain == G_SPAWN_ERROR) {1409 if (_inner_error_->domain == G_SPAWN_ERROR) {
1324 goto __catch8_g_spawn_error;1410 goto __catch10_g_spawn_error;
1325 }1411 }
1326 g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);1412 g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
1327 g_clear_error (&_inner_error_);1413 g_clear_error (&_inner_error_);
@@ -1336,7 +1422,7 @@
1336 if (_inner_error_ != NULL) {1422 if (_inner_error_ != NULL) {
1337 _g_free0 (cmd);1423 _g_free0 (cmd);
1338 if (_inner_error_->domain == G_SPAWN_ERROR) {1424 if (_inner_error_->domain == G_SPAWN_ERROR) {
1339 goto __catch8_g_spawn_error;1425 goto __catch10_g_spawn_error;
1340 }1426 }
1341 _g_free0 (cmd);1427 _g_free0 (cmd);
1342 g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);1428 g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
@@ -1346,8 +1432,8 @@
1346 smd_applet_is_smd_pushpull_configured (self);1432 smd_applet_is_smd_pushpull_configured (self);
1347 _g_free0 (cmd);1433 _g_free0 (cmd);
1348 }1434 }
1349 goto __finally8;1435 goto __finally10;
1350 __catch8_g_spawn_error:1436 __catch10_g_spawn_error:
1351 {1437 {
1352 GError* e = NULL;1438 GError* e = NULL;
1353 FILE* _tmp7_;1439 FILE* _tmp7_;
@@ -1361,7 +1447,7 @@
1361 fprintf (_tmp7_, "%s\n", _tmp9_);1447 fprintf (_tmp7_, "%s\n", _tmp9_);
1362 _g_error_free0 (e);1448 _g_error_free0 (e);
1363 }1449 }
1364 __finally8:1450 __finally10:
1365 if (_inner_error_ != NULL) {1451 if (_inner_error_ != NULL) {
1366 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);1452 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
1367 g_clear_error (&_inner_error_);1453 g_clear_error (&_inner_error_);
@@ -1370,12 +1456,12 @@
1370}1456}
13711457
13721458
1373static void ___lambda6__gtk_button_clicked (GtkButton* _sender, gpointer self) {1459static void ___lambda9__gtk_button_clicked (GtkButton* _sender, gpointer self) {
1374 __lambda6_ (self, _sender);1460 __lambda9_ (self, _sender);
1375}1461}
13761462
13771463
1378static void __lambda7_ (smdApplet* self, GtkMenuItem* b) {1464static void __lambda10_ (smdApplet* self, GtkMenuItem* b) {
1379 GPid _tmp0_;1465 GPid _tmp0_;
1380 g_return_if_fail (b != NULL);1466 g_return_if_fail (b != NULL);
1381 self->priv->thread_die = TRUE;1467 self->priv->thread_die = TRUE;
@@ -1397,12 +1483,12 @@
1397}1483}
13981484
13991485
1400static void ___lambda7__gtk_menu_item_activate (GtkMenuItem* _sender, gpointer self) {1486static void ___lambda10__gtk_menu_item_activate (GtkMenuItem* _sender, gpointer self) {
1401 __lambda7_ (self, _sender);1487 __lambda10_ (self, _sender);
1402}1488}
14031489
14041490
1405static void __lambda8_ (smdApplet* self, GtkCheckMenuItem* b) {1491static void __lambda11_ (smdApplet* self, GtkCheckMenuItem* b) {
1406 GtkCheckMenuItem* _tmp0_;1492 GtkCheckMenuItem* _tmp0_;
1407 gboolean _tmp1_ = FALSE;1493 gboolean _tmp1_ = FALSE;
1408 g_return_if_fail (b != NULL);1494 g_return_if_fail (b != NULL);
@@ -1416,24 +1502,24 @@
1416}1502}
14171503
14181504
1419static void ___lambda8__gtk_check_menu_item_toggled (GtkCheckMenuItem* _sender, gpointer self) {1505static void ___lambda11__gtk_check_menu_item_toggled (GtkCheckMenuItem* _sender, gpointer self) {
1420 __lambda8_ (self, _sender);1506 __lambda11_ (self, _sender);
1421}1507}
14221508
14231509
1424static void __lambda9_ (smdApplet* self, gint id) {1510static void __lambda12_ (smdApplet* self, gint id) {
1425 GtkAboutDialog* _tmp0_;1511 GtkAboutDialog* _tmp0_;
1426 _tmp0_ = self->priv->about_win;1512 _tmp0_ = self->priv->about_win;
1427 gtk_widget_hide ((GtkWidget*) _tmp0_);1513 gtk_widget_hide ((GtkWidget*) _tmp0_);
1428}1514}
14291515
14301516
1431static void ___lambda9__gtk_dialog_response (GtkDialog* _sender, gint response_id, gpointer self) {1517static void ___lambda12__gtk_dialog_response (GtkDialog* _sender, gint response_id, gpointer self) {
1432 __lambda9_ (self, response_id);1518 __lambda12_ (self, response_id);
1433}1519}
14341520
14351521
1436static void __lambda10_ (smdApplet* self, GtkMenuItem* b) {1522static void __lambda13_ (smdApplet* self, GtkMenuItem* b) {
1437 GtkAboutDialog* _tmp0_;1523 GtkAboutDialog* _tmp0_;
1438 g_return_if_fail (b != NULL);1524 g_return_if_fail (b != NULL);
1439 _tmp0_ = self->priv->about_win;1525 _tmp0_ = self->priv->about_win;
@@ -1441,12 +1527,12 @@
1441}1527}
14421528
14431529
1444static void ___lambda10__gtk_menu_item_activate (GtkMenuItem* _sender, gpointer self) {1530static void ___lambda13__gtk_menu_item_activate (GtkMenuItem* _sender, gpointer self) {
1445 __lambda10_ (self, _sender);1531 __lambda13_ (self, _sender);
1446}1532}
14471533
14481534
1449static void __lambda11_ (smdApplet* self, GtkMenuItem* b) {1535static void __lambda14_ (smdApplet* self, GtkMenuItem* b) {
1450 GtkWindow* _tmp0_;1536 GtkWindow* _tmp0_;
1451 g_return_if_fail (b != NULL);1537 g_return_if_fail (b != NULL);
1452 _tmp0_ = self->priv->win;1538 _tmp0_ = self->priv->win;
@@ -1454,12 +1540,12 @@
1454}1540}
14551541
14561542
1457static void ___lambda11__gtk_menu_item_activate (GtkMenuItem* _sender, gpointer self) {1543static void ___lambda14__gtk_menu_item_activate (GtkMenuItem* _sender, gpointer self) {
1458 __lambda11_ (self, _sender);1544 __lambda14_ (self, _sender);
1459}1545}
14601546
14611547
1462static void __lambda12_ (smdApplet* self, GtkMenuItem* b) {1548static void __lambda15_ (smdApplet* self, GtkMenuItem* b) {
1463 GtkWindow* _tmp0_;1549 GtkWindow* _tmp0_;
1464 g_return_if_fail (b != NULL);1550 g_return_if_fail (b != NULL);
1465 smd_applet_update_loglist (self);1551 smd_applet_update_loglist (self);
@@ -1468,8 +1554,8 @@
1468}1554}
14691555
14701556
1471static void ___lambda12__gtk_menu_item_activate (GtkMenuItem* _sender, gpointer self) {1557static void ___lambda15__gtk_menu_item_activate (GtkMenuItem* _sender, gpointer self) {
1472 __lambda12_ (self, _sender);1558 __lambda15_ (self, _sender);
1473}1559}
14741560
14751561
@@ -1478,7 +1564,7 @@
1478}1564}
14791565
14801566
1481static void __lambda13_ (smdApplet* self, guint button, guint time) {1567static void __lambda16_ (smdApplet* self, guint button, guint time) {
1482 GtkMenu* _tmp0_;1568 GtkMenu* _tmp0_;
1483 GtkStatusIcon* _tmp1_;1569 GtkStatusIcon* _tmp1_;
1484 guint32 _tmp2_ = 0U;1570 guint32 _tmp2_ = 0U;
@@ -1489,12 +1575,12 @@
1489}1575}
14901576
14911577
1492static void ___lambda13__gtk_status_icon_popup_menu (GtkStatusIcon* _sender, guint button, guint activate_time, gpointer self) {1578static void ___lambda16__gtk_status_icon_popup_menu (GtkStatusIcon* _sender, guint button, guint activate_time, gpointer self) {
1493 __lambda13_ (self, button, activate_time);1579 __lambda16_ (self, button, activate_time);
1494}1580}
14951581
14961582
1497static void __lambda14_ (smdApplet* self, GtkStatusIcon* s) {1583static void __lambda17_ (smdApplet* self, GtkStatusIcon* s) {
1498 gboolean _tmp0_;1584 gboolean _tmp0_;
1499 g_return_if_fail (s != NULL);1585 g_return_if_fail (s != NULL);
1500 _tmp0_ = self->priv->error_mode;1586 _tmp0_ = self->priv->error_mode;
@@ -1522,8 +1608,8 @@
1522}1608}
15231609
15241610
1525static void ___lambda14__gtk_status_icon_activate (GtkStatusIcon* _sender, gpointer self) {1611static void ___lambda17__gtk_status_icon_activate (GtkStatusIcon* _sender, gpointer self) {
1526 __lambda14_ (self, _sender);1612 __lambda17_ (self, _sender);
1527}1613}
15281614
15291615
@@ -1541,102 +1627,105 @@
1541 smdApplet* self = NULL;1627 smdApplet* self = NULL;
1542 GtkBuilder* _tmp0_;1628 GtkBuilder* _tmp0_;
1543 GeeArrayList* _tmp7_;1629 GeeArrayList* _tmp7_;
1544 GMutex* _tmp8_;1630 GConfClient* _tmp8_ = NULL;
1545 GConfClient* _tmp9_ = NULL;1631 GConfClient* _tmp9_;
1546 GConfClient* _tmp10_;1632 GtkBuilder* _tmp16_;
1547 GtkBuilder* _tmp17_;1633 GObject* _tmp17_ = NULL;
1548 GObject* _tmp18_ = NULL;1634 GtkWindow* _tmp18_;
1549 GtkWindow* _tmp19_;1635 GtkBuilder* _tmp19_;
1550 GtkBuilder* _tmp20_;1636 GObject* _tmp20_ = NULL;
1551 GObject* _tmp21_ = NULL;1637 GtkWindow* _tmp21_;
1552 GtkWindow* _tmp22_;1638 GtkBuilder* _tmp22_;
1553 GtkBuilder* _tmp23_;1639 GObject* _tmp23_ = NULL;
1554 GObject* _tmp24_ = NULL;1640 GtkAboutDialog* _tmp24_;
1555 GtkAboutDialog* _tmp25_;1641 GtkAboutDialog* _tmp25_;
1556 GtkAboutDialog* _tmp26_;1642 GtkBuilder* _tmp26_;
1557 GtkBuilder* _tmp27_;1643 GObject* _tmp27_ = NULL;
1558 GObject* _tmp28_ = NULL;1644 GtkWindow* _tmp28_;
1559 GtkWindow* _tmp29_;1645 GtkBuilder* _tmp29_;
1560 GtkBuilder* _tmp30_;1646 GObject* _tmp30_ = NULL;
1561 GObject* _tmp31_ = NULL;1647 GtkVBox* _tmp31_;
1562 GtkVBox* _tmp32_;
1563 GtkVBox* logs_vb;1648 GtkVBox* logs_vb;
1649 GtkComboBoxText* _tmp32_;
1564 GtkComboBoxText* _tmp33_;1650 GtkComboBoxText* _tmp33_;
1565 GtkComboBoxText* _tmp34_;1651 GeeArrayList* _tmp34_;
1566 GeeArrayList* _tmp35_;1652 GtkComboBoxText* _tmp35_;
1567 GtkComboBoxText* _tmp36_;1653 GtkComboBoxText* _tmp36_;
1568 GtkComboBoxText* _tmp37_;1654 GtkComboBoxText* _tmp37_;
1569 GtkComboBoxText* _tmp38_;1655 GtkComboBoxText* _tmp38_;
1570 GtkComboBoxText* _tmp39_;1656 GtkBuilder* _tmp39_;
1571 GtkBuilder* _tmp40_;1657 GObject* _tmp40_ = NULL;
1572 GObject* _tmp41_ = NULL;1658 GtkButton* _tmp41_;
1573 GtkButton* _tmp42_;
1574 GtkButton* close_log;1659 GtkButton* close_log;
1575 GtkWindow* _tmp43_;1660 GtkWindow* _tmp42_;
1576 GtkBuilder* _tmp44_;1661 GtkBuilder* _tmp43_;
1577 GObject* _tmp45_ = NULL;1662 GObject* _tmp44_ = NULL;
1578 GtkButton* _tmp46_;1663 GtkButton* _tmp45_;
1579 GtkButton* close;1664 GtkButton* close;
1580 GtkBuilder* _tmp47_;1665 GtkBuilder* _tmp46_;
1581 GObject* _tmp48_ = NULL;1666 GObject* _tmp47_ = NULL;
1582 GtkCheckButton* _tmp49_;1667 GtkCheckButton* _tmp48_;
1583 GtkCheckButton* bicon;1668 GtkCheckButton* bicon;
1584 GtkBuilder* _tmp56_;1669 GtkBuilder* _tmp55_;
1585 GObject* _tmp57_ = NULL;1670 GObject* _tmp56_ = NULL;
1586 GtkCheckButton* _tmp58_;1671 GtkCheckButton* _tmp57_;
1587 GtkCheckButton* bnotify;1672 GtkCheckButton* bnotify;
1588 GtkBuilder* _tmp65_;1673 GtkBuilder* _tmp64_;
1589 GObject* _tmp66_ = NULL;1674 GObject* _tmp65_ = NULL;
1590 GtkButton* _tmp67_;1675 GtkCheckButton* _tmp66_;
1676 GtkCheckButton* bautostart;
1677 GtkBuilder* _tmp75_;
1678 GObject* _tmp76_ = NULL;
1679 GtkButton* _tmp77_;
1591 GtkButton* bc;1680 GtkButton* bc;
1592 GtkBuilder* _tmp68_;1681 GtkBuilder* _tmp78_;
1593 GObject* _tmp69_ = NULL;1682 GObject* _tmp79_ = NULL;
1594 GtkButton* _tmp70_;1683 GtkButton* _tmp80_;
1595 GtkButton* bel;1684 GtkButton* bel;
1596 GtkBuilder* _tmp71_;1685 GtkBuilder* _tmp81_;
1597 GObject* _tmp72_ = NULL;1686 GObject* _tmp82_ = NULL;
1598 GtkButton* _tmp73_;1687 GtkButton* _tmp83_;
1599 GtkButton* bepp;1688 GtkButton* bepp;
1600 GtkBuilder* _tmp74_;1689 GtkBuilder* _tmp84_;
1601 GObject* _tmp75_ = NULL;1690 GObject* _tmp85_ = NULL;
1602 GtkMenu* _tmp76_;1691 GtkMenu* _tmp86_;
1603 GtkBuilder* _tmp77_;
1604 GObject* _tmp78_ = NULL;
1605 GtkMenu* _tmp79_;
1606 GtkBuilder* _tmp80_;
1607 GObject* _tmp81_ = NULL;
1608 GtkMenuItem* _tmp82_;
1609 GtkMenuItem* quit;
1610 GtkBuilder* _tmp83_;
1611 GObject* _tmp84_ = NULL;
1612 GtkCheckMenuItem* _tmp85_;
1613 GtkCheckMenuItem* _tmp86_;
1614 GtkBuilder* _tmp87_;1692 GtkBuilder* _tmp87_;
1615 GObject* _tmp88_ = NULL;1693 GObject* _tmp88_ = NULL;
1616 GtkMenuItem* _tmp89_;1694 GtkMenu* _tmp89_;
1695 GtkBuilder* _tmp90_;
1696 GObject* _tmp91_ = NULL;
1697 GtkMenuItem* _tmp92_;
1698 GtkMenuItem* quit;
1699 GtkBuilder* _tmp93_;
1700 GObject* _tmp94_ = NULL;
1701 GtkCheckMenuItem* _tmp95_;
1702 GtkCheckMenuItem* _tmp96_;
1703 GtkBuilder* _tmp97_;
1704 GObject* _tmp98_ = NULL;
1705 GtkMenuItem* _tmp99_;
1617 GtkMenuItem* about;1706 GtkMenuItem* about;
1618 GtkAboutDialog* _tmp90_;1707 GtkAboutDialog* _tmp100_;
1619 GtkAboutDialog* _tmp91_;1708 GtkAboutDialog* _tmp101_;
1620 GtkBuilder* _tmp92_;1709 GtkBuilder* _tmp102_;
1621 GObject* _tmp93_ = NULL;1710 GObject* _tmp103_ = NULL;
1622 GtkMenuItem* _tmp94_;1711 GtkMenuItem* _tmp104_;
1623 GtkMenuItem* prefs;1712 GtkMenuItem* prefs;
1624 GtkBuilder* _tmp95_;1713 GtkBuilder* _tmp105_;
1625 GObject* _tmp96_ = NULL;1714 GObject* _tmp106_ = NULL;
1626 GtkMenuItem* _tmp97_;1715 GtkMenuItem* _tmp107_;
1627 GtkMenuItem* logs;1716 GtkMenuItem* logs;
1628 GtkStatusIcon* _tmp98_;1717 GtkStatusIcon* _tmp108_;
1629 GtkStatusIcon* _tmp99_;1718 GtkStatusIcon* _tmp109_;
1630 gboolean _tmp100_;1719 gboolean _tmp110_;
1631 GtkStatusIcon* _tmp101_;1720 GtkStatusIcon* _tmp111_;
1632 GtkStatusIcon* _tmp102_;1721 GtkStatusIcon* _tmp112_;
1633 GtkStatusIcon* _tmp103_;1722 GtkStatusIcon* _tmp113_;
1634 GList* _tmp104_ = NULL;1723 GList* _tmp114_ = NULL;
1635 GList* l;1724 GList* l;
1636 gint _tmp105_ = 0;1725 gint _tmp115_ = 0;
1637 GHashFunc _tmp106_;1726 GHashFunc _tmp116_;
1638 GEqualFunc _tmp107_;1727 GEqualFunc _tmp117_;
1639 GHashTable* _tmp108_;1728 GHashTable* _tmp118_;
1640 GError * _inner_error_ = NULL;1729 GError * _inner_error_ = NULL;
1641 self = (smdApplet*) g_type_create_instance (object_type);1730 self = (smdApplet*) g_type_create_instance (object_type);
1642 _tmp0_ = gtk_builder_new ();1731 _tmp0_ = gtk_builder_new ();
@@ -1686,40 +1775,37 @@
1686 _tmp7_ = gee_array_list_new (TYPE_EVENT, (GBoxedCopyFunc) event_ref, event_unref, NULL);1775 _tmp7_ = gee_array_list_new (TYPE_EVENT, (GBoxedCopyFunc) event_ref, event_unref, NULL);
1687 _g_object_unref0 (self->priv->events);1776 _g_object_unref0 (self->priv->events);
1688 self->priv->events = _tmp7_;1777 self->priv->events = _tmp7_;
1689 _tmp8_ = g_mutex_new ();1778 _tmp8_ = gconf_client_get_default ();
1690 _g_mutex_free0 (self->priv->events_lock);1779 _tmp9_ = _g_object_ref0 (_tmp8_);
1691 self->priv->events_lock = _tmp8_;
1692 _tmp9_ = gconf_client_get_default ();
1693 _tmp10_ = _g_object_ref0 (_tmp9_);
1694 _g_object_unref0 (self->priv->gconf);1780 _g_object_unref0 (self->priv->gconf);
1695 self->priv->gconf = _tmp10_;1781 self->priv->gconf = _tmp9_;
1696 {1782 {
1697 NetworkManager* _tmp11_ = NULL;1783 NetworkManager* _tmp10_ = NULL;
1784 NetworkManager* _tmp11_;
1698 NetworkManager* _tmp12_;1785 NetworkManager* _tmp12_;
1699 NetworkManager* _tmp13_;1786 _tmp10_ = g_initable_new (TYPE_NETWORK_MANAGER_PROXY, NULL, &_inner_error_, "g-flags", 0, "g-name", NM_SERVICE, "g-bus-type", G_BUS_TYPE_SYSTEM, "g-object-path", NM_PATH, "g-interface-name", "org.freedesktop.NetworkManager", NULL);
1700 _tmp11_ = g_initable_new (TYPE_NETWORK_MANAGER_PROXY, NULL, &_inner_error_, "g-flags", 0, "g-name", NM_SERVICE, "g-bus-type", G_BUS_TYPE_SYSTEM, "g-object-path", NM_PATH, "g-interface-name", "org.freedesktop.NetworkManager", NULL);1787 _tmp11_ = (NetworkManager*) _tmp10_;
1701 _tmp12_ = (NetworkManager*) _tmp11_;
1702 if (_inner_error_ != NULL) {1788 if (_inner_error_ != NULL) {
1703 goto __catch1_g_error;1789 goto __catch1_g_error;
1704 }1790 }
1705 _g_object_unref0 (self->priv->net_manager);1791 _g_object_unref0 (self->priv->net_manager);
1706 self->priv->net_manager = _tmp12_;1792 self->priv->net_manager = _tmp11_;
1707 _tmp13_ = self->priv->net_manager;1793 _tmp12_ = self->priv->net_manager;
1708 g_signal_connect (_tmp13_, "state-changed", (GCallback) ____lambda0__network_manager_state_changed, self);1794 g_signal_connect (_tmp12_, "state-changed", (GCallback) ____lambda2__network_manager_state_changed, self);
1709 }1795 }
1710 goto __finally1;1796 goto __finally1;
1711 __catch1_g_error:1797 __catch1_g_error:
1712 {1798 {
1713 GError* e = NULL;1799 GError* e = NULL;
1714 FILE* _tmp14_;1800 FILE* _tmp13_;
1715 GError* _tmp15_;1801 GError* _tmp14_;
1716 const gchar* _tmp16_;1802 const gchar* _tmp15_;
1717 e = _inner_error_;1803 e = _inner_error_;
1718 _inner_error_ = NULL;1804 _inner_error_ = NULL;
1719 _tmp14_ = stderr;1805 _tmp13_ = stderr;
1720 _tmp15_ = e;1806 _tmp14_ = e;
1721 _tmp16_ = _tmp15_->message;1807 _tmp15_ = _tmp14_->message;
1722 fprintf (_tmp14_, "%s\n", _tmp16_);1808 fprintf (_tmp13_, "%s\n", _tmp15_);
1723 _g_object_unref0 (self->priv->net_manager);1809 _g_object_unref0 (self->priv->net_manager);
1724 self->priv->net_manager = NULL;1810 self->priv->net_manager = NULL;
1725 _g_error_free0 (e);1811 _g_error_free0 (e);
@@ -1736,88 +1822,88 @@
1736 return NULL;1822 return NULL;
1737 }1823 }
1738 }1824 }
1739 _tmp17_ = self->priv->builder;1825 _tmp16_ = self->priv->builder;
1740 _tmp18_ = gtk_builder_get_object (_tmp17_, "wPrefs");1826 _tmp17_ = gtk_builder_get_object (_tmp16_, "wPrefs");
1741 _tmp19_ = _g_object_ref0 (GTK_IS_WINDOW (_tmp18_) ? ((GtkWindow*) _tmp18_) : NULL);1827 _tmp18_ = _g_object_ref0 (GTK_IS_WINDOW (_tmp17_) ? ((GtkWindow*) _tmp17_) : NULL);
1742 _g_object_unref0 (self->priv->win);1828 _g_object_unref0 (self->priv->win);
1743 self->priv->win = _tmp19_;1829 self->priv->win = _tmp18_;
1744 _tmp20_ = self->priv->builder;1830 _tmp19_ = self->priv->builder;
1745 _tmp21_ = gtk_builder_get_object (_tmp20_, "wError");1831 _tmp20_ = gtk_builder_get_object (_tmp19_, "wError");
1746 _tmp22_ = _g_object_ref0 (GTK_IS_WINDOW (_tmp21_) ? ((GtkWindow*) _tmp21_) : NULL);1832 _tmp21_ = _g_object_ref0 (GTK_IS_WINDOW (_tmp20_) ? ((GtkWindow*) _tmp20_) : NULL);
1747 _g_object_unref0 (self->priv->err_win);1833 _g_object_unref0 (self->priv->err_win);
1748 self->priv->err_win = _tmp22_;1834 self->priv->err_win = _tmp21_;
1749 _tmp23_ = self->priv->builder;1835 _tmp22_ = self->priv->builder;
1750 _tmp24_ = gtk_builder_get_object (_tmp23_, "wAbout");1836 _tmp23_ = gtk_builder_get_object (_tmp22_, "wAbout");
1751 _tmp25_ = _g_object_ref0 (GTK_IS_ABOUT_DIALOG (_tmp24_) ? ((GtkAboutDialog*) _tmp24_) : NULL);1837 _tmp24_ = _g_object_ref0 (GTK_IS_ABOUT_DIALOG (_tmp23_) ? ((GtkAboutDialog*) _tmp23_) : NULL);
1752 _g_object_unref0 (self->priv->about_win);1838 _g_object_unref0 (self->priv->about_win);
1753 self->priv->about_win = _tmp25_;1839 self->priv->about_win = _tmp24_;
1754 _tmp26_ = self->priv->about_win;1840 _tmp25_ = self->priv->about_win;
1755 gtk_about_dialog_set_copyright (_tmp26_, "Copyright " SMD_CONF_COPYRIGHT);1841 gtk_about_dialog_set_copyright (_tmp25_, "Copyright " SMD_CONF_COPYRIGHT);
1756 _tmp27_ = self->priv->builder;1842 _tmp26_ = self->priv->builder;
1757 _tmp28_ = gtk_builder_get_object (_tmp27_, "wLog");1843 _tmp27_ = gtk_builder_get_object (_tmp26_, "wLog");
1758 _tmp29_ = _g_object_ref0 (GTK_IS_WINDOW (_tmp28_) ? ((GtkWindow*) _tmp28_) : NULL);1844 _tmp28_ = _g_object_ref0 (GTK_IS_WINDOW (_tmp27_) ? ((GtkWindow*) _tmp27_) : NULL);
1759 _g_object_unref0 (self->priv->log_win);1845 _g_object_unref0 (self->priv->log_win);
1760 self->priv->log_win = _tmp29_;1846 self->priv->log_win = _tmp28_;
1761 _tmp30_ = self->priv->builder;1847 _tmp29_ = self->priv->builder;
1762 _tmp31_ = gtk_builder_get_object (_tmp30_, "vbLog");1848 _tmp30_ = gtk_builder_get_object (_tmp29_, "vbLog");
1763 _tmp32_ = _g_object_ref0 (GTK_IS_VBOX (_tmp31_) ? ((GtkVBox*) _tmp31_) : NULL);1849 _tmp31_ = _g_object_ref0 (GTK_IS_VBOX (_tmp30_) ? ((GtkVBox*) _tmp30_) : NULL);
1764 logs_vb = _tmp32_;1850 logs_vb = _tmp31_;
1765 _tmp33_ = (GtkComboBoxText*) gtk_combo_box_text_new ();1851 _tmp32_ = (GtkComboBoxText*) gtk_combo_box_text_new ();
1766 _tmp34_ = g_object_ref_sink (_tmp33_);1852 _tmp33_ = g_object_ref_sink (_tmp32_);
1767 _g_object_unref0 (self->priv->cblogs);1853 _g_object_unref0 (self->priv->cblogs);
1768 self->priv->cblogs = _tmp34_;1854 self->priv->cblogs = _tmp33_;
1769 _tmp35_ = gee_array_list_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, NULL);1855 _tmp34_ = gee_array_list_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, NULL);
1770 _g_object_unref0 (self->priv->lognames);1856 _g_object_unref0 (self->priv->lognames);
1771 self->priv->lognames = _tmp35_;1857 self->priv->lognames = _tmp34_;
1858 _tmp35_ = self->priv->cblogs;
1859 gtk_box_pack_start ((GtkBox*) logs_vb, (GtkWidget*) _tmp35_, FALSE, TRUE, (guint) 0);
1772 _tmp36_ = self->priv->cblogs;1860 _tmp36_ = self->priv->cblogs;
1773 gtk_box_pack_start ((GtkBox*) logs_vb, (GtkWidget*) _tmp36_, FALSE, TRUE, (guint) 0);1861 gtk_box_reorder_child ((GtkBox*) logs_vb, (GtkWidget*) _tmp36_, 0);
1774 _tmp37_ = self->priv->cblogs;1862 _tmp37_ = self->priv->cblogs;
1775 gtk_box_reorder_child ((GtkBox*) logs_vb, (GtkWidget*) _tmp37_, 0);1863 gtk_widget_show ((GtkWidget*) _tmp37_);
1776 _tmp38_ = self->priv->cblogs;1864 _tmp38_ = self->priv->cblogs;
1777 gtk_widget_show ((GtkWidget*) _tmp38_);1865 g_signal_connect ((GtkComboBox*) _tmp38_, "changed", (GCallback) ___lambda3__gtk_combo_box_changed, self);
1778 _tmp39_ = self->priv->cblogs;1866 _tmp39_ = self->priv->builder;
1779 g_signal_connect ((GtkComboBox*) _tmp39_, "changed", (GCallback) ___lambda1__gtk_combo_box_changed, self);1867 _tmp40_ = gtk_builder_get_object (_tmp39_, "bLogClose");
1780 _tmp40_ = self->priv->builder;1868 _tmp41_ = _g_object_ref0 (GTK_IS_BUTTON (_tmp40_) ? ((GtkButton*) _tmp40_) : NULL);
1781 _tmp41_ = gtk_builder_get_object (_tmp40_, "bLogClose");1869 close_log = _tmp41_;
1782 _tmp42_ = _g_object_ref0 (GTK_IS_BUTTON (_tmp41_) ? ((GtkButton*) _tmp41_) : NULL);
1783 close_log = _tmp42_;
1784 g_signal_connect (close_log, "clicked", (GCallback) _smd_applet_close_logs_action_gtk_button_clicked, self);1870 g_signal_connect (close_log, "clicked", (GCallback) _smd_applet_close_logs_action_gtk_button_clicked, self);
1785 _tmp43_ = self->priv->log_win;1871 _tmp42_ = self->priv->log_win;
1786 g_signal_connect ((GtkWidget*) _tmp43_, "delete-event", (GCallback) _smd_applet_close_logs_event_gtk_widget_delete_event, self);1872 g_signal_connect ((GtkWidget*) _tmp42_, "delete-event", (GCallback) _smd_applet_close_logs_event_gtk_widget_delete_event, self);
1787 _tmp44_ = self->priv->builder;1873 _tmp43_ = self->priv->builder;
1788 _tmp45_ = gtk_builder_get_object (_tmp44_, "bClosePrefs");1874 _tmp44_ = gtk_builder_get_object (_tmp43_, "bClosePrefs");
1789 _tmp46_ = _g_object_ref0 (GTK_IS_BUTTON (_tmp45_) ? ((GtkButton*) _tmp45_) : NULL);1875 _tmp45_ = _g_object_ref0 (GTK_IS_BUTTON (_tmp44_) ? ((GtkButton*) _tmp44_) : NULL);
1790 close = _tmp46_;1876 close = _tmp45_;
1791 g_signal_connect (close, "clicked", (GCallback) _smd_applet_close_prefs_action_gtk_button_clicked, self);1877 g_signal_connect (close, "clicked", (GCallback) _smd_applet_close_prefs_action_gtk_button_clicked, self);
1792 _tmp47_ = self->priv->builder;1878 _tmp46_ = self->priv->builder;
1793 _tmp48_ = gtk_builder_get_object (_tmp47_, "cbIcon");1879 _tmp47_ = gtk_builder_get_object (_tmp46_, "cbIcon");
1794 _tmp49_ = _g_object_ref0 (GTK_IS_CHECK_BUTTON (_tmp48_) ? ((GtkCheckButton*) _tmp48_) : NULL);1880 _tmp48_ = _g_object_ref0 (GTK_IS_CHECK_BUTTON (_tmp47_) ? ((GtkCheckButton*) _tmp47_) : NULL);
1795 bicon = _tmp49_;1881 bicon = _tmp48_;
1796 {1882 {
1797 GConfClient* _tmp50_;1883 GConfClient* _tmp49_;
1798 gboolean _tmp51_ = FALSE;1884 gboolean _tmp50_ = FALSE;
1799 gboolean _tmp52_;1885 gboolean _tmp51_;
1800 _tmp50_ = self->priv->gconf;1886 _tmp49_ = self->priv->gconf;
1801 _tmp51_ = gconf_client_get_bool (_tmp50_, SMD_APPLET_key_icon, &_inner_error_);1887 _tmp50_ = gconf_client_get_bool (_tmp49_, SMD_APPLET_key_icon, &_inner_error_);
1802 _tmp52_ = _tmp51_;1888 _tmp51_ = _tmp50_;
1803 if (_inner_error_ != NULL) {1889 if (_inner_error_ != NULL) {
1804 goto __catch3_g_error;1890 goto __catch3_g_error;
1805 }1891 }
1806 gtk_toggle_button_set_active ((GtkToggleButton*) bicon, _tmp52_);1892 gtk_toggle_button_set_active ((GtkToggleButton*) bicon, _tmp51_);
1807 }1893 }
1808 goto __finally3;1894 goto __finally3;
1809 __catch3_g_error:1895 __catch3_g_error:
1810 {1896 {
1811 GError* e = NULL;1897 GError* e = NULL;
1812 FILE* _tmp53_;1898 FILE* _tmp52_;
1813 GError* _tmp54_;1899 GError* _tmp53_;
1814 const gchar* _tmp55_;1900 const gchar* _tmp54_;
1815 e = _inner_error_;1901 e = _inner_error_;
1816 _inner_error_ = NULL;1902 _inner_error_ = NULL;
1817 _tmp53_ = stderr;1903 _tmp52_ = stderr;
1818 _tmp54_ = e;1904 _tmp53_ = e;
1819 _tmp55_ = _tmp54_->message;1905 _tmp54_ = _tmp53_->message;
1820 fprintf (_tmp53_, "%s\n", _tmp55_);1906 fprintf (_tmp52_, "%s\n", _tmp54_);
1821 _g_error_free0 (e);1907 _g_error_free0 (e);
1822 }1908 }
1823 __finally3:1909 __finally3:
@@ -1840,36 +1926,36 @@
1840 return NULL;1926 return NULL;
1841 }1927 }
1842 }1928 }
1843 g_signal_connect ((GtkToggleButton*) bicon, "toggled", (GCallback) ___lambda3__gtk_toggle_button_toggled, self);1929 g_signal_connect ((GtkToggleButton*) bicon, "toggled", (GCallback) ___lambda5__gtk_toggle_button_toggled, self);
1844 _tmp56_ = self->priv->builder;1930 _tmp55_ = self->priv->builder;
1845 _tmp57_ = gtk_builder_get_object (_tmp56_, "cbNotify");1931 _tmp56_ = gtk_builder_get_object (_tmp55_, "cbNotify");
1846 _tmp58_ = _g_object_ref0 (GTK_IS_CHECK_BUTTON (_tmp57_) ? ((GtkCheckButton*) _tmp57_) : NULL);1932 _tmp57_ = _g_object_ref0 (GTK_IS_CHECK_BUTTON (_tmp56_) ? ((GtkCheckButton*) _tmp56_) : NULL);
1847 bnotify = _tmp58_;1933 bnotify = _tmp57_;
1848 {1934 {
1849 GConfClient* _tmp59_;1935 GConfClient* _tmp58_;
1850 gboolean _tmp60_ = FALSE;1936 gboolean _tmp59_ = FALSE;
1851 gboolean _tmp61_;1937 gboolean _tmp60_;
1852 _tmp59_ = self->priv->gconf;1938 _tmp58_ = self->priv->gconf;
1853 _tmp60_ = gconf_client_get_bool (_tmp59_, SMD_APPLET_key_newmail, &_inner_error_);1939 _tmp59_ = gconf_client_get_bool (_tmp58_, SMD_APPLET_key_newmail, &_inner_error_);
1854 _tmp61_ = _tmp60_;1940 _tmp60_ = _tmp59_;
1855 if (_inner_error_ != NULL) {1941 if (_inner_error_ != NULL) {
1856 goto __catch5_g_error;1942 goto __catch5_g_error;
1857 }1943 }
1858 gtk_toggle_button_set_active ((GtkToggleButton*) bnotify, _tmp61_);1944 gtk_toggle_button_set_active ((GtkToggleButton*) bnotify, _tmp60_);
1859 }1945 }
1860 goto __finally5;1946 goto __finally5;
1861 __catch5_g_error:1947 __catch5_g_error:
1862 {1948 {
1863 GError* e = NULL;1949 GError* e = NULL;
1864 FILE* _tmp62_;1950 FILE* _tmp61_;
1865 GError* _tmp63_;1951 GError* _tmp62_;
1866 const gchar* _tmp64_;1952 const gchar* _tmp63_;
1867 e = _inner_error_;1953 e = _inner_error_;
1868 _inner_error_ = NULL;1954 _inner_error_ = NULL;
1869 _tmp62_ = stderr;1955 _tmp61_ = stderr;
1870 _tmp63_ = e;1956 _tmp62_ = e;
1871 _tmp64_ = _tmp63_->message;1957 _tmp63_ = _tmp62_->message;
1872 fprintf (_tmp62_, "%s\n", _tmp64_);1958 fprintf (_tmp61_, "%s\n", _tmp63_);
1873 _g_error_free0 (e);1959 _g_error_free0 (e);
1874 }1960 }
1875 __finally5:1961 __finally5:
@@ -1894,84 +1980,168 @@
1894 return NULL;1980 return NULL;
1895 }1981 }
1896 }1982 }
1897 g_signal_connect ((GtkToggleButton*) bnotify, "toggled", (GCallback) ___lambda4__gtk_toggle_button_toggled, self);1983 g_signal_connect ((GtkToggleButton*) bnotify, "toggled", (GCallback) ___lambda6__gtk_toggle_button_toggled, self);
1898 _tmp65_ = self->priv->builder;1984 _tmp64_ = self->priv->builder;
1899 _tmp66_ = gtk_builder_get_object (_tmp65_, "bClose");1985 _tmp65_ = gtk_builder_get_object (_tmp64_, "cbAutostart");
1900 _tmp67_ = _g_object_ref0 (GTK_IS_BUTTON (_tmp66_) ? ((GtkButton*) _tmp66_) : NULL);1986 _tmp66_ = _g_object_ref0 (GTK_IS_CHECK_BUTTON (_tmp65_) ? ((GtkCheckButton*) _tmp65_) : NULL);
1901 bc = _tmp67_;1987 bautostart = _tmp66_;
1988 {
1989 gchar* content = NULL;
1990 const gchar* _tmp67_;
1991 gchar* _tmp68_ = NULL;
1992 gboolean _tmp69_ = FALSE;
1993 gboolean _tmp70_;
1994 _tmp67_ = XDG_AUTORUN_FILE;
1995 _tmp69_ = g_file_get_contents (_tmp67_, &_tmp68_, NULL, &_inner_error_);
1996 _g_free0 (content);
1997 content = _tmp68_;
1998 _tmp70_ = _tmp69_;
1999 if (_inner_error_ != NULL) {
2000 _g_free0 (content);
2001 if (_inner_error_->domain == G_FILE_ERROR) {
2002 goto __catch7_g_file_error;
2003 }
2004 _g_free0 (content);
2005 _g_object_unref0 (bautostart);
2006 _g_object_unref0 (bnotify);
2007 _g_object_unref0 (bicon);
2008 _g_object_unref0 (close);
2009 _g_object_unref0 (close_log);
2010 _g_object_unref0 (logs_vb);
2011 g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
2012 g_clear_error (&_inner_error_);
2013 return NULL;
2014 }
2015 if (_tmp70_) {
2016 gboolean _tmp71_ = FALSE;
2017 _tmp71_ = g_regex_match_simple (GNOME_AUTOSTART_DISABLED, content, 0, 0);
2018 if (_tmp71_) {
2019 gtk_toggle_button_set_active ((GtkToggleButton*) bautostart, FALSE);
2020 } else {
2021 gtk_toggle_button_set_active ((GtkToggleButton*) bautostart, TRUE);
2022 }
2023 } else {
2024 gtk_toggle_button_set_active ((GtkToggleButton*) bautostart, FALSE);
2025 }
2026 _g_free0 (content);
2027 }
2028 goto __finally7;
2029 __catch7_g_file_error:
2030 {
2031 GError* e = NULL;
2032 FILE* _tmp72_;
2033 GError* _tmp73_;
2034 const gchar* _tmp74_;
2035 e = _inner_error_;
2036 _inner_error_ = NULL;
2037 _tmp72_ = stderr;
2038 _tmp73_ = e;
2039 _tmp74_ = _tmp73_->message;
2040 fprintf (_tmp72_, "%s\n", _tmp74_);
2041 _g_error_free0 (e);
2042 }
2043 __finally7:
2044 if (_inner_error_ != NULL) {
2045 if (_inner_error_->domain == EXIT) {
2046 g_propagate_error (error, _inner_error_);
2047 _g_object_unref0 (bautostart);
2048 _g_object_unref0 (bnotify);
2049 _g_object_unref0 (bicon);
2050 _g_object_unref0 (close);
2051 _g_object_unref0 (close_log);
2052 _g_object_unref0 (logs_vb);
2053 _smd_applet_unref0 (self);
2054 return NULL;
2055 } else {
2056 _g_object_unref0 (bautostart);
2057 _g_object_unref0 (bnotify);
2058 _g_object_unref0 (bicon);
2059 _g_object_unref0 (close);
2060 _g_object_unref0 (close_log);
2061 _g_object_unref0 (logs_vb);
2062 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
2063 g_clear_error (&_inner_error_);
2064 return NULL;
2065 }
2066 }
2067 g_signal_connect ((GtkToggleButton*) bautostart, "toggled", (GCallback) ___lambda7__gtk_toggle_button_toggled, self);
2068 _tmp75_ = self->priv->builder;
2069 _tmp76_ = gtk_builder_get_object (_tmp75_, "bClose");
2070 _tmp77_ = _g_object_ref0 (GTK_IS_BUTTON (_tmp76_) ? ((GtkButton*) _tmp76_) : NULL);
2071 bc = _tmp77_;
1902 g_signal_connect (bc, "clicked", (GCallback) _smd_applet_close_err_action_gtk_button_clicked, self);2072 g_signal_connect (bc, "clicked", (GCallback) _smd_applet_close_err_action_gtk_button_clicked, self);
1903 _tmp68_ = self->priv->builder;2073 _tmp78_ = self->priv->builder;
1904 _tmp69_ = gtk_builder_get_object (_tmp68_, "bEditLoopCfg");2074 _tmp79_ = gtk_builder_get_object (_tmp78_, "bEditLoopCfg");
1905 _tmp70_ = _g_object_ref0 (GTK_IS_BUTTON (_tmp69_) ? ((GtkButton*) _tmp69_) : NULL);2075 _tmp80_ = _g_object_ref0 (GTK_IS_BUTTON (_tmp79_) ? ((GtkButton*) _tmp79_) : NULL);
1906 bel = _tmp70_;2076 bel = _tmp80_;
1907 g_signal_connect (bel, "clicked", (GCallback) ___lambda5__gtk_button_clicked, self);2077 g_signal_connect (bel, "clicked", (GCallback) ___lambda8__gtk_button_clicked, self);
1908 _tmp71_ = self->priv->builder;2078 _tmp81_ = self->priv->builder;
1909 _tmp72_ = gtk_builder_get_object (_tmp71_, "bEditPushPullCfg");2079 _tmp82_ = gtk_builder_get_object (_tmp81_, "bEditPushPullCfg");
1910 _tmp73_ = _g_object_ref0 (GTK_IS_BUTTON (_tmp72_) ? ((GtkButton*) _tmp72_) : NULL);2080 _tmp83_ = _g_object_ref0 (GTK_IS_BUTTON (_tmp82_) ? ((GtkButton*) _tmp82_) : NULL);
1911 bepp = _tmp73_;2081 bepp = _tmp83_;
1912 g_signal_connect (bepp, "clicked", (GCallback) ___lambda6__gtk_button_clicked, self);2082 g_signal_connect (bepp, "clicked", (GCallback) ___lambda9__gtk_button_clicked, self);
1913 _tmp74_ = self->priv->builder;2083 _tmp84_ = self->priv->builder;
1914 _tmp75_ = gtk_builder_get_object (_tmp74_, "mLeft");2084 _tmp85_ = gtk_builder_get_object (_tmp84_, "mLeft");
1915 _tmp76_ = _g_object_ref0 (GTK_IS_MENU (_tmp75_) ? ((GtkMenu*) _tmp75_) : NULL);2085 _tmp86_ = _g_object_ref0 (GTK_IS_MENU (_tmp85_) ? ((GtkMenu*) _tmp85_) : NULL);
1916 _g_object_unref0 (self->priv->menuL);2086 _g_object_unref0 (self->priv->menuL);
1917 self->priv->menuL = _tmp76_;2087 self->priv->menuL = _tmp86_;
1918 _tmp77_ = self->priv->builder;
1919 _tmp78_ = gtk_builder_get_object (_tmp77_, "mRight");
1920 _tmp79_ = _g_object_ref0 (GTK_IS_MENU (_tmp78_) ? ((GtkMenu*) _tmp78_) : NULL);
1921 _g_object_unref0 (self->priv->menuR);
1922 self->priv->menuR = _tmp79_;
1923 _tmp80_ = self->priv->builder;
1924 _tmp81_ = gtk_builder_get_object (_tmp80_, "miQuit");
1925 _tmp82_ = _g_object_ref0 (GTK_IS_MENU_ITEM (_tmp81_) ? ((GtkMenuItem*) _tmp81_) : NULL);
1926 quit = _tmp82_;
1927 g_signal_connect (quit, "activate", (GCallback) ___lambda7__gtk_menu_item_activate, self);
1928 _tmp83_ = self->priv->builder;
1929 _tmp84_ = gtk_builder_get_object (_tmp83_, "miPause");
1930 _tmp85_ = _g_object_ref0 (GTK_IS_CHECK_MENU_ITEM (_tmp84_) ? ((GtkCheckMenuItem*) _tmp84_) : NULL);
1931 _g_object_unref0 (self->priv->miPause);
1932 self->priv->miPause = _tmp85_;
1933 _tmp86_ = self->priv->miPause;
1934 g_signal_connect (_tmp86_, "toggled", (GCallback) ___lambda8__gtk_check_menu_item_toggled, self);
1935 _tmp87_ = self->priv->builder;2088 _tmp87_ = self->priv->builder;
1936 _tmp88_ = gtk_builder_get_object (_tmp87_, "miAbout");2089 _tmp88_ = gtk_builder_get_object (_tmp87_, "mRight");
1937 _tmp89_ = _g_object_ref0 (GTK_IS_MENU_ITEM (_tmp88_) ? ((GtkMenuItem*) _tmp88_) : NULL);2090 _tmp89_ = _g_object_ref0 (GTK_IS_MENU (_tmp88_) ? ((GtkMenu*) _tmp88_) : NULL);
1938 about = _tmp89_;2091 _g_object_unref0 (self->priv->menuR);
1939 _tmp90_ = self->priv->about_win;2092 self->priv->menuR = _tmp89_;
1940 g_signal_connect ((GtkDialog*) _tmp90_, "response", (GCallback) ___lambda9__gtk_dialog_response, self);2093 _tmp90_ = self->priv->builder;
1941 g_signal_connect (about, "activate", (GCallback) ___lambda10__gtk_menu_item_activate, self);2094 _tmp91_ = gtk_builder_get_object (_tmp90_, "miQuit");
1942 _tmp91_ = self->priv->about_win;2095 _tmp92_ = _g_object_ref0 (GTK_IS_MENU_ITEM (_tmp91_) ? ((GtkMenuItem*) _tmp91_) : NULL);
1943 gtk_about_dialog_set_comments (_tmp91_, "GNOME applet for syncmaildir version " SMD_CONF_VERSION);2096 quit = _tmp92_;
1944 _tmp92_ = self->priv->builder;2097 g_signal_connect (quit, "activate", (GCallback) ___lambda10__gtk_menu_item_activate, self);
1945 _tmp93_ = gtk_builder_get_object (_tmp92_, "miPrefs");2098 _tmp93_ = self->priv->builder;
1946 _tmp94_ = _g_object_ref0 (GTK_IS_MENU_ITEM (_tmp93_) ? ((GtkMenuItem*) _tmp93_) : NULL);2099 _tmp94_ = gtk_builder_get_object (_tmp93_, "miPause");
1947 prefs = _tmp94_;2100 _tmp95_ = _g_object_ref0 (GTK_IS_CHECK_MENU_ITEM (_tmp94_) ? ((GtkCheckMenuItem*) _tmp94_) : NULL);
1948 g_signal_connect (prefs, "activate", (GCallback) ___lambda11__gtk_menu_item_activate, self);2101 _g_object_unref0 (self->priv->miPause);
1949 _tmp95_ = self->priv->builder;2102 self->priv->miPause = _tmp95_;
1950 _tmp96_ = gtk_builder_get_object (_tmp95_, "miLog");2103 _tmp96_ = self->priv->miPause;
1951 _tmp97_ = _g_object_ref0 (GTK_IS_MENU_ITEM (_tmp96_) ? ((GtkMenuItem*) _tmp96_) : NULL);2104 g_signal_connect (_tmp96_, "toggled", (GCallback) ___lambda11__gtk_check_menu_item_toggled, self);
1952 logs = _tmp97_;2105 _tmp97_ = self->priv->builder;
1953 g_signal_connect (logs, "activate", (GCallback) ___lambda12__gtk_menu_item_activate, self);2106 _tmp98_ = gtk_builder_get_object (_tmp97_, "miAbout");
1954 _tmp98_ = gtk_status_icon_new_from_icon_name ("mail-send-receive");2107 _tmp99_ = _g_object_ref0 (GTK_IS_MENU_ITEM (_tmp98_) ? ((GtkMenuItem*) _tmp98_) : NULL);
2108 about = _tmp99_;
2109 _tmp100_ = self->priv->about_win;
2110 g_signal_connect ((GtkDialog*) _tmp100_, "response", (GCallback) ___lambda12__gtk_dialog_response, self);
2111 g_signal_connect (about, "activate", (GCallback) ___lambda13__gtk_menu_item_activate, self);
2112 _tmp101_ = self->priv->about_win;
2113 gtk_about_dialog_set_comments (_tmp101_, "GNOME applet for syncmaildir version " SMD_CONF_VERSION);
2114 _tmp102_ = self->priv->builder;
2115 _tmp103_ = gtk_builder_get_object (_tmp102_, "miPrefs");
2116 _tmp104_ = _g_object_ref0 (GTK_IS_MENU_ITEM (_tmp103_) ? ((GtkMenuItem*) _tmp103_) : NULL);
2117 prefs = _tmp104_;
2118 g_signal_connect (prefs, "activate", (GCallback) ___lambda14__gtk_menu_item_activate, self);
2119 _tmp105_ = self->priv->builder;
2120 _tmp106_ = gtk_builder_get_object (_tmp105_, "miLog");
2121 _tmp107_ = _g_object_ref0 (GTK_IS_MENU_ITEM (_tmp106_) ? ((GtkMenuItem*) _tmp106_) : NULL);
2122 logs = _tmp107_;
2123 g_signal_connect (logs, "activate", (GCallback) ___lambda15__gtk_menu_item_activate, self);
2124 _tmp108_ = gtk_status_icon_new_from_icon_name ("mail-send-receive");
1955 _g_object_unref0 (self->priv->si);2125 _g_object_unref0 (self->priv->si);
1956 self->priv->si = _tmp98_;2126 self->priv->si = _tmp108_;
1957 _tmp99_ = self->priv->si;2127 _tmp109_ = self->priv->si;
1958 _tmp100_ = hide_status_icon;2128 _tmp110_ = hide_status_icon;
1959 gtk_status_icon_set_visible (_tmp99_, !_tmp100_);2129 gtk_status_icon_set_visible (_tmp109_, !_tmp110_);
1960 _tmp101_ = self->priv->si;2130 _tmp111_ = self->priv->si;
1961 gtk_status_icon_set_tooltip_text (_tmp101_, "smd-applet is running");2131 gtk_status_icon_set_tooltip_text (_tmp111_, "smd-applet is running");
1962 _tmp102_ = self->priv->si;2132 _tmp112_ = self->priv->si;
1963 g_signal_connect (_tmp102_, "popup-menu", (GCallback) ___lambda13__gtk_status_icon_popup_menu, self);2133 g_signal_connect (_tmp112_, "popup-menu", (GCallback) ___lambda16__gtk_status_icon_popup_menu, self);
1964 _tmp103_ = self->priv->si;2134 _tmp113_ = self->priv->si;
1965 g_signal_connect (_tmp103_, "activate", (GCallback) ___lambda14__gtk_status_icon_activate, self);2135 g_signal_connect (_tmp113_, "activate", (GCallback) ___lambda17__gtk_status_icon_activate, self);
1966 _tmp104_ = notify_get_server_caps ();2136 _tmp114_ = notify_get_server_caps ();
1967 l = _tmp104_;2137 l = _tmp114_;
1968 _tmp105_ = g_list_index (l, "persistence");2138 _tmp115_ = g_list_index (l, "persistence");
1969 self->priv->notification_server_has_persistence = 0 <= _tmp105_;2139 self->priv->notification_server_has_persistence = 0 <= _tmp115_;
1970 _tmp106_ = g_direct_hash;2140 _tmp116_ = g_direct_hash;
1971 _tmp107_ = g_str_equal;2141 _tmp117_ = g_str_equal;
1972 _tmp108_ = g_hash_table_new_full (_tmp106_, _tmp107_, _g_object_unref0_, _g_free0_);2142 _tmp118_ = g_hash_table_new_full (_tmp116_, _tmp117_, _g_object_unref0_, _g_free0_);
1973 _g_hash_table_unref0 (self->priv->command_hash);2143 _g_hash_table_unref0 (self->priv->command_hash);
1974 self->priv->command_hash = _tmp108_;2144 self->priv->command_hash = _tmp118_;
1975 _g_object_unref0 (logs);2145 _g_object_unref0 (logs);
1976 _g_object_unref0 (prefs);2146 _g_object_unref0 (prefs);
1977 _g_object_unref0 (about);2147 _g_object_unref0 (about);
@@ -1979,6 +2149,7 @@
1979 _g_object_unref0 (bepp);2149 _g_object_unref0 (bepp);
1980 _g_object_unref0 (bel);2150 _g_object_unref0 (bel);
1981 _g_object_unref0 (bc);2151 _g_object_unref0 (bc);
2152 _g_object_unref0 (bautostart);
1982 _g_object_unref0 (bnotify);2153 _g_object_unref0 (bnotify);
1983 _g_object_unref0 (bicon);2154 _g_object_unref0 (bicon);
1984 _g_object_unref0 (close);2155 _g_object_unref0 (close);
@@ -2023,7 +2194,7 @@
2023 _tmp5_ = _tmp4_;2194 _tmp5_ = _tmp4_;
2024 if (_inner_error_ != NULL) {2195 if (_inner_error_ != NULL) {
2025 if (_inner_error_->domain == EXIT) {2196 if (_inner_error_->domain == EXIT) {
2026 goto __catch9_exit;2197 goto __catch11_exit;
2027 }2198 }
2028 g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);2199 g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
2029 g_clear_error (&_inner_error_);2200 g_clear_error (&_inner_error_);
@@ -2031,8 +2202,8 @@
2031 }2202 }
2032 rc = _tmp5_;2203 rc = _tmp5_;
2033 }2204 }
2034 goto __finally9;2205 goto __finally11;
2035 __catch9_exit:2206 __catch11_exit:
2036 {2207 {
2037 GError* e = NULL;2208 GError* e = NULL;
2038 e = _inner_error_;2209 e = _inner_error_;
@@ -2040,7 +2211,7 @@
2040 rc = FALSE;2211 rc = FALSE;
2041 _g_error_free0 (e);2212 _g_error_free0 (e);
2042 }2213 }
2043 __finally9:2214 __finally11:
2044 if (_inner_error_ != NULL) {2215 if (_inner_error_ != NULL) {
2045 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);2216 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
2046 g_clear_error (&_inner_error_);2217 g_clear_error (&_inner_error_);
@@ -2065,7 +2236,6 @@
2065 gboolean _tmp2_;2236 gboolean _tmp2_;
2066 gboolean _tmp4_;2237 gboolean _tmp4_;
2067 gboolean _tmp9_;2238 gboolean _tmp9_;
2068 GError * _inner_error_ = NULL;
2069 g_return_if_fail (self != NULL);2239 g_return_if_fail (self != NULL);
2070 _tmp2_ = force;2240 _tmp2_ = force;
2071 if (!_tmp2_) {2241 if (!_tmp2_) {
@@ -2095,39 +2265,10 @@
2095 _tmp10_ = self->priv->miPause;2265 _tmp10_ = self->priv->miPause;
2096 gtk_check_menu_item_set_active (_tmp10_, TRUE);2266 gtk_check_menu_item_set_active (_tmp10_, TRUE);
2097 } else {2267 } else {
2098 {2268 GThread* _tmp11_;
2099 GThread* _tmp11_ = NULL;2269 _tmp11_ = g_thread_new (NULL, _smd_applet_smdThread_gthread_func, self);
2100 GThread* _tmp12_;2270 _g_thread_unref0 (self->priv->thread);
2101 _tmp11_ = g_thread_create (_smd_applet_smdThread_gthread_func, self, TRUE, &_inner_error_);2271 self->priv->thread = _tmp11_;
2102 _tmp12_ = _tmp11_;
2103 if (_inner_error_ != NULL) {
2104 if (_inner_error_->domain == G_THREAD_ERROR) {
2105 goto __catch10_g_thread_error;
2106 }
2107 g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
2108 g_clear_error (&_inner_error_);
2109 return;
2110 }
2111 self->priv->thread = _tmp12_;
2112 }
2113 goto __finally10;
2114 __catch10_g_thread_error:
2115 {
2116 GError* e = NULL;
2117 FILE* _tmp13_;
2118 e = _inner_error_;
2119 _inner_error_ = NULL;
2120 _tmp13_ = stderr;
2121 fprintf (_tmp13_, "Unable to start a thread\n");
2122 gtk_main_quit ();
2123 _g_error_free0 (e);
2124 }
2125 __finally10:
2126 if (_inner_error_ != NULL) {
2127 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
2128 g_clear_error (&_inner_error_);
2129 return;
2130 }
2131 }2272 }
2132}2273}
21332274
@@ -2273,36 +2414,34 @@
2273 gchar* _tmp29_;2414 gchar* _tmp29_;
2274 gboolean _tmp30_;2415 gboolean _tmp30_;
2275 gboolean _tmp34_;2416 gboolean _tmp34_;
2276 GMatchInfo* _tmp43_;2417 GMatchInfo* _tmp41_;
2277 gchar* _tmp44_ = NULL;2418 gchar* _tmp42_ = NULL;
2278 gchar* _tmp45_;2419 gchar* _tmp43_;
2279 gboolean _tmp46_;2420 gboolean _tmp44_;
2280 gchar* permissions;2421 gchar* permissions;
2281 gchar* mail_name;2422 gchar* mail_name;
2282 gchar* mail_body;2423 gchar* mail_body;
2283 GeeArrayList* _tmp60_;2424 GeeArrayList* _tmp56_;
2284 GeeArrayList* commands;2425 GeeArrayList* commands;
2285 gboolean _tmp61_;2426 gboolean _tmp57_;
2286 GMutex* _tmp134_;2427 GeeArrayList* _tmp130_;
2287 GeeArrayList* _tmp135_;2428 GeeArrayList* _tmp131_;
2288 GeeArrayList* _tmp136_;2429 gint _tmp132_;
2289 gint _tmp137_;2430 gint _tmp133_;
2290 gint _tmp138_;2431 const gchar* _tmp134_;
2291 const gchar* _tmp139_;2432 const gchar* _tmp135_;
2292 const gchar* _tmp140_;2433 GMatchInfo* _tmp136_;
2293 GMatchInfo* _tmp141_;2434 gchar* _tmp137_ = NULL;
2294 gchar* _tmp142_ = NULL;2435 gchar* _tmp138_;
2295 gchar* _tmp143_;2436 GMatchInfo* _tmp139_;
2296 GMatchInfo* _tmp144_;2437 gchar* _tmp140_ = NULL;
2297 gchar* _tmp145_ = NULL;2438 gchar* _tmp141_;
2298 gchar* _tmp146_;2439 const gchar* _tmp142_;
2299 const gchar* _tmp147_;2440 const gchar* _tmp143_;
2300 const gchar* _tmp148_;2441 const gchar* _tmp144_;
2301 const gchar* _tmp149_;2442 GeeArrayList* _tmp145_;
2302 GeeArrayList* _tmp150_;2443 Event* _tmp146_ = NULL;
2303 Event* _tmp151_ = NULL;2444 Event* _tmp147_;
2304 Event* _tmp152_;
2305 GMutex* _tmp153_;
2306 GError * _inner_error_ = NULL;2445 GError * _inner_error_ = NULL;
2307 g_return_val_if_fail (self != NULL, FALSE);2446 g_return_val_if_fail (self != NULL, FALSE);
2308 g_return_val_if_fail (args != NULL, FALSE);2447 g_return_val_if_fail (args != NULL, FALSE);
@@ -2463,26 +2602,22 @@
2463 }2602 }
2464 _tmp34_ = _tmp26_;2603 _tmp34_ = _tmp26_;
2465 if (_tmp34_) {2604 if (_tmp34_) {
2466 GMutex* _tmp35_;2605 GeeArrayList* _tmp35_;
2467 GeeArrayList* _tmp36_;2606 GeeArrayList* _tmp36_;
2468 GeeArrayList* _tmp37_;2607 gint _tmp37_;
2469 gint _tmp38_;2608 gint _tmp38_;
2470 gint _tmp39_;2609 Event* _tmp39_ = NULL;
2471 Event* _tmp40_ = NULL;2610 Event* _tmp40_;
2472 Event* _tmp41_;2611 g_mutex_lock (&self->priv->events_lock);
2473 GMutex* _tmp42_;2612 _tmp35_ = self->priv->events;
2474 _tmp35_ = self->priv->events_lock;
2475 g_mutex_lock (_tmp35_);
2476 _tmp36_ = self->priv->events;2613 _tmp36_ = self->priv->events;
2477 _tmp37_ = self->priv->events;2614 _tmp37_ = gee_abstract_collection_get_size ((GeeCollection*) _tmp36_);
2478 _tmp38_ = gee_collection_get_size ((GeeCollection*) _tmp37_);2615 _tmp38_ = _tmp37_;
2479 _tmp39_ = _tmp38_;2616 _tmp39_ = event_network_error ();
2480 _tmp40_ = event_network_error ();2617 _tmp40_ = _tmp39_;
2481 _tmp41_ = _tmp40_;2618 gee_abstract_list_insert ((GeeAbstractList*) _tmp35_, _tmp38_, _tmp40_);
2482 gee_abstract_list_insert ((GeeAbstractList*) _tmp36_, _tmp39_, _tmp41_);2619 _event_unref0 (_tmp40_);
2483 _event_unref0 (_tmp41_);2620 g_mutex_unlock (&self->priv->events_lock);
2484 _tmp42_ = self->priv->events_lock;
2485 g_mutex_unlock (_tmp42_);
2486 result = TRUE;2621 result = TRUE;
2487 _g_match_info_free0 (i_act);2622 _g_match_info_free0 (i_act);
2488 _g_match_info_free0 (i_human);2623 _g_match_info_free0 (i_human);
@@ -2494,44 +2629,40 @@
2494 _g_regex_unref0 (context);2629 _g_regex_unref0 (context);
2495 return result;2630 return result;
2496 }2631 }
2497 _tmp43_ = i_human;2632 _tmp41_ = i_human;
2498 _tmp44_ = g_match_info_fetch (_tmp43_, 1);2633 _tmp42_ = g_match_info_fetch (_tmp41_, 1);
2499 _tmp45_ = _tmp44_;2634 _tmp43_ = _tmp42_;
2500 _tmp46_ = g_strcmp0 (_tmp45_, "necessary") != 0;2635 _tmp44_ = g_strcmp0 (_tmp43_, "necessary") != 0;
2501 _g_free0 (_tmp45_);2636 _g_free0 (_tmp43_);
2502 if (_tmp46_) {2637 if (_tmp44_) {
2503 FILE* _tmp47_;2638 FILE* _tmp45_;
2504 const gchar* _tmp48_;2639 const gchar* _tmp46_;
2505 GMutex* _tmp49_;2640 GeeArrayList* _tmp47_;
2506 GeeArrayList* _tmp50_;2641 GeeArrayList* _tmp48_;
2507 GeeArrayList* _tmp51_;2642 gint _tmp49_;
2508 gint _tmp52_;2643 gint _tmp50_;
2509 gint _tmp53_;2644 GMatchInfo* _tmp51_;
2510 GMatchInfo* _tmp54_;2645 gchar* _tmp52_ = NULL;
2511 gchar* _tmp55_ = NULL;2646 gchar* _tmp53_;
2512 gchar* _tmp56_;2647 Event* _tmp54_ = NULL;
2513 Event* _tmp57_ = NULL;2648 Event* _tmp55_;
2514 Event* _tmp58_;2649 _tmp45_ = stderr;
2515 GMutex* _tmp59_;2650 _tmp46_ = args;
2516 _tmp47_ = stderr;2651 fprintf (_tmp45_, "smd-loop giving an avoidable error: %s\n", _tmp46_);
2517 _tmp48_ = args;2652 g_mutex_lock (&self->priv->events_lock);
2518 fprintf (_tmp47_, "smd-loop giving an avoidable error: %s\n", _tmp48_);2653 _tmp47_ = self->priv->events;
2519 _tmp49_ = self->priv->events_lock;2654 _tmp48_ = self->priv->events;
2520 g_mutex_lock (_tmp49_);2655 _tmp49_ = gee_abstract_collection_get_size ((GeeCollection*) _tmp48_);
2521 _tmp50_ = self->priv->events;2656 _tmp50_ = _tmp49_;
2522 _tmp51_ = self->priv->events;2657 _tmp51_ = i_cause;
2523 _tmp52_ = gee_collection_get_size ((GeeCollection*) _tmp51_);2658 _tmp52_ = g_match_info_fetch (_tmp51_, 1);
2524 _tmp53_ = _tmp52_;2659 _tmp53_ = _tmp52_;
2525 _tmp54_ = i_cause;2660 _tmp54_ = event_generic_error (_tmp53_);
2526 _tmp55_ = g_match_info_fetch (_tmp54_, 1);2661 _tmp55_ = _tmp54_;
2527 _tmp56_ = _tmp55_;2662 gee_abstract_list_insert ((GeeAbstractList*) _tmp47_, _tmp50_, _tmp55_);
2528 _tmp57_ = event_generic_error (_tmp56_);2663 _event_unref0 (_tmp55_);
2529 _tmp58_ = _tmp57_;2664 _g_free0 (_tmp53_);
2530 gee_abstract_list_insert ((GeeAbstractList*) _tmp50_, _tmp53_, _tmp58_);2665 g_mutex_unlock (&self->priv->events_lock);
2531 _event_unref0 (_tmp58_);
2532 _g_free0 (_tmp56_);
2533 _tmp59_ = self->priv->events_lock;
2534 g_mutex_unlock (_tmp59_);
2535 result = TRUE;2666 result = TRUE;
2536 _g_match_info_free0 (i_act);2667 _g_match_info_free0 (i_act);
2537 _g_match_info_free0 (i_human);2668 _g_match_info_free0 (i_human);
@@ -2546,103 +2677,103 @@
2546 permissions = NULL;2677 permissions = NULL;
2547 mail_name = NULL;2678 mail_name = NULL;
2548 mail_body = NULL;2679 mail_body = NULL;
2549 _tmp60_ = gee_array_list_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, NULL);2680 _tmp56_ = gee_array_list_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, NULL);
2550 commands = _tmp60_;2681 commands = _tmp56_;
2551 _tmp61_ = has_actions;2682 _tmp57_ = has_actions;
2552 if (_tmp61_) {2683 if (_tmp57_) {
2553 GMatchInfo* _tmp62_;2684 GMatchInfo* _tmp58_;
2554 gchar* _tmp63_ = NULL;2685 gchar* _tmp59_ = NULL;
2555 gchar* acts;2686 gchar* acts;
2556 GRegex* _tmp64_;2687 GRegex* _tmp60_;
2557 GRegex* r_perm;2688 GRegex* r_perm;
2558 GRegex* _tmp65_;2689 GRegex* _tmp61_;
2559 GRegex* r_mail;2690 GRegex* r_mail;
2560 GRegex* _tmp66_;2691 GRegex* _tmp62_;
2561 GRegex* r_cmd;2692 GRegex* r_cmd;
2562 gint from;2693 gint from;
2563 _tmp62_ = i_act;2694 _tmp58_ = i_act;
2564 _tmp63_ = g_match_info_fetch (_tmp62_, 1);2695 _tmp59_ = g_match_info_fetch (_tmp58_, 1);
2565 acts = _tmp63_;2696 acts = _tmp59_;
2566 _tmp64_ = g_regex_new ("display-permissions\\(([^\\)]+)\\)", 0, 0, &_inner_error_);2697 _tmp60_ = g_regex_new ("display-permissions\\(([^\\)]+)\\)", 0, 0, &_inner_error_);
2567 r_perm = _tmp64_;2698 r_perm = _tmp60_;
2568 if (_inner_error_ != NULL) {2699 if (_inner_error_ != NULL) {
2569 if (_inner_error_->domain == G_REGEX_ERROR) {2700 if (_inner_error_->domain == G_REGEX_ERROR) {
2570 g_propagate_error (error, _inner_error_);2701 g_propagate_error (error, _inner_error_);
2571 _g_free0 (acts);2702 _g_free0 (acts);
2572 _g_object_unref0 (commands);2703 _g_object_unref0 (commands);
2573 _g_free0 (mail_body);2704 _g_free0 (mail_body);
2574 _g_free0 (mail_name);2705 _g_free0 (mail_name);
2575 _g_free0 (permissions);2706 _g_free0 (permissions);
2576 _g_match_info_free0 (i_act);2707 _g_match_info_free0 (i_act);
2577 _g_match_info_free0 (i_human);2708 _g_match_info_free0 (i_human);
2578 _g_match_info_free0 (i_cause);2709 _g_match_info_free0 (i_cause);
2579 _g_match_info_free0 (i_ctx);2710 _g_match_info_free0 (i_ctx);
2580 _g_regex_unref0 (actions);2711 _g_regex_unref0 (actions);
2581 _g_regex_unref0 (human);2712 _g_regex_unref0 (human);
2582 _g_regex_unref0 (cause);2713 _g_regex_unref0 (cause);
2583 _g_regex_unref0 (context);2714 _g_regex_unref0 (context);
2584 return FALSE;2715 return FALSE;
2585 } else {2716 } else {
2586 _g_free0 (acts);2717 _g_free0 (acts);
2587 _g_object_unref0 (commands);2718 _g_object_unref0 (commands);
2588 _g_free0 (mail_body);2719 _g_free0 (mail_body);
2589 _g_free0 (mail_name);2720 _g_free0 (mail_name);
2590 _g_free0 (permissions);2721 _g_free0 (permissions);
2591 _g_match_info_free0 (i_act);2722 _g_match_info_free0 (i_act);
2592 _g_match_info_free0 (i_human);2723 _g_match_info_free0 (i_human);
2593 _g_match_info_free0 (i_cause);2724 _g_match_info_free0 (i_cause);
2594 _g_match_info_free0 (i_ctx);2725 _g_match_info_free0 (i_ctx);
2595 _g_regex_unref0 (actions);2726 _g_regex_unref0 (actions);
2596 _g_regex_unref0 (human);2727 _g_regex_unref0 (human);
2597 _g_regex_unref0 (cause);2728 _g_regex_unref0 (cause);
2598 _g_regex_unref0 (context);2729 _g_regex_unref0 (context);
2599 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);2730 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
2600 g_clear_error (&_inner_error_);2731 g_clear_error (&_inner_error_);
2601 return FALSE;2732 return FALSE;
2602 }2733 }
2603 }2734 }
2604 _tmp65_ = g_regex_new ("display-mail\\(([^\\)]+)\\)", 0, 0, &_inner_error_);2735 _tmp61_ = g_regex_new ("display-mail\\(([^\\)]+)\\)", 0, 0, &_inner_error_);
2605 r_mail = _tmp65_;2736 r_mail = _tmp61_;
2606 if (_inner_error_ != NULL) {2737 if (_inner_error_ != NULL) {
2607 if (_inner_error_->domain == G_REGEX_ERROR) {2738 if (_inner_error_->domain == G_REGEX_ERROR) {
2608 g_propagate_error (error, _inner_error_);2739 g_propagate_error (error, _inner_error_);
2609 _g_regex_unref0 (r_perm);2740 _g_regex_unref0 (r_perm);
2610 _g_free0 (acts);2741 _g_free0 (acts);
2611 _g_object_unref0 (commands);2742 _g_object_unref0 (commands);
2612 _g_free0 (mail_body);2743 _g_free0 (mail_body);
2613 _g_free0 (mail_name);2744 _g_free0 (mail_name);
2614 _g_free0 (permissions);2745 _g_free0 (permissions);
2615 _g_match_info_free0 (i_act);2746 _g_match_info_free0 (i_act);
2616 _g_match_info_free0 (i_human);2747 _g_match_info_free0 (i_human);
2617 _g_match_info_free0 (i_cause);2748 _g_match_info_free0 (i_cause);
2618 _g_match_info_free0 (i_ctx);2749 _g_match_info_free0 (i_ctx);
2619 _g_regex_unref0 (actions);2750 _g_regex_unref0 (actions);
2620 _g_regex_unref0 (human);2751 _g_regex_unref0 (human);
2621 _g_regex_unref0 (cause);2752 _g_regex_unref0 (cause);
2622 _g_regex_unref0 (context);2753 _g_regex_unref0 (context);
2623 return FALSE;2754 return FALSE;
2624 } else {2755 } else {
2625 _g_regex_unref0 (r_perm);2756 _g_regex_unref0 (r_perm);
2626 _g_free0 (acts);2757 _g_free0 (acts);
2627 _g_object_unref0 (commands);2758 _g_object_unref0 (commands);
2628 _g_free0 (mail_body);2759 _g_free0 (mail_body);
2629 _g_free0 (mail_name);2760 _g_free0 (mail_name);
2630 _g_free0 (permissions);2761 _g_free0 (permissions);
2631 _g_match_info_free0 (i_act);2762 _g_match_info_free0 (i_act);
2632 _g_match_info_free0 (i_human);2763 _g_match_info_free0 (i_human);
2633 _g_match_info_free0 (i_cause);2764 _g_match_info_free0 (i_cause);
2634 _g_match_info_free0 (i_ctx);2765 _g_match_info_free0 (i_ctx);
2635 _g_regex_unref0 (actions);2766 _g_regex_unref0 (actions);
2636 _g_regex_unref0 (human);2767 _g_regex_unref0 (human);
2637 _g_regex_unref0 (cause);2768 _g_regex_unref0 (cause);
2638 _g_regex_unref0 (context);2769 _g_regex_unref0 (context);
2639 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);2770 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
2640 g_clear_error (&_inner_error_);2771 g_clear_error (&_inner_error_);
2641 return FALSE;2772 return FALSE;
2642 }2773 }
2643 }2774 }
2644 _tmp66_ = g_regex_new ("run\\(([^\\)]+)\\)", 0, 0, &_inner_error_);2775 _tmp62_ = g_regex_new ("run\\(([^\\)]+)\\)", 0, 0, &_inner_error_);
2645 r_cmd = _tmp66_;2776 r_cmd = _tmp62_;
2646 if (_inner_error_ != NULL) {2777 if (_inner_error_ != NULL) {
2647 if (_inner_error_->domain == G_REGEX_ERROR) {2778 if (_inner_error_->domain == G_REGEX_ERROR) {
2648 g_propagate_error (error, _inner_error_);2779 g_propagate_error (error, _inner_error_);
@@ -2685,84 +2816,84 @@
2685 }2816 }
2686 from = 0;2817 from = 0;
2687 {2818 {
2688 gboolean _tmp67_;2819 gboolean _tmp63_;
2689 _tmp67_ = TRUE;2820 _tmp63_ = TRUE;
2690 while (TRUE) {2821 while (TRUE) {
2691 gboolean _tmp68_;2822 gboolean _tmp64_;
2692 gboolean _tmp69_ = FALSE;2823 gboolean _tmp65_ = FALSE;
2693 const gchar* _tmp70_;2824 const gchar* _tmp66_;
2694 gboolean _tmp74_;2825 gboolean _tmp70_;
2695 GMatchInfo* i_cmd;2826 GMatchInfo* i_cmd;
2696 GRegex* _tmp75_;2827 GRegex* _tmp71_;
2697 const gchar* _tmp76_;2828 const gchar* _tmp72_;
2698 GMatchInfo* _tmp77_ = NULL;2829 GMatchInfo* _tmp73_ = NULL;
2699 gboolean _tmp78_ = FALSE;2830 gboolean _tmp74_ = FALSE;
2700 const gchar* _tmp131_;2831 const gchar* _tmp127_;
2701 gint _tmp132_;2832 gint _tmp128_;
2702 gchar* _tmp133_ = NULL;2833 gchar* _tmp129_ = NULL;
2703 _tmp68_ = _tmp67_;2834 _tmp64_ = _tmp63_;
2704 if (!_tmp68_) {2835 if (!_tmp64_) {
2705 }2836 }
2706 _tmp67_ = FALSE;2837 _tmp63_ = FALSE;
2707 _tmp70_ = acts;2838 _tmp66_ = acts;
2708 if (_tmp70_ != NULL) {2839 if (_tmp66_ != NULL) {
2709 const gchar* _tmp71_;2840 const gchar* _tmp67_;
2710 gint _tmp72_;2841 gint _tmp68_;
2711 gint _tmp73_;2842 gint _tmp69_;
2712 _tmp71_ = acts;2843 _tmp67_ = acts;
2713 _tmp72_ = strlen (_tmp71_);2844 _tmp68_ = strlen (_tmp67_);
2714 _tmp73_ = _tmp72_;2845 _tmp69_ = _tmp68_;
2715 _tmp69_ = _tmp73_ > 0;2846 _tmp65_ = _tmp69_ > 0;
2716 } else {2847 } else {
2717 _tmp69_ = FALSE;2848 _tmp65_ = FALSE;
2718 }2849 }
2719 _tmp74_ = _tmp69_;2850 _tmp70_ = _tmp65_;
2720 if (!_tmp74_) {2851 if (!_tmp70_) {
2721 break;2852 break;
2722 }2853 }
2723 i_cmd = NULL;2854 i_cmd = NULL;
2724 _tmp75_ = r_perm;2855 _tmp71_ = r_perm;
2725 _tmp76_ = acts;2856 _tmp72_ = acts;
2726 _tmp78_ = g_regex_match (_tmp75_, _tmp76_, 0, &_tmp77_);2857 _tmp74_ = g_regex_match (_tmp71_, _tmp72_, 0, &_tmp73_);
2727 _g_match_info_free0 (i_cmd);2858 _g_match_info_free0 (i_cmd);
2728 i_cmd = _tmp77_;2859 i_cmd = _tmp73_;
2729 if (_tmp78_) {2860 if (_tmp74_) {
2730 GMatchInfo* _tmp79_;2861 GMatchInfo* _tmp75_;
2731 gint _tmp80_ = 0;2862 gint _tmp76_ = 0;
2732 GMatchInfo* _tmp81_;2863 GMatchInfo* _tmp77_;
2733 gchar* _tmp82_ = NULL;2864 gchar* _tmp78_ = NULL;
2734 gchar* file;2865 gchar* file;
2735 gchar* output;2866 gchar* output;
2736 gchar* err;2867 gchar* err;
2737 _tmp79_ = i_cmd;2868 _tmp75_ = i_cmd;
2738 g_match_info_fetch_pos (_tmp79_, 0, NULL, &_tmp80_);2869 g_match_info_fetch_pos (_tmp75_, 0, NULL, &_tmp76_);
2739 from = _tmp80_;2870 from = _tmp76_;
2740 _tmp81_ = i_cmd;2871 _tmp77_ = i_cmd;
2741 _tmp82_ = g_match_info_fetch (_tmp81_, 1);2872 _tmp78_ = g_match_info_fetch (_tmp77_, 1);
2742 file = _tmp82_;2873 file = _tmp78_;
2743 output = NULL;2874 output = NULL;
2744 err = NULL;2875 err = NULL;
2745 {2876 {
2746 const gchar* _tmp83_;2877 const gchar* _tmp79_;
2747 gchar* _tmp84_;2878 gchar* _tmp80_;
2748 gchar* _tmp85_;2879 gchar* _tmp81_;
2749 gchar* _tmp86_ = NULL;2880 gchar* _tmp82_ = NULL;
2750 gchar* _tmp87_ = NULL;2881 gchar* _tmp83_ = NULL;
2751 const gchar* _tmp88_;2882 const gchar* _tmp84_;
2752 const gchar* _tmp89_;2883 const gchar* _tmp85_;
2753 gchar* _tmp90_;2884 gchar* _tmp86_;
2754 _tmp83_ = file;2885 _tmp79_ = file;
2755 _tmp84_ = g_strconcat ("ls -ld ", _tmp83_, NULL);2886 _tmp80_ = g_strconcat ("ls -ld ", _tmp79_, NULL);
2756 _tmp85_ = _tmp84_;2887 _tmp81_ = _tmp80_;
2757 g_spawn_command_line_sync (_tmp85_, &_tmp86_, &_tmp87_, NULL, &_inner_error_);2888 g_spawn_command_line_sync (_tmp81_, &_tmp82_, &_tmp83_, NULL, &_inner_error_);
2758 _g_free0 (output);2889 _g_free0 (output);
2759 output = _tmp86_;2890 output = _tmp82_;
2760 _g_free0 (err);2891 _g_free0 (err);
2761 err = _tmp87_;2892 err = _tmp83_;
2762 _g_free0 (_tmp85_);2893 _g_free0 (_tmp81_);
2763 if (_inner_error_ != NULL) {2894 if (_inner_error_ != NULL) {
2764 if (_inner_error_->domain == G_SPAWN_ERROR) {2895 if (_inner_error_->domain == G_SPAWN_ERROR) {
2765 goto __catch11_g_spawn_error;2896 goto __catch12_g_spawn_error;
2766 }2897 }
2767 _g_free0 (err);2898 _g_free0 (err);
2768 _g_free0 (output);2899 _g_free0 (output);
@@ -2788,28 +2919,28 @@
2788 g_clear_error (&_inner_error_);2919 g_clear_error (&_inner_error_);
2789 return FALSE;2920 return FALSE;
2790 }2921 }
2791 _tmp88_ = output;2922 _tmp84_ = output;
2792 _tmp89_ = err;2923 _tmp85_ = err;
2793 _tmp90_ = g_strconcat (_tmp88_, _tmp89_, NULL);2924 _tmp86_ = g_strconcat (_tmp84_, _tmp85_, NULL);
2794 _g_free0 (permissions);2925 _g_free0 (permissions);
2795 permissions = _tmp90_;2926 permissions = _tmp86_;
2796 }2927 }
2797 goto __finally11;2928 goto __finally12;
2798 __catch11_g_spawn_error:2929 __catch12_g_spawn_error:
2799 {2930 {
2800 GError* e = NULL;2931 GError* e = NULL;
2801 FILE* _tmp91_;2932 FILE* _tmp87_;
2802 GError* _tmp92_;2933 GError* _tmp88_;
2803 const gchar* _tmp93_;2934 const gchar* _tmp89_;
2804 e = _inner_error_;2935 e = _inner_error_;
2805 _inner_error_ = NULL;2936 _inner_error_ = NULL;
2806 _tmp91_ = stderr;2937 _tmp87_ = stderr;
2807 _tmp92_ = e;2938 _tmp88_ = e;
2808 _tmp93_ = _tmp92_->message;2939 _tmp89_ = _tmp88_->message;
2809 fprintf (_tmp91_, "Spawning ls: %s\n", _tmp93_);2940 fprintf (_tmp87_, "Spawning ls: %s\n", _tmp89_);
2810 _g_error_free0 (e);2941 _g_error_free0 (e);
2811 }2942 }
2812 __finally11:2943 __finally12:
2813 if (_inner_error_ != NULL) {2944 if (_inner_error_ != NULL) {
2814 if (_inner_error_->domain == G_REGEX_ERROR) {2945 if (_inner_error_->domain == G_REGEX_ERROR) {
2815 g_propagate_error (error, _inner_error_);2946 g_propagate_error (error, _inner_error_);
@@ -2864,60 +2995,60 @@
2864 _g_free0 (output);2995 _g_free0 (output);
2865 _g_free0 (file);2996 _g_free0 (file);
2866 } else {2997 } else {
2867 GRegex* _tmp94_;2998 GRegex* _tmp90_;
2868 const gchar* _tmp95_;2999 const gchar* _tmp91_;
2869 GMatchInfo* _tmp96_ = NULL;3000 GMatchInfo* _tmp92_ = NULL;
2870 gboolean _tmp97_ = FALSE;3001 gboolean _tmp93_ = FALSE;
2871 _tmp94_ = r_mail;3002 _tmp90_ = r_mail;
2872 _tmp95_ = acts;3003 _tmp91_ = acts;
2873 _tmp97_ = g_regex_match (_tmp94_, _tmp95_, 0, &_tmp96_);3004 _tmp93_ = g_regex_match (_tmp90_, _tmp91_, 0, &_tmp92_);
2874 _g_match_info_free0 (i_cmd);3005 _g_match_info_free0 (i_cmd);
2875 i_cmd = _tmp96_;3006 i_cmd = _tmp92_;
2876 if (_tmp97_) {3007 if (_tmp93_) {
2877 GMatchInfo* _tmp98_;3008 GMatchInfo* _tmp94_;
2878 gint _tmp99_ = 0;3009 gint _tmp95_ = 0;
2879 GMatchInfo* _tmp100_;3010 GMatchInfo* _tmp96_;
2880 gchar* _tmp101_ = NULL;3011 gchar* _tmp97_ = NULL;
2881 gchar* file;3012 gchar* file;
2882 gchar* _tmp102_;3013 gchar* _tmp98_;
2883 gchar* output;3014 gchar* output;
2884 gchar* err;3015 gchar* err;
2885 _tmp98_ = i_cmd;3016 _tmp94_ = i_cmd;
2886 g_match_info_fetch_pos (_tmp98_, 0, NULL, &_tmp99_);3017 g_match_info_fetch_pos (_tmp94_, 0, NULL, &_tmp95_);
2887 from = _tmp99_;3018 from = _tmp95_;
2888 _tmp100_ = i_cmd;3019 _tmp96_ = i_cmd;
2889 _tmp101_ = g_match_info_fetch (_tmp100_, 1);3020 _tmp97_ = g_match_info_fetch (_tmp96_, 1);
2890 file = _tmp101_;3021 file = _tmp97_;
2891 _tmp102_ = g_strdup ("");3022 _tmp98_ = g_strdup ("");
2892 output = _tmp102_;3023 output = _tmp98_;
2893 err = NULL;3024 err = NULL;
2894 {3025 {
2895 const gchar* _tmp103_;3026 const gchar* _tmp99_;
2896 gchar* _tmp104_;3027 gchar* _tmp100_;
2897 const gchar* _tmp105_;3028 const gchar* _tmp101_;
2898 gchar* _tmp106_;3029 gchar* _tmp102_;
2899 gchar* _tmp107_;3030 gchar* _tmp103_;
2900 gchar* _tmp108_ = NULL;3031 gchar* _tmp104_ = NULL;
2901 gchar* _tmp109_ = NULL;3032 gchar* _tmp105_ = NULL;
2902 const gchar* _tmp110_;3033 const gchar* _tmp106_;
2903 const gchar* _tmp111_;3034 const gchar* _tmp107_;
2904 gchar* _tmp112_;3035 gchar* _tmp108_;
2905 _tmp103_ = file;3036 _tmp99_ = file;
2906 _tmp104_ = g_strdup (_tmp103_);3037 _tmp100_ = g_strdup (_tmp99_);
2907 _g_free0 (mail_name);3038 _g_free0 (mail_name);
2908 mail_name = _tmp104_;3039 mail_name = _tmp100_;
2909 _tmp105_ = file;3040 _tmp101_ = file;
2910 _tmp106_ = g_strconcat ("cat ", _tmp105_, NULL);3041 _tmp102_ = g_strconcat ("cat ", _tmp101_, NULL);
2911 _tmp107_ = _tmp106_;3042 _tmp103_ = _tmp102_;
2912 g_spawn_command_line_sync (_tmp107_, &_tmp108_, &_tmp109_, NULL, &_inner_error_);3043 g_spawn_command_line_sync (_tmp103_, &_tmp104_, &_tmp105_, NULL, &_inner_error_);
2913 _g_free0 (output);3044 _g_free0 (output);
2914 output = _tmp108_;3045 output = _tmp104_;
2915 _g_free0 (err);3046 _g_free0 (err);
2916 err = _tmp109_;3047 err = _tmp105_;
2917 _g_free0 (_tmp107_);3048 _g_free0 (_tmp103_);
2918 if (_inner_error_ != NULL) {3049 if (_inner_error_ != NULL) {
2919 if (_inner_error_->domain == G_SPAWN_ERROR) {3050 if (_inner_error_->domain == G_SPAWN_ERROR) {
2920 goto __catch12_g_spawn_error;3051 goto __catch13_g_spawn_error;
2921 }3052 }
2922 _g_free0 (err);3053 _g_free0 (err);
2923 _g_free0 (output);3054 _g_free0 (output);
@@ -2943,28 +3074,28 @@
2943 g_clear_error (&_inner_error_);3074 g_clear_error (&_inner_error_);
2944 return FALSE;3075 return FALSE;
2945 }3076 }
2946 _tmp110_ = output;3077 _tmp106_ = output;
2947 _tmp111_ = err;3078 _tmp107_ = err;
2948 _tmp112_ = g_strconcat (_tmp110_, _tmp111_, NULL);3079 _tmp108_ = g_strconcat (_tmp106_, _tmp107_, NULL);
2949 _g_free0 (mail_body);3080 _g_free0 (mail_body);
2950 mail_body = _tmp112_;3081 mail_body = _tmp108_;
2951 }3082 }
2952 goto __finally12;3083 goto __finally13;
2953 __catch12_g_spawn_error:3084 __catch13_g_spawn_error:
2954 {3085 {
2955 GError* e = NULL;3086 GError* e = NULL;
2956 FILE* _tmp113_;3087 FILE* _tmp109_;
2957 GError* _tmp114_;3088 GError* _tmp110_;
2958 const gchar* _tmp115_;3089 const gchar* _tmp111_;
2959 e = _inner_error_;3090 e = _inner_error_;
2960 _inner_error_ = NULL;3091 _inner_error_ = NULL;
2961 _tmp113_ = stderr;3092 _tmp109_ = stderr;
2962 _tmp114_ = e;3093 _tmp110_ = e;
2963 _tmp115_ = _tmp114_->message;3094 _tmp111_ = _tmp110_->message;
2964 fprintf (_tmp113_, "Spawning ls: %s\n", _tmp115_);3095 fprintf (_tmp109_, "Spawning ls: %s\n", _tmp111_);
2965 _g_error_free0 (e);3096 _g_error_free0 (e);
2966 }3097 }
2967 __finally12:3098 __finally13:
2968 if (_inner_error_ != NULL) {3099 if (_inner_error_ != NULL) {
2969 if (_inner_error_->domain == G_REGEX_ERROR) {3100 if (_inner_error_->domain == G_REGEX_ERROR) {
2970 g_propagate_error (error, _inner_error_);3101 g_propagate_error (error, _inner_error_);
@@ -3019,55 +3150,55 @@
3019 _g_free0 (output);3150 _g_free0 (output);
3020 _g_free0 (file);3151 _g_free0 (file);
3021 } else {3152 } else {
3022 GRegex* _tmp116_;3153 GRegex* _tmp112_;
3023 const gchar* _tmp117_;3154 const gchar* _tmp113_;
3024 GMatchInfo* _tmp118_ = NULL;3155 GMatchInfo* _tmp114_ = NULL;
3025 gboolean _tmp119_ = FALSE;3156 gboolean _tmp115_ = FALSE;
3026 _tmp116_ = r_cmd;3157 _tmp112_ = r_cmd;
3027 _tmp117_ = acts;3158 _tmp113_ = acts;
3028 _tmp119_ = g_regex_match (_tmp116_, _tmp117_, 0, &_tmp118_);3159 _tmp115_ = g_regex_match (_tmp112_, _tmp113_, 0, &_tmp114_);
3029 _g_match_info_free0 (i_cmd);3160 _g_match_info_free0 (i_cmd);
3030 i_cmd = _tmp118_;3161 i_cmd = _tmp114_;
3031 if (_tmp119_) {3162 if (_tmp115_) {
3032 GMatchInfo* _tmp120_;3163 GMatchInfo* _tmp116_;
3033 gchar* _tmp121_ = NULL;3164 gchar* _tmp117_ = NULL;
3034 gchar* command;3165 gchar* command;
3035 GMatchInfo* _tmp122_;3166 GMatchInfo* _tmp118_;
3036 gint _tmp123_ = 0;3167 gint _tmp119_ = 0;
3037 GeeArrayList* _tmp124_;3168 GeeArrayList* _tmp120_;
3038 GeeArrayList* _tmp125_;3169 GeeArrayList* _tmp121_;
3039 gint _tmp126_;3170 gint _tmp122_;
3040 gint _tmp127_;3171 gint _tmp123_;
3041 const gchar* _tmp128_;3172 const gchar* _tmp124_;
3042 _tmp120_ = i_cmd;3173 _tmp116_ = i_cmd;
3043 _tmp121_ = g_match_info_fetch (_tmp120_, 1);3174 _tmp117_ = g_match_info_fetch (_tmp116_, 1);
3044 command = _tmp121_;3175 command = _tmp117_;
3045 _tmp122_ = i_cmd;3176 _tmp118_ = i_cmd;
3046 g_match_info_fetch_pos (_tmp122_, 0, NULL, &_tmp123_);3177 g_match_info_fetch_pos (_tmp118_, 0, NULL, &_tmp119_);
3047 from = _tmp123_;3178 from = _tmp119_;
3048 _tmp124_ = commands;3179 _tmp120_ = commands;
3049 _tmp125_ = commands;3180 _tmp121_ = commands;
3050 _tmp126_ = gee_collection_get_size ((GeeCollection*) _tmp125_);3181 _tmp122_ = gee_abstract_collection_get_size ((GeeCollection*) _tmp121_);
3051 _tmp127_ = _tmp126_;3182 _tmp123_ = _tmp122_;
3052 _tmp128_ = command;3183 _tmp124_ = command;
3053 gee_abstract_list_insert ((GeeAbstractList*) _tmp124_, _tmp127_, _tmp128_);3184 gee_abstract_list_insert ((GeeAbstractList*) _tmp120_, _tmp123_, _tmp124_);
3054 _g_free0 (command);3185 _g_free0 (command);
3055 } else {3186 } else {
3056 FILE* _tmp129_;3187 FILE* _tmp125_;
3057 const gchar* _tmp130_;3188 const gchar* _tmp126_;
3058 _tmp129_ = stderr;3189 _tmp125_ = stderr;
3059 _tmp130_ = acts;3190 _tmp126_ = acts;
3060 fprintf (_tmp129_, "Unrecognized action: %s\n", _tmp130_);3191 fprintf (_tmp125_, "Unrecognized action: %s\n", _tmp126_);
3061 _g_match_info_free0 (i_cmd);3192 _g_match_info_free0 (i_cmd);
3062 break;3193 break;
3063 }3194 }
3064 }3195 }
3065 }3196 }
3066 _tmp131_ = acts;3197 _tmp127_ = acts;
3067 _tmp132_ = from;3198 _tmp128_ = from;
3068 _tmp133_ = string_substring (_tmp131_, (glong) _tmp132_, (glong) (-1));3199 _tmp129_ = string_substring (_tmp127_, (glong) _tmp128_, (glong) (-1));
3069 _g_free0 (acts);3200 _g_free0 (acts);
3070 acts = _tmp133_;3201 acts = _tmp129_;
3071 _g_match_info_free0 (i_cmd);3202 _g_match_info_free0 (i_cmd);
3072 }3203 }
3073 }3204 }
@@ -3076,32 +3207,30 @@
3076 _g_regex_unref0 (r_perm);3207 _g_regex_unref0 (r_perm);
3077 _g_free0 (acts);3208 _g_free0 (acts);
3078 }3209 }
3079 _tmp134_ = self->priv->events_lock;3210 g_mutex_lock (&self->priv->events_lock);
3080 g_mutex_lock (_tmp134_);3211 _tmp130_ = self->priv->events;
3081 _tmp135_ = self->priv->events;3212 _tmp131_ = self->priv->events;
3082 _tmp136_ = self->priv->events;3213 _tmp132_ = gee_abstract_collection_get_size ((GeeCollection*) _tmp131_);
3083 _tmp137_ = gee_collection_get_size ((GeeCollection*) _tmp136_);3214 _tmp133_ = _tmp132_;
3215 _tmp134_ = account;
3216 _tmp135_ = host;
3217 _tmp136_ = i_ctx;
3218 _tmp137_ = g_match_info_fetch (_tmp136_, 1);
3084 _tmp138_ = _tmp137_;3219 _tmp138_ = _tmp137_;
3085 _tmp139_ = account;3220 _tmp139_ = i_cause;
3086 _tmp140_ = host;3221 _tmp140_ = g_match_info_fetch (_tmp139_, 1);
3087 _tmp141_ = i_ctx;3222 _tmp141_ = _tmp140_;
3088 _tmp142_ = g_match_info_fetch (_tmp141_, 1);3223 _tmp142_ = permissions;
3089 _tmp143_ = _tmp142_;3224 _tmp143_ = mail_name;
3090 _tmp144_ = i_cause;3225 _tmp144_ = mail_body;
3091 _tmp145_ = g_match_info_fetch (_tmp144_, 1);3226 _tmp145_ = commands;
3092 _tmp146_ = _tmp145_;3227 _tmp146_ = event_error (_tmp134_, _tmp135_, _tmp138_, _tmp141_, _tmp142_, _tmp143_, _tmp144_, _tmp145_);
3093 _tmp147_ = permissions;3228 _tmp147_ = _tmp146_;
3094 _tmp148_ = mail_name;3229 gee_abstract_list_insert ((GeeAbstractList*) _tmp130_, _tmp133_, _tmp147_);
3095 _tmp149_ = mail_body;3230 _event_unref0 (_tmp147_);
3096 _tmp150_ = commands;3231 _g_free0 (_tmp141_);
3097 _tmp151_ = event_error (_tmp139_, _tmp140_, _tmp143_, _tmp146_, _tmp147_, _tmp148_, _tmp149_, _tmp150_);3232 _g_free0 (_tmp138_);
3098 _tmp152_ = _tmp151_;3233 g_mutex_unlock (&self->priv->events_lock);
3099 gee_abstract_list_insert ((GeeAbstractList*) _tmp135_, _tmp138_, _tmp152_);
3100 _event_unref0 (_tmp152_);
3101 _g_free0 (_tmp146_);
3102 _g_free0 (_tmp143_);
3103 _tmp153_ = self->priv->events_lock;
3104 g_mutex_unlock (_tmp153_);
3105 result = FALSE;3234 result = FALSE;
3106 _g_object_unref0 (commands);3235 _g_object_unref0 (commands);
3107 _g_free0 (mail_body);3236 _g_free0 (mail_body);
@@ -3162,7 +3291,7 @@
3162 if (_inner_error_ != NULL) {3291 if (_inner_error_ != NULL) {
3163 _g_match_info_free0 (info);3292 _g_match_info_free0 (info);
3164 if (_inner_error_->domain == G_REGEX_ERROR) {3293 if (_inner_error_->domain == G_REGEX_ERROR) {
3165 goto __catch13_g_regex_error;3294 goto __catch14_g_regex_error;
3166 }3295 }
3167 _g_match_info_free0 (info);3296 _g_match_info_free0 (info);
3168 g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);3297 g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
@@ -3175,7 +3304,7 @@
3175 _g_regex_unref0 (r_tags);3304 _g_regex_unref0 (r_tags);
3176 _g_match_info_free0 (info);3305 _g_match_info_free0 (info);
3177 if (_inner_error_->domain == G_REGEX_ERROR) {3306 if (_inner_error_->domain == G_REGEX_ERROR) {
3178 goto __catch13_g_regex_error;3307 goto __catch14_g_regex_error;
3179 }3308 }
3180 _g_regex_unref0 (r_tags);3309 _g_regex_unref0 (r_tags);
3181 _g_match_info_free0 (info);3310 _g_match_info_free0 (info);
@@ -3234,7 +3363,7 @@
3234 _g_regex_unref0 (r_tags);3363 _g_regex_unref0 (r_tags);
3235 _g_match_info_free0 (info);3364 _g_match_info_free0 (info);
3236 if (_inner_error_->domain == G_REGEX_ERROR) {3365 if (_inner_error_->domain == G_REGEX_ERROR) {
3237 goto __catch13_g_regex_error;3366 goto __catch14_g_regex_error;
3238 }3367 }
3239 _g_match_info_free0 (i_args);3368 _g_match_info_free0 (i_args);
3240 _g_free0 (tags);3369 _g_free0 (tags);
@@ -3259,7 +3388,7 @@
3259 _g_regex_unref0 (r_tags);3388 _g_regex_unref0 (r_tags);
3260 _g_match_info_free0 (info);3389 _g_match_info_free0 (info);
3261 if (_inner_error_->domain == G_REGEX_ERROR) {3390 if (_inner_error_->domain == G_REGEX_ERROR) {
3262 goto __catch13_g_regex_error;3391 goto __catch14_g_regex_error;
3263 }3392 }
3264 _g_regex_unref0 (r_stats);3393 _g_regex_unref0 (r_stats);
3265 _g_match_info_free0 (i_args);3394 _g_match_info_free0 (i_args);
@@ -3318,7 +3447,7 @@
3318 _g_regex_unref0 (r_tags);3447 _g_regex_unref0 (r_tags);
3319 _g_match_info_free0 (info);3448 _g_match_info_free0 (info);
3320 if (_inner_error_->domain == G_REGEX_ERROR) {3449 if (_inner_error_->domain == G_REGEX_ERROR) {
3321 goto __catch13_g_regex_error;3450 goto __catch14_g_regex_error;
3322 }3451 }
3323 _g_regex_unref0 (r_error);3452 _g_regex_unref0 (r_error);
3324 _g_regex_unref0 (r_stats);3453 _g_regex_unref0 (r_stats);
@@ -3347,7 +3476,7 @@
3347 _g_regex_unref0 (r_tags);3476 _g_regex_unref0 (r_tags);
3348 _g_match_info_free0 (info);3477 _g_match_info_free0 (info);
3349 if (_inner_error_->domain == G_REGEX_ERROR) {3478 if (_inner_error_->domain == G_REGEX_ERROR) {
3350 goto __catch13_g_regex_error;3479 goto __catch14_g_regex_error;
3351 }3480 }
3352 _g_regex_unref0 (r_neW);3481 _g_regex_unref0 (r_neW);
3353 _g_regex_unref0 (r_error);3482 _g_regex_unref0 (r_error);
@@ -3428,34 +3557,30 @@
3428 }3557 }
3429 _tmp52_ = _tmp46_;3558 _tmp52_ = _tmp46_;
3430 if (_tmp52_) {3559 if (_tmp52_) {
3431 GMutex* _tmp53_;3560 GeeArrayList* _tmp53_;
3432 GeeArrayList* _tmp54_;3561 GeeArrayList* _tmp54_;
3433 GeeArrayList* _tmp55_;3562 gint _tmp55_;
3434 gint _tmp56_;3563 gint _tmp56_;
3435 gint _tmp57_;3564 const gchar* _tmp57_;
3436 const gchar* _tmp58_;3565 const gchar* _tmp58_;
3437 const gchar* _tmp59_;3566 gint _tmp59_;
3438 gint _tmp60_;3567 gint _tmp60_;
3439 gint _tmp61_;3568 Event* _tmp61_ = NULL;
3440 Event* _tmp62_ = NULL;3569 Event* _tmp62_;
3441 Event* _tmp63_;3570 g_mutex_lock (&self->priv->events_lock);
3442 GMutex* _tmp64_;3571 _tmp53_ = self->priv->events;
3443 _tmp53_ = self->priv->events_lock;
3444 g_mutex_lock (_tmp53_);
3445 _tmp54_ = self->priv->events;3572 _tmp54_ = self->priv->events;
3446 _tmp55_ = self->priv->events;3573 _tmp55_ = gee_abstract_collection_get_size ((GeeCollection*) _tmp54_);
3447 _tmp56_ = gee_collection_get_size ((GeeCollection*) _tmp55_);3574 _tmp56_ = _tmp55_;
3448 _tmp57_ = _tmp56_;3575 _tmp57_ = account;
3449 _tmp58_ = account;3576 _tmp58_ = host;
3450 _tmp59_ = host;3577 _tmp59_ = new_mails;
3451 _tmp60_ = new_mails;3578 _tmp60_ = del_mails;
3452 _tmp61_ = del_mails;3579 _tmp61_ = event_stats (_tmp57_, _tmp58_, _tmp59_, _tmp60_);
3453 _tmp62_ = event_stats (_tmp58_, _tmp59_, _tmp60_, _tmp61_);3580 _tmp62_ = _tmp61_;
3454 _tmp63_ = _tmp62_;3581 gee_abstract_list_insert ((GeeAbstractList*) _tmp53_, _tmp56_, _tmp62_);
3455 gee_abstract_list_insert ((GeeAbstractList*) _tmp54_, _tmp57_, _tmp63_);3582 _event_unref0 (_tmp62_);
3456 _event_unref0 (_tmp63_);3583 g_mutex_unlock (&self->priv->events_lock);
3457 _tmp64_ = self->priv->events_lock;
3458 g_mutex_unlock (_tmp64_);
3459 } else {3584 } else {
3460 }3585 }
3461 result = TRUE;3586 result = TRUE;
@@ -3475,32 +3600,32 @@
3475 _g_match_info_free0 (info);3600 _g_match_info_free0 (info);
3476 return result;3601 return result;
3477 } else {3602 } else {
3478 GRegex* _tmp65_;3603 GRegex* _tmp63_;
3479 const gchar* _tmp66_;3604 const gchar* _tmp64_;
3480 GMatchInfo* _tmp67_ = NULL;3605 GMatchInfo* _tmp65_ = NULL;
3481 gboolean _tmp68_ = FALSE;3606 gboolean _tmp66_ = FALSE;
3482 _tmp65_ = r_error;3607 _tmp63_ = r_error;
3483 _tmp66_ = tags;3608 _tmp64_ = tags;
3484 _tmp68_ = g_regex_match (_tmp65_, _tmp66_, 0, &_tmp67_);3609 _tmp66_ = g_regex_match (_tmp63_, _tmp64_, 0, &_tmp65_);
3485 _g_match_info_free0 (i_args);3610 _g_match_info_free0 (i_args);
3486 i_args = _tmp67_;3611 i_args = _tmp65_;
3487 if (_tmp68_) {3612 if (_tmp66_) {
3488 GMatchInfo* _tmp69_;3613 GMatchInfo* _tmp67_;
3489 gchar* _tmp70_ = NULL;3614 gchar* _tmp68_ = NULL;
3490 gchar* args;3615 gchar* args;
3616 const gchar* _tmp69_;
3617 const gchar* _tmp70_;
3491 const gchar* _tmp71_;3618 const gchar* _tmp71_;
3492 const gchar* _tmp72_;3619 gboolean _tmp72_ = FALSE;
3493 const gchar* _tmp73_;3620 gboolean _tmp73_;
3494 gboolean _tmp74_ = FALSE;3621 _tmp67_ = i_args;
3495 gboolean _tmp75_;3622 _tmp68_ = g_match_info_fetch (_tmp67_, 1);
3496 _tmp69_ = i_args;3623 args = _tmp68_;
3497 _tmp70_ = g_match_info_fetch (_tmp69_, 1);3624 _tmp69_ = args;
3498 args = _tmp70_;3625 _tmp70_ = account;
3499 _tmp71_ = args;3626 _tmp71_ = host;
3500 _tmp72_ = account;3627 _tmp72_ = smd_applet_eval_smd_loop_error_message (self, _tmp69_, _tmp70_, _tmp71_, &_inner_error_);
3501 _tmp73_ = host;3628 _tmp73_ = _tmp72_;
3502 _tmp74_ = smd_applet_eval_smd_loop_error_message (self, _tmp71_, _tmp72_, _tmp73_, &_inner_error_);
3503 _tmp75_ = _tmp74_;
3504 if (_inner_error_ != NULL) {3629 if (_inner_error_ != NULL) {
3505 _g_free0 (args);3630 _g_free0 (args);
3506 _g_regex_unref0 (r_error);3631 _g_regex_unref0 (r_error);
@@ -3513,7 +3638,7 @@
3513 _g_regex_unref0 (r_tags);3638 _g_regex_unref0 (r_tags);
3514 _g_match_info_free0 (info);3639 _g_match_info_free0 (info);
3515 if (_inner_error_->domain == G_REGEX_ERROR) {3640 if (_inner_error_->domain == G_REGEX_ERROR) {
3516 goto __catch13_g_regex_error;3641 goto __catch14_g_regex_error;
3517 }3642 }
3518 _g_free0 (args);3643 _g_free0 (args);
3519 _g_regex_unref0 (r_error);3644 _g_regex_unref0 (r_error);
@@ -3529,7 +3654,7 @@
3529 g_clear_error (&_inner_error_);3654 g_clear_error (&_inner_error_);
3530 return FALSE;3655 return FALSE;
3531 }3656 }
3532 result = _tmp75_;3657 result = _tmp73_;
3533 _g_free0 (args);3658 _g_free0 (args);
3534 _g_regex_unref0 (r_error);3659 _g_regex_unref0 (r_error);
3535 _g_regex_unref0 (r_stats);3660 _g_regex_unref0 (r_stats);
@@ -3542,11 +3667,11 @@
3542 _g_match_info_free0 (info);3667 _g_match_info_free0 (info);
3543 return result;3668 return result;
3544 } else {3669 } else {
3545 FILE* _tmp76_;3670 FILE* _tmp74_;
3546 const gchar* _tmp77_;3671 const gchar* _tmp75_;
3547 _tmp76_ = stderr;3672 _tmp74_ = stderr;
3548 _tmp77_ = s;3673 _tmp75_ = s;
3549 fprintf (_tmp76_, "unhandled smd-loop message: %s\n", _tmp77_);3674 fprintf (_tmp74_, "unhandled smd-loop message: %s\n", _tmp75_);
3550 result = TRUE;3675 result = TRUE;
3551 _g_regex_unref0 (r_error);3676 _g_regex_unref0 (r_error);
3552 _g_regex_unref0 (r_stats);3677 _g_regex_unref0 (r_stats);
@@ -3570,22 +3695,22 @@
3570 _g_regex_unref0 (r_tags);3695 _g_regex_unref0 (r_tags);
3571 _g_match_info_free0 (info);3696 _g_match_info_free0 (info);
3572 }3697 }
3573 goto __finally13;3698 goto __finally14;
3574 __catch13_g_regex_error:3699 __catch14_g_regex_error:
3575 {3700 {
3576 GError* e = NULL;3701 GError* e = NULL;
3577 FILE* _tmp78_;3702 FILE* _tmp76_;
3578 GError* _tmp79_;3703 GError* _tmp77_;
3579 const gchar* _tmp80_;3704 const gchar* _tmp78_;
3580 e = _inner_error_;3705 e = _inner_error_;
3581 _inner_error_ = NULL;3706 _inner_error_ = NULL;
3582 _tmp78_ = stderr;3707 _tmp76_ = stderr;
3583 _tmp79_ = e;3708 _tmp77_ = e;
3584 _tmp80_ = _tmp79_->message;3709 _tmp78_ = _tmp77_->message;
3585 fprintf (_tmp78_, "%s\n", _tmp80_);3710 fprintf (_tmp76_, "%s\n", _tmp78_);
3586 _g_error_free0 (e);3711 _g_error_free0 (e);
3587 }3712 }
3588 __finally13:3713 __finally14:
3589 if (_inner_error_ != NULL) {3714 if (_inner_error_ != NULL) {
3590 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);3715 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
3591 g_clear_error (&_inner_error_);3716 g_clear_error (&_inner_error_);
@@ -3596,13 +3721,13 @@
3596}3721}
35973722
35983723
3599static void ___lambda2_ (smdApplet* self) {3724static void ___lambda4_ (smdApplet* self) {
3600 setpgid ((pid_t) 0, (pid_t) 0);3725 setpgid ((pid_t) 0, (pid_t) 0);
3601}3726}
36023727
36033728
3604static void ____lambda2__gspawn_child_setup_func (gpointer self) {3729static void ____lambda4__gspawn_child_setup_func (gpointer self) {
3605 ___lambda2_ (self);3730 ___lambda4_ (self);
3606}3731}
36073732
36083733
@@ -3661,19 +3786,19 @@
3661 _tmp8_ = cmd;3786 _tmp8_ = cmd;
3662 _tmp8__length1 = cmd_length1;3787 _tmp8__length1 = cmd_length1;
3663 _tmp9_ = flags;3788 _tmp9_ = flags;
3664 _tmp14_ = g_spawn_async_with_pipes (NULL, _tmp8_, NULL, _tmp9_, ____lambda2__gspawn_child_setup_func, self, &_tmp10_, &_tmp11_, &_tmp12_, &_tmp13_, &_inner_error_);3789 _tmp14_ = g_spawn_async_with_pipes (NULL, _tmp8_, NULL, _tmp9_, ____lambda4__gspawn_child_setup_func, self, &_tmp10_, &_tmp11_, &_tmp12_, &_tmp13_, &_inner_error_);
3665 self->priv->pid = _tmp10_;3790 self->priv->pid = _tmp10_;
3666 child_in = _tmp11_;3791 child_in = _tmp11_;
3667 child_out = _tmp12_;3792 child_out = _tmp12_;
3668 child_err = _tmp13_;3793 child_err = _tmp13_;
3669 _tmp15_ = _tmp14_;3794 _tmp15_ = _tmp14_;
3670 if (_inner_error_ != NULL) {3795 if (_inner_error_ != NULL) {
3671 goto __catch14_g_error;3796 goto __catch15_g_error;
3672 }3797 }
3673 rc = _tmp15_;3798 rc = _tmp15_;
3674 }3799 }
3675 goto __finally14;3800 goto __finally15;
3676 __catch14_g_error:3801 __catch15_g_error:
3677 {3802 {
3678 GError* e = NULL;3803 GError* e = NULL;
3679 FILE* _tmp16_;3804 FILE* _tmp16_;
@@ -3711,9 +3836,9 @@
3711 _tmp28_ = g_error_new_literal (EXIT, EXIT_ABORT, "Unable to run smd-loop");3836 _tmp28_ = g_error_new_literal (EXIT, EXIT_ABORT, "Unable to run smd-loop");
3712 _inner_error_ = _tmp28_;3837 _inner_error_ = _tmp28_;
3713 _g_error_free0 (e);3838 _g_error_free0 (e);
3714 goto __finally14;3839 goto __finally15;
3715 }3840 }
3716 __finally14:3841 __finally15:
3717 if (_inner_error_ != NULL) {3842 if (_inner_error_ != NULL) {
3718 if (_inner_error_->domain == EXIT) {3843 if (_inner_error_->domain == EXIT) {
3719 g_propagate_error (error, _inner_error_);3844 g_propagate_error (error, _inner_error_);
@@ -3878,7 +4003,7 @@
3878}4003}
38794004
38804005
3881static void ______lambda15_ (smdApplet* self, NotifyNotification* not, const gchar* action) {4006static void ______lambda18_ (smdApplet* self, NotifyNotification* not, const gchar* action) {
3882 GtkWindow* _tmp0_;4007 GtkWindow* _tmp0_;
3883 g_return_if_fail (not != NULL);4008 g_return_if_fail (not != NULL);
3884 g_return_if_fail (action != NULL);4009 g_return_if_fail (action != NULL);
@@ -3887,12 +4012,12 @@
3887}4012}
38884013
38894014
3890static void _______lambda15__notify_action_callback (NotifyNotification* notification, const gchar* action, gpointer self) {4015static void _______lambda18__notify_action_callback (NotifyNotification* notification, const gchar* action, gpointer self) {
3891 ______lambda15_ (self, notification, action);4016 ______lambda18_ (self, notification, action);
3892}4017}
38934018
38944019
3895static void ______lambda16_ (smdApplet* self, GtkButton* b) {4020static void ______lambda19_ (smdApplet* self, GtkButton* b) {
3896 gint cmd_status = 0;4021 gint cmd_status = 0;
3897 gchar* output = NULL;4022 gchar* output = NULL;
3898 gchar* _error_ = NULL;4023 gchar* _error_ = NULL;
@@ -3931,7 +4056,7 @@
3931 cmd_status = _tmp10_;4056 cmd_status = _tmp10_;
3932 if (_inner_error_ != NULL) {4057 if (_inner_error_ != NULL) {
3933 if (_inner_error_->domain == G_SPAWN_ERROR) {4058 if (_inner_error_->domain == G_SPAWN_ERROR) {
3934 goto __catch19_g_spawn_error;4059 goto __catch20_g_spawn_error;
3935 }4060 }
3936 _g_free0 (_error_);4061 _g_free0 (_error_);
3937 _g_free0 (output);4062 _g_free0 (output);
@@ -3970,8 +4095,8 @@
3970 _g_object_unref0 (w);4095 _g_object_unref0 (w);
3971 }4096 }
3972 }4097 }
3973 goto __finally19;4098 goto __finally20;
3974 __catch19_g_spawn_error:4099 __catch20_g_spawn_error:
3975 {4100 {
3976 GError* e = NULL;4101 GError* e = NULL;
3977 FILE* _tmp21_;4102 FILE* _tmp21_;
@@ -3985,7 +4110,7 @@
3985 fprintf (_tmp21_, "Spawning: %s\n", _tmp23_);4110 fprintf (_tmp21_, "Spawning: %s\n", _tmp23_);
3986 _g_error_free0 (e);4111 _g_error_free0 (e);
3987 }4112 }
3988 __finally19:4113 __finally20:
3989 if (_inner_error_ != NULL) {4114 if (_inner_error_ != NULL) {
3990 _g_free0 (_error_);4115 _g_free0 (_error_);
3991 _g_free0 (output);4116 _g_free0 (output);
@@ -3998,8 +4123,8 @@
3998}4123}
39994124
40004125
4001static void _______lambda16__gtk_button_clicked (GtkButton* _sender, gpointer self) {4126static void _______lambda19__gtk_button_clicked (GtkButton* _sender, gpointer self) {
4002 ______lambda16_ (self, _sender);4127 ______lambda19_ (self, _sender);
4003}4128}
40044129
40054130
@@ -4007,17 +4132,15 @@
4007 gboolean result = FALSE;4132 gboolean result = FALSE;
4008 Event* e;4133 Event* e;
4009 gboolean _tmp0_;4134 gboolean _tmp0_;
4010 GMutex* _tmp1_;4135 GeeArrayList* _tmp1_;
4011 GeeArrayList* _tmp2_;4136 gint _tmp2_;
4012 gint _tmp3_;4137 gint _tmp3_;
4013 gint _tmp4_;4138 gboolean _tmp9_ = FALSE;
4014 GMutex* _tmp10_;4139 Event* _tmp10_;
4015 gboolean _tmp11_ = FALSE;4140 gboolean _tmp13_;
4016 Event* _tmp12_;4141 gboolean _tmp63_ = FALSE;
4017 gboolean _tmp15_;4142 Event* _tmp64_;
4018 gboolean _tmp65_ = FALSE;4143 gboolean _tmp67_;
4019 Event* _tmp66_;
4020 gboolean _tmp69_;
4021 GError * _inner_error_ = NULL;4144 GError * _inner_error_ = NULL;
4022 g_return_val_if_fail (self != NULL, FALSE);4145 g_return_val_if_fail (self != NULL, FALSE);
4023 e = NULL;4146 e = NULL;
@@ -4027,175 +4150,173 @@
4027 _event_unref0 (e);4150 _event_unref0 (e);
4028 return result;4151 return result;
4029 }4152 }
4030 _tmp1_ = self->priv->events_lock;4153 g_mutex_lock (&self->priv->events_lock);
4031 g_mutex_lock (_tmp1_);4154 _tmp1_ = self->priv->events;
4032 _tmp2_ = self->priv->events;4155 _tmp2_ = gee_abstract_collection_get_size ((GeeCollection*) _tmp1_);
4033 _tmp3_ = gee_collection_get_size ((GeeCollection*) _tmp2_);4156 _tmp3_ = _tmp2_;
4034 _tmp4_ = _tmp3_;4157 if (_tmp3_ > 0) {
4035 if (_tmp4_ > 0) {4158 GeeArrayList* _tmp4_;
4036 GeeArrayList* _tmp5_;4159 gpointer _tmp5_ = NULL;
4037 gpointer _tmp6_ = NULL;4160 GeeArrayList* _tmp6_;
4038 GeeArrayList* _tmp7_;4161 gpointer _tmp7_ = NULL;
4039 gpointer _tmp8_ = NULL;4162 Event* _tmp8_;
4040 Event* _tmp9_;4163 _tmp4_ = self->priv->events;
4041 _tmp5_ = self->priv->events;4164 _tmp5_ = gee_abstract_list_first ((GeeAbstractList*) _tmp4_);
4042 _tmp6_ = gee_abstract_list_first ((GeeAbstractList*) _tmp5_);
4043 _event_unref0 (e);4165 _event_unref0 (e);
4044 e = (Event*) _tmp6_;4166 e = (Event*) _tmp5_;
4045 _tmp7_ = self->priv->events;4167 _tmp6_ = self->priv->events;
4046 _tmp8_ = gee_abstract_list_remove_at ((GeeAbstractList*) _tmp7_, 0);4168 _tmp7_ = gee_abstract_list_remove_at ((GeeAbstractList*) _tmp6_, 0);
4047 _tmp9_ = (Event*) _tmp8_;4169 _tmp8_ = (Event*) _tmp7_;
4048 _event_unref0 (_tmp9_);4170 _event_unref0 (_tmp8_);
4049 }4171 }
4050 _tmp10_ = self->priv->events_lock;4172 g_mutex_unlock (&self->priv->events_lock);
4051 g_mutex_unlock (_tmp10_);4173 _tmp10_ = e;
4052 _tmp12_ = e;4174 if (_tmp10_ != NULL) {
4053 if (_tmp12_ != NULL) {4175 Event* _tmp11_;
4054 Event* _tmp13_;4176 const gchar* _tmp12_;
4055 const gchar* _tmp14_;4177 _tmp11_ = e;
4056 _tmp13_ = e;4178 _tmp12_ = _tmp11_->message;
4057 _tmp14_ = _tmp13_->message;4179 _tmp9_ = _tmp12_ != NULL;
4058 _tmp11_ = _tmp14_ != NULL;
4059 } else {4180 } else {
4060 _tmp11_ = FALSE;4181 _tmp9_ = FALSE;
4061 }4182 }
4062 _tmp15_ = _tmp11_;4183 _tmp13_ = _tmp9_;
4063 if (_tmp15_) {4184 if (_tmp13_) {
4064 gboolean notify_on_newail;4185 gboolean notify_on_newail;
4065 gboolean _tmp22_ = FALSE;4186 gboolean _tmp20_ = FALSE;
4066 Event* _tmp23_;4187 Event* _tmp21_;
4188 gboolean _tmp22_;
4067 gboolean _tmp24_;4189 gboolean _tmp24_;
4068 gboolean _tmp26_;
4069 notify_on_newail = FALSE;4190 notify_on_newail = FALSE;
4070 {4191 {
4071 GConfClient* _tmp16_;4192 GConfClient* _tmp14_;
4072 gboolean _tmp17_ = FALSE;4193 gboolean _tmp15_ = FALSE;
4073 gboolean _tmp18_;4194 gboolean _tmp16_;
4074 _tmp16_ = self->priv->gconf;4195 _tmp14_ = self->priv->gconf;
4075 _tmp17_ = gconf_client_get_bool (_tmp16_, SMD_APPLET_key_newmail, &_inner_error_);4196 _tmp15_ = gconf_client_get_bool (_tmp14_, SMD_APPLET_key_newmail, &_inner_error_);
4076 _tmp18_ = _tmp17_;4197 _tmp16_ = _tmp15_;
4077 if (_inner_error_ != NULL) {4198 if (_inner_error_ != NULL) {
4078 goto __catch15_g_error;4199 goto __catch16_g_error;
4079 }4200 }
4080 notify_on_newail = _tmp18_;4201 notify_on_newail = _tmp16_;
4081 }4202 }
4082 goto __finally15;4203 goto __finally16;
4083 __catch15_g_error:4204 __catch16_g_error:
4084 {4205 {
4085 GError* e = NULL;4206 GError* e = NULL;
4086 FILE* _tmp19_;4207 FILE* _tmp17_;
4087 GError* _tmp20_;4208 GError* _tmp18_;
4088 const gchar* _tmp21_;4209 const gchar* _tmp19_;
4089 e = _inner_error_;4210 e = _inner_error_;
4090 _inner_error_ = NULL;4211 _inner_error_ = NULL;
4091 _tmp19_ = stderr;4212 _tmp17_ = stderr;
4092 _tmp20_ = e;4213 _tmp18_ = e;
4093 _tmp21_ = _tmp20_->message;4214 _tmp19_ = _tmp18_->message;
4094 fprintf (_tmp19_, "%s\n", _tmp21_);4215 fprintf (_tmp17_, "%s\n", _tmp19_);
4095 _g_error_free0 (e);4216 _g_error_free0 (e);
4096 }4217 }
4097 __finally15:4218 __finally16:
4098 if (_inner_error_ != NULL) {4219 if (_inner_error_ != NULL) {
4099 _event_unref0 (e);4220 _event_unref0 (e);
4100 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);4221 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
4101 g_clear_error (&_inner_error_);4222 g_clear_error (&_inner_error_);
4102 return FALSE;4223 return FALSE;
4103 }4224 }
4104 _tmp23_ = e;4225 _tmp21_ = e;
4105 _tmp24_ = _tmp23_->enter_network_error_mode;4226 _tmp22_ = _tmp21_->enter_network_error_mode;
4227 if (_tmp22_) {
4228 gboolean _tmp23_;
4229 _tmp23_ = self->priv->network_error_mode;
4230 _tmp20_ = _tmp23_;
4231 } else {
4232 _tmp20_ = FALSE;
4233 }
4234 _tmp24_ = _tmp20_;
4106 if (_tmp24_) {4235 if (_tmp24_) {
4107 gboolean _tmp25_;4236 } else {
4108 _tmp25_ = self->priv->network_error_mode;4237 gboolean _tmp25_ = FALSE;
4109 _tmp22_ = _tmp25_;4238 gboolean _tmp26_ = FALSE;
4110 } else {4239 Event* _tmp27_;
4111 _tmp22_ = FALSE;
4112 }
4113 _tmp26_ = _tmp22_;
4114 if (_tmp26_) {
4115 } else {
4116 gboolean _tmp27_ = FALSE;
4117 gboolean _tmp28_ = FALSE;4240 gboolean _tmp28_ = FALSE;
4118 Event* _tmp29_;4241 gboolean _tmp30_;
4119 gboolean _tmp30_ = FALSE;4242 gboolean _tmp37_;
4120 gboolean _tmp32_;4243 _tmp27_ = e;
4121 gboolean _tmp39_;4244 _tmp28_ = event_is_error_event (_tmp27_);
4122 _tmp29_ = e;4245 if (!_tmp28_) {
4123 _tmp30_ = event_is_error_event (_tmp29_);4246 gboolean _tmp29_;
4124 if (!_tmp30_) {4247 _tmp29_ = notify_on_newail;
4125 gboolean _tmp31_;4248 _tmp26_ = _tmp29_;
4126 _tmp31_ = notify_on_newail;
4127 _tmp28_ = _tmp31_;
4128 } else {4249 } else {
4129 _tmp28_ = FALSE;4250 _tmp26_ = FALSE;
4130 }4251 }
4131 _tmp32_ = _tmp28_;4252 _tmp30_ = _tmp26_;
4132 if (_tmp32_) {4253 if (_tmp30_) {
4133 _tmp27_ = TRUE;4254 _tmp25_ = TRUE;
4134 } else {4255 } else {
4256 gboolean _tmp31_ = FALSE;
4257 Event* _tmp32_;
4135 gboolean _tmp33_ = FALSE;4258 gboolean _tmp33_ = FALSE;
4136 Event* _tmp34_;4259 gboolean _tmp36_;
4137 gboolean _tmp35_ = FALSE;4260 _tmp32_ = e;
4138 gboolean _tmp38_;4261 _tmp33_ = event_is_error_event (_tmp32_);
4139 _tmp34_ = e;4262 if (_tmp33_) {
4140 _tmp35_ = event_is_error_event (_tmp34_);4263 Event* _tmp34_;
4141 if (_tmp35_) {4264 gboolean _tmp35_;
4142 Event* _tmp36_;4265 _tmp34_ = e;
4143 gboolean _tmp37_;4266 _tmp35_ = _tmp34_->enter_network_error_mode;
4144 _tmp36_ = e;4267 _tmp31_ = _tmp35_;
4145 _tmp37_ = _tmp36_->enter_network_error_mode;
4146 _tmp33_ = _tmp37_;
4147 } else {4268 } else {
4148 _tmp33_ = FALSE;4269 _tmp31_ = FALSE;
4149 }4270 }
4150 _tmp38_ = _tmp33_;4271 _tmp36_ = _tmp31_;
4151 _tmp27_ = _tmp38_;4272 _tmp25_ = _tmp36_;
4152 }4273 }
4153 _tmp39_ = _tmp27_;4274 _tmp37_ = _tmp25_;
4154 if (_tmp39_) {4275 if (_tmp37_) {
4276 Event* _tmp38_;
4277 const gchar* _tmp39_;
4155 Event* _tmp40_;4278 Event* _tmp40_;
4156 const gchar* _tmp41_;4279 const gchar* _tmp41_;
4157 Event* _tmp42_;4280 NotifyNotification* _tmp42_;
4158 const gchar* _tmp43_;4281 NotifyNotification* _tmp43_;
4159 NotifyNotification* _tmp44_;4282 GVariant* _tmp44_;
4160 NotifyNotification* _tmp45_;4283 GVariant* _tmp45_;
4161 GVariant* _tmp46_;4284 _tmp38_ = e;
4162 GVariant* _tmp47_;4285 _tmp39_ = _tmp38_->message;
4163 _tmp40_ = e;4286 _tmp40_ = e;
4164 _tmp41_ = _tmp40_->message;4287 _tmp41_ = _tmp40_->message_icon;
4165 _tmp42_ = e;4288 _tmp42_ = notify_notification_new ("Syncmaildir", _tmp39_, _tmp41_);
4166 _tmp43_ = _tmp42_->message_icon;
4167 _tmp44_ = notify_notification_new ("Syncmaildir", _tmp41_, _tmp43_);
4168 _g_object_unref0 (self->priv->notification);4289 _g_object_unref0 (self->priv->notification);
4169 self->priv->notification = _tmp44_;4290 self->priv->notification = _tmp42_;
4170 _tmp45_ = self->priv->notification;4291 _tmp43_ = self->priv->notification;
4171 _tmp46_ = g_variant_new_boolean (TRUE);4292 _tmp44_ = g_variant_new_boolean (TRUE);
4172 _tmp47_ = g_variant_ref_sink (_tmp46_);4293 _tmp45_ = g_variant_ref_sink (_tmp44_);
4173 notify_notification_set_hint (_tmp45_, "transient", _tmp47_);4294 notify_notification_set_hint (_tmp43_, "transient", _tmp45_);
4174 _g_variant_unref0 (_tmp47_);4295 _g_variant_unref0 (_tmp45_);
4175 {4296 {
4176 NotifyNotification* _tmp48_;4297 NotifyNotification* _tmp46_;
4177 _tmp48_ = self->priv->notification;4298 _tmp46_ = self->priv->notification;
4178 notify_notification_show (_tmp48_, &_inner_error_);4299 notify_notification_show (_tmp46_, &_inner_error_);
4179 if (_inner_error_ != NULL) {4300 if (_inner_error_ != NULL) {
4180 goto __catch16_g_error;4301 goto __catch17_g_error;
4181 }4302 }
4182 }4303 }
4183 goto __finally16;4304 goto __finally17;
4184 __catch16_g_error:4305 __catch17_g_error:
4185 {4306 {
4186 GError* e = NULL;4307 GError* e = NULL;
4187 FILE* _tmp49_;4308 FILE* _tmp47_;
4188 GError* _tmp50_;4309 GError* _tmp48_;
4189 const gchar* _tmp51_;4310 const gchar* _tmp49_;
4190 e = _inner_error_;4311 e = _inner_error_;
4191 _inner_error_ = NULL;4312 _inner_error_ = NULL;
4192 _tmp49_ = stderr;4313 _tmp47_ = stderr;
4193 _tmp50_ = e;4314 _tmp48_ = e;
4194 _tmp51_ = _tmp50_->message;4315 _tmp49_ = _tmp48_->message;
4195 fprintf (_tmp49_, "%s\n", _tmp51_);4316 fprintf (_tmp47_, "%s\n", _tmp49_);
4196 _g_error_free0 (e);4317 _g_error_free0 (e);
4197 }4318 }
4198 __finally16:4319 __finally17:
4199 if (_inner_error_ != NULL) {4320 if (_inner_error_ != NULL) {
4200 _event_unref0 (e);4321 _event_unref0 (e);
4201 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);4322 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
@@ -4203,53 +4324,53 @@
4203 return FALSE;4324 return FALSE;
4204 }4325 }
4205 } else {4326 } else {
4206 Event* _tmp52_;4327 Event* _tmp50_;
4207 gboolean _tmp53_ = FALSE;4328 gboolean _tmp51_ = FALSE;
4208 _tmp52_ = e;4329 _tmp50_ = e;
4209 _tmp53_ = event_is_error_event (_tmp52_);4330 _tmp51_ = event_is_error_event (_tmp50_);
4210 if (_tmp53_) {4331 if (_tmp51_) {
4332 Event* _tmp52_;
4333 const gchar* _tmp53_;
4211 Event* _tmp54_;4334 Event* _tmp54_;
4212 const gchar* _tmp55_;4335 const gchar* _tmp55_;
4213 Event* _tmp56_;4336 NotifyNotification* _tmp56_;
4214 const gchar* _tmp57_;4337 NotifyNotification* _tmp57_;
4215 NotifyNotification* _tmp58_;4338 NotifyNotification* _tmp58_;
4216 NotifyNotification* _tmp59_;4339 _tmp52_ = e;
4217 NotifyNotification* _tmp60_;4340 _tmp53_ = _tmp52_->message;
4218 _tmp54_ = e;4341 _tmp54_ = e;
4219 _tmp55_ = _tmp54_->message;4342 _tmp55_ = _tmp54_->message_icon;
4220 _tmp56_ = e;4343 _tmp56_ = notify_notification_new ("Syncmaildir", _tmp53_, _tmp55_);
4221 _tmp57_ = _tmp56_->message_icon;
4222 _tmp58_ = notify_notification_new ("Syncmaildir", _tmp55_, _tmp57_);
4223 _g_object_unref0 (self->priv->notification);4344 _g_object_unref0 (self->priv->notification);
4224 self->priv->notification = _tmp58_;4345 self->priv->notification = _tmp56_;
4225 _tmp59_ = self->priv->notification;4346 _tmp57_ = self->priv->notification;
4226 notify_notification_set_timeout (_tmp59_, 0);4347 notify_notification_set_timeout (_tmp57_, 0);
4227 _tmp60_ = self->priv->notification;4348 _tmp58_ = self->priv->notification;
4228 notify_notification_add_action (_tmp60_, "clicked", "Handle error", _______lambda15__notify_action_callback, smd_applet_ref (self), smd_applet_unref);4349 notify_notification_add_action (_tmp58_, "clicked", "Handle error", _______lambda18__notify_action_callback, smd_applet_ref (self), smd_applet_unref);
4229 {4350 {
4230 NotifyNotification* _tmp61_;4351 NotifyNotification* _tmp59_;
4231 _tmp61_ = self->priv->notification;4352 _tmp59_ = self->priv->notification;
4232 notify_notification_show (_tmp61_, &_inner_error_);4353 notify_notification_show (_tmp59_, &_inner_error_);
4233 if (_inner_error_ != NULL) {4354 if (_inner_error_ != NULL) {
4234 goto __catch17_g_error;4355 goto __catch18_g_error;
4235 }4356 }
4236 }4357 }
4237 goto __finally17;4358 goto __finally18;
4238 __catch17_g_error:4359 __catch18_g_error:
4239 {4360 {
4240 GError* e = NULL;4361 GError* e = NULL;
4241 FILE* _tmp62_;4362 FILE* _tmp60_;
4242 GError* _tmp63_;4363 GError* _tmp61_;
4243 const gchar* _tmp64_;4364 const gchar* _tmp62_;
4244 e = _inner_error_;4365 e = _inner_error_;
4245 _inner_error_ = NULL;4366 _inner_error_ = NULL;
4246 _tmp62_ = stderr;4367 _tmp60_ = stderr;
4247 _tmp63_ = e;4368 _tmp61_ = e;
4248 _tmp64_ = _tmp63_->message;4369 _tmp62_ = _tmp61_->message;
4249 fprintf (_tmp62_, "%s\n", _tmp64_);4370 fprintf (_tmp60_, "%s\n", _tmp62_);
4250 _g_error_free0 (e);4371 _g_error_free0 (e);
4251 }4372 }
4252 __finally17:4373 __finally18:
4253 if (_inner_error_ != NULL) {4374 if (_inner_error_ != NULL) {
4254 _event_unref0 (e);4375 _event_unref0 (e);
4255 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);4376 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
@@ -4260,306 +4381,306 @@
4260 }4381 }
4261 }4382 }
4262 }4383 }
4263 _tmp66_ = e;4384 _tmp64_ = e;
4264 if (_tmp66_ != NULL) {4385 if (_tmp64_ != NULL) {
4265 Event* _tmp67_;4386 Event* _tmp65_;
4266 gboolean _tmp68_;4387 gboolean _tmp66_;
4267 _tmp67_ = e;4388 _tmp65_ = e;
4268 _tmp68_ = _tmp67_->enter_error_mode;4389 _tmp66_ = _tmp65_->enter_error_mode;
4269 _tmp65_ = _tmp68_;4390 _tmp63_ = _tmp66_;
4270 } else {4391 } else {
4271 _tmp65_ = FALSE;4392 _tmp63_ = FALSE;
4272 }4393 }
4273 _tmp69_ = _tmp65_;4394 _tmp67_ = _tmp63_;
4274 if (_tmp69_) {4395 if (_tmp67_) {
4275 GtkStatusIcon* _tmp70_;4396 GtkStatusIcon* _tmp68_;
4276 GtkStatusIcon* _tmp71_;4397 GtkStatusIcon* _tmp69_;
4277 gboolean _tmp72_;4398 gboolean _tmp70_;
4278 GtkBuilder* _tmp74_;4399 GtkBuilder* _tmp72_;
4279 GObject* _tmp75_ = NULL;4400 GObject* _tmp73_ = NULL;
4280 GtkLabel* _tmp76_;4401 GtkLabel* _tmp74_;
4281 GtkLabel* l_ctx;4402 GtkLabel* l_ctx;
4282 GtkBuilder* _tmp77_;4403 GtkBuilder* _tmp75_;
4283 GObject* _tmp78_ = NULL;4404 GObject* _tmp76_ = NULL;
4284 GtkLabel* _tmp79_;4405 GtkLabel* _tmp77_;
4285 GtkLabel* l_cause;4406 GtkLabel* l_cause;
4286 GtkLabel* _tmp80_;4407 GtkLabel* _tmp78_;
4287 Event* _tmp81_;4408 Event* _tmp79_;
4288 const gchar* _tmp82_;4409 const gchar* _tmp80_;
4289 GtkLabel* _tmp83_;4410 GtkLabel* _tmp81_;
4290 Event* _tmp84_;4411 Event* _tmp82_;
4291 const gchar* _tmp85_;4412 const gchar* _tmp83_;
4292 GHashTable* _tmp86_;4413 GHashTable* _tmp84_;
4293 GtkBuilder* _tmp87_;4414 GtkBuilder* _tmp85_;
4294 GObject* _tmp88_ = NULL;4415 GObject* _tmp86_ = NULL;
4295 GtkVBox* _tmp89_;4416 GtkVBox* _tmp87_;
4296 GtkVBox* vb;4417 GtkVBox* vb;
4297 GtkVBox* _tmp90_;4418 GtkVBox* _tmp88_;
4298 GList* _tmp91_ = NULL;4419 GList* _tmp89_ = NULL;
4299 Event* _tmp95_;4420 Event* _tmp93_;
4300 const gchar* _tmp96_;4421 const gchar* _tmp94_;
4301 Event* _tmp103_;4422 Event* _tmp101_;
4302 const gchar* _tmp104_;4423 const gchar* _tmp102_;
4303 Event* _tmp132_;4424 Event* _tmp130_;
4304 GeeArrayList* _tmp133_;4425 GeeArrayList* _tmp131_;
4305 GtkBuilder* _tmp182_;4426 GtkBuilder* _tmp180_;
4306 GObject* _tmp183_ = NULL;4427 GObject* _tmp181_ = NULL;
4307 GtkWidget* _tmp184_;4428 GtkWidget* _tmp182_;
4308 GtkWidget* x;4429 GtkWidget* x;
4309 GtkWidget* _tmp185_;4430 GtkWidget* _tmp183_;
4310 Event* _tmp186_;4431 Event* _tmp184_;
4311 const gchar* _tmp187_;4432 const gchar* _tmp185_;
4312 GtkBuilder* _tmp188_;4433 GtkBuilder* _tmp186_;
4313 GObject* _tmp189_ = NULL;4434 GObject* _tmp187_ = NULL;
4314 GtkWidget* _tmp190_;4435 GtkWidget* _tmp188_;
4315 GtkWidget* _tmp191_;4436 GtkWidget* _tmp189_;
4316 Event* _tmp192_;4437 Event* _tmp190_;
4317 const gchar* _tmp193_;4438 const gchar* _tmp191_;
4318 GtkBuilder* _tmp194_;4439 GtkBuilder* _tmp192_;
4319 GObject* _tmp195_ = NULL;4440 GObject* _tmp193_ = NULL;
4320 GtkWidget* _tmp196_;4441 GtkWidget* _tmp194_;
4321 GtkWidget* _tmp197_;4442 GtkWidget* _tmp195_;
4322 Event* _tmp198_;4443 Event* _tmp196_;
4323 GeeArrayList* _tmp199_;4444 GeeArrayList* _tmp197_;
4324 gint _tmp200_;4445 gint _tmp198_;
4325 gint _tmp201_;4446 gint _tmp199_;
4326 _tmp70_ = self->priv->si;4447 _tmp68_ = self->priv->si;
4327 gtk_status_icon_set_from_icon_name (_tmp70_, "error");4448 gtk_status_icon_set_from_icon_name (_tmp68_, "error");
4328 _tmp71_ = self->priv->si;4449 _tmp69_ = self->priv->si;
4329 gtk_status_icon_set_tooltip_text (_tmp71_, "smd-applet encountered an error");4450 gtk_status_icon_set_tooltip_text (_tmp69_, "smd-applet encountered an error");
4330 self->priv->error_mode = TRUE;4451 self->priv->error_mode = TRUE;
4331 _tmp72_ = self->priv->notification_server_has_persistence;4452 _tmp70_ = self->priv->notification_server_has_persistence;
4332 if (!_tmp72_) {4453 if (!_tmp70_) {
4333 GtkStatusIcon* _tmp73_;4454 GtkStatusIcon* _tmp71_;
4334 _tmp73_ = self->priv->si;4455 _tmp71_ = self->priv->si;
4335 gtk_status_icon_set_visible (_tmp73_, TRUE);4456 gtk_status_icon_set_visible (_tmp71_, TRUE);
4336 }4457 }
4337 _tmp74_ = self->priv->builder;4458 _tmp72_ = self->priv->builder;
4338 _tmp75_ = gtk_builder_get_object (_tmp74_, "lContext");4459 _tmp73_ = gtk_builder_get_object (_tmp72_, "lContext");
4339 _tmp76_ = _g_object_ref0 (GTK_IS_LABEL (_tmp75_) ? ((GtkLabel*) _tmp75_) : NULL);4460 _tmp74_ = _g_object_ref0 (GTK_IS_LABEL (_tmp73_) ? ((GtkLabel*) _tmp73_) : NULL);
4340 l_ctx = _tmp76_;4461 l_ctx = _tmp74_;
4341 _tmp77_ = self->priv->builder;4462 _tmp75_ = self->priv->builder;
4342 _tmp78_ = gtk_builder_get_object (_tmp77_, "lCause");4463 _tmp76_ = gtk_builder_get_object (_tmp75_, "lCause");
4343 _tmp79_ = _g_object_ref0 (GTK_IS_LABEL (_tmp78_) ? ((GtkLabel*) _tmp78_) : NULL);4464 _tmp77_ = _g_object_ref0 (GTK_IS_LABEL (_tmp76_) ? ((GtkLabel*) _tmp76_) : NULL);
4344 l_cause = _tmp79_;4465 l_cause = _tmp77_;
4345 _tmp80_ = l_ctx;4466 _tmp78_ = l_ctx;
4346 _tmp81_ = e;4467 _tmp79_ = e;
4347 _tmp82_ = _tmp81_->context;4468 _tmp80_ = _tmp79_->context;
4348 gtk_label_set_text (_tmp80_, _tmp82_);4469 gtk_label_set_text (_tmp78_, _tmp80_);
4349 _tmp83_ = l_cause;4470 _tmp81_ = l_cause;
4350 _tmp84_ = e;4471 _tmp82_ = e;
4351 _tmp85_ = _tmp84_->cause;4472 _tmp83_ = _tmp82_->cause;
4352 gtk_label_set_text (_tmp83_, _tmp85_);4473 gtk_label_set_text (_tmp81_, _tmp83_);
4353 _tmp86_ = self->priv->command_hash;4474 _tmp84_ = self->priv->command_hash;
4354 g_hash_table_remove_all (_tmp86_);4475 g_hash_table_remove_all (_tmp84_);
4355 _tmp87_ = self->priv->builder;4476 _tmp85_ = self->priv->builder;
4356 _tmp88_ = gtk_builder_get_object (_tmp87_, "vbRun");4477 _tmp86_ = gtk_builder_get_object (_tmp85_, "vbRun");
4357 _tmp89_ = _g_object_ref0 (GTK_IS_VBOX (_tmp88_) ? ((GtkVBox*) _tmp88_) : NULL);4478 _tmp87_ = _g_object_ref0 (GTK_IS_VBOX (_tmp86_) ? ((GtkVBox*) _tmp86_) : NULL);
4358 vb = _tmp89_;4479 vb = _tmp87_;
4359 _tmp90_ = vb;4480 _tmp88_ = vb;
4360 _tmp91_ = gtk_container_get_children ((GtkContainer*) _tmp90_);4481 _tmp89_ = gtk_container_get_children ((GtkContainer*) _tmp88_);
4361 {4482 {
4362 GList* w_collection = NULL;4483 GList* w_collection = NULL;
4363 GList* w_it = NULL;4484 GList* w_it = NULL;
4364 w_collection = _tmp91_;4485 w_collection = _tmp89_;
4365 for (w_it = w_collection; w_it != NULL; w_it = w_it->next) {4486 for (w_it = w_collection; w_it != NULL; w_it = w_it->next) {
4366 GtkWidget* _tmp92_;4487 GtkWidget* _tmp90_;
4367 GtkWidget* w = NULL;4488 GtkWidget* w = NULL;
4368 _tmp92_ = _g_object_ref0 ((GtkWidget*) w_it->data);4489 _tmp90_ = _g_object_ref0 ((GtkWidget*) w_it->data);
4369 w = _tmp92_;4490 w = _tmp90_;
4370 {4491 {
4371 GtkVBox* _tmp93_;4492 GtkVBox* _tmp91_;
4372 GtkWidget* _tmp94_;4493 GtkWidget* _tmp92_;
4373 _tmp93_ = vb;4494 _tmp91_ = vb;
4374 _tmp94_ = w;4495 _tmp92_ = w;
4375 gtk_container_remove ((GtkContainer*) _tmp93_, _tmp94_);4496 gtk_container_remove ((GtkContainer*) _tmp91_, _tmp92_);
4376 _g_object_unref0 (w);4497 _g_object_unref0 (w);
4377 }4498 }
4378 }4499 }
4379 _g_list_free0 (w_collection);4500 _g_list_free0 (w_collection);
4380 }4501 }
4381 _tmp95_ = e;4502 _tmp93_ = e;
4382 _tmp96_ = _tmp95_->permissions;4503 _tmp94_ = _tmp93_->permissions;
4383 if (_tmp96_ != NULL) {4504 if (_tmp94_ != NULL) {
4384 GtkBuilder* _tmp97_;4505 GtkBuilder* _tmp95_;
4385 GObject* _tmp98_ = NULL;4506 GObject* _tmp96_ = NULL;
4386 GtkLabel* _tmp99_;4507 GtkLabel* _tmp97_;
4387 GtkLabel* l;4508 GtkLabel* l;
4388 GtkLabel* _tmp100_;4509 GtkLabel* _tmp98_;
4389 Event* _tmp101_;4510 Event* _tmp99_;
4390 const gchar* _tmp102_;4511 const gchar* _tmp100_;
4391 _tmp97_ = self->priv->builder;4512 _tmp95_ = self->priv->builder;
4392 _tmp98_ = gtk_builder_get_object (_tmp97_, "lPermissions");4513 _tmp96_ = gtk_builder_get_object (_tmp95_, "lPermissions");
4393 _tmp99_ = _g_object_ref0 (GTK_IS_LABEL (_tmp98_) ? ((GtkLabel*) _tmp98_) : NULL);4514 _tmp97_ = _g_object_ref0 (GTK_IS_LABEL (_tmp96_) ? ((GtkLabel*) _tmp96_) : NULL);
4394 l = _tmp99_;4515 l = _tmp97_;
4395 _tmp100_ = l;4516 _tmp98_ = l;
4396 _tmp101_ = e;4517 _tmp99_ = e;
4397 _tmp102_ = _tmp101_->permissions;4518 _tmp100_ = _tmp99_->permissions;
4398 gtk_label_set_text (_tmp100_, _tmp102_);4519 gtk_label_set_text (_tmp98_, _tmp100_);
4399 _g_object_unref0 (l);4520 _g_object_unref0 (l);
4400 }4521 }
4401 _tmp103_ = e;4522 _tmp101_ = e;
4402 _tmp104_ = _tmp103_->mail_name;4523 _tmp102_ = _tmp101_->mail_name;
4403 if (_tmp104_ != NULL) {4524 if (_tmp102_ != NULL) {
4404 GtkBuilder* _tmp105_;4525 GtkBuilder* _tmp103_;
4405 GObject* _tmp106_ = NULL;4526 GObject* _tmp104_ = NULL;
4406 GtkEntry* _tmp107_;4527 GtkEntry* _tmp105_;
4407 GtkEntry* fn;4528 GtkEntry* fn;
4408 GtkEntry* _tmp108_;4529 GtkEntry* _tmp106_;
4409 Event* _tmp109_;4530 Event* _tmp107_;
4410 const gchar* _tmp110_;4531 const gchar* _tmp108_;
4411 GtkBuilder* _tmp111_;4532 GtkBuilder* _tmp109_;
4412 GObject* _tmp112_ = NULL;4533 GObject* _tmp110_ = NULL;
4413 GtkTextView* _tmp113_;4534 GtkTextView* _tmp111_;
4414 GtkTextView* l;4535 GtkTextView* l;
4415 GtkTextView* _tmp114_;4536 GtkTextView* _tmp112_;
4416 GtkTextBuffer* _tmp115_ = NULL;4537 GtkTextBuffer* _tmp113_ = NULL;
4417 GtkTextBuffer* _tmp116_;4538 GtkTextBuffer* _tmp114_;
4418 GtkTextBuffer* b;4539 GtkTextBuffer* b;
4419 GtkTextBuffer* _tmp117_;4540 GtkTextBuffer* _tmp115_;
4420 Event* _tmp118_;4541 Event* _tmp116_;
4421 const gchar* _tmp119_;4542 const gchar* _tmp117_;
4422 GtkTextIter it = {0};4543 GtkTextIter it = {0};
4423 GtkTextIter subj = {0};4544 GtkTextIter subj = {0};
4424 GtkTextBuffer* _tmp120_;4545 GtkTextBuffer* _tmp118_;
4425 GtkTextIter _tmp121_ = {0};4546 GtkTextIter _tmp119_ = {0};
4426 GtkTextIter _tmp122_ = {0};4547 GtkTextIter _tmp120_ = {0};
4427 gboolean _tmp123_ = FALSE;4548 gboolean _tmp121_ = FALSE;
4428 _tmp105_ = self->priv->builder;4549 _tmp103_ = self->priv->builder;
4429 _tmp106_ = gtk_builder_get_object (_tmp105_, "eMailName");4550 _tmp104_ = gtk_builder_get_object (_tmp103_, "eMailName");
4430 _tmp107_ = _g_object_ref0 (GTK_IS_ENTRY (_tmp106_) ? ((GtkEntry*) _tmp106_) : NULL);4551 _tmp105_ = _g_object_ref0 (GTK_IS_ENTRY (_tmp104_) ? ((GtkEntry*) _tmp104_) : NULL);
4431 fn = _tmp107_;4552 fn = _tmp105_;
4432 _tmp108_ = fn;4553 _tmp106_ = fn;
4433 _tmp109_ = e;4554 _tmp107_ = e;
4434 _tmp110_ = _tmp109_->mail_name;4555 _tmp108_ = _tmp107_->mail_name;
4435 gtk_entry_set_text (_tmp108_, _tmp110_);4556 gtk_entry_set_text (_tmp106_, _tmp108_);
4436 _tmp111_ = self->priv->builder;4557 _tmp109_ = self->priv->builder;
4437 _tmp112_ = gtk_builder_get_object (_tmp111_, "tvMail");4558 _tmp110_ = gtk_builder_get_object (_tmp109_, "tvMail");
4438 _tmp113_ = _g_object_ref0 (GTK_IS_TEXT_VIEW (_tmp112_) ? ((GtkTextView*) _tmp112_) : NULL);4559 _tmp111_ = _g_object_ref0 (GTK_IS_TEXT_VIEW (_tmp110_) ? ((GtkTextView*) _tmp110_) : NULL);
4439 l = _tmp113_;4560 l = _tmp111_;
4440 _tmp114_ = l;4561 _tmp112_ = l;
4441 _tmp115_ = gtk_text_view_get_buffer (_tmp114_);4562 _tmp113_ = gtk_text_view_get_buffer (_tmp112_);
4442 _tmp116_ = _g_object_ref0 (_tmp115_);4563 _tmp114_ = _g_object_ref0 (_tmp113_);
4443 b = _tmp116_;4564 b = _tmp114_;
4444 _tmp117_ = b;4565 _tmp115_ = b;
4445 _tmp118_ = e;4566 _tmp116_ = e;
4446 _tmp119_ = _tmp118_->mail_body;4567 _tmp117_ = _tmp116_->mail_body;
4447 gtk_text_buffer_set_text (_tmp117_, _tmp119_, -1);4568 gtk_text_buffer_set_text (_tmp115_, _tmp117_, -1);
4448 _tmp120_ = b;4569 _tmp118_ = b;
4449 gtk_text_buffer_get_start_iter (_tmp120_, &_tmp121_);4570 gtk_text_buffer_get_start_iter (_tmp118_, &_tmp119_);
4450 it = _tmp121_;4571 it = _tmp119_;
4451 _tmp123_ = gtk_text_iter_forward_search (&it, "Subject:", GTK_TEXT_SEARCH_TEXT_ONLY, &_tmp122_, NULL, NULL);4572 _tmp121_ = gtk_text_iter_forward_search (&it, "Subject:", GTK_TEXT_SEARCH_TEXT_ONLY, &_tmp120_, NULL, NULL);
4452 subj = _tmp122_;4573 subj = _tmp120_;
4453 if (_tmp123_) {4574 if (_tmp121_) {
4454 GtkTextBuffer* _tmp124_;4575 GtkTextBuffer* _tmp122_;
4455 GtkTextMark* _tmp125_ = NULL;4576 GtkTextMark* _tmp123_ = NULL;
4456 GtkTextMark* _tmp126_;4577 GtkTextMark* _tmp124_;
4457 GtkTextMark* insert;4578 GtkTextMark* insert;
4458 GtkTextBuffer* _tmp127_;4579 GtkTextBuffer* _tmp125_;
4459 GtkTextIter _tmp128_;4580 GtkTextIter _tmp126_;
4460 GtkTextIter _tmp129_;4581 GtkTextIter _tmp127_;
4461 GtkTextView* _tmp130_;4582 GtkTextView* _tmp128_;
4462 GtkTextMark* _tmp131_;4583 GtkTextMark* _tmp129_;
4463 _tmp124_ = b;4584 _tmp122_ = b;
4464 _tmp125_ = gtk_text_buffer_get_insert (_tmp124_);4585 _tmp123_ = gtk_text_buffer_get_insert (_tmp122_);
4465 _tmp126_ = _g_object_ref0 (_tmp125_);4586 _tmp124_ = _g_object_ref0 (_tmp123_);
4466 insert = _tmp126_;4587 insert = _tmp124_;
4467 _tmp127_ = b;4588 _tmp125_ = b;
4468 _tmp128_ = subj;4589 _tmp126_ = subj;
4469 _tmp129_ = subj;4590 _tmp127_ = subj;
4470 gtk_text_buffer_select_range (_tmp127_, &_tmp128_, &_tmp129_);4591 gtk_text_buffer_select_range (_tmp125_, &_tmp126_, &_tmp127_);
4471 _tmp130_ = l;4592 _tmp128_ = l;
4472 _tmp131_ = insert;4593 _tmp129_ = insert;
4473 gtk_text_view_scroll_to_mark (_tmp130_, _tmp131_, 0.0, TRUE, 0.0, 0.0);4594 gtk_text_view_scroll_to_mark (_tmp128_, _tmp129_, 0.0, TRUE, 0.0, 0.0);
4474 _g_object_unref0 (insert);4595 _g_object_unref0 (insert);
4475 }4596 }
4476 _g_object_unref0 (b);4597 _g_object_unref0 (b);
4477 _g_object_unref0 (l);4598 _g_object_unref0 (l);
4478 _g_object_unref0 (fn);4599 _g_object_unref0 (fn);
4479 }4600 }
4480 _tmp132_ = e;4601 _tmp130_ = e;
4481 _tmp133_ = _tmp132_->commands;4602 _tmp131_ = _tmp130_->commands;
4482 if (_tmp133_ != NULL) {4603 if (_tmp131_ != NULL) {
4483 {4604 {
4484 Event* _tmp134_;4605 Event* _tmp132_;
4606 GeeArrayList* _tmp133_;
4607 GeeArrayList* _tmp134_;
4608 GeeArrayList* _command_list;
4485 GeeArrayList* _tmp135_;4609 GeeArrayList* _tmp135_;
4486 GeeArrayList* _tmp136_;4610 gint _tmp136_;
4487 GeeArrayList* _command_list;4611 gint _tmp137_;
4488 GeeArrayList* _tmp137_;
4489 gint _tmp138_;
4490 gint _tmp139_;
4491 gint _command_size;4612 gint _command_size;
4492 gint _command_index;4613 gint _command_index;
4493 _tmp134_ = e;4614 _tmp132_ = e;
4494 _tmp135_ = _tmp134_->commands;4615 _tmp133_ = _tmp132_->commands;
4495 _tmp136_ = _g_object_ref0 (_tmp135_);4616 _tmp134_ = _g_object_ref0 (_tmp133_);
4496 _command_list = _tmp136_;4617 _command_list = _tmp134_;
4497 _tmp137_ = _command_list;4618 _tmp135_ = _command_list;
4498 _tmp138_ = gee_collection_get_size ((GeeCollection*) _tmp137_);4619 _tmp136_ = gee_abstract_collection_get_size ((GeeCollection*) _tmp135_);
4499 _tmp139_ = _tmp138_;4620 _tmp137_ = _tmp136_;
4500 _command_size = _tmp139_;4621 _command_size = _tmp137_;
4501 _command_index = -1;4622 _command_index = -1;
4502 while (TRUE) {4623 while (TRUE) {
4624 gint _tmp138_;
4625 gint _tmp139_;
4503 gint _tmp140_;4626 gint _tmp140_;
4504 gint _tmp141_;4627 GeeArrayList* _tmp141_;
4505 gint _tmp142_;4628 gint _tmp142_;
4506 GeeArrayList* _tmp143_;4629 gpointer _tmp143_ = NULL;
4507 gint _tmp144_;
4508 gpointer _tmp145_ = NULL;
4509 gchar* command;4630 gchar* command;
4510 GtkHBox* _tmp146_;4631 GtkHBox* _tmp144_;
4511 GtkHBox* _tmp147_;4632 GtkHBox* _tmp145_;
4512 GtkHBox* hb;4633 GtkHBox* hb;
4513 gchar* nice_command = NULL;4634 gchar* nice_command = NULL;
4514 const gchar* _tmp163_;4635 const gchar* _tmp161_;
4636 GtkLabel* _tmp162_;
4637 GtkLabel* _tmp163_;
4638 GtkLabel* lbl;
4515 GtkLabel* _tmp164_;4639 GtkLabel* _tmp164_;
4516 GtkLabel* _tmp165_;4640 GtkButton* _tmp165_;
4517 GtkLabel* lbl;4641 GtkButton* _tmp166_;
4518 GtkLabel* _tmp166_;4642 GtkButton* but;
4519 GtkButton* _tmp167_;4643 GHashTable* _tmp167_;
4520 GtkButton* _tmp168_;4644 GtkButton* _tmp168_;
4521 GtkButton* but;4645 GtkWidget* _tmp169_;
4522 GHashTable* _tmp169_;4646 const gchar* _tmp170_;
4523 GtkButton* _tmp170_;4647 gchar* _tmp171_;
4524 GtkWidget* _tmp171_;4648 GtkButton* _tmp172_;
4525 const gchar* _tmp172_;4649 GtkHBox* _tmp173_;
4526 gchar* _tmp173_;4650 GtkLabel* _tmp174_;
4527 GtkButton* _tmp174_;
4528 GtkHBox* _tmp175_;4651 GtkHBox* _tmp175_;
4529 GtkLabel* _tmp176_;4652 GtkButton* _tmp176_;
4530 GtkHBox* _tmp177_;4653 GtkVBox* _tmp177_;
4531 GtkButton* _tmp178_;4654 GtkHBox* _tmp178_;
4532 GtkVBox* _tmp179_;4655 GtkHBox* _tmp179_;
4533 GtkHBox* _tmp180_;4656 _tmp138_ = _command_index;
4534 GtkHBox* _tmp181_;4657 _command_index = _tmp138_ + 1;
4535 _tmp140_ = _command_index;4658 _tmp139_ = _command_index;
4536 _command_index = _tmp140_ + 1;4659 _tmp140_ = _command_size;
4537 _tmp141_ = _command_index;4660 if (!(_tmp139_ < _tmp140_)) {
4538 _tmp142_ = _command_size;
4539 if (!(_tmp141_ < _tmp142_)) {
4540 break;4661 break;
4541 }4662 }
4542 _tmp143_ = _command_list;4663 _tmp141_ = _command_list;
4543 _tmp144_ = _command_index;4664 _tmp142_ = _command_index;
4544 _tmp145_ = gee_abstract_list_get ((GeeAbstractList*) _tmp143_, _tmp144_);4665 _tmp143_ = gee_abstract_list_get ((GeeAbstractList*) _tmp141_, _tmp142_);
4545 command = (gchar*) _tmp145_;4666 command = (gchar*) _tmp143_;
4546 _tmp146_ = (GtkHBox*) gtk_hbox_new (FALSE, 10);4667 _tmp144_ = (GtkHBox*) gtk_hbox_new (FALSE, 10);
4547 _tmp147_ = g_object_ref_sink (_tmp146_);4668 _tmp145_ = g_object_ref_sink (_tmp144_);
4548 hb = _tmp147_;4669 hb = _tmp145_;
4549 {4670 {
4550 GMatchInfo* i_mailto = NULL;4671 GMatchInfo* i_mailto = NULL;
4551 GRegex* _tmp148_;4672 GRegex* _tmp146_;
4552 GRegex* mailto_rex;4673 GRegex* mailto_rex;
4553 GRegex* _tmp149_;4674 GRegex* _tmp147_;
4554 const gchar* _tmp150_;4675 const gchar* _tmp148_;
4555 GMatchInfo* _tmp151_ = NULL;4676 GMatchInfo* _tmp149_ = NULL;
4556 gboolean _tmp152_ = FALSE;4677 gboolean _tmp150_ = FALSE;
4557 _tmp148_ = g_regex_new ("^gnome-open..mailto:", 0, 0, &_inner_error_);4678 _tmp146_ = g_regex_new ("^gnome-open..mailto:", 0, 0, &_inner_error_);
4558 mailto_rex = _tmp148_;4679 mailto_rex = _tmp146_;
4559 if (_inner_error_ != NULL) {4680 if (_inner_error_ != NULL) {
4560 _g_match_info_free0 (i_mailto);4681 _g_match_info_free0 (i_mailto);
4561 if (_inner_error_->domain == G_REGEX_ERROR) {4682 if (_inner_error_->domain == G_REGEX_ERROR) {
4562 goto __catch18_g_regex_error;4683 goto __catch19_g_regex_error;
4563 }4684 }
4564 _g_match_info_free0 (i_mailto);4685 _g_match_info_free0 (i_mailto);
4565 _g_free0 (nice_command);4686 _g_free0 (nice_command);
@@ -4574,54 +4695,54 @@
4574 g_clear_error (&_inner_error_);4695 g_clear_error (&_inner_error_);
4575 return FALSE;4696 return FALSE;
4576 }4697 }
4577 _tmp149_ = mailto_rex;4698 _tmp147_ = mailto_rex;
4578 _tmp150_ = command;4699 _tmp148_ = command;
4579 _tmp152_ = g_regex_match (_tmp149_, _tmp150_, 0, &_tmp151_);4700 _tmp150_ = g_regex_match (_tmp147_, _tmp148_, 0, &_tmp149_);
4580 _g_match_info_free0 (i_mailto);4701 _g_match_info_free0 (i_mailto);
4581 i_mailto = _tmp151_;4702 i_mailto = _tmp149_;
4582 if (_tmp152_) {4703 if (_tmp150_) {
4583 const gchar* _tmp153_;4704 const gchar* _tmp151_;
4705 gchar* _tmp152_ = NULL;
4706 gchar* _tmp153_;
4584 gchar* _tmp154_ = NULL;4707 gchar* _tmp154_ = NULL;
4585 gchar* _tmp155_;4708 gchar* _tmp155_;
4586 gchar* _tmp156_ = NULL;4709 gchar* _tmp156_;
4587 gchar* _tmp157_;4710 _tmp151_ = command;
4711 _tmp152_ = g_uri_unescape_string (_tmp151_, NULL);
4712 _tmp153_ = _tmp152_;
4713 _tmp154_ = string_substring (_tmp153_, (glong) 12, (glong) 70);
4714 _tmp155_ = _tmp154_;
4715 _tmp156_ = g_strconcat (_tmp155_, "...", NULL);
4716 _g_free0 (nice_command);
4717 nice_command = _tmp156_;
4718 _g_free0 (_tmp155_);
4719 _g_free0 (_tmp153_);
4720 } else {
4721 const gchar* _tmp157_;
4588 gchar* _tmp158_;4722 gchar* _tmp158_;
4589 _tmp153_ = command;4723 _tmp157_ = command;
4590 _tmp154_ = g_uri_unescape_string (_tmp153_, NULL);4724 _tmp158_ = g_strdup (_tmp157_);
4591 _tmp155_ = _tmp154_;
4592 _tmp156_ = string_substring (_tmp155_, (glong) 12, (glong) 70);
4593 _tmp157_ = _tmp156_;
4594 _tmp158_ = g_strconcat (_tmp157_, "...", NULL);
4595 _g_free0 (nice_command);4725 _g_free0 (nice_command);
4596 nice_command = _tmp158_;4726 nice_command = _tmp158_;
4597 _g_free0 (_tmp157_);
4598 _g_free0 (_tmp155_);
4599 } else {
4600 const gchar* _tmp159_;
4601 gchar* _tmp160_;
4602 _tmp159_ = command;
4603 _tmp160_ = g_strdup (_tmp159_);
4604 _g_free0 (nice_command);
4605 nice_command = _tmp160_;
4606 }4727 }
4607 _g_regex_unref0 (mailto_rex);4728 _g_regex_unref0 (mailto_rex);
4608 _g_match_info_free0 (i_mailto);4729 _g_match_info_free0 (i_mailto);
4609 }4730 }
4610 goto __finally18;4731 goto __finally19;
4611 __catch18_g_regex_error:4732 __catch19_g_regex_error:
4612 {4733 {
4613 GError* e = NULL;4734 GError* e = NULL;
4614 const gchar* _tmp161_;4735 const gchar* _tmp159_;
4615 gchar* _tmp162_;4736 gchar* _tmp160_;
4616 e = _inner_error_;4737 e = _inner_error_;
4617 _inner_error_ = NULL;4738 _inner_error_ = NULL;
4618 _tmp161_ = command;4739 _tmp159_ = command;
4619 _tmp162_ = g_strdup (_tmp161_);4740 _tmp160_ = g_strdup (_tmp159_);
4620 _g_free0 (nice_command);4741 _g_free0 (nice_command);
4621 nice_command = _tmp162_;4742 nice_command = _tmp160_;
4622 _g_error_free0 (e);4743 _g_error_free0 (e);
4623 }4744 }
4624 __finally18:4745 __finally19:
4625 if (_inner_error_ != NULL) {4746 if (_inner_error_ != NULL) {
4626 _g_free0 (nice_command);4747 _g_free0 (nice_command);
4627 _g_object_unref0 (hb);4748 _g_object_unref0 (hb);
@@ -4635,34 +4756,34 @@
4635 g_clear_error (&_inner_error_);4756 g_clear_error (&_inner_error_);
4636 return FALSE;4757 return FALSE;
4637 }4758 }
4638 _tmp163_ = nice_command;4759 _tmp161_ = nice_command;
4639 _tmp164_ = (GtkLabel*) gtk_label_new (_tmp163_);4760 _tmp162_ = (GtkLabel*) gtk_label_new (_tmp161_);
4640 _tmp165_ = g_object_ref_sink (_tmp164_);4761 _tmp163_ = g_object_ref_sink (_tmp162_);
4641 lbl = _tmp165_;4762 lbl = _tmp163_;
4642 _tmp166_ = lbl;4763 _tmp164_ = lbl;
4643 gtk_misc_set_alignment ((GtkMisc*) _tmp166_, 0.0f, 0.5f);4764 gtk_misc_set_alignment ((GtkMisc*) _tmp164_, 0.0f, 0.5f);
4644 _tmp167_ = (GtkButton*) gtk_button_new_from_stock ("gtk-execute");4765 _tmp165_ = (GtkButton*) gtk_button_new_from_stock ("gtk-execute");
4645 _tmp168_ = g_object_ref_sink (_tmp167_);4766 _tmp166_ = g_object_ref_sink (_tmp165_);
4646 but = _tmp168_;4767 but = _tmp166_;
4647 _tmp169_ = self->priv->command_hash;4768 _tmp167_ = self->priv->command_hash;
4648 _tmp170_ = but;4769 _tmp168_ = but;
4649 _tmp171_ = _g_object_ref0 ((GtkWidget*) _tmp170_);4770 _tmp169_ = _g_object_ref0 ((GtkWidget*) _tmp168_);
4650 _tmp172_ = command;4771 _tmp170_ = command;
4651 _tmp173_ = g_strdup (_tmp172_);4772 _tmp171_ = g_strdup (_tmp170_);
4652 g_hash_table_insert (_tmp169_, _tmp171_, _tmp173_);4773 g_hash_table_insert (_tmp167_, _tmp169_, _tmp171_);
4653 _tmp174_ = but;4774 _tmp172_ = but;
4654 g_signal_connect (_tmp174_, "clicked", (GCallback) _______lambda16__gtk_button_clicked, self);4775 g_signal_connect (_tmp172_, "clicked", (GCallback) _______lambda19__gtk_button_clicked, self);
4776 _tmp173_ = hb;
4777 _tmp174_ = lbl;
4778 gtk_box_pack_end ((GtkBox*) _tmp173_, (GtkWidget*) _tmp174_, TRUE, TRUE, (guint) 0);
4655 _tmp175_ = hb;4779 _tmp175_ = hb;
4656 _tmp176_ = lbl;4780 _tmp176_ = but;
4657 gtk_box_pack_end ((GtkBox*) _tmp175_, (GtkWidget*) _tmp176_, TRUE, TRUE, (guint) 0);4781 gtk_box_pack_end ((GtkBox*) _tmp175_, (GtkWidget*) _tmp176_, FALSE, FALSE, (guint) 0);
4658 _tmp177_ = hb;4782 _tmp177_ = vb;
4659 _tmp178_ = but;4783 _tmp178_ = hb;
4660 gtk_box_pack_end ((GtkBox*) _tmp177_, (GtkWidget*) _tmp178_, FALSE, FALSE, (guint) 0);4784 gtk_box_pack_end ((GtkBox*) _tmp177_, (GtkWidget*) _tmp178_, TRUE, TRUE, (guint) 0);
4661 _tmp179_ = vb;4785 _tmp179_ = hb;
4662 _tmp180_ = hb;4786 gtk_widget_show_all ((GtkWidget*) _tmp179_);
4663 gtk_box_pack_end ((GtkBox*) _tmp179_, (GtkWidget*) _tmp180_, TRUE, TRUE, (guint) 0);
4664 _tmp181_ = hb;
4665 gtk_widget_show_all ((GtkWidget*) _tmp181_);
4666 _g_object_unref0 (but);4787 _g_object_unref0 (but);
4667 _g_object_unref0 (lbl);4788 _g_object_unref0 (lbl);
4668 _g_free0 (nice_command);4789 _g_free0 (nice_command);
@@ -4672,72 +4793,72 @@
4672 _g_object_unref0 (_command_list);4793 _g_object_unref0 (_command_list);
4673 }4794 }
4674 }4795 }
4675 _tmp182_ = self->priv->builder;4796 _tmp180_ = self->priv->builder;
4676 _tmp183_ = gtk_builder_get_object (_tmp182_, "fDisplayPermissions");4797 _tmp181_ = gtk_builder_get_object (_tmp180_, "fDisplayPermissions");
4677 _tmp184_ = _g_object_ref0 (GTK_IS_WIDGET (_tmp183_) ? ((GtkWidget*) _tmp183_) : NULL);4798 _tmp182_ = _g_object_ref0 (GTK_IS_WIDGET (_tmp181_) ? ((GtkWidget*) _tmp181_) : NULL);
4678 x = _tmp184_;4799 x = _tmp182_;
4679 _tmp185_ = x;4800 _tmp183_ = x;
4680 _tmp186_ = e;4801 _tmp184_ = e;
4681 _tmp187_ = _tmp186_->permissions;4802 _tmp185_ = _tmp184_->permissions;
4682 gtk_widget_set_visible (_tmp185_, _tmp187_ != NULL);4803 gtk_widget_set_visible (_tmp183_, _tmp185_ != NULL);
4683 _tmp188_ = self->priv->builder;4804 _tmp186_ = self->priv->builder;
4684 _tmp189_ = gtk_builder_get_object (_tmp188_, "fDisplayMail");4805 _tmp187_ = gtk_builder_get_object (_tmp186_, "fDisplayMail");
4685 _tmp190_ = _g_object_ref0 (GTK_IS_WIDGET (_tmp189_) ? ((GtkWidget*) _tmp189_) : NULL);4806 _tmp188_ = _g_object_ref0 (GTK_IS_WIDGET (_tmp187_) ? ((GtkWidget*) _tmp187_) : NULL);
4686 _g_object_unref0 (x);4807 _g_object_unref0 (x);
4687 x = _tmp190_;4808 x = _tmp188_;
4688 _tmp191_ = x;4809 _tmp189_ = x;
4689 _tmp192_ = e;4810 _tmp190_ = e;
4690 _tmp193_ = _tmp192_->mail_name;4811 _tmp191_ = _tmp190_->mail_name;
4691 gtk_widget_set_visible (_tmp191_, _tmp193_ != NULL);4812 gtk_widget_set_visible (_tmp189_, _tmp191_ != NULL);
4692 _tmp194_ = self->priv->builder;4813 _tmp192_ = self->priv->builder;
4693 _tmp195_ = gtk_builder_get_object (_tmp194_, "fRun");4814 _tmp193_ = gtk_builder_get_object (_tmp192_, "fRun");
4694 _tmp196_ = _g_object_ref0 (GTK_IS_WIDGET (_tmp195_) ? ((GtkWidget*) _tmp195_) : NULL);4815 _tmp194_ = _g_object_ref0 (GTK_IS_WIDGET (_tmp193_) ? ((GtkWidget*) _tmp193_) : NULL);
4695 _g_object_unref0 (x);4816 _g_object_unref0 (x);
4696 x = _tmp196_;4817 x = _tmp194_;
4697 _tmp197_ = x;4818 _tmp195_ = x;
4698 _tmp198_ = e;4819 _tmp196_ = e;
4699 _tmp199_ = _tmp198_->commands;4820 _tmp197_ = _tmp196_->commands;
4700 _tmp200_ = gee_collection_get_size ((GeeCollection*) _tmp199_);4821 _tmp198_ = gee_abstract_collection_get_size ((GeeCollection*) _tmp197_);
4701 _tmp201_ = _tmp200_;4822 _tmp199_ = _tmp198_;
4702 gtk_widget_set_visible (_tmp197_, _tmp201_ > 0);4823 gtk_widget_set_visible (_tmp195_, _tmp199_ > 0);
4703 _g_object_unref0 (x);4824 _g_object_unref0 (x);
4704 _g_object_unref0 (vb);4825 _g_object_unref0 (vb);
4705 _g_object_unref0 (l_cause);4826 _g_object_unref0 (l_cause);
4706 _g_object_unref0 (l_ctx);4827 _g_object_unref0 (l_ctx);
4707 } else {4828 } else {
4708 gboolean _tmp202_ = FALSE;4829 gboolean _tmp200_ = FALSE;
4709 Event* _tmp203_;4830 Event* _tmp201_;
4710 gboolean _tmp206_;4831 gboolean _tmp204_;
4711 _tmp203_ = e;4832 _tmp201_ = e;
4712 if (_tmp203_ != NULL) {4833 if (_tmp201_ != NULL) {
4713 Event* _tmp204_;4834 Event* _tmp202_;
4714 gboolean _tmp205_;4835 gboolean _tmp203_;
4715 _tmp204_ = e;4836 _tmp202_ = e;
4716 _tmp205_ = _tmp204_->enter_network_error_mode;4837 _tmp203_ = _tmp202_->enter_network_error_mode;
4717 _tmp202_ = _tmp205_;4838 _tmp200_ = _tmp203_;
4718 } else {4839 } else {
4719 _tmp202_ = FALSE;4840 _tmp200_ = FALSE;
4720 }4841 }
4721 _tmp206_ = _tmp202_;4842 _tmp204_ = _tmp200_;
4722 if (_tmp206_) {4843 if (_tmp204_) {
4723 GtkStatusIcon* _tmp207_;4844 GtkStatusIcon* _tmp205_;
4724 GtkStatusIcon* _tmp208_;4845 GtkStatusIcon* _tmp206_;
4725 self->priv->network_error_mode = TRUE;4846 self->priv->network_error_mode = TRUE;
4726 _tmp207_ = self->priv->si;4847 _tmp205_ = self->priv->si;
4727 gtk_status_icon_set_from_icon_name (_tmp207_, "dialog-warning");4848 gtk_status_icon_set_from_icon_name (_tmp205_, "dialog-warning");
4728 _tmp208_ = self->priv->si;4849 _tmp206_ = self->priv->si;
4729 gtk_status_icon_set_tooltip_text (_tmp208_, "Network error");4850 gtk_status_icon_set_tooltip_text (_tmp206_, "Network error");
4730 } else {4851 } else {
4731 Event* _tmp209_;4852 Event* _tmp207_;
4732 _tmp209_ = e;4853 _tmp207_ = e;
4733 if (_tmp209_ != NULL) {4854 if (_tmp207_ != NULL) {
4734 GtkStatusIcon* _tmp210_;4855 GtkStatusIcon* _tmp208_;
4735 GtkStatusIcon* _tmp211_;4856 GtkStatusIcon* _tmp209_;
4736 self->priv->network_error_mode = FALSE;4857 self->priv->network_error_mode = FALSE;
4737 _tmp210_ = self->priv->si;4858 _tmp208_ = self->priv->si;
4738 gtk_status_icon_set_from_icon_name (_tmp210_, "mail-send-receive");4859 gtk_status_icon_set_from_icon_name (_tmp208_, "mail-send-receive");
4739 _tmp211_ = self->priv->si;4860 _tmp209_ = self->priv->si;
4740 gtk_status_icon_set_tooltip_text (_tmp211_, "smd-applet is running");4861 gtk_status_icon_set_tooltip_text (_tmp209_, "smd-applet is running");
4741 }4862 }
4742 }4863 }
4743 }4864 }
@@ -4788,13 +4909,13 @@
4788 _tmp4_ = gconf_client_get_bool (_tmp3_, SMD_APPLET_key_icon, &_inner_error_);4909 _tmp4_ = gconf_client_get_bool (_tmp3_, SMD_APPLET_key_icon, &_inner_error_);
4789 _tmp5_ = _tmp4_;4910 _tmp5_ = _tmp4_;
4790 if (_inner_error_ != NULL) {4911 if (_inner_error_ != NULL) {
4791 goto __catch20_g_error;4912 goto __catch21_g_error;
4792 }4913 }
4793 _tmp6_ = self->priv->si;4914 _tmp6_ = self->priv->si;
4794 gtk_status_icon_set_visible (_tmp6_, !_tmp5_);4915 gtk_status_icon_set_visible (_tmp6_, !_tmp5_);
4795 }4916 }
4796 goto __finally20;4917 goto __finally21;
4797 __catch20_g_error:4918 __catch21_g_error:
4798 {4919 {
4799 GError* e = NULL;4920 GError* e = NULL;
4800 FILE* _tmp7_;4921 FILE* _tmp7_;
@@ -4808,7 +4929,7 @@
4808 fprintf (_tmp7_, "%s\n", _tmp9_);4929 fprintf (_tmp7_, "%s\n", _tmp9_);
4809 _g_error_free0 (e);4930 _g_error_free0 (e);
4810 }4931 }
4811 __finally20:4932 __finally21:
4812 if (_inner_error_ != NULL) {4933 if (_inner_error_ != NULL) {
4813 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);4934 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
4814 g_clear_error (&_inner_error_);4935 g_clear_error (&_inner_error_);
@@ -4871,13 +4992,13 @@
4871 _tmp6_ = gconf_client_get_bool (_tmp5_, SMD_APPLET_key_icon, &_inner_error_);4992 _tmp6_ = gconf_client_get_bool (_tmp5_, SMD_APPLET_key_icon, &_inner_error_);
4872 _tmp7_ = _tmp6_;4993 _tmp7_ = _tmp6_;
4873 if (_inner_error_ != NULL) {4994 if (_inner_error_ != NULL) {
4874 goto __catch21_g_error;4995 goto __catch22_g_error;
4875 }4996 }
4876 _tmp8_ = self->priv->si;4997 _tmp8_ = self->priv->si;
4877 gtk_status_icon_set_visible (_tmp8_, !_tmp7_);4998 gtk_status_icon_set_visible (_tmp8_, !_tmp7_);
4878 }4999 }
4879 goto __finally21;5000 goto __finally22;
4880 __catch21_g_error:5001 __catch22_g_error:
4881 {5002 {
4882 GError* e = NULL;5003 GError* e = NULL;
4883 FILE* _tmp9_;5004 FILE* _tmp9_;
@@ -4891,7 +5012,7 @@
4891 fprintf (_tmp9_, "Unable to read gconf key %s: %s\n", SMD_APPLET_key_icon, _tmp11_);5012 fprintf (_tmp9_, "Unable to read gconf key %s: %s\n", SMD_APPLET_key_icon, _tmp11_);
4892 _g_error_free0 (e);5013 _g_error_free0 (e);
4893 }5014 }
4894 __finally21:5015 __finally22:
4895 if (_inner_error_ != NULL) {5016 if (_inner_error_ != NULL) {
4896 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);5017 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
4897 g_clear_error (&_inner_error_);5018 g_clear_error (&_inner_error_);
@@ -5113,7 +5234,7 @@
5113 d = _tmp7_;5234 d = _tmp7_;
5114 if (_inner_error_ != NULL) {5235 if (_inner_error_ != NULL) {
5115 if (_inner_error_->domain == G_FILE_ERROR) {5236 if (_inner_error_->domain == G_FILE_ERROR) {
5116 goto __catch22_g_file_error;5237 goto __catch23_g_file_error;
5117 }5238 }
5118 _g_object_unref0 (b);5239 _g_object_unref0 (b);
5119 _g_object_unref0 (tv);5240 _g_object_unref0 (tv);
@@ -5152,7 +5273,7 @@
5152 gtk_combo_box_text_append_text (_tmp17_, _tmp18_);5273 gtk_combo_box_text_append_text (_tmp17_, _tmp18_);
5153 }5274 }
5154 _tmp19_ = self->priv->lognames;5275 _tmp19_ = self->priv->lognames;
5155 _tmp20_ = gee_collection_get_size ((GeeCollection*) _tmp19_);5276 _tmp20_ = gee_abstract_collection_get_size ((GeeCollection*) _tmp19_);
5156 _tmp21_ = _tmp20_;5277 _tmp21_ = _tmp20_;
5157 if (_tmp21_ == 0) {5278 if (_tmp21_ == 0) {
5158 GtkTextBuffer* _tmp22_;5279 GtkTextBuffer* _tmp22_;
@@ -5176,8 +5297,8 @@
5176 _g_free0 (file);5297 _g_free0 (file);
5177 _g_dir_close0 (d);5298 _g_dir_close0 (d);
5178 }5299 }
5179 goto __finally22;5300 goto __finally23;
5180 __catch22_g_file_error:5301 __catch23_g_file_error:
5181 {5302 {
5182 GError* e = NULL;5303 GError* e = NULL;
5183 GtkTextBuffer* _tmp28_;5304 GtkTextBuffer* _tmp28_;
@@ -5194,7 +5315,7 @@
5194 _g_free0 (_tmp31_);5315 _g_free0 (_tmp31_);
5195 _g_error_free0 (e);5316 _g_error_free0 (e);
5196 }5317 }
5197 __finally22:5318 __finally23:
5198 if (_inner_error_ != NULL) {5319 if (_inner_error_ != NULL) {
5199 _g_object_unref0 (b);5320 _g_object_unref0 (b);
5200 _g_object_unref0 (tv);5321 _g_object_unref0 (tv);
@@ -5292,11 +5413,11 @@
5292 _tmp13_ = self->priv->notification;5413 _tmp13_ = self->priv->notification;
5293 notify_notification_show (_tmp13_, &_inner_error_);5414 notify_notification_show (_tmp13_, &_inner_error_);
5294 if (_inner_error_ != NULL) {5415 if (_inner_error_ != NULL) {
5295 goto __catch23_g_error;5416 goto __catch24_g_error;
5296 }5417 }
5297 }5418 }
5298 goto __finally23;5419 goto __finally24;
5299 __catch23_g_error:5420 __catch24_g_error:
5300 {5421 {
5301 GError* e = NULL;5422 GError* e = NULL;
5302 FILE* _tmp14_;5423 FILE* _tmp14_;
@@ -5310,7 +5431,7 @@
5310 fprintf (_tmp14_, "%s\n", _tmp16_);5431 fprintf (_tmp14_, "%s\n", _tmp16_);
5311 _g_error_free0 (e);5432 _g_error_free0 (e);
5312 }5433 }
5313 __finally23:5434 __finally24:
5314 if (_inner_error_ != NULL) {5435 if (_inner_error_ != NULL) {
5315 if (_inner_error_->domain == EXIT) {5436 if (_inner_error_->domain == EXIT) {
5316 g_propagate_error (error, _inner_error_);5437 g_propagate_error (error, _inner_error_);
@@ -5331,13 +5452,13 @@
5331 _tmp18_ = gconf_client_get_bool (_tmp17_, SMD_APPLET_key_icon, &_inner_error_);5452 _tmp18_ = gconf_client_get_bool (_tmp17_, SMD_APPLET_key_icon, &_inner_error_);
5332 _tmp19_ = _tmp18_;5453 _tmp19_ = _tmp18_;
5333 if (_inner_error_ != NULL) {5454 if (_inner_error_ != NULL) {
5334 goto __catch24_g_error;5455 goto __catch25_g_error;
5335 }5456 }
5336 _tmp20_ = self->priv->si;5457 _tmp20_ = self->priv->si;
5337 gtk_status_icon_set_visible (_tmp20_, !_tmp19_);5458 gtk_status_icon_set_visible (_tmp20_, !_tmp19_);
5338 }5459 }
5339 goto __finally24;5460 goto __finally25;
5340 __catch24_g_error:5461 __catch25_g_error:
5341 {5462 {
5342 GError* e = NULL;5463 GError* e = NULL;
5343 FILE* _tmp21_;5464 FILE* _tmp21_;
@@ -5351,7 +5472,7 @@
5351 fprintf (_tmp21_, "%s\n", _tmp23_);5472 fprintf (_tmp21_, "%s\n", _tmp23_);
5352 _g_error_free0 (e);5473 _g_error_free0 (e);
5353 }5474 }
5354 __finally24:5475 __finally25:
5355 if (_inner_error_ != NULL) {5476 if (_inner_error_ != NULL) {
5356 if (_inner_error_->domain == EXIT) {5477 if (_inner_error_->domain == EXIT) {
5357 g_propagate_error (error, _inner_error_);5478 g_propagate_error (error, _inner_error_);
@@ -5533,6 +5654,7 @@
55335654
55345655
5535static void smd_applet_instance_init (smdApplet * self) {5656static void smd_applet_instance_init (smdApplet * self) {
5657 GMutex _tmp0_ = {0};
5536 self->priv = SMD_APPLET_GET_PRIVATE (self);5658 self->priv = SMD_APPLET_GET_PRIVATE (self);
5537 self->priv->builder = NULL;5659 self->priv->builder = NULL;
5538 self->priv->menuL = NULL;5660 self->priv->menuL = NULL;
@@ -5548,7 +5670,8 @@
5548 self->priv->gconf = NULL;5670 self->priv->gconf = NULL;
5549 self->priv->thread = NULL;5671 self->priv->thread = NULL;
5550 self->priv->thread_die = FALSE;5672 self->priv->thread_die = FALSE;
5551 self->priv->events_lock = NULL;5673 g_mutex_init (&_tmp0_);
5674 self->priv->events_lock = _tmp0_;
5552 self->priv->events = NULL;5675 self->priv->events = NULL;
5553 self->priv->error_mode = FALSE;5676 self->priv->error_mode = FALSE;
5554 self->priv->network_error_mode = FALSE;5677 self->priv->network_error_mode = FALSE;
@@ -5575,7 +5698,8 @@
5575 _g_object_unref0 (self->priv->cblogs);5698 _g_object_unref0 (self->priv->cblogs);
5576 _g_object_unref0 (self->priv->lognames);5699 _g_object_unref0 (self->priv->lognames);
5577 _g_object_unref0 (self->priv->gconf);5700 _g_object_unref0 (self->priv->gconf);
5578 _g_mutex_free0 (self->priv->events_lock);5701 _g_thread_unref0 (self->priv->thread);
5702 g_mutex_clear (&self->priv->events_lock);
5579 _g_object_unref0 (self->priv->events);5703 _g_object_unref0 (self->priv->events);
5580 _g_hash_table_unref0 (self->priv->command_hash);5704 _g_hash_table_unref0 (self->priv->command_hash);
5581 _g_object_unref0 (self->priv->net_manager);5705 _g_object_unref0 (self->priv->net_manager);
@@ -5624,29 +5748,36 @@
5624 gchar* _tmp3_;5748 gchar* _tmp3_;
5625 gboolean _tmp4_ = FALSE;5749 gboolean _tmp4_ = FALSE;
5626 gboolean _tmp5_;5750 gboolean _tmp5_;
5627 const gchar* _tmp23_ = NULL;5751 const gchar* _tmp28_ = NULL;
5628 gchar* _tmp24_;5752 gchar* _tmp29_;
5629 gchar* homedir;5753 gchar* homedir;
5630 const gchar* _tmp25_;5754 const gchar* _tmp30_;
5631 gchar* _tmp26_;5755 gchar* _tmp31_;
5632 const gchar* _tmp27_;5756 const gchar* _tmp32_;
5633 gchar* _tmp28_;5757 gchar* _tmp33_;
5634 const gchar* _tmp29_;5758 const gchar* _tmp34_;
5635 gchar* _tmp30_;5759 gchar* _tmp35_;
5760 const gchar* _tmp36_ = NULL;
5761 gchar* _tmp37_;
5762 gchar* conf_home;
5763 const gchar* _tmp38_;
5764 const gchar* _tmp43_;
5765 gchar* _tmp44_ = NULL;
5766 gchar* _tmp45_;
5636 gboolean config_only;5767 gboolean config_only;
5637 GOptionEntry _tmp31_ = {0};5768 GOptionEntry _tmp46_ = {0};
5638 GOptionEntry _tmp32_ = {0};5769 GOptionEntry _tmp47_ = {0};
5639 GOptionEntry _tmp33_ = {0};5770 GOptionEntry _tmp48_ = {0};
5640 GOptionEntry _tmp34_ = {0};5771 GOptionEntry _tmp49_ = {0};
5641 GOptionEntry* _tmp35_ = NULL;5772 GOptionEntry* _tmp50_ = NULL;
5642 GOptionEntry* oe;5773 GOptionEntry* oe;
5643 gint oe_length1;5774 gint oe_length1;
5644 gint _oe_size_;5775 gint _oe_size_;
5645 GOptionContext* _tmp36_;5776 GOptionContext* _tmp51_;
5646 GOptionContext* oc;5777 GOptionContext* oc;
5647 GOptionContext* _tmp37_;5778 GOptionContext* _tmp52_;
5648 GOptionEntry* _tmp38_;5779 GOptionEntry* _tmp53_;
5649 gint _tmp38__length1;5780 gint _tmp53__length1;
5650 GError * _inner_error_ = NULL;5781 GError * _inner_error_ = NULL;
5651 _tmp0_ = g_strdup (SMD_CONF_PREFIX);5782 _tmp0_ = g_strdup (SMD_CONF_PREFIX);
5652 PREFIX = _tmp0_;5783 PREFIX = _tmp0_;
@@ -5668,6 +5799,9 @@
5668 gchar* _tmp14_;5799 gchar* _tmp14_;
5669 FILE* _tmp15_;5800 FILE* _tmp15_;
5670 const gchar* _tmp16_;5801 const gchar* _tmp16_;
5802 gchar* _tmp17_;
5803 FILE* _tmp18_;
5804 const gchar* _tmp19_;
5671 _tmp6_ = stderr;5805 _tmp6_ = stderr;
5672 _tmp7_ = PREFIX;5806 _tmp7_ = PREFIX;
5673 fprintf (_tmp6_, "error: file not found: %s + %s\n", _tmp7_, SMD_APPLET_UI);5807 fprintf (_tmp6_, "error: file not found: %s + %s\n", _tmp7_, SMD_APPLET_UI);
@@ -5689,94 +5823,131 @@
5689 _tmp15_ = stderr;5823 _tmp15_ = stderr;
5690 _tmp16_ = smd_applet_smd_push_cmd;5824 _tmp16_ = smd_applet_smd_push_cmd;
5691 fprintf (_tmp15_, "smd-applet not installed, " "assuming smd-push is: %s\n", _tmp16_);5825 fprintf (_tmp15_, "smd-applet not installed, " "assuming smd-push is: %s\n", _tmp16_);
5826 _tmp17_ = g_strdup ("./smd-applet.desktop");
5827 _g_free0 (smd_applet_smd_applet_desktop);
5828 smd_applet_smd_applet_desktop = _tmp17_;
5829 _tmp18_ = stderr;
5830 _tmp19_ = smd_applet_smd_applet_desktop;
5831 fprintf (_tmp18_, "smd-applet not installed, " "assuming smd-applet.desktop is: %s\n", _tmp19_);
5692 } else {5832 } else {
5693 const gchar* _tmp17_;5833 const gchar* _tmp20_;
5694 gchar* _tmp18_;5834 gchar* _tmp21_;
5695 const gchar* _tmp19_;5835 const gchar* _tmp22_;
5696 gchar* _tmp20_;5836 gchar* _tmp23_;
5697 const gchar* _tmp21_;5837 const gchar* _tmp24_;
5698 gchar* _tmp22_;5838 gchar* _tmp25_;
5699 _tmp17_ = PREFIX;5839 const gchar* _tmp26_;
5700 _tmp18_ = g_strconcat (_tmp17_, SMD_LOOP, NULL);5840 gchar* _tmp27_;
5841 _tmp20_ = PREFIX;
5842 _tmp21_ = g_strconcat (_tmp20_, SMD_LOOP, NULL);
5701 _g_free0 (smd_applet_smd_loop_cmd);5843 _g_free0 (smd_applet_smd_loop_cmd);
5702 smd_applet_smd_loop_cmd = _tmp18_;5844 smd_applet_smd_loop_cmd = _tmp21_;
5703 _tmp19_ = PREFIX;5845 _tmp22_ = PREFIX;
5704 _tmp20_ = g_strconcat (_tmp19_, SMD_PUSH, NULL);5846 _tmp23_ = g_strconcat (_tmp22_, SMD_PUSH, NULL);
5705 _g_free0 (smd_applet_smd_push_cmd);5847 _g_free0 (smd_applet_smd_push_cmd);
5706 smd_applet_smd_push_cmd = _tmp20_;5848 smd_applet_smd_push_cmd = _tmp23_;
5707 _tmp21_ = PREFIX;5849 _tmp24_ = PREFIX;
5708 _tmp22_ = g_strconcat (_tmp21_, SMD_APPLET_UI, NULL);5850 _tmp25_ = g_strconcat (_tmp24_, SMD_APPLET_UI, NULL);
5709 _g_free0 (smd_applet_smd_applet_ui);5851 _g_free0 (smd_applet_smd_applet_ui);
5710 smd_applet_smd_applet_ui = _tmp22_;5852 smd_applet_smd_applet_ui = _tmp25_;
5853 _tmp26_ = PREFIX;
5854 _tmp27_ = g_strconcat (_tmp26_, SMD_APPLET_DESKTOP, NULL);
5855 _g_free0 (smd_applet_smd_applet_desktop);
5856 smd_applet_smd_applet_desktop = _tmp27_;
5711 }5857 }
5712 _tmp23_ = g_get_home_dir ();5858 _tmp28_ = g_get_home_dir ();
5713 _tmp24_ = g_strdup (_tmp23_);5859 _tmp29_ = g_strdup (_tmp28_);
5714 homedir = _tmp24_;5860 homedir = _tmp29_;
5715 _tmp25_ = homedir;5861 _tmp30_ = homedir;
5716 _tmp26_ = g_strconcat (_tmp25_, "/.smd/log/", NULL);5862 _tmp31_ = g_strconcat (_tmp30_, "/.smd/log/", NULL);
5717 _g_free0 (SMD_LOGS_DIR);5863 _g_free0 (SMD_LOGS_DIR);
5718 SMD_LOGS_DIR = _tmp26_;
5719 _tmp27_ = homedir;
The diff has been truncated for viewing.

Subscribers

People subscribed via source and target branches

to all changes: