Merge lp:~logan/ubuntu/raring/syncmaildir/debian-merge into lp:ubuntu/raring/syncmaildir
- Raring (13.04)
- debian-merge
- Merge into raring
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 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Andrew Starr-Bochicchio (community) | Approve | ||
Ubuntu branches | Pending | ||
Review via email:
|
Commit message
Description of the change
To post a comment you must log in.
Revision history for this message
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Andrew Starr-Bochicchio (andrewsomething) wrote : | # |
review:
Approve
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === modified file '.pc/fix-ftbfs-libgthread-link.patch/Makefile' | |||
2 | --- .pc/fix-ftbfs-libgthread-link.patch/Makefile 2011-12-13 07:43:14 +0000 | |||
3 | +++ .pc/fix-ftbfs-libgthread-link.patch/Makefile 2012-11-26 22:25:07 +0000 | |||
4 | @@ -3,12 +3,12 @@ | |||
5 | 3 | # should care about them | 3 | # should care about them |
6 | 4 | 4 | ||
7 | 5 | PROJECTNAME=syncmaildir | 5 | PROJECTNAME=syncmaildir |
10 | 6 | VERSION=1.2.2 | 6 | VERSION=1.2.5 |
11 | 7 | COPYRIGHT=© 2008-2011 Enrico Tassi <gares@fettunta.org> | 7 | COPYRIGHT=© 2008-2012 Enrico Tassi <gares@fettunta.org> |
12 | 8 | BINARIES=mddiff smd-applet | 8 | BINARIES=mddiff smd-applet |
13 | 9 | MANPAGES1=mddiff.1 smd-server.1 smd-client.1 \ | 9 | MANPAGES1=mddiff.1 smd-server.1 smd-client.1 \ |
14 | 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 \ |
16 | 11 | smd-check-conf.1 | 11 | smd-check-conf.1 smd-restricted-shell.1 smd-uniform-names.1 |
17 | 12 | MANPAGES5=smd-config.5 | 12 | MANPAGES5=smd-config.5 |
18 | 13 | HTML=index.html design.html hooks.html | 13 | HTML=index.html design.html hooks.html |
19 | 14 | DESTDIR= | 14 | DESTDIR= |
20 | @@ -17,17 +17,17 @@ | |||
21 | 17 | SF_WEB=htdocs | 17 | SF_WEB=htdocs |
22 | 18 | TEST_SIZE=100 | 18 | TEST_SIZE=100 |
23 | 19 | TEST_MAILBOX=misc/Mail.TEST.tgz | 19 | TEST_MAILBOX=misc/Mail.TEST.tgz |
25 | 20 | TEST_SUITES=mddiff client-server pull-push | 20 | TEST_SUITES=mddiff client-server pull-push migration |
26 | 21 | BENCH_SIZE=25000 | 21 | BENCH_SIZE=25000 |
27 | 22 | BENCH_MAILBOX=misc/Mail.BENCH.tgz | 22 | BENCH_MAILBOX=misc/Mail.BENCH.tgz |
28 | 23 | BENCH_SUITES=benchmarks | 23 | BENCH_SUITES=benchmarks |
29 | 24 | PKG_GTK=gtk+-3.0 | 24 | PKG_GTK=gtk+-3.0 |
30 | 25 | SMD_APPLET_C=smd-applet.c | 25 | SMD_APPLET_C=smd-applet.c |
31 | 26 | PKGS_VALA=glib-2.0 $(PKG_GTK) libnotify gconf-2.0 gee-1.0 gio-2.0 | 26 | PKGS_VALA=glib-2.0 $(PKG_GTK) libnotify gconf-2.0 gee-1.0 gio-2.0 |
34 | 27 | MIN_GLIB_VERSION=2.19.1 | 27 | TARGET_GLIB=2.32 |
35 | 28 | PKGCONFIG_CHECK_GLIB_VERSION=--atleast-version=$(MIN_GLIB_VERSION) glib-2.0 | 28 | PKGCONFIG_CHECK_GLIB_VERSION=--atleast-version=$(TARGET_GLIB) glib-2.0 |
36 | 29 | PKGCONFIG_GLIB_VERSION=--modversion glib-2.0 | 29 | PKGCONFIG_GLIB_VERSION=--modversion glib-2.0 |
38 | 30 | VALAC=valac-0.14 | 30 | VALAC=valac-0.16 |
39 | 31 | H=@ | 31 | H=@ |
40 | 32 | 32 | ||
41 | 33 | # ---------------------------------------------------------------------------- | 33 | # ---------------------------------------------------------------------------- |
42 | @@ -41,8 +41,7 @@ | |||
43 | 41 | SSH=ssh | 41 | SSH=ssh |
44 | 42 | LUAV=5.1 | 42 | LUAV=5.1 |
45 | 43 | LUA=lua$(LUAV) | 43 | LUA=lua$(LUAV) |
48 | 44 | CFLAGS=-O2 -Wall -Wextra -Wcast-align -g -I . | 44 | CFLAGS=-O2 -Wall -Wextra -Wcast-align -g |
47 | 45 | CFLAGS_VALA=-O2 -w -g -I . | ||
49 | 46 | PKG_FLAGS= | 45 | PKG_FLAGS= |
50 | 47 | 46 | ||
51 | 48 | # ---------------------------------------------------------------------------- | 47 | # ---------------------------------------------------------------------------- |
52 | @@ -66,6 +65,7 @@ | |||
53 | 66 | $H if which $(VALAC) >/dev/null; then \ | 65 | $H if which $(VALAC) >/dev/null; then \ |
54 | 67 | echo "VALAC $^"; \ | 66 | echo "VALAC $^"; \ |
55 | 68 | $(VALAC) -C $^ --thread --vapidir=./ \ | 67 | $(VALAC) -C $^ --thread --vapidir=./ \ |
56 | 68 | --target-glib=$(TARGET_GLIB) \ | ||
57 | 69 | --pkg posix $(patsubst %,--pkg %,$(PKGS_VALA)); \ | 69 | --pkg posix $(patsubst %,--pkg %,$(PKGS_VALA)); \ |
58 | 70 | elif [ -e smd-applet.c ]; then \ | 70 | elif [ -e smd-applet.c ]; then \ |
59 | 71 | echo "** No $(VALAC), reusing precompiled .c files"; \ | 71 | echo "** No $(VALAC), reusing precompiled .c files"; \ |
60 | @@ -82,18 +82,19 @@ | |||
61 | 82 | mddiff: mddiff.c smd-config.h | 82 | mddiff: mddiff.c smd-config.h |
62 | 83 | @echo CC $< | 83 | @echo CC $< |
63 | 84 | $H $(CC) $(CFLAGS) $< -o $@ \ | 84 | $H $(CC) $(CFLAGS) $< -o $@ \ |
65 | 85 | `pkg-config $(PKG_FLAGS) --cflags --libs glib-2.0` | 85 | `pkg-config $(PKG_FLAGS) --cflags --libs glib-2.0` $(LDFLAGS) |
66 | 86 | 86 | ||
67 | 87 | smd-applet: $(SMD_APPLET_C) smd-config.h | 87 | smd-applet: $(SMD_APPLET_C) smd-config.h |
68 | 88 | @echo CC $< | 88 | @echo CC $< |
71 | 89 | $H $(CC) $(CFLAGS_VALA) $< -o $@ \ | 89 | $H $(CC) $(CFLAGS) -w $< -o $@ \ |
72 | 90 | `pkg-config $(PKG_FLAGS) --cflags --libs $(PKGS_VALA)` | 90 | `pkg-config $(PKG_FLAGS) --cflags --libs $(PKGS_VALA)` \ |
73 | 91 | $(LDFLAGS) | ||
74 | 91 | 92 | ||
75 | 92 | check-build: check-w-gcc check-w-$(VALAC) | 93 | check-build: check-w-gcc check-w-$(VALAC) |
76 | 93 | $H pkg-config $(PKGCONFIG_CHECK_GLIB_VERSION) || \ | 94 | $H pkg-config $(PKGCONFIG_CHECK_GLIB_VERSION) || \ |
77 | 94 | (echo glib version too old: \ | 95 | (echo glib version too old: \ |
78 | 95 | `pkg-config $(PKGCONFIG_GLIB_VERSION)`; \ | 96 | `pkg-config $(PKGCONFIG_GLIB_VERSION)`; \ |
80 | 96 | echo required version: $(MIN_GLIB_VERSION); \ | 97 | echo required version: $(TARGET_GLIB); \ |
81 | 97 | false) | 98 | false) |
82 | 98 | 99 | ||
83 | 99 | check-run: check-w-$(LUA) check-w-bash | 100 | check-run: check-w-$(LUA) check-w-bash |
84 | @@ -171,15 +172,17 @@ | |||
85 | 171 | $(call install-replacing,smd-push,bin) | 172 | $(call install-replacing,smd-push,bin) |
86 | 172 | $(call install-replacing,smd-translate,bin) | 173 | $(call install-replacing,smd-translate,bin) |
87 | 173 | $(call install-replacing,smd-check-conf,bin) | 174 | $(call install-replacing,smd-check-conf,bin) |
88 | 175 | $(call install-replacing,smd-uniform-names,bin) | ||
89 | 176 | $(call install-replacing,smd-restricted-shell,bin) | ||
90 | 174 | $(call install-replacing,smd-loop,bin) | 177 | $(call install-replacing,smd-loop,bin) |
91 | 175 | $(call install-replacing,smd-common,share/$(PROJECTNAME)) | 178 | $(call install-replacing,smd-common,share/$(PROJECTNAME)) |
92 | 176 | $(call install-replacing,syncmaildir.lua,share/lua/$(LUAV)) | 179 | $(call install-replacing,syncmaildir.lua,share/lua/$(LUAV)) |
93 | 177 | 180 | ||
94 | 178 | install-misc: $(MANPAGES1) $(MANPAGES5) | 181 | install-misc: $(MANPAGES1) $(MANPAGES5) |
95 | 179 | mkdir -p $(DESTDIR)/etc/xdg/autostart | 182 | mkdir -p $(DESTDIR)/etc/xdg/autostart |
96 | 180 | cp smd-applet.desktop $(DESTDIR)/etc/xdg/autostart | ||
97 | 181 | $(call mkdir-p,share/applications) | 183 | $(call mkdir-p,share/applications) |
98 | 182 | $(call install,smd-applet-configure.desktop,share/applications) | 184 | $(call install,smd-applet-configure.desktop,share/applications) |
99 | 185 | $(call install,smd-applet.desktop,share/applications) | ||
100 | 183 | $(call install,smd-applet.ui,share/$(PROJECTNAME)-applet) | 186 | $(call install,smd-applet.ui,share/$(PROJECTNAME)-applet) |
101 | 184 | $(call mkdir-p,share/man/man1) | 187 | $(call mkdir-p,share/man/man1) |
102 | 185 | $(call mkdir-p,share/man/man5) | 188 | $(call mkdir-p,share/man/man5) |
103 | @@ -255,27 +258,31 @@ | |||
104 | 255 | $H $(MAKE) $* \ | 258 | $H $(MAKE) $* \ |
105 | 256 | BINARIES="$(subst smd-applet,,$(BINARIES))" \ | 259 | BINARIES="$(subst smd-applet,,$(BINARIES))" \ |
106 | 257 | MANPAGES1="$(subst smd-applet.1,,$(MANPAGES1))" \ | 260 | MANPAGES1="$(subst smd-applet.1,,$(MANPAGES1))" \ |
108 | 258 | PREFIX="$(PREFIX)" VALAC=ls H=$H | 261 | PREFIX="$(PREFIX)" VALAC=ls H=$H \ |
109 | 262 | CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" | ||
110 | 259 | 263 | ||
111 | 260 | static/%: | 264 | static/%: |
112 | 261 | $H $(MAKE) $* \ | 265 | $H $(MAKE) $* \ |
113 | 262 | CFLAGS="$(CFLAGS) -static " \ | 266 | CFLAGS="$(CFLAGS) -static " \ |
114 | 263 | PKG_FLAGS="$(PKG_FLAGS) --static " \ | 267 | PKG_FLAGS="$(PKG_FLAGS) --static " \ |
116 | 264 | PREFIX="$(PREFIX)" H=$H | 268 | PREFIX="$(PREFIX)" H=$H LDFLAGS="$(LDFLAGS)" |
117 | 265 | 269 | ||
118 | 266 | gnome2/%: | 270 | gnome2/%: |
119 | 267 | $H gunzip -c misc/smd-applet-1.0.0.c.gz > misc/smd-applet-1.0.0.c | 271 | $H gunzip -c misc/smd-applet-1.0.0.c.gz > misc/smd-applet-1.0.0.c |
120 | 268 | $H $(MAKE) $* \ | 272 | $H $(MAKE) $* \ |
122 | 269 | SMD_APPLET_C=misc/smd-applet-1.0.0.c PKG_GTK=gtk+-2.0 | 273 | SMD_APPLET_C=misc/smd-applet-1.0.0.c PKG_GTK=gtk+-2.0 \ |
123 | 274 | CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" TARGET_GLIB="2.19.1" | ||
124 | 270 | 275 | ||
125 | 271 | 276 | ||
126 | 272 | osx/%: | 277 | osx/%: |
128 | 273 | $H $(MAKE) $* SED=sed PREFIX="$(PREFIX)" H=$H | 278 | $H $(MAKE) $* SED=sed PREFIX="$(PREFIX)" H=$H \ |
129 | 279 | CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" | ||
130 | 274 | 280 | ||
131 | 275 | abspath/%: | 281 | abspath/%: |
132 | 276 | $H $(MAKE) $* SED=/bin/sed \ | 282 | $H $(MAKE) $* SED=/bin/sed \ |
133 | 277 | XDELTA=/usr/bin/xdelta SSH=/usr/bin/ssh \ | 283 | XDELTA=/usr/bin/xdelta SSH=/usr/bin/ssh \ |
135 | 278 | PREFIX="$(PREFIX)" H=$H | 284 | PREFIX="$(PREFIX)" H=$H \ |
136 | 285 | CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" | ||
137 | 279 | 286 | ||
138 | 280 | .PHONY : update-smd-config | 287 | .PHONY : update-smd-config |
139 | 281 | # eof | 288 | # eof |
140 | 282 | 289 | ||
141 | === modified file 'ChangeLog' | |||
142 | --- ChangeLog 2011-12-01 16:17:28 +0000 | |||
143 | +++ ChangeLog 2012-11-26 22:25:07 +0000 | |||
144 | @@ -1,3 +1,86 @@ | |||
145 | 1 | 11/06/2012 - minor fix release - version 1.2.5 | ||
146 | 2 | * mddiff: | ||
147 | 3 | - Hashtable from body sha1 to mail now holds a list of | ||
148 | 4 | mails so that COPY actions are generated whenever possible. | ||
149 | 5 | It used to be the case that on body collisions a COPYBODY | ||
150 | 6 | action could have been generated instead. | ||
151 | 7 | - Fix: --sha1sum works on empty files too | ||
152 | 8 | - Better error messages for malformed db-file (including line number) | ||
153 | 9 | * syncmaildir.lua: | ||
154 | 10 | - During handshake handle the case in which mddiff is unable to | ||
155 | 11 | sha1sum the db file | ||
156 | 12 | - Code for calling external tools refactored | ||
157 | 13 | - Optimize calls to external translator spawning only | ||
158 | 14 | one process (translators must be line bufferd now) | ||
159 | 15 | * smd-uniform-names, smd-client: | ||
160 | 16 | - Fix escaping of ~ that was always performed on the local host | ||
161 | 17 | - Handle server ERROR messages while computing renamings | ||
162 | 18 | - Generate better smd-rename.sh script that calls cp instead | ||
163 | 19 | of mv if the source message has to be used later on | ||
164 | 20 | * smd-client: | ||
165 | 21 | - Mode --dry-run prints the list of messages transferred over the | ||
166 | 22 | network | ||
167 | 23 | |||
168 | 24 | 28/05/2012 - minor feature improvement - version 1.2.4 | ||
169 | 25 | * smd-uniform-names: | ||
170 | 26 | - New tool to ease the migration from offlineimap. | ||
171 | 27 | When the mailboxes have roughly the same content but emails are | ||
172 | 28 | named differently this tool generates a shell script that | ||
173 | 29 | renames local mails to conform to the remote mailbox | ||
174 | 30 | * smd-applet: | ||
175 | 31 | - XDG compliant autostart, with a button in the options window | ||
176 | 32 | - Target GLib 2.32 and Gtk+ 3.0 for the .ui file | ||
177 | 33 | * smd-push, smd-pull, smd-common, smd-client, smd-server: | ||
178 | 34 | - New option -n --nodelete to not propagate deletions | ||
179 | 35 | - Support for local synchronizations: -l option to smd-client. | ||
180 | 36 | It is now possible to set SERVERNAME=localhost and pass -l | ||
181 | 37 | to smd-client (via SMDCLIENTOPTS) to obtain a synchronization | ||
182 | 38 | on the same host. (Thanks Miguel Fernandes for the idea | ||
183 | 39 | and his time for testing/debugging my prototype implementation). | ||
184 | 40 | - Do not use ssh if it is a local synchronization | ||
185 | 41 | - Support for SMDCLIENTOPTS and SMDSERVEROPTS in config file | ||
186 | 42 | - Code refactoring for external tools invocation | ||
187 | 43 | - Put a minimal README in the hooks/ directory to tell the user | ||
188 | 44 | what these directories are for | ||
189 | 45 | - Fix inconsistency in escaping of the value of TRANSLATOR_LR/RL | ||
190 | 46 | - Turn off grep buffered mode for progress reporting (Thanks | ||
191 | 47 | Stefano Zacchiroli for enlightening me on the subject) | ||
192 | 48 | * smd-translate: | ||
193 | 49 | - Fix bug in removing trailing / or " or ' from the | ||
194 | 50 | MAILBOX_REMOTE/LOCAL value | ||
195 | 51 | - New trasnlator mode: 'move'. It just replaces MAILBOX_LOCAL | ||
196 | 52 | with MAILBOX_REMOTE and vice versa, useful for local | ||
197 | 53 | synchronizations | ||
198 | 54 | * mddiff: | ||
199 | 55 | - New option -n --no-delete to not generate DELETE actions | ||
200 | 56 | * Makefile: | ||
201 | 57 | - Fix templates: C/LDFLAGS are now correctly preserved | ||
202 | 58 | * README: | ||
203 | 59 | - Update copyright dates to include 2012 | ||
204 | 60 | - Document smd-uniform-names | ||
205 | 61 | |||
206 | 62 | 03/03/2012 - minor feature improvement - version 1.2.3 | ||
207 | 63 | * smd-pull, smd-push: | ||
208 | 64 | - print progress report if -v is passed | ||
209 | 65 | * smd-client: | ||
210 | 66 | - generate progress report if verbose mode is on | ||
211 | 67 | - generate verbose progress report during first synchronization | ||
212 | 68 | - log "translating:" only when meaningful (i.e. not a noop) | ||
213 | 69 | * smd-common: | ||
214 | 70 | - create a new fifo for progress reporters | ||
215 | 71 | - standard progress reporter printing on stdout PROGRESS: lines | ||
216 | 72 | - use mddiff as mkdir and mkfifo (no more calls to mkfifo and mkdir) | ||
217 | 73 | * smd-applet: | ||
218 | 74 | - ported to vala 0.16 | ||
219 | 75 | * smd-loop: | ||
220 | 76 | - fixed cleanup process (Thanks Ralf Schmitt for the patch) | ||
221 | 77 | * smd-restricted-shell: | ||
222 | 78 | - new utility to be used in .ssh/authorized_keys, see the command= | ||
223 | 79 | option (Thanks Luca Capello for the idea and the documentation) | ||
224 | 80 | * syncmaildir.lua: | ||
225 | 81 | - When mddiff fails to sha1 a message print the file name (thanks | ||
226 | 82 | Zhengdao Wang for the idea) | ||
227 | 83 | |||
228 | 1 | 01/12/2011 - minor fix - version 1.2.2 | 84 | 01/12/2011 - minor fix - version 1.2.2 |
229 | 2 | * smd-config.5: | 85 | * smd-config.5: |
230 | 3 | - fixed typo and use `quotes' to delimit strings | 86 | - fixed typo and use `quotes' to delimit strings |
231 | 4 | 87 | ||
232 | === modified file 'DESIGN' | |||
233 | --- DESIGN 2011-12-01 16:17:28 +0000 | |||
234 | +++ DESIGN 2012-11-26 22:25:07 +0000 | |||
235 | @@ -271,7 +271,7 @@ | |||
236 | 271 | statistical one respectively. Then a list of improperly called tags is output. | 271 | statistical one respectively. Then a list of improperly called tags is output. |
237 | 272 | Their meaning should be easy to guess. | 272 | Their meaning should be easy to guess. |
238 | 273 | 273 | ||
240 | 274 | <M> ::= "error::" <ET> | "stats::" <ST> | 274 | <M> ::= "error::" <ET> | "stats::" <ST> | "stats::" <DR> |
241 | 275 | <ET> ::= "context(" <STR> ")" | 275 | <ET> ::= "context(" <STR> ")" |
242 | 276 | "probable-cause(" <STR> ")" | 276 | "probable-cause(" <STR> ")" |
243 | 277 | "human-intervention(" <HI> ")" | 277 | "human-intervention(" <HI> ")" |
244 | @@ -283,7 +283,13 @@ | |||
245 | 283 | <A> ::= "run(" <STR> ")" | 283 | <A> ::= "run(" <STR> ")" |
246 | 284 | | "display-mail(" <STR> ")" | 284 | | "display-mail(" <STR> ")" |
247 | 285 | | "display-permissions(" <STR> ")" | 285 | | "display-permissions(" <STR> ")" |
249 | 286 | <ET> ::= "new-mails(" <NUM> ")" <SPC> "del-mails(" <NUM> ")" | 286 | <ST> ::= "new-mails(" <NUM> ")" <SPC> |
250 | 287 | "del-mails(" <NUM> ")" <SPC> | ||
251 | 288 | "bytes-received(" <NUM> ")" <SPC> | ||
252 | 289 | "xdelta-received(" <NUM> ")" <SPC> | ||
253 | 290 | "xdelta-received(" <NUM> ")" | ||
254 | 291 | <DR> ::= "mail-transferred(" <ML> ")" | ||
255 | 292 | <ML> ::= <STR> | <STR> " , " <ML> | ||
256 | 287 | <NUM> ::= `[0-9]+` | 293 | <NUM> ::= `[0-9]+` |
257 | 288 | <SPC> ::= ` *,? *` | 294 | <SPC> ::= ` *,? *` |
258 | 289 | 295 | ||
259 | 290 | 296 | ||
260 | === modified file 'Makefile' | |||
261 | --- Makefile 2011-12-13 07:43:14 +0000 | |||
262 | +++ Makefile 2012-11-26 22:25:07 +0000 | |||
263 | @@ -3,12 +3,12 @@ | |||
264 | 3 | # should care about them | 3 | # should care about them |
265 | 4 | 4 | ||
266 | 5 | PROJECTNAME=syncmaildir | 5 | PROJECTNAME=syncmaildir |
269 | 6 | VERSION=1.2.2 | 6 | VERSION=1.2.5 |
270 | 7 | COPYRIGHT=© 2008-2011 Enrico Tassi <gares@fettunta.org> | 7 | COPYRIGHT=© 2008-2012 Enrico Tassi <gares@fettunta.org> |
271 | 8 | BINARIES=mddiff smd-applet | 8 | BINARIES=mddiff smd-applet |
272 | 9 | MANPAGES1=mddiff.1 smd-server.1 smd-client.1 \ | 9 | MANPAGES1=mddiff.1 smd-server.1 smd-client.1 \ |
273 | 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 \ |
275 | 11 | smd-check-conf.1 | 11 | smd-check-conf.1 smd-restricted-shell.1 smd-uniform-names.1 |
276 | 12 | MANPAGES5=smd-config.5 | 12 | MANPAGES5=smd-config.5 |
277 | 13 | HTML=index.html design.html hooks.html | 13 | HTML=index.html design.html hooks.html |
278 | 14 | DESTDIR= | 14 | DESTDIR= |
279 | @@ -17,17 +17,17 @@ | |||
280 | 17 | SF_WEB=htdocs | 17 | SF_WEB=htdocs |
281 | 18 | TEST_SIZE=100 | 18 | TEST_SIZE=100 |
282 | 19 | TEST_MAILBOX=misc/Mail.TEST.tgz | 19 | TEST_MAILBOX=misc/Mail.TEST.tgz |
284 | 20 | TEST_SUITES=mddiff client-server pull-push | 20 | TEST_SUITES=mddiff client-server pull-push migration |
285 | 21 | BENCH_SIZE=25000 | 21 | BENCH_SIZE=25000 |
286 | 22 | BENCH_MAILBOX=misc/Mail.BENCH.tgz | 22 | BENCH_MAILBOX=misc/Mail.BENCH.tgz |
287 | 23 | BENCH_SUITES=benchmarks | 23 | BENCH_SUITES=benchmarks |
288 | 24 | PKG_GTK=gtk+-3.0 | 24 | PKG_GTK=gtk+-3.0 |
289 | 25 | SMD_APPLET_C=smd-applet.c | 25 | SMD_APPLET_C=smd-applet.c |
290 | 26 | PKGS_VALA=glib-2.0 $(PKG_GTK) libnotify gconf-2.0 gee-1.0 gio-2.0 gthread-2.0 | 26 | PKGS_VALA=glib-2.0 $(PKG_GTK) libnotify gconf-2.0 gee-1.0 gio-2.0 gthread-2.0 |
293 | 27 | MIN_GLIB_VERSION=2.19.1 | 27 | TARGET_GLIB=2.32 |
294 | 28 | PKGCONFIG_CHECK_GLIB_VERSION=--atleast-version=$(MIN_GLIB_VERSION) glib-2.0 | 28 | PKGCONFIG_CHECK_GLIB_VERSION=--atleast-version=$(TARGET_GLIB) glib-2.0 |
295 | 29 | PKGCONFIG_GLIB_VERSION=--modversion glib-2.0 | 29 | PKGCONFIG_GLIB_VERSION=--modversion glib-2.0 |
297 | 30 | VALAC=valac-0.14 | 30 | VALAC=valac-0.16 |
298 | 31 | H=@ | 31 | H=@ |
299 | 32 | 32 | ||
300 | 33 | # ---------------------------------------------------------------------------- | 33 | # ---------------------------------------------------------------------------- |
301 | @@ -41,8 +41,7 @@ | |||
302 | 41 | SSH=ssh | 41 | SSH=ssh |
303 | 42 | LUAV=5.1 | 42 | LUAV=5.1 |
304 | 43 | LUA=lua$(LUAV) | 43 | LUA=lua$(LUAV) |
307 | 44 | CFLAGS=-O2 -Wall -Wextra -Wcast-align -g -I . | 44 | CFLAGS=-O2 -Wall -Wextra -Wcast-align -g |
306 | 45 | CFLAGS_VALA=-O2 -w -g -I . | ||
308 | 46 | PKG_FLAGS= | 45 | PKG_FLAGS= |
309 | 47 | 46 | ||
310 | 48 | # ---------------------------------------------------------------------------- | 47 | # ---------------------------------------------------------------------------- |
311 | @@ -66,6 +65,7 @@ | |||
312 | 66 | $H if which $(VALAC) >/dev/null; then \ | 65 | $H if which $(VALAC) >/dev/null; then \ |
313 | 67 | echo "VALAC $^"; \ | 66 | echo "VALAC $^"; \ |
314 | 68 | $(VALAC) -C $^ --thread --vapidir=./ \ | 67 | $(VALAC) -C $^ --thread --vapidir=./ \ |
315 | 68 | --target-glib=$(TARGET_GLIB) \ | ||
316 | 69 | --pkg posix $(patsubst %,--pkg %,$(PKGS_VALA)); \ | 69 | --pkg posix $(patsubst %,--pkg %,$(PKGS_VALA)); \ |
317 | 70 | elif [ -e smd-applet.c ]; then \ | 70 | elif [ -e smd-applet.c ]; then \ |
318 | 71 | echo "** No $(VALAC), reusing precompiled .c files"; \ | 71 | echo "** No $(VALAC), reusing precompiled .c files"; \ |
319 | @@ -82,18 +82,19 @@ | |||
320 | 82 | mddiff: mddiff.c smd-config.h | 82 | mddiff: mddiff.c smd-config.h |
321 | 83 | @echo CC $< | 83 | @echo CC $< |
322 | 84 | $H $(CC) $(CFLAGS) $< -o $@ \ | 84 | $H $(CC) $(CFLAGS) $< -o $@ \ |
324 | 85 | `pkg-config $(PKG_FLAGS) --cflags --libs glib-2.0` | 85 | `pkg-config $(PKG_FLAGS) --cflags --libs glib-2.0` $(LDFLAGS) |
325 | 86 | 86 | ||
326 | 87 | smd-applet: $(SMD_APPLET_C) smd-config.h | 87 | smd-applet: $(SMD_APPLET_C) smd-config.h |
327 | 88 | @echo CC $< | 88 | @echo CC $< |
330 | 89 | $H $(CC) $(CFLAGS_VALA) $< -o $@ \ | 89 | $H $(CC) $(CFLAGS) -w $< -o $@ \ |
331 | 90 | `pkg-config $(PKG_FLAGS) --cflags --libs $(PKGS_VALA)` | 90 | `pkg-config $(PKG_FLAGS) --cflags --libs $(PKGS_VALA)` \ |
332 | 91 | $(LDFLAGS) | ||
333 | 91 | 92 | ||
334 | 92 | check-build: check-w-gcc check-w-$(VALAC) | 93 | check-build: check-w-gcc check-w-$(VALAC) |
335 | 93 | $H pkg-config $(PKGCONFIG_CHECK_GLIB_VERSION) || \ | 94 | $H pkg-config $(PKGCONFIG_CHECK_GLIB_VERSION) || \ |
336 | 94 | (echo glib version too old: \ | 95 | (echo glib version too old: \ |
337 | 95 | `pkg-config $(PKGCONFIG_GLIB_VERSION)`; \ | 96 | `pkg-config $(PKGCONFIG_GLIB_VERSION)`; \ |
339 | 96 | echo required version: $(MIN_GLIB_VERSION); \ | 97 | echo required version: $(TARGET_GLIB); \ |
340 | 97 | false) | 98 | false) |
341 | 98 | 99 | ||
342 | 99 | check-run: check-w-$(LUA) check-w-bash | 100 | check-run: check-w-$(LUA) check-w-bash |
343 | @@ -171,15 +172,17 @@ | |||
344 | 171 | $(call install-replacing,smd-push,bin) | 172 | $(call install-replacing,smd-push,bin) |
345 | 172 | $(call install-replacing,smd-translate,bin) | 173 | $(call install-replacing,smd-translate,bin) |
346 | 173 | $(call install-replacing,smd-check-conf,bin) | 174 | $(call install-replacing,smd-check-conf,bin) |
347 | 175 | $(call install-replacing,smd-uniform-names,bin) | ||
348 | 176 | $(call install-replacing,smd-restricted-shell,bin) | ||
349 | 174 | $(call install-replacing,smd-loop,bin) | 177 | $(call install-replacing,smd-loop,bin) |
350 | 175 | $(call install-replacing,smd-common,share/$(PROJECTNAME)) | 178 | $(call install-replacing,smd-common,share/$(PROJECTNAME)) |
351 | 176 | $(call install-replacing,syncmaildir.lua,share/lua/$(LUAV)) | 179 | $(call install-replacing,syncmaildir.lua,share/lua/$(LUAV)) |
352 | 177 | 180 | ||
353 | 178 | install-misc: $(MANPAGES1) $(MANPAGES5) | 181 | install-misc: $(MANPAGES1) $(MANPAGES5) |
354 | 179 | mkdir -p $(DESTDIR)/etc/xdg/autostart | 182 | mkdir -p $(DESTDIR)/etc/xdg/autostart |
355 | 180 | cp smd-applet.desktop $(DESTDIR)/etc/xdg/autostart | ||
356 | 181 | $(call mkdir-p,share/applications) | 183 | $(call mkdir-p,share/applications) |
357 | 182 | $(call install,smd-applet-configure.desktop,share/applications) | 184 | $(call install,smd-applet-configure.desktop,share/applications) |
358 | 185 | $(call install,smd-applet.desktop,share/applications) | ||
359 | 183 | $(call install,smd-applet.ui,share/$(PROJECTNAME)-applet) | 186 | $(call install,smd-applet.ui,share/$(PROJECTNAME)-applet) |
360 | 184 | $(call mkdir-p,share/man/man1) | 187 | $(call mkdir-p,share/man/man1) |
361 | 185 | $(call mkdir-p,share/man/man5) | 188 | $(call mkdir-p,share/man/man5) |
362 | @@ -255,27 +258,31 @@ | |||
363 | 255 | $H $(MAKE) $* \ | 258 | $H $(MAKE) $* \ |
364 | 256 | BINARIES="$(subst smd-applet,,$(BINARIES))" \ | 259 | BINARIES="$(subst smd-applet,,$(BINARIES))" \ |
365 | 257 | MANPAGES1="$(subst smd-applet.1,,$(MANPAGES1))" \ | 260 | MANPAGES1="$(subst smd-applet.1,,$(MANPAGES1))" \ |
367 | 258 | PREFIX="$(PREFIX)" VALAC=ls H=$H | 261 | PREFIX="$(PREFIX)" VALAC=ls H=$H \ |
368 | 262 | CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" | ||
369 | 259 | 263 | ||
370 | 260 | static/%: | 264 | static/%: |
371 | 261 | $H $(MAKE) $* \ | 265 | $H $(MAKE) $* \ |
372 | 262 | CFLAGS="$(CFLAGS) -static " \ | 266 | CFLAGS="$(CFLAGS) -static " \ |
373 | 263 | PKG_FLAGS="$(PKG_FLAGS) --static " \ | 267 | PKG_FLAGS="$(PKG_FLAGS) --static " \ |
375 | 264 | PREFIX="$(PREFIX)" H=$H | 268 | PREFIX="$(PREFIX)" H=$H LDFLAGS="$(LDFLAGS)" |
376 | 265 | 269 | ||
377 | 266 | gnome2/%: | 270 | gnome2/%: |
378 | 267 | $H gunzip -c misc/smd-applet-1.0.0.c.gz > misc/smd-applet-1.0.0.c | 271 | $H gunzip -c misc/smd-applet-1.0.0.c.gz > misc/smd-applet-1.0.0.c |
379 | 268 | $H $(MAKE) $* \ | 272 | $H $(MAKE) $* \ |
381 | 269 | SMD_APPLET_C=misc/smd-applet-1.0.0.c PKG_GTK=gtk+-2.0 | 273 | SMD_APPLET_C=misc/smd-applet-1.0.0.c PKG_GTK=gtk+-2.0 \ |
382 | 274 | CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" TARGET_GLIB="2.19.1" | ||
383 | 270 | 275 | ||
384 | 271 | 276 | ||
385 | 272 | osx/%: | 277 | osx/%: |
387 | 273 | $H $(MAKE) $* SED=sed PREFIX="$(PREFIX)" H=$H | 278 | $H $(MAKE) $* SED=sed PREFIX="$(PREFIX)" H=$H \ |
388 | 279 | CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" | ||
389 | 274 | 280 | ||
390 | 275 | abspath/%: | 281 | abspath/%: |
391 | 276 | $H $(MAKE) $* SED=/bin/sed \ | 282 | $H $(MAKE) $* SED=/bin/sed \ |
392 | 277 | XDELTA=/usr/bin/xdelta SSH=/usr/bin/ssh \ | 283 | XDELTA=/usr/bin/xdelta SSH=/usr/bin/ssh \ |
394 | 278 | PREFIX="$(PREFIX)" H=$H | 284 | PREFIX="$(PREFIX)" H=$H \ |
395 | 285 | CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" | ||
396 | 279 | 286 | ||
397 | 280 | .PHONY : update-smd-config | 287 | .PHONY : update-smd-config |
398 | 281 | # eof | 288 | # eof |
399 | 282 | 289 | ||
400 | === modified file 'README' | |||
401 | --- README 2011-12-01 16:17:28 +0000 | |||
402 | +++ README 2012-11-26 22:25:07 +0000 | |||
403 | @@ -3,7 +3,7 @@ | |||
404 | 3 | 3 | ||
405 | 4 | Sync Mail Dir (`smd`) is a set of tools to synchronize a pair of mailboxes | 4 | Sync Mail Dir (`smd`) is a set of tools to synchronize a pair of mailboxes |
406 | 5 | in Maildir format. It is Free Software, released under the terms of GPLv3, | 5 | in Maildir format. It is Free Software, released under the terms of GPLv3, |
408 | 6 | Copyright © 2008-2011 Enrico Tassi. | 6 | Copyright © 2008-2012 Enrico Tassi. |
409 | 7 | 7 | ||
410 | 8 | It differs from other solutions in terms of performances and lower | 8 | It differs from other solutions in terms of performances and lower |
411 | 9 | installation requirements. The widespread solution IMAP-server plus | 9 | installation requirements. The widespread solution IMAP-server plus |
412 | @@ -76,6 +76,14 @@ | |||
413 | 76 | performs a quick check that a setup, especially when it involves | 76 | performs a quick check that a setup, especially when it involves |
414 | 77 | some folders renaming, actually works as expected. This tool is meant to | 77 | some folders renaming, actually works as expected. This tool is meant to |
415 | 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. |
416 | 79 | - [`smd-restricted-shell`](smd-restricted-shell.1.html) | ||
417 | 80 | only meant to be used in conjunction with an SSH key and specifically in | ||
418 | 81 | the remote OpenSSH's authorized_keys file to restrict the commands allowed. | ||
419 | 82 | - [`smd-uniform-names`](smd-uniform-names.1.html) | ||
420 | 83 | meant to be used before the first synchronization, when the content of | ||
421 | 84 | the local and remote mailboxes is similar, but mails are named differently. | ||
422 | 85 | This is often the case when migrating from offlineimap, that encodes | ||
423 | 86 | some metadata in the local file names. | ||
424 | 79 | - [`smd-loop`](smd-loop.1.html) | 87 | - [`smd-loop`](smd-loop.1.html) |
425 | 80 | runs runs smd-push and smd-pull at regular intervals as defined | 88 | runs runs smd-push and smd-pull at regular intervals as defined |
426 | 81 | by the user in a configuration file, in the style of a crontab, but | 89 | by the user in a configuration file, in the style of a crontab, but |
427 | @@ -198,6 +206,20 @@ | |||
428 | 198 | Advanced Usage | 206 | Advanced Usage |
429 | 199 | ============== | 207 | ============== |
430 | 200 | 208 | ||
431 | 209 | ### restricted remote shell | ||
432 | 210 | |||
433 | 211 | Version `1.2.3` comes with `smd-restricted-shell` to improve security, | ||
434 | 212 | especially when using password-less SSH keys. This tool takes | ||
435 | 213 | advantage of the OpenSSH command= option, which permits to restrict | ||
436 | 214 | the command that is allowed to be executed on the remote host when the | ||
437 | 215 | login is performed using a particular SSH key. | ||
438 | 216 | |||
439 | 217 | Once you have identified in the ~/.ssh/authorized_keys on the remote | ||
440 | 218 | host the SSH key you use together with Sync Mail Dir, prepend the line | ||
441 | 219 | as in the following example: | ||
442 | 220 | |||
443 | 221 | command="/usr/bin/smd-restricted-shell" ssh-rsa AAAABBBBCCCC.... | ||
444 | 222 | |||
445 | 201 | ### multiple servers | 223 | ### multiple servers |
446 | 202 | 224 | ||
447 | 203 | From verion `0.9.4` multiple configuration files are supported. This means | 225 | From verion `0.9.4` multiple configuration files are supported. This means |
448 | @@ -234,7 +256,7 @@ | |||
449 | 234 | `smd-push/pull` will return after the hooks terminate | 256 | `smd-push/pull` will return after the hooks terminate |
450 | 235 | 257 | ||
451 | 236 | Hooks should not fail, if they do so then `smd-push/pull` will fail too. | 258 | Hooks should not fail, if they do so then `smd-push/pull` will fail too. |
453 | 237 | Sample hooks are available in the source tarball under the `sample-hooks/`. | 259 | Sample hooks are available in the source tarball under `sample-hooks/`. |
454 | 238 | Some documentation about [available hooks](hooks.html) is also present. | 260 | Some documentation about [available hooks](hooks.html) is also present. |
455 | 239 | 261 | ||
456 | 240 | ### folder renaming | 262 | ### folder renaming |
457 | @@ -275,7 +297,11 @@ | |||
458 | 275 | could be: | 297 | could be: |
459 | 276 | 298 | ||
460 | 277 | #!/bin/sh | 299 | #!/bin/sh |
462 | 278 | sed 's/^Maildir\(.*\)$/Mail\1/' | sed 's?/\.?/?' | 300 | sed --unbuffered -e 's/^Maildir\(.*\)$/Mail\1/' -e 's?/\.?/?' |
463 | 301 | |||
464 | 302 | Note the `--unbuffered`: translators should not work in buffered mode. | ||
465 | 303 | I.e. when given a line in input (terminated by `\n`) they must output a | ||
466 | 304 | line without expecting any additional input. | ||
467 | 279 | 305 | ||
468 | 280 | Translating the way back is trickier, since the leading `.` must be | 306 | Translating the way back is trickier, since the leading `.` must be |
469 | 281 | added only to sub-folders: | 307 | added only to sub-folders: |
470 | @@ -283,9 +309,9 @@ | |||
471 | 283 | #!/bin/sh | 309 | #!/bin/sh |
472 | 284 | t() { | 310 | t() { |
473 | 285 | if [ "$1" = Mail/cur -o "$1" = Mail/tmp -o "$1" = Mail/new ]; then | 311 | if [ "$1" = Mail/cur -o "$1" = Mail/tmp -o "$1" = Mail/new ]; then |
475 | 286 | echo $1 | sed 's?^Mail/\(.*\)?Maildir/\1?' | 312 | echo $1 | sed --unbuffered 's?^Mail/\(.*\)?Maildir/\1?' |
476 | 287 | else | 313 | else |
478 | 288 | echo $1 | sed 's?^Mail/\(.*\)?Maildir/.\1?' | 314 | echo $1 | sed --unbuffered 's?^Mail/\(.*\)?Maildir/.\1?' |
479 | 289 | fi | 315 | fi |
480 | 290 | } | 316 | } |
481 | 291 | while read M; do t "$M"; done | 317 | while read M; do t "$M"; done |
482 | @@ -339,6 +365,46 @@ | |||
483 | 339 | the matching succeeds the derectory and all its subdirectories are skipped. | 365 | the matching succeeds the derectory and all its subdirectories are skipped. |
484 | 340 | Thus there is no need to specify a trailing '`/*`' in every expression. | 366 | Thus there is no need to specify a trailing '`/*`' in every expression. |
485 | 341 | 367 | ||
486 | 368 | ### local synchronization | ||
487 | 369 | |||
488 | 370 | If the remote and local mailboxes are on the same filesystem, one has | ||
489 | 371 | to specify the `-l` option to `smd-client`. This option can be specified | ||
490 | 372 | adding to the configuration file `SMDCLIENTOPTS=-l` and set | ||
491 | 373 | `SERVERNAME=localhost`. | ||
492 | 374 | |||
493 | 375 | ### avoid deletions | ||
494 | 376 | |||
495 | 377 | In some cases, usually unidirectional synchronizations, one may want | ||
496 | 378 | to not propagate deletions. E.g. one keeps a slim working mailbox but | ||
497 | 379 | pushes to a backup mailbox to save every email. For that scenario | ||
498 | 380 | smd-pull and smd-push accept a -n, --no-delete, option. | ||
499 | 381 | To avoid specifying this option every time one can put it in the | ||
500 | 382 | configuration file: | ||
501 | 383 | |||
502 | 384 | SMDSERVEROPTS=-n | ||
503 | 385 | |||
504 | 386 | ### migration from offlineimap | ||
505 | 387 | |||
506 | 388 | Migrating from offlineimap may require an extra step, since the local and | ||
507 | 389 | remote mailboxes may not only differ in their names and sub folders, but also | ||
508 | 390 | in the names of the single mail messages. Indeed offlineimap encodes some | ||
509 | 391 | metadata in the file names local to the client. The `smd-translate` utility | ||
510 | 392 | translates only folder names and not messages names. | ||
511 | 393 | |||
512 | 394 | To uniform the names used on the client to the ones used on the server you can | ||
513 | 395 | do as follows: | ||
514 | 396 | |||
515 | 397 | 1. Remove `X-OfflineIMAP` from every mail that contains it. | ||
516 | 398 | Often the same email has that extra header line on the server but not on | ||
517 | 399 | the client. A not so dirty way of achieving that is the following snippet: | ||
518 | 400 | `find Mail -type f -exec sed -i '/^X-OfflineIMAP/d' {} \;` | ||
519 | 401 | |||
520 | 402 | 2. Run the `smd-uniform-names` utility. | ||
521 | 403 | This utility has to be run before the first synchronization, but after smd | ||
522 | 404 | is configured and `smd-check-conf` has reported no errors. | ||
523 | 405 | `smd-uniform-names` does not modify the mailbox, but instead it generates a | ||
524 | 406 | shell script that you can run to perform the renaming. | ||
525 | 407 | |||
526 | 342 | Installation | 408 | Installation |
527 | 343 | ============ | 409 | ============ |
528 | 344 | 410 | ||
529 | @@ -356,7 +422,6 @@ | |||
530 | 356 | install text mode only syncmaildir utilities on an MacOSX platform. | 422 | install text mode only syncmaildir utilities on an MacOSX platform. |
531 | 357 | 423 | ||
532 | 358 | Runtime dependencies are: `ssh`, `xdelta`, `lua5.1` and `bash`. | 424 | Runtime dependencies are: `ssh`, `xdelta`, `lua5.1` and `bash`. |
533 | 359 | Moreover some core utilities are also needed: `sha1sum`, `mkfifo` and `mkdir`. | ||
534 | 360 | 425 | ||
535 | 361 | Design | 426 | Design |
536 | 362 | ====== | 427 | ====== |
537 | 363 | 428 | ||
538 | === modified file 'debian/changelog' | |||
539 | --- debian/changelog 2011-12-13 07:43:14 +0000 | |||
540 | +++ debian/changelog 2012-11-26 22:25:07 +0000 | |||
541 | @@ -1,3 +1,34 @@ | |||
542 | 1 | syncmaildir (1.2.5-1ubuntu1) raring; urgency=low | ||
543 | 2 | |||
544 | 3 | * Merge from Debian unstable. Remaining changes: | ||
545 | 4 | - fix-ftbfs-libgthread-link.patch: Fix FTBFS with libgthread linking. | ||
546 | 5 | * Refreshed fix-ftbfs-libgthread-link.patch. | ||
547 | 6 | |||
548 | 7 | -- Logan Rosen <logatronico@gmail.com> Mon, 26 Nov 2012 17:14:33 -0500 | ||
549 | 8 | |||
550 | 9 | syncmaildir (1.2.5-1) unstable; urgency=low | ||
551 | 10 | |||
552 | 11 | * New upstream release | ||
553 | 12 | |||
554 | 13 | -- Enrico Tassi <gareuselesinge@debian.org> Mon, 11 Jun 2012 12:15:44 +0200 | ||
555 | 14 | |||
556 | 15 | syncmaildir (1.2.4-1) unstable; urgency=low | ||
557 | 16 | |||
558 | 17 | * New upstream release | ||
559 | 18 | * NEWS.Debian announces that smd-applet is able to handle XDG compliant | ||
560 | 19 | autostrat in user's session (no more system wide) | ||
561 | 20 | |||
562 | 21 | -- Enrico Tassi <gareuselesinge@debian.org> Mon, 28 May 2012 19:39:23 +0200 | ||
563 | 22 | |||
564 | 23 | syncmaildir (1.2.3-1) unstable; urgency=low | ||
565 | 24 | |||
566 | 25 | * New upstream release including the new utility smd-restricted-shell to | ||
567 | 26 | be used in conjunction with .ssh/authorized_keys command option | ||
568 | 27 | * This version of the software emits progress reports when run in verbose | ||
569 | 28 | mode (Closes: #659263) | ||
570 | 29 | |||
571 | 30 | -- Enrico Tassi <gareuselesinge@debian.org> Sat, 03 Mar 2012 12:55:55 +0100 | ||
572 | 31 | |||
573 | 1 | syncmaildir (1.2.2-1ubuntu1) precise; urgency=low | 32 | syncmaildir (1.2.2-1ubuntu1) precise; urgency=low |
574 | 2 | 33 | ||
575 | 3 | * Fix FTBFS with libgthread linking. | 34 | * Fix FTBFS with libgthread linking. |
576 | @@ -8,7 +39,7 @@ | |||
577 | 8 | 39 | ||
578 | 9 | * New upstream release | 40 | * New upstream release |
579 | 10 | 41 | ||
581 | 11 | -- Enrico Tassi <gareuselesinge@debian.org> Thu, 01 Dec 2011 16:17:28 +0100 | 42 | -- Enrico Tassi <gareuselesinge@debian.org> Sat, 25 Feb 2012 13:57:47 +0100 |
582 | 12 | 43 | ||
583 | 13 | syncmaildir (1.2.1-1) unstable; urgency=low | 44 | syncmaildir (1.2.1-1) unstable; urgency=low |
584 | 14 | 45 | ||
585 | 15 | 46 | ||
586 | === modified file 'debian/control' | |||
587 | --- debian/control 2011-12-13 07:43:14 +0000 | |||
588 | +++ debian/control 2012-11-26 22:25:07 +0000 | |||
589 | @@ -4,7 +4,7 @@ | |||
590 | 4 | Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com> | 4 | Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com> |
591 | 5 | XSBC-Original-Maintainer: Enrico Tassi <gareuselesinge@debian.org> | 5 | XSBC-Original-Maintainer: Enrico Tassi <gareuselesinge@debian.org> |
592 | 6 | Build-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) | 6 | Build-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) |
594 | 7 | Standards-Version: 3.9.1 | 7 | Standards-Version: 3.9.3 |
595 | 8 | Vcs-Git: git://git.debian.org/git/collab-maint/syncmaildir.git | 8 | Vcs-Git: git://git.debian.org/git/collab-maint/syncmaildir.git |
596 | 9 | Vcs-Browser: http://git.debian.org/?p=collab-maint/syncmaildir.git | 9 | Vcs-Browser: http://git.debian.org/?p=collab-maint/syncmaildir.git |
597 | 10 | Homepage: http://syncmaildir.sourceforge.net | 10 | Homepage: http://syncmaildir.sourceforge.net |
598 | @@ -32,7 +32,7 @@ | |||
599 | 32 | 32 | ||
600 | 33 | Package: syncmaildir-applet | 33 | Package: syncmaildir-applet |
601 | 34 | Architecture: any | 34 | Architecture: any |
603 | 35 | Depends: syncmaildir (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends}, libgnome2-0 | 35 | Depends: syncmaildir (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends} |
604 | 36 | Description: Sync Mail Dir GNOME applet | 36 | Description: Sync Mail Dir GNOME applet |
605 | 37 | Sync Mail Dir is a set of utilities to synchronize a pair of mail boxes | 37 | Sync Mail Dir is a set of utilities to synchronize a pair of mail boxes |
606 | 38 | in Maildir format, using SSH to transfer data. | 38 | in Maildir format, using SSH to transfer data. |
607 | 39 | 39 | ||
608 | === modified file 'debian/patches/fix-ftbfs-libgthread-link.patch' | |||
609 | --- debian/patches/fix-ftbfs-libgthread-link.patch 2011-12-13 07:43:14 +0000 | |||
610 | +++ debian/patches/fix-ftbfs-libgthread-link.patch 2012-11-26 22:25:07 +0000 | |||
611 | @@ -1,13 +1,11 @@ | |||
616 | 1 | Index: fix-ftbfs-precise/Makefile | 1 | --- a/Makefile |
617 | 2 | =================================================================== | 2 | +++ b/Makefile |
614 | 3 | --- fix-ftbfs-precise.orig/Makefile 2011-12-13 06:02:56.907864000 +0000 | ||
615 | 4 | +++ fix-ftbfs-precise/Makefile 2011-12-13 06:05:00.689731641 +0000 | ||
618 | 5 | @@ -23,7 +23,7 @@ | 3 | @@ -23,7 +23,7 @@ |
619 | 6 | BENCH_SUITES=benchmarks | 4 | BENCH_SUITES=benchmarks |
620 | 7 | PKG_GTK=gtk+-3.0 | 5 | PKG_GTK=gtk+-3.0 |
621 | 8 | SMD_APPLET_C=smd-applet.c | 6 | SMD_APPLET_C=smd-applet.c |
622 | 9 | -PKGS_VALA=glib-2.0 $(PKG_GTK) libnotify gconf-2.0 gee-1.0 gio-2.0 | 7 | -PKGS_VALA=glib-2.0 $(PKG_GTK) libnotify gconf-2.0 gee-1.0 gio-2.0 |
623 | 10 | +PKGS_VALA=glib-2.0 $(PKG_GTK) libnotify gconf-2.0 gee-1.0 gio-2.0 gthread-2.0 | 8 | +PKGS_VALA=glib-2.0 $(PKG_GTK) libnotify gconf-2.0 gee-1.0 gio-2.0 gthread-2.0 |
626 | 11 | MIN_GLIB_VERSION=2.19.1 | 9 | TARGET_GLIB=2.32 |
627 | 12 | PKGCONFIG_CHECK_GLIB_VERSION=--atleast-version=$(MIN_GLIB_VERSION) glib-2.0 | 10 | PKGCONFIG_CHECK_GLIB_VERSION=--atleast-version=$(TARGET_GLIB) glib-2.0 |
628 | 13 | PKGCONFIG_GLIB_VERSION=--modversion glib-2.0 | 11 | PKGCONFIG_GLIB_VERSION=--modversion glib-2.0 |
629 | 14 | 12 | ||
630 | === modified file 'debian/rules' | |||
631 | --- debian/rules 2011-03-04 10:53:56 +0000 | |||
632 | +++ debian/rules 2012-11-26 22:25:07 +0000 | |||
633 | @@ -9,7 +9,12 @@ | |||
634 | 9 | FLAVOUR=abspath/ | 9 | FLAVOUR=abspath/ |
635 | 10 | 10 | ||
636 | 11 | override_dh_auto_build: | 11 | override_dh_auto_build: |
638 | 12 | $(MAKE) $(FLAVOUR)all PREFIX=usr H= | 12 | $(MAKE) $(FLAVOUR)all PREFIX=usr H= \ |
639 | 13 | CFLAGS="$(shell dpkg-buildflags --get CFLAGS)" \ | ||
640 | 14 | LDFLAGS="$(shell dpkg-buildflags --get LDFLAGS)" | ||
641 | 15 | |||
642 | 16 | # Use this after weezy | ||
643 | 17 | # $(shell dpkg-buildflags --export=configure) | ||
644 | 13 | 18 | ||
645 | 14 | override_dh_auto_install: | 19 | override_dh_auto_install: |
646 | 15 | $(MAKE) $(FLAVOUR)install DESTDIR=debian/tmp PREFIX=usr H= | 20 | $(MAKE) $(FLAVOUR)install DESTDIR=debian/tmp PREFIX=usr H= |
647 | @@ -17,3 +22,6 @@ | |||
648 | 17 | override_dh_auto_test: | 22 | override_dh_auto_test: |
649 | 18 | VALGRIND=" " $(MAKE) --no-print-directory $(FLAVOUR)test PREFIX=usr H= | 23 | VALGRIND=" " $(MAKE) --no-print-directory $(FLAVOUR)test PREFIX=usr H= |
650 | 19 | 24 | ||
651 | 25 | override_dh_auto_clean: | ||
652 | 26 | dh_auto_clean | ||
653 | 27 | rm -f smd-config.h | ||
654 | 20 | 28 | ||
655 | === added file 'debian/syncmaildir-applet.NEWS' | |||
656 | --- debian/syncmaildir-applet.NEWS 1970-01-01 00:00:00 +0000 | |||
657 | +++ debian/syncmaildir-applet.NEWS 2012-11-26 22:25:07 +0000 | |||
658 | @@ -0,0 +1,13 @@ | |||
659 | 1 | syncmaildir (1.2.4-1) unstable; urgency=low | ||
660 | 2 | |||
661 | 3 | The syncmaildir-applet package does not ship an autostart file any | ||
662 | 4 | longer. It used to ship /etc/xdg/autostart/smd-applet.desktop | ||
663 | 5 | |||
664 | 6 | smd-applet is now able to register itself in the set of per-user | ||
665 | 7 | automatically started applications in ~/.config/autostart/ | ||
666 | 8 | |||
667 | 9 | To start smd-applet automatically start it by hand and right click | ||
668 | 10 | on the notification icon to open the options menu. There you will find | ||
669 | 11 | a "Start automatically" checkbox. | ||
670 | 12 | |||
671 | 13 | -- Enrico Tassi <gareuselesinge@debian.org> Mon, 21 May 2012 17:41:17 +0200 | ||
672 | 0 | 14 | ||
673 | === modified file 'debian/syncmaildir-applet.install' | |||
674 | --- debian/syncmaildir-applet.install 2009-07-26 18:56:41 +0000 | |||
675 | +++ debian/syncmaildir-applet.install 2012-11-26 22:25:07 +0000 | |||
676 | @@ -1,4 +1,3 @@ | |||
677 | 1 | usr/bin/smd-applet | 1 | usr/bin/smd-applet |
678 | 2 | usr/share/syncmaildir-applet/smd-applet.ui | 2 | usr/share/syncmaildir-applet/smd-applet.ui |
679 | 3 | etc/xdg/autostart/smd-applet.desktop | ||
680 | 4 | usr/share/applications/* | 3 | usr/share/applications/* |
681 | 5 | 4 | ||
682 | === modified file 'debian/syncmaildir.install' | |||
683 | --- debian/syncmaildir.install 2011-09-07 11:02:36 +0000 | |||
684 | +++ debian/syncmaildir.install 2012-11-26 22:25:07 +0000 | |||
685 | @@ -6,6 +6,8 @@ | |||
686 | 6 | usr/bin/smd-loop | 6 | usr/bin/smd-loop |
687 | 7 | usr/bin/smd-translate | 7 | usr/bin/smd-translate |
688 | 8 | usr/bin/smd-check-conf | 8 | usr/bin/smd-check-conf |
689 | 9 | usr/bin/smd-restricted-shell | ||
690 | 10 | usr/bin/smd-uniform-names | ||
691 | 9 | usr/share/lua/5.1/syncmaildir.lua | 11 | usr/share/lua/5.1/syncmaildir.lua |
692 | 10 | usr/share/syncmaildir/smd-common | 12 | usr/share/syncmaildir/smd-common |
693 | 11 | usr/share/doc/syncmaildir/ | 13 | usr/share/doc/syncmaildir/ |
694 | 12 | 14 | ||
695 | === modified file 'debian/syncmaildir.manpages' | |||
696 | --- debian/syncmaildir.manpages 2011-09-07 11:02:36 +0000 | |||
697 | +++ debian/syncmaildir.manpages 2012-11-26 22:25:07 +0000 | |||
698 | @@ -7,3 +7,5 @@ | |||
699 | 7 | smd-translate.1 | 7 | smd-translate.1 |
700 | 8 | smd-config.5 | 8 | smd-config.5 |
701 | 9 | smd-check-conf.1 | 9 | smd-check-conf.1 |
702 | 10 | smd-restricted-shell.1 | ||
703 | 11 | smd-uniform-names.1 | ||
704 | 10 | 12 | ||
705 | === modified file 'mddiff.1.txt' | |||
706 | --- mddiff.1.txt 2011-12-01 16:17:28 +0000 | |||
707 | +++ mddiff.1.txt 2012-11-26 22:25:07 +0000 | |||
708 | @@ -2,8 +2,8 @@ | |||
709 | 2 | mddiff - computes diff for maildirs | 2 | mddiff - computes diff for maildirs |
710 | 3 | SYNOPSIS | 3 | SYNOPSIS |
711 | 4 | mddiff [--max-mailno mno] [--db-file dbf] [-l|--list] [-s|--symlink] | 4 | mddiff [--max-mailno mno] [--db-file dbf] [-l|--list] [-s|--symlink] |
714 | 5 | [--exclude globexpr] [-v|--verbose] [-d|--dry-run] [--help] | 5 | [--exclude globexpr] [-v|--verbose] [-d|--dry-run] |
715 | 6 | [--sha1sum] paths | 6 | [-n|--no-delete] [--help] [--sha1sum] paths |
716 | 7 | DESCRIPTION | 7 | DESCRIPTION |
717 | 8 | mddiff computes the delta from an old status of a maildir (previously | 8 | mddiff computes the delta from an old status of a maildir (previously |
718 | 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, |
719 | @@ -54,6 +54,11 @@ | |||
720 | 54 | entered. If the match is successful, the directory and all its | 54 | entered. If the match is successful, the directory and all its |
721 | 55 | subedirectories are skipped. | 55 | subedirectories are skipped. |
722 | 56 | 56 | ||
723 | 57 | The --no-delete option tells mddiff to not output a DELETE action for | ||
724 | 58 | files that disappear. Note that a DELETE action is anyway generated for | ||
725 | 59 | files that are moved (i.e. move is COPY plus DELETE). The result is that | ||
726 | 60 | deletions are not propagated to the other endpoint. | ||
727 | 61 | |||
728 | 57 | OPTIONS | 62 | OPTIONS |
729 | 58 | --max-mailno mno Estimation of max mail message number (defaults to the | 63 | --max-mailno mno Estimation of max mail message number (defaults to the |
730 | 59 | number of messages in the db-file + 1000 or 500000 | 64 | number of messages in the db-file + 1000 or 500000 |
731 | @@ -69,6 +74,7 @@ | |||
732 | 69 | -s --symlink Create symlinks for paths read on the input fifo | 74 | -s --symlink Create symlinks for paths read on the input fifo |
733 | 70 | -v --verbose Increase program verbosity (printed on stderr) | 75 | -v --verbose Increase program verbosity (printed on stderr) |
734 | 71 | -d --dry-run Do not generate a new db-file | 76 | -d --dry-run Do not generate a new db-file |
735 | 77 | -n --no-delete Do not track deleted files | ||
736 | 72 | --help This help screen | 78 | --help This help screen |
737 | 73 | 79 | ||
738 | 74 | NOTES | 80 | NOTES |
739 | 75 | 81 | ||
740 | === modified file 'mddiff.c' | |||
741 | --- mddiff.c 2011-12-01 16:17:28 +0000 | |||
742 | +++ mddiff.c 2012-11-26 22:25:07 +0000 | |||
743 | @@ -138,6 +138,8 @@ | |||
744 | 138 | return outbuff; | 138 | return outbuff; |
745 | 139 | } | 139 | } |
746 | 140 | 140 | ||
747 | 141 | #define PROMOTE(what,from,to) ((what) = ((what) == (from)) ? (to) : (what)) | ||
748 | 142 | |||
749 | 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 |
750 | 142 | // we output commands lookig that flag | 144 | // we output commands lookig that flag |
751 | 143 | enum sight { | 145 | enum sight { |
752 | @@ -188,6 +190,7 @@ | |||
753 | 188 | STATIC int only_mkfifo; | 190 | STATIC int only_mkfifo; |
754 | 189 | STATIC int n_excludes; | 191 | STATIC int n_excludes; |
755 | 190 | STATIC char **excludes; | 192 | STATIC char **excludes; |
756 | 193 | STATIC int no_delete; | ||
757 | 191 | 194 | ||
758 | 192 | // ============================ helpers ===================================== | 195 | // ============================ helpers ===================================== |
759 | 193 | 196 | ||
760 | @@ -431,13 +434,14 @@ | |||
761 | 431 | STATIC void load_db(const char* dbname){ | 434 | STATIC void load_db(const char* dbname){ |
762 | 432 | FILE* fd; | 435 | FILE* fd; |
763 | 433 | int fields; | 436 | int fields; |
764 | 437 | int line=0; | ||
765 | 434 | char new_dbname[PATH_MAX]; | 438 | char new_dbname[PATH_MAX]; |
766 | 435 | 439 | ||
767 | 436 | snprintf(new_dbname,PATH_MAX,"%s.mtime",dbname); | 440 | snprintf(new_dbname,PATH_MAX,"%s.mtime",dbname); |
768 | 437 | 441 | ||
769 | 438 | fd = fopen(new_dbname,"r"); | 442 | fd = fopen(new_dbname,"r"); |
770 | 439 | if (fd == NULL){ | 443 | if (fd == NULL){ |
772 | 440 | WARNING(fopen,"unable to load db file '%s'\n",new_dbname); | 444 | WARNING(fopen,"unable to open db file '%s'\n",new_dbname); |
773 | 441 | lastcheck = 0L; | 445 | lastcheck = 0L; |
774 | 442 | } else { | 446 | } else { |
775 | 443 | fields = fscanf(fd,"%1$lu",&lastcheck); | 447 | fields = fscanf(fd,"%1$lu",&lastcheck); |
776 | @@ -462,6 +466,7 @@ | |||
777 | 462 | fields = fscanf(fd, | 466 | fields = fscanf(fd, |
778 | 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", |
779 | 464 | tmpbuff_1, tmpbuff_2, next_name()); | 468 | tmpbuff_1, tmpbuff_2, next_name()); |
780 | 469 | line++; | ||
781 | 465 | 470 | ||
782 | 466 | if (fields == EOF) { | 471 | if (fields == EOF) { |
783 | 467 | // deallocate mail entry | 472 | // deallocate mail entry |
784 | @@ -471,7 +476,8 @@ | |||
785 | 471 | 476 | ||
786 | 472 | // sanity checks | 477 | // sanity checks |
787 | 473 | if (fields != 3) | 478 | if (fields != 3) |
789 | 474 | ERROR(fscanf,"malformed db file '%s', please remove it\n",dbname); | 479 | ERROR(fscanf, "%s: malformed line %d: %d != 3 fields." |
790 | 480 | " Please remove this db file.\n", dbname, line, fields); | ||
791 | 475 | 481 | ||
792 | 476 | shatxt(tmpbuff_1, mail(m)->hsha); | 482 | shatxt(tmpbuff_1, mail(m)->hsha); |
793 | 477 | shatxt(tmpbuff_2, mail(m)->bsha); | 483 | shatxt(tmpbuff_2, mail(m)->bsha); |
794 | @@ -483,7 +489,8 @@ | |||
795 | 483 | mail(m)->seen=NOT_SEEN; | 489 | mail(m)->seen=NOT_SEEN; |
796 | 484 | 490 | ||
797 | 485 | // store it in the hash tables | 491 | // store it in the hash tables |
799 | 486 | g_hash_table_insert(bsha2mail,GPTR(m),GPTR(m)); | 492 | g_hash_table_insert(bsha2mail,GPTR(m), |
800 | 493 | g_slist_prepend(g_hash_table_lookup(bsha2mail,GPTR(m)),GPTR(m))); | ||
801 | 487 | g_hash_table_insert(filename2mail,GPTR(m),GPTR(m)); | 494 | g_hash_table_insert(filename2mail,GPTR(m),GPTR(m)); |
802 | 488 | 495 | ||
803 | 489 | } | 496 | } |
804 | @@ -533,9 +540,10 @@ | |||
805 | 533 | unsigned char *addr,*next; | 540 | unsigned char *addr,*next; |
806 | 534 | int fd; | 541 | int fd; |
807 | 535 | struct stat sb; | 542 | struct stat sb; |
809 | 536 | mail_t alias, bodyalias, m; | 543 | mail_t alias, m; |
810 | 537 | GChecksum* ctx; | 544 | GChecksum* ctx; |
811 | 538 | gsize ctx_len; | 545 | gsize ctx_len; |
812 | 546 | GSList *bodyaliases = NULL; | ||
813 | 539 | 547 | ||
814 | 540 | m = alloc_mail(); | 548 | m = alloc_mail(); |
815 | 541 | snprintf(next_name(), MAX_EMAIL_NAME_LEN,"%s/%s",dir,file); | 549 | snprintf(next_name(), MAX_EMAIL_NAME_LEN,"%s/%s",dir,file); |
816 | @@ -618,18 +626,25 @@ | |||
817 | 618 | } | 626 | } |
818 | 619 | } | 627 | } |
819 | 620 | 628 | ||
821 | 621 | bodyalias = MAIL(g_hash_table_lookup(bsha2mail,GPTR(m))); | 629 | bodyaliases = g_hash_table_lookup(bsha2mail,GPTR(m)); |
822 | 622 | 630 | ||
832 | 623 | if (bodyalias != 0) { | 631 | // some messages with the same body are there |
833 | 624 | if (hsha_equal(GPTR(bodyalias), GPTR(m))) { | 632 | if (bodyaliases != NULL) { |
834 | 625 | COMMAND_COPY(bodyalias,m); | 633 | mail_t firstalias = MAIL(bodyaliases->data); |
835 | 626 | mail(m)->seen=SEEN; | 634 | for(; bodyaliases != NULL; bodyaliases = g_slist_next(bodyaliases)) { |
836 | 627 | return; | 635 | mail_t bodyalias = MAIL(bodyaliases->data); |
837 | 628 | } else { | 636 | if (hsha_equal(GPTR(bodyalias), GPTR(m))) { |
838 | 629 | COMMAND_COPYBODY(bodyalias,m); | 637 | // this one has the same header too |
839 | 630 | mail(m)->seen=SEEN; | 638 | COMMAND_COPY(bodyalias,m); |
840 | 631 | return; | 639 | PROMOTE(mail(bodyalias)->seen, NOT_SEEN, MOVED); |
841 | 640 | mail(m)->seen=SEEN; | ||
842 | 641 | return; | ||
843 | 642 | } | ||
844 | 632 | } | 643 | } |
845 | 644 | // no full alias, we just recycle the body | ||
846 | 645 | COMMAND_COPYBODY(firstalias,m); | ||
847 | 646 | mail(m)->seen=SEEN; | ||
848 | 647 | return; | ||
849 | 633 | } | 648 | } |
850 | 634 | 649 | ||
851 | 635 | // we should add that file | 650 | // we should add that file |
852 | @@ -727,7 +742,11 @@ | |||
853 | 727 | size_t m; | 742 | size_t m; |
854 | 728 | 743 | ||
855 | 729 | for(m=1; m < mailno; m++){ | 744 | for(m=1; m < mailno; m++){ |
857 | 730 | if (mail(m)->seen == NOT_SEEN) | 745 | if (!no_delete && (mail(m)->seen == NOT_SEEN || mail(m)->seen == MOVED)) |
858 | 746 | // normally moved or removed mails are deleted | ||
859 | 747 | COMMAND_DELETE(m); | ||
860 | 748 | else if (no_delete && mail(m)->seen == MOVED) | ||
861 | 749 | // if --no-delete only moved mails should be deleted | ||
862 | 731 | COMMAND_DELETE(m); | 750 | COMMAND_DELETE(m); |
863 | 732 | else | 751 | else |
864 | 733 | VERBOSE(seen,"STATUS OF %s %s %s IS %s\n", | 752 | VERBOSE(seen,"STATUS OF %s %s %s IS %s\n", |
865 | @@ -808,7 +827,14 @@ | |||
866 | 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); |
867 | 809 | 828 | ||
868 | 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); |
870 | 811 | if (addr == MAP_FAILED) ERROR(mmap, "unable to load '%s'\n",file); | 830 | if (addr == MAP_FAILED){ |
871 | 831 | if (sb.st_size == 0) | ||
872 | 832 | // empty file | ||
873 | 833 | ; | ||
874 | 834 | else | ||
875 | 835 | // mmap failed | ||
876 | 836 | ERROR(mmap, "unable to load '%s'\n",file); | ||
877 | 837 | } | ||
878 | 812 | 838 | ||
879 | 813 | // calculate sha1 | 839 | // calculate sha1 |
880 | 814 | fprintf(stdout, "%s %s\n", | 840 | fprintf(stdout, "%s %s\n", |
881 | @@ -816,7 +842,7 @@ | |||
882 | 816 | file); | 842 | file); |
883 | 817 | g_free(sha1); | 843 | g_free(sha1); |
884 | 818 | 844 | ||
886 | 819 | munmap(addr, sb.st_size); | 845 | if (addr != MAP_FAILED) munmap(addr, sb.st_size); |
887 | 820 | close(fd); | 846 | close(fd); |
888 | 821 | } | 847 | } |
889 | 822 | 848 | ||
890 | @@ -841,6 +867,7 @@ | |||
891 | 841 | {"symlink" , no_argument , NULL, 's'}, | 867 | {"symlink" , no_argument , NULL, 's'}, |
892 | 842 | {"verbose" , no_argument , NULL, 'v'}, | 868 | {"verbose" , no_argument , NULL, 'v'}, |
893 | 843 | {"dry-run" , no_argument , NULL, 'd'}, | 869 | {"dry-run" , no_argument , NULL, 'd'}, |
894 | 870 | {"no-delete" , no_argument , NULL, 'n'}, | ||
895 | 844 | {"help" , no_argument , NULL, 'h'}, | 871 | {"help" , no_argument , NULL, 'h'}, |
896 | 845 | {NULL , no_argument , NULL, 0}, | 872 | {NULL , no_argument , NULL, 0}, |
897 | 846 | }; | 873 | }; |
898 | @@ -866,6 +893,7 @@ | |||
899 | 866 | "Symbolic Link generation mode (short -s)", | 893 | "Symbolic Link generation mode (short -s)", |
900 | 867 | "Increase program verbosity (printed on stderr, short -v)", | 894 | "Increase program verbosity (printed on stderr, short -v)", |
901 | 868 | "Do not generate a new db file (short -d)", | 895 | "Do not generate a new db file (short -d)", |
902 | 896 | "Do not track deletions (short -n)", | ||
903 | 869 | "This help screen", | 897 | "This help screen", |
904 | 870 | NULL | 898 | NULL |
905 | 871 | }; | 899 | }; |
906 | @@ -919,7 +947,7 @@ | |||
907 | 919 | g_assert(MAIL(GPTR(1)) == 1); | 947 | g_assert(MAIL(GPTR(1)) == 1); |
908 | 920 | 948 | ||
909 | 921 | for(;;) { | 949 | for(;;) { |
911 | 922 | c = getopt_long(argc, argv, "vhdls", long_options, &option_index); | 950 | c = getopt_long(argc, argv, "vhndls", long_options, &option_index); |
912 | 923 | if (c == -1) break; // no more args | 951 | if (c == -1) break; // no more args |
913 | 924 | switch (c) { | 952 | switch (c) { |
914 | 925 | case OPT_MAX_MAILNO: | 953 | case OPT_MAX_MAILNO: |
915 | @@ -948,6 +976,9 @@ | |||
916 | 948 | case 'd': | 976 | case 'd': |
917 | 949 | dry_run = 1; | 977 | dry_run = 1; |
918 | 950 | break; | 978 | break; |
919 | 979 | case 'n': | ||
920 | 980 | no_delete = 1; | ||
921 | 981 | break; | ||
922 | 951 | case 'l': | 982 | case 'l': |
923 | 952 | only_list_subfolders = 1; | 983 | only_list_subfolders = 1; |
924 | 953 | break; | 984 | break; |
925 | 954 | 985 | ||
926 | === modified file 'smd-applet.c' | |||
927 | --- smd-applet.c 2011-12-01 16:17:28 +0000 | |||
928 | +++ smd-applet.c 2012-11-26 22:25:07 +0000 | |||
929 | @@ -1,4 +1,4 @@ | |||
931 | 1 | /* smd-applet.c generated by valac 0.14.0, the Vala compiler | 1 | /* smd-applet.c generated by valac 0.16.0, the Vala compiler |
932 | 2 | * generated from smd-applet.vala, do not modify */ | 2 | * generated from smd-applet.vala, do not modify */ |
933 | 3 | 3 | ||
934 | 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.*/ |
935 | @@ -21,7 +21,7 @@ | |||
936 | 21 | #include <sys/types.h> | 21 | #include <sys/types.h> |
937 | 22 | #include <unistd.h> | 22 | #include <unistd.h> |
938 | 23 | #include <sys/wait.h> | 23 | #include <sys/wait.h> |
940 | 24 | #include <smd-config.h> | 24 | #include "smd-config.h" |
941 | 25 | #include <gobject/gvaluecollector.h> | 25 | #include <gobject/gvaluecollector.h> |
942 | 26 | 26 | ||
943 | 27 | 27 | ||
944 | @@ -62,7 +62,7 @@ | |||
945 | 62 | typedef struct _smdApplet smdApplet; | 62 | typedef struct _smdApplet smdApplet; |
946 | 63 | typedef struct _smdAppletClass smdAppletClass; | 63 | typedef struct _smdAppletClass smdAppletClass; |
947 | 64 | typedef struct _smdAppletPrivate smdAppletPrivate; | 64 | typedef struct _smdAppletPrivate smdAppletPrivate; |
949 | 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))) |
950 | 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))) |
951 | 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))) |
952 | 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))) |
953 | @@ -137,7 +137,7 @@ | |||
954 | 137 | GThread* thread; | 137 | GThread* thread; |
955 | 138 | gboolean thread_die; | 138 | gboolean thread_die; |
956 | 139 | GPid pid; | 139 | GPid pid; |
958 | 140 | GMutex* events_lock; | 140 | GMutex events_lock; |
959 | 141 | GeeArrayList* events; | 141 | GeeArrayList* events; |
960 | 142 | gboolean error_mode; | 142 | gboolean error_mode; |
961 | 143 | gboolean network_error_mode; | 143 | gboolean network_error_mode; |
962 | @@ -162,6 +162,8 @@ | |||
963 | 162 | gchar* SMD_LOOP_CFG = NULL; | 162 | gchar* SMD_LOOP_CFG = NULL; |
964 | 163 | extern gchar* SMD_PP_DEF_CFG; | 163 | extern gchar* SMD_PP_DEF_CFG; |
965 | 164 | gchar* SMD_PP_DEF_CFG = NULL; | 164 | gchar* SMD_PP_DEF_CFG = NULL; |
966 | 165 | extern gchar* XDG_AUTORUN_FILE; | ||
967 | 166 | gchar* XDG_AUTORUN_FILE = NULL; | ||
968 | 165 | static gpointer smd_applet_parent_class = NULL; | 167 | static gpointer smd_applet_parent_class = NULL; |
969 | 166 | extern gchar* smd_applet_smd_loop_cmd; | 168 | extern gchar* smd_applet_smd_loop_cmd; |
970 | 167 | gchar* smd_applet_smd_loop_cmd = NULL; | 169 | gchar* smd_applet_smd_loop_cmd = NULL; |
971 | @@ -169,6 +171,8 @@ | |||
972 | 169 | gchar* smd_applet_smd_applet_ui = NULL; | 171 | gchar* smd_applet_smd_applet_ui = NULL; |
973 | 170 | extern gchar* smd_applet_smd_push_cmd; | 172 | extern gchar* smd_applet_smd_push_cmd; |
974 | 171 | gchar* smd_applet_smd_push_cmd = NULL; | 173 | gchar* smd_applet_smd_push_cmd = NULL; |
975 | 174 | extern gchar* smd_applet_smd_applet_desktop; | ||
976 | 175 | gchar* smd_applet_smd_applet_desktop = NULL; | ||
977 | 172 | 176 | ||
978 | 173 | GQuark exit_quark (void); | 177 | GQuark exit_quark (void); |
979 | 174 | void debug (const gchar* message); | 178 | void debug (const gchar* message); |
980 | @@ -210,6 +214,8 @@ | |||
981 | 210 | #define SMD_LOOP "/bin/smd-loop" | 214 | #define SMD_LOOP "/bin/smd-loop" |
982 | 211 | #define SMD_PUSH "/bin/smd-push" | 215 | #define SMD_PUSH "/bin/smd-push" |
983 | 212 | #define SMD_APPLET_UI "/share/syncmaildir-applet/smd-applet.ui" | 216 | #define SMD_APPLET_UI "/share/syncmaildir-applet/smd-applet.ui" |
984 | 217 | #define SMD_APPLET_DESKTOP "/share/applications/smd-applet.desktop" | ||
985 | 218 | #define GNOME_AUTOSTART_DISABLED "X-GNOME-Autostart-enabled=false" | ||
986 | 213 | gpointer smd_applet_ref (gpointer instance); | 219 | gpointer smd_applet_ref (gpointer instance); |
987 | 214 | void smd_applet_unref (gpointer instance); | 220 | void smd_applet_unref (gpointer instance); |
988 | 215 | GParamSpec* param_spec_smd_applet (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags); | 221 | GParamSpec* param_spec_smd_applet (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags); |
989 | @@ -225,48 +231,50 @@ | |||
990 | 225 | #define SMD_APPLET_key_newmail "/apps/smd-applet/notify_new_mail" | 231 | #define SMD_APPLET_key_newmail "/apps/smd-applet/notify_new_mail" |
991 | 226 | smdApplet* smd_applet_new (gboolean hide_status_icon, GError** error); | 232 | smdApplet* smd_applet_new (gboolean hide_status_icon, GError** error); |
992 | 227 | smdApplet* smd_applet_construct (GType object_type, gboolean hide_status_icon, GError** error); | 233 | smdApplet* smd_applet_construct (GType object_type, gboolean hide_status_icon, GError** error); |
997 | 228 | static void ___lambda0_ (smdApplet* self, guint s); | 234 | static void ___lambda2_ (smdApplet* self, guint s); |
998 | 229 | static void ____lambda0__network_manager_state_changed (NetworkManager* _sender, guint state, gpointer self); | 235 | static void ____lambda2__network_manager_state_changed (NetworkManager* _sender, guint state, gpointer self); |
999 | 230 | static void __lambda1_ (smdApplet* self, GtkComboBox* cb); | 236 | static void __lambda3_ (smdApplet* self, GtkComboBox* cb); |
1000 | 231 | static void ___lambda1__gtk_combo_box_changed (GtkComboBox* _sender, gpointer self); | 237 | static void ___lambda3__gtk_combo_box_changed (GtkComboBox* _sender, gpointer self); |
1001 | 232 | static void smd_applet_close_logs_action (smdApplet* self, GtkButton* b); | 238 | static void smd_applet_close_logs_action (smdApplet* self, GtkButton* b); |
1002 | 233 | static void _smd_applet_close_logs_action_gtk_button_clicked (GtkButton* _sender, gpointer self); | 239 | static void _smd_applet_close_logs_action_gtk_button_clicked (GtkButton* _sender, gpointer self); |
1003 | 234 | static gboolean smd_applet_close_logs_event (smdApplet* self, GdkEventAny* e); | 240 | static gboolean smd_applet_close_logs_event (smdApplet* self, GdkEventAny* e); |
1004 | 235 | static gboolean _smd_applet_close_logs_event_gtk_widget_delete_event (GtkWidget* _sender, GdkEventAny* event, gpointer self); | 241 | static gboolean _smd_applet_close_logs_event_gtk_widget_delete_event (GtkWidget* _sender, GdkEventAny* event, gpointer self); |
1005 | 236 | static void smd_applet_close_prefs_action (smdApplet* self, GtkButton* b); | 242 | static void smd_applet_close_prefs_action (smdApplet* self, GtkButton* b); |
1006 | 237 | static void _smd_applet_close_prefs_action_gtk_button_clicked (GtkButton* _sender, gpointer self); | 243 | static void _smd_applet_close_prefs_action_gtk_button_clicked (GtkButton* _sender, gpointer self); |
1011 | 238 | static void __lambda3_ (smdApplet* self, GtkToggleButton* b); | 244 | static void __lambda5_ (smdApplet* self, GtkToggleButton* b); |
1012 | 239 | static void ___lambda3__gtk_toggle_button_toggled (GtkToggleButton* _sender, gpointer self); | 245 | static void ___lambda5__gtk_toggle_button_toggled (GtkToggleButton* _sender, gpointer self); |
1013 | 240 | static void __lambda4_ (smdApplet* self, GtkToggleButton* b); | 246 | static void __lambda6_ (smdApplet* self, GtkToggleButton* b); |
1014 | 241 | static void ___lambda4__gtk_toggle_button_toggled (GtkToggleButton* _sender, gpointer self); | 247 | static void ___lambda6__gtk_toggle_button_toggled (GtkToggleButton* _sender, gpointer self); |
1015 | 248 | static void __lambda7_ (smdApplet* self, GtkToggleButton* b); | ||
1016 | 249 | static void ___lambda7__gtk_toggle_button_toggled (GtkToggleButton* _sender, gpointer self); | ||
1017 | 242 | static void smd_applet_close_err_action (smdApplet* self, GtkButton* b); | 250 | static void smd_applet_close_err_action (smdApplet* self, GtkButton* b); |
1018 | 243 | static void _smd_applet_close_err_action_gtk_button_clicked (GtkButton* _sender, gpointer self); | 251 | static void _smd_applet_close_err_action_gtk_button_clicked (GtkButton* _sender, gpointer self); |
1020 | 244 | static void __lambda5_ (smdApplet* self, GtkButton* b); | 252 | static void __lambda8_ (smdApplet* self, GtkButton* b); |
1021 | 245 | static gboolean smd_applet_is_smd_loop_configured (smdApplet* self); | 253 | static gboolean smd_applet_is_smd_loop_configured (smdApplet* self); |
1024 | 246 | static void ___lambda5__gtk_button_clicked (GtkButton* _sender, gpointer self); | 254 | static void ___lambda8__gtk_button_clicked (GtkButton* _sender, gpointer self); |
1025 | 247 | static void __lambda6_ (smdApplet* self, GtkButton* b); | 255 | static void __lambda9_ (smdApplet* self, GtkButton* b); |
1026 | 248 | static gboolean smd_applet_is_smd_pushpull_configured (smdApplet* self); | 256 | static gboolean smd_applet_is_smd_pushpull_configured (smdApplet* self); |
1031 | 249 | static void ___lambda6__gtk_button_clicked (GtkButton* _sender, gpointer self); | 257 | static void ___lambda9__gtk_button_clicked (GtkButton* _sender, gpointer self); |
1032 | 250 | static void __lambda7_ (smdApplet* self, GtkMenuItem* b); | 258 | static void __lambda10_ (smdApplet* self, GtkMenuItem* b); |
1033 | 251 | static void ___lambda7__gtk_menu_item_activate (GtkMenuItem* _sender, gpointer self); | 259 | static void ___lambda10__gtk_menu_item_activate (GtkMenuItem* _sender, gpointer self); |
1034 | 252 | static void __lambda8_ (smdApplet* self, GtkCheckMenuItem* b); | 260 | static void __lambda11_ (smdApplet* self, GtkCheckMenuItem* b); |
1035 | 253 | static void smd_applet_pause (smdApplet* self); | 261 | static void smd_applet_pause (smdApplet* self); |
1036 | 254 | static void smd_applet_unpause (smdApplet* self); | 262 | static void smd_applet_unpause (smdApplet* self); |
1045 | 255 | static void ___lambda8__gtk_check_menu_item_toggled (GtkCheckMenuItem* _sender, gpointer self); | 263 | static void ___lambda11__gtk_check_menu_item_toggled (GtkCheckMenuItem* _sender, gpointer self); |
1046 | 256 | static void __lambda9_ (smdApplet* self, gint id); | 264 | static void __lambda12_ (smdApplet* self, gint id); |
1047 | 257 | static void ___lambda9__gtk_dialog_response (GtkDialog* _sender, gint response_id, gpointer self); | 265 | static void ___lambda12__gtk_dialog_response (GtkDialog* _sender, gint response_id, gpointer self); |
1048 | 258 | static void __lambda10_ (smdApplet* self, GtkMenuItem* b); | 266 | static void __lambda13_ (smdApplet* self, GtkMenuItem* b); |
1049 | 259 | static void ___lambda10__gtk_menu_item_activate (GtkMenuItem* _sender, gpointer self); | 267 | static void ___lambda13__gtk_menu_item_activate (GtkMenuItem* _sender, gpointer self); |
1050 | 260 | static void __lambda11_ (smdApplet* self, GtkMenuItem* b); | 268 | static void __lambda14_ (smdApplet* self, GtkMenuItem* b); |
1051 | 261 | static void ___lambda11__gtk_menu_item_activate (GtkMenuItem* _sender, gpointer self); | 269 | static void ___lambda14__gtk_menu_item_activate (GtkMenuItem* _sender, gpointer self); |
1052 | 262 | static void __lambda12_ (smdApplet* self, GtkMenuItem* b); | 270 | static void __lambda15_ (smdApplet* self, GtkMenuItem* b); |
1053 | 263 | static void smd_applet_update_loglist (smdApplet* self); | 271 | static void smd_applet_update_loglist (smdApplet* self); |
1056 | 264 | static void ___lambda12__gtk_menu_item_activate (GtkMenuItem* _sender, gpointer self); | 272 | static void ___lambda15__gtk_menu_item_activate (GtkMenuItem* _sender, gpointer self); |
1057 | 265 | static void __lambda13_ (smdApplet* self, guint button, guint time); | 273 | static void __lambda16_ (smdApplet* self, guint button, guint time); |
1058 | 266 | static void _gtk_status_icon_position_menu_gtk_menu_position_func (GtkMenu* menu, gint* x, gint* y, gboolean* push_in, gpointer self); | 274 | static void _gtk_status_icon_position_menu_gtk_menu_position_func (GtkMenu* menu, gint* x, gint* y, gboolean* push_in, gpointer self); |
1062 | 267 | static void ___lambda13__gtk_status_icon_popup_menu (GtkStatusIcon* _sender, guint button, guint activate_time, gpointer self); | 275 | static void ___lambda16__gtk_status_icon_popup_menu (GtkStatusIcon* _sender, guint button, guint activate_time, gpointer self); |
1063 | 268 | static void __lambda14_ (smdApplet* self, GtkStatusIcon* s); | 276 | static void __lambda17_ (smdApplet* self, GtkStatusIcon* s); |
1064 | 269 | static void ___lambda14__gtk_status_icon_activate (GtkStatusIcon* _sender, gpointer self); | 277 | static void ___lambda17__gtk_status_icon_activate (GtkStatusIcon* _sender, gpointer self); |
1065 | 270 | static void _g_object_unref0_ (gpointer var); | 278 | static void _g_object_unref0_ (gpointer var); |
1066 | 271 | static void _g_free0_ (gpointer var); | 279 | static void _g_free0_ (gpointer var); |
1067 | 272 | static void* smd_applet_smdThread (smdApplet* self); | 280 | static void* smd_applet_smdThread (smdApplet* self); |
1068 | @@ -275,13 +283,13 @@ | |||
1069 | 275 | static gpointer _smd_applet_smdThread_gthread_func (gpointer self); | 283 | static gpointer _smd_applet_smdThread_gthread_func (gpointer self); |
1070 | 276 | static gboolean smd_applet_eval_smd_loop_error_message (smdApplet* self, const gchar* args, const gchar* account, const gchar* host, GError** error); | 284 | static gboolean smd_applet_eval_smd_loop_error_message (smdApplet* self, const gchar* args, const gchar* account, const gchar* host, GError** error); |
1071 | 277 | static gboolean smd_applet_eval_smd_loop_message (smdApplet* self, const gchar* s); | 285 | static gboolean smd_applet_eval_smd_loop_message (smdApplet* self, const gchar* s); |
1074 | 278 | static void ___lambda2_ (smdApplet* self); | 286 | static void ___lambda4_ (smdApplet* self); |
1075 | 279 | static void ____lambda2__gspawn_child_setup_func (gpointer self); | 287 | static void ____lambda4__gspawn_child_setup_func (gpointer self); |
1076 | 280 | static gboolean smd_applet_eat_event (smdApplet* self); | 288 | static gboolean smd_applet_eat_event (smdApplet* self); |
1081 | 281 | static void ______lambda15_ (smdApplet* self, NotifyNotification* not, const gchar* action); | 289 | static void ______lambda18_ (smdApplet* self, NotifyNotification* not, const gchar* action); |
1082 | 282 | static void _______lambda15__notify_action_callback (NotifyNotification* notification, const gchar* action, gpointer self); | 290 | static void _______lambda18__notify_action_callback (NotifyNotification* notification, const gchar* action, gpointer self); |
1083 | 283 | static void ______lambda16_ (smdApplet* self, GtkButton* b); | 291 | static void ______lambda19_ (smdApplet* self, GtkButton* b); |
1084 | 284 | static void _______lambda16__gtk_button_clicked (GtkButton* _sender, gpointer self); | 292 | static void _______lambda19__gtk_button_clicked (GtkButton* _sender, gpointer self); |
1085 | 285 | static void smd_applet_reset_to_regular_run (smdApplet* self, gboolean force); | 293 | static void smd_applet_reset_to_regular_run (smdApplet* self, gboolean force); |
1086 | 286 | static gboolean smd_applet_close_err_event (smdApplet* self, GdkEventAny* e); | 294 | static gboolean smd_applet_close_err_event (smdApplet* self, GdkEventAny* e); |
1087 | 287 | static void smd_applet_close_prefs (smdApplet* self); | 295 | static void smd_applet_close_prefs (smdApplet* self); |
1088 | @@ -923,7 +931,7 @@ | |||
1089 | 923 | } | 931 | } |
1090 | 924 | 932 | ||
1091 | 925 | 933 | ||
1093 | 926 | static void ___lambda0_ (smdApplet* self, guint s) { | 934 | static void ___lambda2_ (smdApplet* self, guint s) { |
1094 | 927 | guint _tmp0_; | 935 | guint _tmp0_; |
1095 | 928 | gboolean _tmp1_ = FALSE; | 936 | gboolean _tmp1_ = FALSE; |
1096 | 929 | _tmp0_ = s; | 937 | _tmp0_ = s; |
1097 | @@ -940,12 +948,12 @@ | |||
1098 | 940 | } | 948 | } |
1099 | 941 | 949 | ||
1100 | 942 | 950 | ||
1103 | 943 | static void ____lambda0__network_manager_state_changed (NetworkManager* _sender, guint state, gpointer self) { | 951 | static void ____lambda2__network_manager_state_changed (NetworkManager* _sender, guint state, gpointer self) { |
1104 | 944 | ___lambda0_ (self, state); | 952 | ___lambda2_ (self, state); |
1105 | 945 | } | 953 | } |
1106 | 946 | 954 | ||
1107 | 947 | 955 | ||
1109 | 948 | static void __lambda1_ (smdApplet* self, GtkComboBox* cb) { | 956 | static void __lambda3_ (smdApplet* self, GtkComboBox* cb) { |
1110 | 949 | GtkComboBoxText* _tmp0_; | 957 | GtkComboBoxText* _tmp0_; |
1111 | 950 | gint _tmp1_ = 0; | 958 | gint _tmp1_ = 0; |
1112 | 951 | gint selected; | 959 | gint selected; |
1113 | @@ -1094,8 +1102,8 @@ | |||
1114 | 1094 | } | 1102 | } |
1115 | 1095 | 1103 | ||
1116 | 1096 | 1104 | ||
1119 | 1097 | static void ___lambda1__gtk_combo_box_changed (GtkComboBox* _sender, gpointer self) { | 1105 | static void ___lambda3__gtk_combo_box_changed (GtkComboBox* _sender, gpointer self) { |
1120 | 1098 | __lambda1_ (self, _sender); | 1106 | __lambda3_ (self, _sender); |
1121 | 1099 | } | 1107 | } |
1122 | 1100 | 1108 | ||
1123 | 1101 | 1109 | ||
1124 | @@ -1116,7 +1124,7 @@ | |||
1125 | 1116 | } | 1124 | } |
1126 | 1117 | 1125 | ||
1127 | 1118 | 1126 | ||
1129 | 1119 | static void __lambda3_ (smdApplet* self, GtkToggleButton* b) { | 1127 | static void __lambda5_ (smdApplet* self, GtkToggleButton* b) { |
1130 | 1120 | GError * _inner_error_ = NULL; | 1128 | GError * _inner_error_ = NULL; |
1131 | 1121 | g_return_if_fail (b != NULL); | 1129 | g_return_if_fail (b != NULL); |
1132 | 1122 | { | 1130 | { |
1133 | @@ -1169,12 +1177,12 @@ | |||
1134 | 1169 | } | 1177 | } |
1135 | 1170 | 1178 | ||
1136 | 1171 | 1179 | ||
1139 | 1172 | static void ___lambda3__gtk_toggle_button_toggled (GtkToggleButton* _sender, gpointer self) { | 1180 | static void ___lambda5__gtk_toggle_button_toggled (GtkToggleButton* _sender, gpointer self) { |
1140 | 1173 | __lambda3_ (self, _sender); | 1181 | __lambda5_ (self, _sender); |
1141 | 1174 | } | 1182 | } |
1142 | 1175 | 1183 | ||
1143 | 1176 | 1184 | ||
1145 | 1177 | static void __lambda4_ (smdApplet* self, GtkToggleButton* b) { | 1185 | static void __lambda6_ (smdApplet* self, GtkToggleButton* b) { |
1146 | 1178 | GError * _inner_error_ = NULL; | 1186 | GError * _inner_error_ = NULL; |
1147 | 1179 | g_return_if_fail (b != NULL); | 1187 | g_return_if_fail (b != NULL); |
1148 | 1180 | { | 1188 | { |
1149 | @@ -1215,8 +1223,86 @@ | |||
1150 | 1215 | } | 1223 | } |
1151 | 1216 | 1224 | ||
1152 | 1217 | 1225 | ||
1155 | 1218 | static void ___lambda4__gtk_toggle_button_toggled (GtkToggleButton* _sender, gpointer self) { | 1226 | static void ___lambda6__gtk_toggle_button_toggled (GtkToggleButton* _sender, gpointer self) { |
1156 | 1219 | __lambda4_ (self, _sender); | 1227 | __lambda6_ (self, _sender); |
1157 | 1228 | } | ||
1158 | 1229 | |||
1159 | 1230 | |||
1160 | 1231 | static void __lambda7_ (smdApplet* self, GtkToggleButton* b) { | ||
1161 | 1232 | GtkToggleButton* _tmp0_; | ||
1162 | 1233 | gboolean _tmp1_; | ||
1163 | 1234 | gboolean _tmp2_; | ||
1164 | 1235 | GError * _inner_error_ = NULL; | ||
1165 | 1236 | g_return_if_fail (b != NULL); | ||
1166 | 1237 | _tmp0_ = b; | ||
1167 | 1238 | _tmp1_ = gtk_toggle_button_get_active (_tmp0_); | ||
1168 | 1239 | _tmp2_ = _tmp1_; | ||
1169 | 1240 | if (_tmp2_) { | ||
1170 | 1241 | gchar* content = NULL; | ||
1171 | 1242 | { | ||
1172 | 1243 | const gchar* _tmp3_; | ||
1173 | 1244 | gchar* _tmp4_ = NULL; | ||
1174 | 1245 | const gchar* _tmp5_; | ||
1175 | 1246 | const gchar* _tmp6_; | ||
1176 | 1247 | _tmp3_ = smd_applet_smd_applet_desktop; | ||
1177 | 1248 | g_file_get_contents (_tmp3_, &_tmp4_, NULL, &_inner_error_); | ||
1178 | 1249 | _g_free0 (content); | ||
1179 | 1250 | content = _tmp4_; | ||
1180 | 1251 | if (_inner_error_ != NULL) { | ||
1181 | 1252 | if (_inner_error_->domain == G_FILE_ERROR) { | ||
1182 | 1253 | goto __catch8_g_file_error; | ||
1183 | 1254 | } | ||
1184 | 1255 | _g_free0 (content); | ||
1185 | 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); | ||
1186 | 1257 | g_clear_error (&_inner_error_); | ||
1187 | 1258 | return; | ||
1188 | 1259 | } | ||
1189 | 1260 | _tmp5_ = XDG_AUTORUN_FILE; | ||
1190 | 1261 | _tmp6_ = content; | ||
1191 | 1262 | g_file_set_contents (_tmp5_, _tmp6_, (gssize) (-1), &_inner_error_); | ||
1192 | 1263 | if (_inner_error_ != NULL) { | ||
1193 | 1264 | if (_inner_error_->domain == G_FILE_ERROR) { | ||
1194 | 1265 | goto __catch8_g_file_error; | ||
1195 | 1266 | } | ||
1196 | 1267 | _g_free0 (content); | ||
1197 | 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); | ||
1198 | 1269 | g_clear_error (&_inner_error_); | ||
1199 | 1270 | return; | ||
1200 | 1271 | } | ||
1201 | 1272 | } | ||
1202 | 1273 | goto __finally8; | ||
1203 | 1274 | __catch8_g_file_error: | ||
1204 | 1275 | { | ||
1205 | 1276 | GError* e = NULL; | ||
1206 | 1277 | FILE* _tmp7_; | ||
1207 | 1278 | GError* _tmp8_; | ||
1208 | 1279 | const gchar* _tmp9_; | ||
1209 | 1280 | e = _inner_error_; | ||
1210 | 1281 | _inner_error_ = NULL; | ||
1211 | 1282 | _tmp7_ = stderr; | ||
1212 | 1283 | _tmp8_ = e; | ||
1213 | 1284 | _tmp9_ = _tmp8_->message; | ||
1214 | 1285 | fprintf (_tmp7_, "%s\n", _tmp9_); | ||
1215 | 1286 | _g_error_free0 (e); | ||
1216 | 1287 | } | ||
1217 | 1288 | __finally8: | ||
1218 | 1289 | if (_inner_error_ != NULL) { | ||
1219 | 1290 | _g_free0 (content); | ||
1220 | 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); | ||
1221 | 1292 | g_clear_error (&_inner_error_); | ||
1222 | 1293 | return; | ||
1223 | 1294 | } | ||
1224 | 1295 | _g_free0 (content); | ||
1225 | 1296 | } else { | ||
1226 | 1297 | const gchar* _tmp10_; | ||
1227 | 1298 | _tmp10_ = XDG_AUTORUN_FILE; | ||
1228 | 1299 | g_remove (_tmp10_); | ||
1229 | 1300 | } | ||
1230 | 1301 | } | ||
1231 | 1302 | |||
1232 | 1303 | |||
1233 | 1304 | static void ___lambda7__gtk_toggle_button_toggled (GtkToggleButton* _sender, gpointer self) { | ||
1234 | 1305 | __lambda7_ (self, _sender); | ||
1235 | 1220 | } | 1306 | } |
1236 | 1221 | 1307 | ||
1237 | 1222 | 1308 | ||
1238 | @@ -1225,7 +1311,7 @@ | |||
1239 | 1225 | } | 1311 | } |
1240 | 1226 | 1312 | ||
1241 | 1227 | 1313 | ||
1243 | 1228 | static void __lambda5_ (smdApplet* self, GtkButton* b) { | 1314 | static void __lambda8_ (smdApplet* self, GtkButton* b) { |
1244 | 1229 | GError * _inner_error_ = NULL; | 1315 | GError * _inner_error_ = NULL; |
1245 | 1230 | g_return_if_fail (b != NULL); | 1316 | g_return_if_fail (b != NULL); |
1246 | 1231 | { | 1317 | { |
1247 | @@ -1246,7 +1332,7 @@ | |||
1248 | 1246 | _g_free0 (_tmp3_); | 1332 | _g_free0 (_tmp3_); |
1249 | 1247 | if (_inner_error_ != NULL) { | 1333 | if (_inner_error_ != NULL) { |
1250 | 1248 | if (_inner_error_->domain == G_SPAWN_ERROR) { | 1334 | if (_inner_error_->domain == G_SPAWN_ERROR) { |
1252 | 1249 | goto __catch7_g_spawn_error; | 1335 | goto __catch9_g_spawn_error; |
1253 | 1250 | } | 1336 | } |
1254 | 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); |
1255 | 1252 | g_clear_error (&_inner_error_); | 1338 | g_clear_error (&_inner_error_); |
1256 | @@ -1261,7 +1347,7 @@ | |||
1257 | 1261 | if (_inner_error_ != NULL) { | 1347 | if (_inner_error_ != NULL) { |
1258 | 1262 | _g_free0 (cmd); | 1348 | _g_free0 (cmd); |
1259 | 1263 | if (_inner_error_->domain == G_SPAWN_ERROR) { | 1349 | if (_inner_error_->domain == G_SPAWN_ERROR) { |
1261 | 1264 | goto __catch7_g_spawn_error; | 1350 | goto __catch9_g_spawn_error; |
1262 | 1265 | } | 1351 | } |
1263 | 1266 | _g_free0 (cmd); | 1352 | _g_free0 (cmd); |
1264 | 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); |
1265 | @@ -1271,8 +1357,8 @@ | |||
1266 | 1271 | smd_applet_is_smd_loop_configured (self); | 1357 | smd_applet_is_smd_loop_configured (self); |
1267 | 1272 | _g_free0 (cmd); | 1358 | _g_free0 (cmd); |
1268 | 1273 | } | 1359 | } |
1271 | 1274 | goto __finally7; | 1360 | goto __finally9; |
1272 | 1275 | __catch7_g_spawn_error: | 1361 | __catch9_g_spawn_error: |
1273 | 1276 | { | 1362 | { |
1274 | 1277 | GError* e = NULL; | 1363 | GError* e = NULL; |
1275 | 1278 | FILE* _tmp7_; | 1364 | FILE* _tmp7_; |
1276 | @@ -1286,7 +1372,7 @@ | |||
1277 | 1286 | fprintf (_tmp7_, "%s\n", _tmp9_); | 1372 | fprintf (_tmp7_, "%s\n", _tmp9_); |
1278 | 1287 | _g_error_free0 (e); | 1373 | _g_error_free0 (e); |
1279 | 1288 | } | 1374 | } |
1281 | 1289 | __finally7: | 1375 | __finally9: |
1282 | 1290 | if (_inner_error_ != NULL) { | 1376 | if (_inner_error_ != NULL) { |
1283 | 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); |
1284 | 1292 | g_clear_error (&_inner_error_); | 1378 | g_clear_error (&_inner_error_); |
1285 | @@ -1295,12 +1381,12 @@ | |||
1286 | 1295 | } | 1381 | } |
1287 | 1296 | 1382 | ||
1288 | 1297 | 1383 | ||
1291 | 1298 | static void ___lambda5__gtk_button_clicked (GtkButton* _sender, gpointer self) { | 1384 | static void ___lambda8__gtk_button_clicked (GtkButton* _sender, gpointer self) { |
1292 | 1299 | __lambda5_ (self, _sender); | 1385 | __lambda8_ (self, _sender); |
1293 | 1300 | } | 1386 | } |
1294 | 1301 | 1387 | ||
1295 | 1302 | 1388 | ||
1297 | 1303 | static void __lambda6_ (smdApplet* self, GtkButton* b) { | 1389 | static void __lambda9_ (smdApplet* self, GtkButton* b) { |
1298 | 1304 | GError * _inner_error_ = NULL; | 1390 | GError * _inner_error_ = NULL; |
1299 | 1305 | g_return_if_fail (b != NULL); | 1391 | g_return_if_fail (b != NULL); |
1300 | 1306 | { | 1392 | { |
1301 | @@ -1321,7 +1407,7 @@ | |||
1302 | 1321 | _g_free0 (_tmp3_); | 1407 | _g_free0 (_tmp3_); |
1303 | 1322 | if (_inner_error_ != NULL) { | 1408 | if (_inner_error_ != NULL) { |
1304 | 1323 | if (_inner_error_->domain == G_SPAWN_ERROR) { | 1409 | if (_inner_error_->domain == G_SPAWN_ERROR) { |
1306 | 1324 | goto __catch8_g_spawn_error; | 1410 | goto __catch10_g_spawn_error; |
1307 | 1325 | } | 1411 | } |
1308 | 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); |
1309 | 1327 | g_clear_error (&_inner_error_); | 1413 | g_clear_error (&_inner_error_); |
1310 | @@ -1336,7 +1422,7 @@ | |||
1311 | 1336 | if (_inner_error_ != NULL) { | 1422 | if (_inner_error_ != NULL) { |
1312 | 1337 | _g_free0 (cmd); | 1423 | _g_free0 (cmd); |
1313 | 1338 | if (_inner_error_->domain == G_SPAWN_ERROR) { | 1424 | if (_inner_error_->domain == G_SPAWN_ERROR) { |
1315 | 1339 | goto __catch8_g_spawn_error; | 1425 | goto __catch10_g_spawn_error; |
1316 | 1340 | } | 1426 | } |
1317 | 1341 | _g_free0 (cmd); | 1427 | _g_free0 (cmd); |
1318 | 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); |
1319 | @@ -1346,8 +1432,8 @@ | |||
1320 | 1346 | smd_applet_is_smd_pushpull_configured (self); | 1432 | smd_applet_is_smd_pushpull_configured (self); |
1321 | 1347 | _g_free0 (cmd); | 1433 | _g_free0 (cmd); |
1322 | 1348 | } | 1434 | } |
1325 | 1349 | goto __finally8; | 1435 | goto __finally10; |
1326 | 1350 | __catch8_g_spawn_error: | 1436 | __catch10_g_spawn_error: |
1327 | 1351 | { | 1437 | { |
1328 | 1352 | GError* e = NULL; | 1438 | GError* e = NULL; |
1329 | 1353 | FILE* _tmp7_; | 1439 | FILE* _tmp7_; |
1330 | @@ -1361,7 +1447,7 @@ | |||
1331 | 1361 | fprintf (_tmp7_, "%s\n", _tmp9_); | 1447 | fprintf (_tmp7_, "%s\n", _tmp9_); |
1332 | 1362 | _g_error_free0 (e); | 1448 | _g_error_free0 (e); |
1333 | 1363 | } | 1449 | } |
1335 | 1364 | __finally8: | 1450 | __finally10: |
1336 | 1365 | if (_inner_error_ != NULL) { | 1451 | if (_inner_error_ != NULL) { |
1337 | 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); |
1338 | 1367 | g_clear_error (&_inner_error_); | 1453 | g_clear_error (&_inner_error_); |
1339 | @@ -1370,12 +1456,12 @@ | |||
1340 | 1370 | } | 1456 | } |
1341 | 1371 | 1457 | ||
1342 | 1372 | 1458 | ||
1345 | 1373 | static void ___lambda6__gtk_button_clicked (GtkButton* _sender, gpointer self) { | 1459 | static void ___lambda9__gtk_button_clicked (GtkButton* _sender, gpointer self) { |
1346 | 1374 | __lambda6_ (self, _sender); | 1460 | __lambda9_ (self, _sender); |
1347 | 1375 | } | 1461 | } |
1348 | 1376 | 1462 | ||
1349 | 1377 | 1463 | ||
1351 | 1378 | static void __lambda7_ (smdApplet* self, GtkMenuItem* b) { | 1464 | static void __lambda10_ (smdApplet* self, GtkMenuItem* b) { |
1352 | 1379 | GPid _tmp0_; | 1465 | GPid _tmp0_; |
1353 | 1380 | g_return_if_fail (b != NULL); | 1466 | g_return_if_fail (b != NULL); |
1354 | 1381 | self->priv->thread_die = TRUE; | 1467 | self->priv->thread_die = TRUE; |
1355 | @@ -1397,12 +1483,12 @@ | |||
1356 | 1397 | } | 1483 | } |
1357 | 1398 | 1484 | ||
1358 | 1399 | 1485 | ||
1361 | 1400 | static void ___lambda7__gtk_menu_item_activate (GtkMenuItem* _sender, gpointer self) { | 1486 | static void ___lambda10__gtk_menu_item_activate (GtkMenuItem* _sender, gpointer self) { |
1362 | 1401 | __lambda7_ (self, _sender); | 1487 | __lambda10_ (self, _sender); |
1363 | 1402 | } | 1488 | } |
1364 | 1403 | 1489 | ||
1365 | 1404 | 1490 | ||
1367 | 1405 | static void __lambda8_ (smdApplet* self, GtkCheckMenuItem* b) { | 1491 | static void __lambda11_ (smdApplet* self, GtkCheckMenuItem* b) { |
1368 | 1406 | GtkCheckMenuItem* _tmp0_; | 1492 | GtkCheckMenuItem* _tmp0_; |
1369 | 1407 | gboolean _tmp1_ = FALSE; | 1493 | gboolean _tmp1_ = FALSE; |
1370 | 1408 | g_return_if_fail (b != NULL); | 1494 | g_return_if_fail (b != NULL); |
1371 | @@ -1416,24 +1502,24 @@ | |||
1372 | 1416 | } | 1502 | } |
1373 | 1417 | 1503 | ||
1374 | 1418 | 1504 | ||
1377 | 1419 | static void ___lambda8__gtk_check_menu_item_toggled (GtkCheckMenuItem* _sender, gpointer self) { | 1505 | static void ___lambda11__gtk_check_menu_item_toggled (GtkCheckMenuItem* _sender, gpointer self) { |
1378 | 1420 | __lambda8_ (self, _sender); | 1506 | __lambda11_ (self, _sender); |
1379 | 1421 | } | 1507 | } |
1380 | 1422 | 1508 | ||
1381 | 1423 | 1509 | ||
1383 | 1424 | static void __lambda9_ (smdApplet* self, gint id) { | 1510 | static void __lambda12_ (smdApplet* self, gint id) { |
1384 | 1425 | GtkAboutDialog* _tmp0_; | 1511 | GtkAboutDialog* _tmp0_; |
1385 | 1426 | _tmp0_ = self->priv->about_win; | 1512 | _tmp0_ = self->priv->about_win; |
1386 | 1427 | gtk_widget_hide ((GtkWidget*) _tmp0_); | 1513 | gtk_widget_hide ((GtkWidget*) _tmp0_); |
1387 | 1428 | } | 1514 | } |
1388 | 1429 | 1515 | ||
1389 | 1430 | 1516 | ||
1392 | 1431 | static void ___lambda9__gtk_dialog_response (GtkDialog* _sender, gint response_id, gpointer self) { | 1517 | static void ___lambda12__gtk_dialog_response (GtkDialog* _sender, gint response_id, gpointer self) { |
1393 | 1432 | __lambda9_ (self, response_id); | 1518 | __lambda12_ (self, response_id); |
1394 | 1433 | } | 1519 | } |
1395 | 1434 | 1520 | ||
1396 | 1435 | 1521 | ||
1398 | 1436 | static void __lambda10_ (smdApplet* self, GtkMenuItem* b) { | 1522 | static void __lambda13_ (smdApplet* self, GtkMenuItem* b) { |
1399 | 1437 | GtkAboutDialog* _tmp0_; | 1523 | GtkAboutDialog* _tmp0_; |
1400 | 1438 | g_return_if_fail (b != NULL); | 1524 | g_return_if_fail (b != NULL); |
1401 | 1439 | _tmp0_ = self->priv->about_win; | 1525 | _tmp0_ = self->priv->about_win; |
1402 | @@ -1441,12 +1527,12 @@ | |||
1403 | 1441 | } | 1527 | } |
1404 | 1442 | 1528 | ||
1405 | 1443 | 1529 | ||
1408 | 1444 | static void ___lambda10__gtk_menu_item_activate (GtkMenuItem* _sender, gpointer self) { | 1530 | static void ___lambda13__gtk_menu_item_activate (GtkMenuItem* _sender, gpointer self) { |
1409 | 1445 | __lambda10_ (self, _sender); | 1531 | __lambda13_ (self, _sender); |
1410 | 1446 | } | 1532 | } |
1411 | 1447 | 1533 | ||
1412 | 1448 | 1534 | ||
1414 | 1449 | static void __lambda11_ (smdApplet* self, GtkMenuItem* b) { | 1535 | static void __lambda14_ (smdApplet* self, GtkMenuItem* b) { |
1415 | 1450 | GtkWindow* _tmp0_; | 1536 | GtkWindow* _tmp0_; |
1416 | 1451 | g_return_if_fail (b != NULL); | 1537 | g_return_if_fail (b != NULL); |
1417 | 1452 | _tmp0_ = self->priv->win; | 1538 | _tmp0_ = self->priv->win; |
1418 | @@ -1454,12 +1540,12 @@ | |||
1419 | 1454 | } | 1540 | } |
1420 | 1455 | 1541 | ||
1421 | 1456 | 1542 | ||
1424 | 1457 | static void ___lambda11__gtk_menu_item_activate (GtkMenuItem* _sender, gpointer self) { | 1543 | static void ___lambda14__gtk_menu_item_activate (GtkMenuItem* _sender, gpointer self) { |
1425 | 1458 | __lambda11_ (self, _sender); | 1544 | __lambda14_ (self, _sender); |
1426 | 1459 | } | 1545 | } |
1427 | 1460 | 1546 | ||
1428 | 1461 | 1547 | ||
1430 | 1462 | static void __lambda12_ (smdApplet* self, GtkMenuItem* b) { | 1548 | static void __lambda15_ (smdApplet* self, GtkMenuItem* b) { |
1431 | 1463 | GtkWindow* _tmp0_; | 1549 | GtkWindow* _tmp0_; |
1432 | 1464 | g_return_if_fail (b != NULL); | 1550 | g_return_if_fail (b != NULL); |
1433 | 1465 | smd_applet_update_loglist (self); | 1551 | smd_applet_update_loglist (self); |
1434 | @@ -1468,8 +1554,8 @@ | |||
1435 | 1468 | } | 1554 | } |
1436 | 1469 | 1555 | ||
1437 | 1470 | 1556 | ||
1440 | 1471 | static void ___lambda12__gtk_menu_item_activate (GtkMenuItem* _sender, gpointer self) { | 1557 | static void ___lambda15__gtk_menu_item_activate (GtkMenuItem* _sender, gpointer self) { |
1441 | 1472 | __lambda12_ (self, _sender); | 1558 | __lambda15_ (self, _sender); |
1442 | 1473 | } | 1559 | } |
1443 | 1474 | 1560 | ||
1444 | 1475 | 1561 | ||
1445 | @@ -1478,7 +1564,7 @@ | |||
1446 | 1478 | } | 1564 | } |
1447 | 1479 | 1565 | ||
1448 | 1480 | 1566 | ||
1450 | 1481 | static void __lambda13_ (smdApplet* self, guint button, guint time) { | 1567 | static void __lambda16_ (smdApplet* self, guint button, guint time) { |
1451 | 1482 | GtkMenu* _tmp0_; | 1568 | GtkMenu* _tmp0_; |
1452 | 1483 | GtkStatusIcon* _tmp1_; | 1569 | GtkStatusIcon* _tmp1_; |
1453 | 1484 | guint32 _tmp2_ = 0U; | 1570 | guint32 _tmp2_ = 0U; |
1454 | @@ -1489,12 +1575,12 @@ | |||
1455 | 1489 | } | 1575 | } |
1456 | 1490 | 1576 | ||
1457 | 1491 | 1577 | ||
1460 | 1492 | static void ___lambda13__gtk_status_icon_popup_menu (GtkStatusIcon* _sender, guint button, guint activate_time, gpointer self) { | 1578 | static void ___lambda16__gtk_status_icon_popup_menu (GtkStatusIcon* _sender, guint button, guint activate_time, gpointer self) { |
1461 | 1493 | __lambda13_ (self, button, activate_time); | 1579 | __lambda16_ (self, button, activate_time); |
1462 | 1494 | } | 1580 | } |
1463 | 1495 | 1581 | ||
1464 | 1496 | 1582 | ||
1466 | 1497 | static void __lambda14_ (smdApplet* self, GtkStatusIcon* s) { | 1583 | static void __lambda17_ (smdApplet* self, GtkStatusIcon* s) { |
1467 | 1498 | gboolean _tmp0_; | 1584 | gboolean _tmp0_; |
1468 | 1499 | g_return_if_fail (s != NULL); | 1585 | g_return_if_fail (s != NULL); |
1469 | 1500 | _tmp0_ = self->priv->error_mode; | 1586 | _tmp0_ = self->priv->error_mode; |
1470 | @@ -1522,8 +1608,8 @@ | |||
1471 | 1522 | } | 1608 | } |
1472 | 1523 | 1609 | ||
1473 | 1524 | 1610 | ||
1476 | 1525 | static void ___lambda14__gtk_status_icon_activate (GtkStatusIcon* _sender, gpointer self) { | 1611 | static void ___lambda17__gtk_status_icon_activate (GtkStatusIcon* _sender, gpointer self) { |
1477 | 1526 | __lambda14_ (self, _sender); | 1612 | __lambda17_ (self, _sender); |
1478 | 1527 | } | 1613 | } |
1479 | 1528 | 1614 | ||
1480 | 1529 | 1615 | ||
1481 | @@ -1541,102 +1627,105 @@ | |||
1482 | 1541 | smdApplet* self = NULL; | 1627 | smdApplet* self = NULL; |
1483 | 1542 | GtkBuilder* _tmp0_; | 1628 | GtkBuilder* _tmp0_; |
1484 | 1543 | GeeArrayList* _tmp7_; | 1629 | GeeArrayList* _tmp7_; |
1496 | 1544 | GMutex* _tmp8_; | 1630 | GConfClient* _tmp8_ = NULL; |
1497 | 1545 | GConfClient* _tmp9_ = NULL; | 1631 | GConfClient* _tmp9_; |
1498 | 1546 | GConfClient* _tmp10_; | 1632 | GtkBuilder* _tmp16_; |
1499 | 1547 | GtkBuilder* _tmp17_; | 1633 | GObject* _tmp17_ = NULL; |
1500 | 1548 | GObject* _tmp18_ = NULL; | 1634 | GtkWindow* _tmp18_; |
1501 | 1549 | GtkWindow* _tmp19_; | 1635 | GtkBuilder* _tmp19_; |
1502 | 1550 | GtkBuilder* _tmp20_; | 1636 | GObject* _tmp20_ = NULL; |
1503 | 1551 | GObject* _tmp21_ = NULL; | 1637 | GtkWindow* _tmp21_; |
1504 | 1552 | GtkWindow* _tmp22_; | 1638 | GtkBuilder* _tmp22_; |
1505 | 1553 | GtkBuilder* _tmp23_; | 1639 | GObject* _tmp23_ = NULL; |
1506 | 1554 | GObject* _tmp24_ = NULL; | 1640 | GtkAboutDialog* _tmp24_; |
1507 | 1555 | GtkAboutDialog* _tmp25_; | 1641 | GtkAboutDialog* _tmp25_; |
1515 | 1556 | GtkAboutDialog* _tmp26_; | 1642 | GtkBuilder* _tmp26_; |
1516 | 1557 | GtkBuilder* _tmp27_; | 1643 | GObject* _tmp27_ = NULL; |
1517 | 1558 | GObject* _tmp28_ = NULL; | 1644 | GtkWindow* _tmp28_; |
1518 | 1559 | GtkWindow* _tmp29_; | 1645 | GtkBuilder* _tmp29_; |
1519 | 1560 | GtkBuilder* _tmp30_; | 1646 | GObject* _tmp30_ = NULL; |
1520 | 1561 | GObject* _tmp31_ = NULL; | 1647 | GtkVBox* _tmp31_; |
1514 | 1562 | GtkVBox* _tmp32_; | ||
1521 | 1563 | GtkVBox* logs_vb; | 1648 | GtkVBox* logs_vb; |
1522 | 1649 | GtkComboBoxText* _tmp32_; | ||
1523 | 1564 | GtkComboBoxText* _tmp33_; | 1650 | GtkComboBoxText* _tmp33_; |
1526 | 1565 | GtkComboBoxText* _tmp34_; | 1651 | GeeArrayList* _tmp34_; |
1527 | 1566 | GeeArrayList* _tmp35_; | 1652 | GtkComboBoxText* _tmp35_; |
1528 | 1567 | GtkComboBoxText* _tmp36_; | 1653 | GtkComboBoxText* _tmp36_; |
1529 | 1568 | GtkComboBoxText* _tmp37_; | 1654 | GtkComboBoxText* _tmp37_; |
1530 | 1569 | GtkComboBoxText* _tmp38_; | 1655 | GtkComboBoxText* _tmp38_; |
1535 | 1570 | GtkComboBoxText* _tmp39_; | 1656 | GtkBuilder* _tmp39_; |
1536 | 1571 | GtkBuilder* _tmp40_; | 1657 | GObject* _tmp40_ = NULL; |
1537 | 1572 | GObject* _tmp41_ = NULL; | 1658 | GtkButton* _tmp41_; |
1534 | 1573 | GtkButton* _tmp42_; | ||
1538 | 1574 | GtkButton* close_log; | 1659 | GtkButton* close_log; |
1543 | 1575 | GtkWindow* _tmp43_; | 1660 | GtkWindow* _tmp42_; |
1544 | 1576 | GtkBuilder* _tmp44_; | 1661 | GtkBuilder* _tmp43_; |
1545 | 1577 | GObject* _tmp45_ = NULL; | 1662 | GObject* _tmp44_ = NULL; |
1546 | 1578 | GtkButton* _tmp46_; | 1663 | GtkButton* _tmp45_; |
1547 | 1579 | GtkButton* close; | 1664 | GtkButton* close; |
1551 | 1580 | GtkBuilder* _tmp47_; | 1665 | GtkBuilder* _tmp46_; |
1552 | 1581 | GObject* _tmp48_ = NULL; | 1666 | GObject* _tmp47_ = NULL; |
1553 | 1582 | GtkCheckButton* _tmp49_; | 1667 | GtkCheckButton* _tmp48_; |
1554 | 1583 | GtkCheckButton* bicon; | 1668 | GtkCheckButton* bicon; |
1558 | 1584 | GtkBuilder* _tmp56_; | 1669 | GtkBuilder* _tmp55_; |
1559 | 1585 | GObject* _tmp57_ = NULL; | 1670 | GObject* _tmp56_ = NULL; |
1560 | 1586 | GtkCheckButton* _tmp58_; | 1671 | GtkCheckButton* _tmp57_; |
1561 | 1587 | GtkCheckButton* bnotify; | 1672 | GtkCheckButton* bnotify; |
1565 | 1588 | GtkBuilder* _tmp65_; | 1673 | GtkBuilder* _tmp64_; |
1566 | 1589 | GObject* _tmp66_ = NULL; | 1674 | GObject* _tmp65_ = NULL; |
1567 | 1590 | GtkButton* _tmp67_; | 1675 | GtkCheckButton* _tmp66_; |
1568 | 1676 | GtkCheckButton* bautostart; | ||
1569 | 1677 | GtkBuilder* _tmp75_; | ||
1570 | 1678 | GObject* _tmp76_ = NULL; | ||
1571 | 1679 | GtkButton* _tmp77_; | ||
1572 | 1591 | GtkButton* bc; | 1680 | GtkButton* bc; |
1576 | 1592 | GtkBuilder* _tmp68_; | 1681 | GtkBuilder* _tmp78_; |
1577 | 1593 | GObject* _tmp69_ = NULL; | 1682 | GObject* _tmp79_ = NULL; |
1578 | 1594 | GtkButton* _tmp70_; | 1683 | GtkButton* _tmp80_; |
1579 | 1595 | GtkButton* bel; | 1684 | GtkButton* bel; |
1583 | 1596 | GtkBuilder* _tmp71_; | 1685 | GtkBuilder* _tmp81_; |
1584 | 1597 | GObject* _tmp72_ = NULL; | 1686 | GObject* _tmp82_ = NULL; |
1585 | 1598 | GtkButton* _tmp73_; | 1687 | GtkButton* _tmp83_; |
1586 | 1599 | GtkButton* bepp; | 1688 | GtkButton* bepp; |
1601 | 1600 | GtkBuilder* _tmp74_; | 1689 | GtkBuilder* _tmp84_; |
1602 | 1601 | GObject* _tmp75_ = NULL; | 1690 | GObject* _tmp85_ = NULL; |
1603 | 1602 | GtkMenu* _tmp76_; | 1691 | GtkMenu* _tmp86_; |
1590 | 1603 | GtkBuilder* _tmp77_; | ||
1591 | 1604 | GObject* _tmp78_ = NULL; | ||
1592 | 1605 | GtkMenu* _tmp79_; | ||
1593 | 1606 | GtkBuilder* _tmp80_; | ||
1594 | 1607 | GObject* _tmp81_ = NULL; | ||
1595 | 1608 | GtkMenuItem* _tmp82_; | ||
1596 | 1609 | GtkMenuItem* quit; | ||
1597 | 1610 | GtkBuilder* _tmp83_; | ||
1598 | 1611 | GObject* _tmp84_ = NULL; | ||
1599 | 1612 | GtkCheckMenuItem* _tmp85_; | ||
1600 | 1613 | GtkCheckMenuItem* _tmp86_; | ||
1604 | 1614 | GtkBuilder* _tmp87_; | 1692 | GtkBuilder* _tmp87_; |
1605 | 1615 | GObject* _tmp88_ = NULL; | 1693 | GObject* _tmp88_ = NULL; |
1607 | 1616 | GtkMenuItem* _tmp89_; | 1694 | GtkMenu* _tmp89_; |
1608 | 1695 | GtkBuilder* _tmp90_; | ||
1609 | 1696 | GObject* _tmp91_ = NULL; | ||
1610 | 1697 | GtkMenuItem* _tmp92_; | ||
1611 | 1698 | GtkMenuItem* quit; | ||
1612 | 1699 | GtkBuilder* _tmp93_; | ||
1613 | 1700 | GObject* _tmp94_ = NULL; | ||
1614 | 1701 | GtkCheckMenuItem* _tmp95_; | ||
1615 | 1702 | GtkCheckMenuItem* _tmp96_; | ||
1616 | 1703 | GtkBuilder* _tmp97_; | ||
1617 | 1704 | GObject* _tmp98_ = NULL; | ||
1618 | 1705 | GtkMenuItem* _tmp99_; | ||
1619 | 1617 | GtkMenuItem* about; | 1706 | GtkMenuItem* about; |
1625 | 1618 | GtkAboutDialog* _tmp90_; | 1707 | GtkAboutDialog* _tmp100_; |
1626 | 1619 | GtkAboutDialog* _tmp91_; | 1708 | GtkAboutDialog* _tmp101_; |
1627 | 1620 | GtkBuilder* _tmp92_; | 1709 | GtkBuilder* _tmp102_; |
1628 | 1621 | GObject* _tmp93_ = NULL; | 1710 | GObject* _tmp103_ = NULL; |
1629 | 1622 | GtkMenuItem* _tmp94_; | 1711 | GtkMenuItem* _tmp104_; |
1630 | 1623 | GtkMenuItem* prefs; | 1712 | GtkMenuItem* prefs; |
1634 | 1624 | GtkBuilder* _tmp95_; | 1713 | GtkBuilder* _tmp105_; |
1635 | 1625 | GObject* _tmp96_ = NULL; | 1714 | GObject* _tmp106_ = NULL; |
1636 | 1626 | GtkMenuItem* _tmp97_; | 1715 | GtkMenuItem* _tmp107_; |
1637 | 1627 | GtkMenuItem* logs; | 1716 | GtkMenuItem* logs; |
1645 | 1628 | GtkStatusIcon* _tmp98_; | 1717 | GtkStatusIcon* _tmp108_; |
1646 | 1629 | GtkStatusIcon* _tmp99_; | 1718 | GtkStatusIcon* _tmp109_; |
1647 | 1630 | gboolean _tmp100_; | 1719 | gboolean _tmp110_; |
1648 | 1631 | GtkStatusIcon* _tmp101_; | 1720 | GtkStatusIcon* _tmp111_; |
1649 | 1632 | GtkStatusIcon* _tmp102_; | 1721 | GtkStatusIcon* _tmp112_; |
1650 | 1633 | GtkStatusIcon* _tmp103_; | 1722 | GtkStatusIcon* _tmp113_; |
1651 | 1634 | GList* _tmp104_ = NULL; | 1723 | GList* _tmp114_ = NULL; |
1652 | 1635 | GList* l; | 1724 | GList* l; |
1657 | 1636 | gint _tmp105_ = 0; | 1725 | gint _tmp115_ = 0; |
1658 | 1637 | GHashFunc _tmp106_; | 1726 | GHashFunc _tmp116_; |
1659 | 1638 | GEqualFunc _tmp107_; | 1727 | GEqualFunc _tmp117_; |
1660 | 1639 | GHashTable* _tmp108_; | 1728 | GHashTable* _tmp118_; |
1661 | 1640 | GError * _inner_error_ = NULL; | 1729 | GError * _inner_error_ = NULL; |
1662 | 1641 | self = (smdApplet*) g_type_create_instance (object_type); | 1730 | self = (smdApplet*) g_type_create_instance (object_type); |
1663 | 1642 | _tmp0_ = gtk_builder_new (); | 1731 | _tmp0_ = gtk_builder_new (); |
1664 | @@ -1686,40 +1775,37 @@ | |||
1665 | 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); |
1666 | 1687 | _g_object_unref0 (self->priv->events); | 1776 | _g_object_unref0 (self->priv->events); |
1667 | 1688 | self->priv->events = _tmp7_; | 1777 | self->priv->events = _tmp7_; |
1673 | 1689 | _tmp8_ = g_mutex_new (); | 1778 | _tmp8_ = gconf_client_get_default (); |
1674 | 1690 | _g_mutex_free0 (self->priv->events_lock); | 1779 | _tmp9_ = _g_object_ref0 (_tmp8_); |
1670 | 1691 | self->priv->events_lock = _tmp8_; | ||
1671 | 1692 | _tmp9_ = gconf_client_get_default (); | ||
1672 | 1693 | _tmp10_ = _g_object_ref0 (_tmp9_); | ||
1675 | 1694 | _g_object_unref0 (self->priv->gconf); | 1780 | _g_object_unref0 (self->priv->gconf); |
1677 | 1695 | self->priv->gconf = _tmp10_; | 1781 | self->priv->gconf = _tmp9_; |
1678 | 1696 | { | 1782 | { |
1680 | 1697 | NetworkManager* _tmp11_ = NULL; | 1783 | NetworkManager* _tmp10_ = NULL; |
1681 | 1784 | NetworkManager* _tmp11_; | ||
1682 | 1698 | NetworkManager* _tmp12_; | 1785 | NetworkManager* _tmp12_; |
1686 | 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); |
1687 | 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_; |
1685 | 1701 | _tmp12_ = (NetworkManager*) _tmp11_; | ||
1688 | 1702 | if (_inner_error_ != NULL) { | 1788 | if (_inner_error_ != NULL) { |
1689 | 1703 | goto __catch1_g_error; | 1789 | goto __catch1_g_error; |
1690 | 1704 | } | 1790 | } |
1691 | 1705 | _g_object_unref0 (self->priv->net_manager); | 1791 | _g_object_unref0 (self->priv->net_manager); |
1695 | 1706 | self->priv->net_manager = _tmp12_; | 1792 | self->priv->net_manager = _tmp11_; |
1696 | 1707 | _tmp13_ = self->priv->net_manager; | 1793 | _tmp12_ = self->priv->net_manager; |
1697 | 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); |
1698 | 1709 | } | 1795 | } |
1699 | 1710 | goto __finally1; | 1796 | goto __finally1; |
1700 | 1711 | __catch1_g_error: | 1797 | __catch1_g_error: |
1701 | 1712 | { | 1798 | { |
1702 | 1713 | GError* e = NULL; | 1799 | GError* e = NULL; |
1706 | 1714 | FILE* _tmp14_; | 1800 | FILE* _tmp13_; |
1707 | 1715 | GError* _tmp15_; | 1801 | GError* _tmp14_; |
1708 | 1716 | const gchar* _tmp16_; | 1802 | const gchar* _tmp15_; |
1709 | 1717 | e = _inner_error_; | 1803 | e = _inner_error_; |
1710 | 1718 | _inner_error_ = NULL; | 1804 | _inner_error_ = NULL; |
1715 | 1719 | _tmp14_ = stderr; | 1805 | _tmp13_ = stderr; |
1716 | 1720 | _tmp15_ = e; | 1806 | _tmp14_ = e; |
1717 | 1721 | _tmp16_ = _tmp15_->message; | 1807 | _tmp15_ = _tmp14_->message; |
1718 | 1722 | fprintf (_tmp14_, "%s\n", _tmp16_); | 1808 | fprintf (_tmp13_, "%s\n", _tmp15_); |
1719 | 1723 | _g_object_unref0 (self->priv->net_manager); | 1809 | _g_object_unref0 (self->priv->net_manager); |
1720 | 1724 | self->priv->net_manager = NULL; | 1810 | self->priv->net_manager = NULL; |
1721 | 1725 | _g_error_free0 (e); | 1811 | _g_error_free0 (e); |
1722 | @@ -1736,88 +1822,88 @@ | |||
1723 | 1736 | return NULL; | 1822 | return NULL; |
1724 | 1737 | } | 1823 | } |
1725 | 1738 | } | 1824 | } |
1729 | 1739 | _tmp17_ = self->priv->builder; | 1825 | _tmp16_ = self->priv->builder; |
1730 | 1740 | _tmp18_ = gtk_builder_get_object (_tmp17_, "wPrefs"); | 1826 | _tmp17_ = gtk_builder_get_object (_tmp16_, "wPrefs"); |
1731 | 1741 | _tmp19_ = _g_object_ref0 (GTK_IS_WINDOW (_tmp18_) ? ((GtkWindow*) _tmp18_) : NULL); | 1827 | _tmp18_ = _g_object_ref0 (GTK_IS_WINDOW (_tmp17_) ? ((GtkWindow*) _tmp17_) : NULL); |
1732 | 1742 | _g_object_unref0 (self->priv->win); | 1828 | _g_object_unref0 (self->priv->win); |
1737 | 1743 | self->priv->win = _tmp19_; | 1829 | self->priv->win = _tmp18_; |
1738 | 1744 | _tmp20_ = self->priv->builder; | 1830 | _tmp19_ = self->priv->builder; |
1739 | 1745 | _tmp21_ = gtk_builder_get_object (_tmp20_, "wError"); | 1831 | _tmp20_ = gtk_builder_get_object (_tmp19_, "wError"); |
1740 | 1746 | _tmp22_ = _g_object_ref0 (GTK_IS_WINDOW (_tmp21_) ? ((GtkWindow*) _tmp21_) : NULL); | 1832 | _tmp21_ = _g_object_ref0 (GTK_IS_WINDOW (_tmp20_) ? ((GtkWindow*) _tmp20_) : NULL); |
1741 | 1747 | _g_object_unref0 (self->priv->err_win); | 1833 | _g_object_unref0 (self->priv->err_win); |
1746 | 1748 | self->priv->err_win = _tmp22_; | 1834 | self->priv->err_win = _tmp21_; |
1747 | 1749 | _tmp23_ = self->priv->builder; | 1835 | _tmp22_ = self->priv->builder; |
1748 | 1750 | _tmp24_ = gtk_builder_get_object (_tmp23_, "wAbout"); | 1836 | _tmp23_ = gtk_builder_get_object (_tmp22_, "wAbout"); |
1749 | 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); |
1750 | 1752 | _g_object_unref0 (self->priv->about_win); | 1838 | _g_object_unref0 (self->priv->about_win); |
1757 | 1753 | self->priv->about_win = _tmp25_; | 1839 | self->priv->about_win = _tmp24_; |
1758 | 1754 | _tmp26_ = self->priv->about_win; | 1840 | _tmp25_ = self->priv->about_win; |
1759 | 1755 | gtk_about_dialog_set_copyright (_tmp26_, "Copyright " SMD_CONF_COPYRIGHT); | 1841 | gtk_about_dialog_set_copyright (_tmp25_, "Copyright " SMD_CONF_COPYRIGHT); |
1760 | 1756 | _tmp27_ = self->priv->builder; | 1842 | _tmp26_ = self->priv->builder; |
1761 | 1757 | _tmp28_ = gtk_builder_get_object (_tmp27_, "wLog"); | 1843 | _tmp27_ = gtk_builder_get_object (_tmp26_, "wLog"); |
1762 | 1758 | _tmp29_ = _g_object_ref0 (GTK_IS_WINDOW (_tmp28_) ? ((GtkWindow*) _tmp28_) : NULL); | 1844 | _tmp28_ = _g_object_ref0 (GTK_IS_WINDOW (_tmp27_) ? ((GtkWindow*) _tmp27_) : NULL); |
1763 | 1759 | _g_object_unref0 (self->priv->log_win); | 1845 | _g_object_unref0 (self->priv->log_win); |
1771 | 1760 | self->priv->log_win = _tmp29_; | 1846 | self->priv->log_win = _tmp28_; |
1772 | 1761 | _tmp30_ = self->priv->builder; | 1847 | _tmp29_ = self->priv->builder; |
1773 | 1762 | _tmp31_ = gtk_builder_get_object (_tmp30_, "vbLog"); | 1848 | _tmp30_ = gtk_builder_get_object (_tmp29_, "vbLog"); |
1774 | 1763 | _tmp32_ = _g_object_ref0 (GTK_IS_VBOX (_tmp31_) ? ((GtkVBox*) _tmp31_) : NULL); | 1849 | _tmp31_ = _g_object_ref0 (GTK_IS_VBOX (_tmp30_) ? ((GtkVBox*) _tmp30_) : NULL); |
1775 | 1764 | logs_vb = _tmp32_; | 1850 | logs_vb = _tmp31_; |
1776 | 1765 | _tmp33_ = (GtkComboBoxText*) gtk_combo_box_text_new (); | 1851 | _tmp32_ = (GtkComboBoxText*) gtk_combo_box_text_new (); |
1777 | 1766 | _tmp34_ = g_object_ref_sink (_tmp33_); | 1852 | _tmp33_ = g_object_ref_sink (_tmp32_); |
1778 | 1767 | _g_object_unref0 (self->priv->cblogs); | 1853 | _g_object_unref0 (self->priv->cblogs); |
1781 | 1768 | self->priv->cblogs = _tmp34_; | 1854 | self->priv->cblogs = _tmp33_; |
1782 | 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); |
1783 | 1770 | _g_object_unref0 (self->priv->lognames); | 1856 | _g_object_unref0 (self->priv->lognames); |
1785 | 1771 | self->priv->lognames = _tmp35_; | 1857 | self->priv->lognames = _tmp34_; |
1786 | 1858 | _tmp35_ = self->priv->cblogs; | ||
1787 | 1859 | gtk_box_pack_start ((GtkBox*) logs_vb, (GtkWidget*) _tmp35_, FALSE, TRUE, (guint) 0); | ||
1788 | 1772 | _tmp36_ = self->priv->cblogs; | 1860 | _tmp36_ = self->priv->cblogs; |
1790 | 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); |
1791 | 1774 | _tmp37_ = self->priv->cblogs; | 1862 | _tmp37_ = self->priv->cblogs; |
1793 | 1775 | gtk_box_reorder_child ((GtkBox*) logs_vb, (GtkWidget*) _tmp37_, 0); | 1863 | gtk_widget_show ((GtkWidget*) _tmp37_); |
1794 | 1776 | _tmp38_ = self->priv->cblogs; | 1864 | _tmp38_ = self->priv->cblogs; |
1802 | 1777 | gtk_widget_show ((GtkWidget*) _tmp38_); | 1865 | g_signal_connect ((GtkComboBox*) _tmp38_, "changed", (GCallback) ___lambda3__gtk_combo_box_changed, self); |
1803 | 1778 | _tmp39_ = self->priv->cblogs; | 1866 | _tmp39_ = self->priv->builder; |
1804 | 1779 | g_signal_connect ((GtkComboBox*) _tmp39_, "changed", (GCallback) ___lambda1__gtk_combo_box_changed, self); | 1867 | _tmp40_ = gtk_builder_get_object (_tmp39_, "bLogClose"); |
1805 | 1780 | _tmp40_ = self->priv->builder; | 1868 | _tmp41_ = _g_object_ref0 (GTK_IS_BUTTON (_tmp40_) ? ((GtkButton*) _tmp40_) : NULL); |
1806 | 1781 | _tmp41_ = gtk_builder_get_object (_tmp40_, "bLogClose"); | 1869 | close_log = _tmp41_; |
1800 | 1782 | _tmp42_ = _g_object_ref0 (GTK_IS_BUTTON (_tmp41_) ? ((GtkButton*) _tmp41_) : NULL); | ||
1801 | 1783 | close_log = _tmp42_; | ||
1807 | 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); |
1814 | 1785 | _tmp43_ = self->priv->log_win; | 1871 | _tmp42_ = self->priv->log_win; |
1815 | 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); |
1816 | 1787 | _tmp44_ = self->priv->builder; | 1873 | _tmp43_ = self->priv->builder; |
1817 | 1788 | _tmp45_ = gtk_builder_get_object (_tmp44_, "bClosePrefs"); | 1874 | _tmp44_ = gtk_builder_get_object (_tmp43_, "bClosePrefs"); |
1818 | 1789 | _tmp46_ = _g_object_ref0 (GTK_IS_BUTTON (_tmp45_) ? ((GtkButton*) _tmp45_) : NULL); | 1875 | _tmp45_ = _g_object_ref0 (GTK_IS_BUTTON (_tmp44_) ? ((GtkButton*) _tmp44_) : NULL); |
1819 | 1790 | close = _tmp46_; | 1876 | close = _tmp45_; |
1820 | 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); |
1825 | 1792 | _tmp47_ = self->priv->builder; | 1878 | _tmp46_ = self->priv->builder; |
1826 | 1793 | _tmp48_ = gtk_builder_get_object (_tmp47_, "cbIcon"); | 1879 | _tmp47_ = gtk_builder_get_object (_tmp46_, "cbIcon"); |
1827 | 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); |
1828 | 1795 | bicon = _tmp49_; | 1881 | bicon = _tmp48_; |
1829 | 1796 | { | 1882 | { |
1836 | 1797 | GConfClient* _tmp50_; | 1883 | GConfClient* _tmp49_; |
1837 | 1798 | gboolean _tmp51_ = FALSE; | 1884 | gboolean _tmp50_ = FALSE; |
1838 | 1799 | gboolean _tmp52_; | 1885 | gboolean _tmp51_; |
1839 | 1800 | _tmp50_ = self->priv->gconf; | 1886 | _tmp49_ = self->priv->gconf; |
1840 | 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_); |
1841 | 1802 | _tmp52_ = _tmp51_; | 1888 | _tmp51_ = _tmp50_; |
1842 | 1803 | if (_inner_error_ != NULL) { | 1889 | if (_inner_error_ != NULL) { |
1843 | 1804 | goto __catch3_g_error; | 1890 | goto __catch3_g_error; |
1844 | 1805 | } | 1891 | } |
1846 | 1806 | gtk_toggle_button_set_active ((GtkToggleButton*) bicon, _tmp52_); | 1892 | gtk_toggle_button_set_active ((GtkToggleButton*) bicon, _tmp51_); |
1847 | 1807 | } | 1893 | } |
1848 | 1808 | goto __finally3; | 1894 | goto __finally3; |
1849 | 1809 | __catch3_g_error: | 1895 | __catch3_g_error: |
1850 | 1810 | { | 1896 | { |
1851 | 1811 | GError* e = NULL; | 1897 | GError* e = NULL; |
1855 | 1812 | FILE* _tmp53_; | 1898 | FILE* _tmp52_; |
1856 | 1813 | GError* _tmp54_; | 1899 | GError* _tmp53_; |
1857 | 1814 | const gchar* _tmp55_; | 1900 | const gchar* _tmp54_; |
1858 | 1815 | e = _inner_error_; | 1901 | e = _inner_error_; |
1859 | 1816 | _inner_error_ = NULL; | 1902 | _inner_error_ = NULL; |
1864 | 1817 | _tmp53_ = stderr; | 1903 | _tmp52_ = stderr; |
1865 | 1818 | _tmp54_ = e; | 1904 | _tmp53_ = e; |
1866 | 1819 | _tmp55_ = _tmp54_->message; | 1905 | _tmp54_ = _tmp53_->message; |
1867 | 1820 | fprintf (_tmp53_, "%s\n", _tmp55_); | 1906 | fprintf (_tmp52_, "%s\n", _tmp54_); |
1868 | 1821 | _g_error_free0 (e); | 1907 | _g_error_free0 (e); |
1869 | 1822 | } | 1908 | } |
1870 | 1823 | __finally3: | 1909 | __finally3: |
1871 | @@ -1840,36 +1926,36 @@ | |||
1872 | 1840 | return NULL; | 1926 | return NULL; |
1873 | 1841 | } | 1927 | } |
1874 | 1842 | } | 1928 | } |
1880 | 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); |
1881 | 1844 | _tmp56_ = self->priv->builder; | 1930 | _tmp55_ = self->priv->builder; |
1882 | 1845 | _tmp57_ = gtk_builder_get_object (_tmp56_, "cbNotify"); | 1931 | _tmp56_ = gtk_builder_get_object (_tmp55_, "cbNotify"); |
1883 | 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); |
1884 | 1847 | bnotify = _tmp58_; | 1933 | bnotify = _tmp57_; |
1885 | 1848 | { | 1934 | { |
1892 | 1849 | GConfClient* _tmp59_; | 1935 | GConfClient* _tmp58_; |
1893 | 1850 | gboolean _tmp60_ = FALSE; | 1936 | gboolean _tmp59_ = FALSE; |
1894 | 1851 | gboolean _tmp61_; | 1937 | gboolean _tmp60_; |
1895 | 1852 | _tmp59_ = self->priv->gconf; | 1938 | _tmp58_ = self->priv->gconf; |
1896 | 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_); |
1897 | 1854 | _tmp61_ = _tmp60_; | 1940 | _tmp60_ = _tmp59_; |
1898 | 1855 | if (_inner_error_ != NULL) { | 1941 | if (_inner_error_ != NULL) { |
1899 | 1856 | goto __catch5_g_error; | 1942 | goto __catch5_g_error; |
1900 | 1857 | } | 1943 | } |
1902 | 1858 | gtk_toggle_button_set_active ((GtkToggleButton*) bnotify, _tmp61_); | 1944 | gtk_toggle_button_set_active ((GtkToggleButton*) bnotify, _tmp60_); |
1903 | 1859 | } | 1945 | } |
1904 | 1860 | goto __finally5; | 1946 | goto __finally5; |
1905 | 1861 | __catch5_g_error: | 1947 | __catch5_g_error: |
1906 | 1862 | { | 1948 | { |
1907 | 1863 | GError* e = NULL; | 1949 | GError* e = NULL; |
1911 | 1864 | FILE* _tmp62_; | 1950 | FILE* _tmp61_; |
1912 | 1865 | GError* _tmp63_; | 1951 | GError* _tmp62_; |
1913 | 1866 | const gchar* _tmp64_; | 1952 | const gchar* _tmp63_; |
1914 | 1867 | e = _inner_error_; | 1953 | e = _inner_error_; |
1915 | 1868 | _inner_error_ = NULL; | 1954 | _inner_error_ = NULL; |
1920 | 1869 | _tmp62_ = stderr; | 1955 | _tmp61_ = stderr; |
1921 | 1870 | _tmp63_ = e; | 1956 | _tmp62_ = e; |
1922 | 1871 | _tmp64_ = _tmp63_->message; | 1957 | _tmp63_ = _tmp62_->message; |
1923 | 1872 | fprintf (_tmp62_, "%s\n", _tmp64_); | 1958 | fprintf (_tmp61_, "%s\n", _tmp63_); |
1924 | 1873 | _g_error_free0 (e); | 1959 | _g_error_free0 (e); |
1925 | 1874 | } | 1960 | } |
1926 | 1875 | __finally5: | 1961 | __finally5: |
1927 | @@ -1894,84 +1980,168 @@ | |||
1928 | 1894 | return NULL; | 1980 | return NULL; |
1929 | 1895 | } | 1981 | } |
1930 | 1896 | } | 1982 | } |
1936 | 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); |
1937 | 1898 | _tmp65_ = self->priv->builder; | 1984 | _tmp64_ = self->priv->builder; |
1938 | 1899 | _tmp66_ = gtk_builder_get_object (_tmp65_, "bClose"); | 1985 | _tmp65_ = gtk_builder_get_object (_tmp64_, "cbAutostart"); |
1939 | 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); |
1940 | 1901 | bc = _tmp67_; | 1987 | bautostart = _tmp66_; |
1941 | 1988 | { | ||
1942 | 1989 | gchar* content = NULL; | ||
1943 | 1990 | const gchar* _tmp67_; | ||
1944 | 1991 | gchar* _tmp68_ = NULL; | ||
1945 | 1992 | gboolean _tmp69_ = FALSE; | ||
1946 | 1993 | gboolean _tmp70_; | ||
1947 | 1994 | _tmp67_ = XDG_AUTORUN_FILE; | ||
1948 | 1995 | _tmp69_ = g_file_get_contents (_tmp67_, &_tmp68_, NULL, &_inner_error_); | ||
1949 | 1996 | _g_free0 (content); | ||
1950 | 1997 | content = _tmp68_; | ||
1951 | 1998 | _tmp70_ = _tmp69_; | ||
1952 | 1999 | if (_inner_error_ != NULL) { | ||
1953 | 2000 | _g_free0 (content); | ||
1954 | 2001 | if (_inner_error_->domain == G_FILE_ERROR) { | ||
1955 | 2002 | goto __catch7_g_file_error; | ||
1956 | 2003 | } | ||
1957 | 2004 | _g_free0 (content); | ||
1958 | 2005 | _g_object_unref0 (bautostart); | ||
1959 | 2006 | _g_object_unref0 (bnotify); | ||
1960 | 2007 | _g_object_unref0 (bicon); | ||
1961 | 2008 | _g_object_unref0 (close); | ||
1962 | 2009 | _g_object_unref0 (close_log); | ||
1963 | 2010 | _g_object_unref0 (logs_vb); | ||
1964 | 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); | ||
1965 | 2012 | g_clear_error (&_inner_error_); | ||
1966 | 2013 | return NULL; | ||
1967 | 2014 | } | ||
1968 | 2015 | if (_tmp70_) { | ||
1969 | 2016 | gboolean _tmp71_ = FALSE; | ||
1970 | 2017 | _tmp71_ = g_regex_match_simple (GNOME_AUTOSTART_DISABLED, content, 0, 0); | ||
1971 | 2018 | if (_tmp71_) { | ||
1972 | 2019 | gtk_toggle_button_set_active ((GtkToggleButton*) bautostart, FALSE); | ||
1973 | 2020 | } else { | ||
1974 | 2021 | gtk_toggle_button_set_active ((GtkToggleButton*) bautostart, TRUE); | ||
1975 | 2022 | } | ||
1976 | 2023 | } else { | ||
1977 | 2024 | gtk_toggle_button_set_active ((GtkToggleButton*) bautostart, FALSE); | ||
1978 | 2025 | } | ||
1979 | 2026 | _g_free0 (content); | ||
1980 | 2027 | } | ||
1981 | 2028 | goto __finally7; | ||
1982 | 2029 | __catch7_g_file_error: | ||
1983 | 2030 | { | ||
1984 | 2031 | GError* e = NULL; | ||
1985 | 2032 | FILE* _tmp72_; | ||
1986 | 2033 | GError* _tmp73_; | ||
1987 | 2034 | const gchar* _tmp74_; | ||
1988 | 2035 | e = _inner_error_; | ||
1989 | 2036 | _inner_error_ = NULL; | ||
1990 | 2037 | _tmp72_ = stderr; | ||
1991 | 2038 | _tmp73_ = e; | ||
1992 | 2039 | _tmp74_ = _tmp73_->message; | ||
1993 | 2040 | fprintf (_tmp72_, "%s\n", _tmp74_); | ||
1994 | 2041 | _g_error_free0 (e); | ||
1995 | 2042 | } | ||
1996 | 2043 | __finally7: | ||
1997 | 2044 | if (_inner_error_ != NULL) { | ||
1998 | 2045 | if (_inner_error_->domain == EXIT) { | ||
1999 | 2046 | g_propagate_error (error, _inner_error_); | ||
2000 | 2047 | _g_object_unref0 (bautostart); | ||
2001 | 2048 | _g_object_unref0 (bnotify); | ||
2002 | 2049 | _g_object_unref0 (bicon); | ||
2003 | 2050 | _g_object_unref0 (close); | ||
2004 | 2051 | _g_object_unref0 (close_log); | ||
2005 | 2052 | _g_object_unref0 (logs_vb); | ||
2006 | 2053 | _smd_applet_unref0 (self); | ||
2007 | 2054 | return NULL; | ||
2008 | 2055 | } else { | ||
2009 | 2056 | _g_object_unref0 (bautostart); | ||
2010 | 2057 | _g_object_unref0 (bnotify); | ||
2011 | 2058 | _g_object_unref0 (bicon); | ||
2012 | 2059 | _g_object_unref0 (close); | ||
2013 | 2060 | _g_object_unref0 (close_log); | ||
2014 | 2061 | _g_object_unref0 (logs_vb); | ||
2015 | 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); | ||
2016 | 2063 | g_clear_error (&_inner_error_); | ||
2017 | 2064 | return NULL; | ||
2018 | 2065 | } | ||
2019 | 2066 | } | ||
2020 | 2067 | g_signal_connect ((GtkToggleButton*) bautostart, "toggled", (GCallback) ___lambda7__gtk_toggle_button_toggled, self); | ||
2021 | 2068 | _tmp75_ = self->priv->builder; | ||
2022 | 2069 | _tmp76_ = gtk_builder_get_object (_tmp75_, "bClose"); | ||
2023 | 2070 | _tmp77_ = _g_object_ref0 (GTK_IS_BUTTON (_tmp76_) ? ((GtkButton*) _tmp76_) : NULL); | ||
2024 | 2071 | bc = _tmp77_; | ||
2025 | 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); |
2039 | 1903 | _tmp68_ = self->priv->builder; | 2073 | _tmp78_ = self->priv->builder; |
2040 | 1904 | _tmp69_ = gtk_builder_get_object (_tmp68_, "bEditLoopCfg"); | 2074 | _tmp79_ = gtk_builder_get_object (_tmp78_, "bEditLoopCfg"); |
2041 | 1905 | _tmp70_ = _g_object_ref0 (GTK_IS_BUTTON (_tmp69_) ? ((GtkButton*) _tmp69_) : NULL); | 2075 | _tmp80_ = _g_object_ref0 (GTK_IS_BUTTON (_tmp79_) ? ((GtkButton*) _tmp79_) : NULL); |
2042 | 1906 | bel = _tmp70_; | 2076 | bel = _tmp80_; |
2043 | 1907 | g_signal_connect (bel, "clicked", (GCallback) ___lambda5__gtk_button_clicked, self); | 2077 | g_signal_connect (bel, "clicked", (GCallback) ___lambda8__gtk_button_clicked, self); |
2044 | 1908 | _tmp71_ = self->priv->builder; | 2078 | _tmp81_ = self->priv->builder; |
2045 | 1909 | _tmp72_ = gtk_builder_get_object (_tmp71_, "bEditPushPullCfg"); | 2079 | _tmp82_ = gtk_builder_get_object (_tmp81_, "bEditPushPullCfg"); |
2046 | 1910 | _tmp73_ = _g_object_ref0 (GTK_IS_BUTTON (_tmp72_) ? ((GtkButton*) _tmp72_) : NULL); | 2080 | _tmp83_ = _g_object_ref0 (GTK_IS_BUTTON (_tmp82_) ? ((GtkButton*) _tmp82_) : NULL); |
2047 | 1911 | bepp = _tmp73_; | 2081 | bepp = _tmp83_; |
2048 | 1912 | g_signal_connect (bepp, "clicked", (GCallback) ___lambda6__gtk_button_clicked, self); | 2082 | g_signal_connect (bepp, "clicked", (GCallback) ___lambda9__gtk_button_clicked, self); |
2049 | 1913 | _tmp74_ = self->priv->builder; | 2083 | _tmp84_ = self->priv->builder; |
2050 | 1914 | _tmp75_ = gtk_builder_get_object (_tmp74_, "mLeft"); | 2084 | _tmp85_ = gtk_builder_get_object (_tmp84_, "mLeft"); |
2051 | 1915 | _tmp76_ = _g_object_ref0 (GTK_IS_MENU (_tmp75_) ? ((GtkMenu*) _tmp75_) : NULL); | 2085 | _tmp86_ = _g_object_ref0 (GTK_IS_MENU (_tmp85_) ? ((GtkMenu*) _tmp85_) : NULL); |
2052 | 1916 | _g_object_unref0 (self->priv->menuL); | 2086 | _g_object_unref0 (self->priv->menuL); |
2071 | 1917 | self->priv->menuL = _tmp76_; | 2087 | self->priv->menuL = _tmp86_; |
2054 | 1918 | _tmp77_ = self->priv->builder; | ||
2055 | 1919 | _tmp78_ = gtk_builder_get_object (_tmp77_, "mRight"); | ||
2056 | 1920 | _tmp79_ = _g_object_ref0 (GTK_IS_MENU (_tmp78_) ? ((GtkMenu*) _tmp78_) : NULL); | ||
2057 | 1921 | _g_object_unref0 (self->priv->menuR); | ||
2058 | 1922 | self->priv->menuR = _tmp79_; | ||
2059 | 1923 | _tmp80_ = self->priv->builder; | ||
2060 | 1924 | _tmp81_ = gtk_builder_get_object (_tmp80_, "miQuit"); | ||
2061 | 1925 | _tmp82_ = _g_object_ref0 (GTK_IS_MENU_ITEM (_tmp81_) ? ((GtkMenuItem*) _tmp81_) : NULL); | ||
2062 | 1926 | quit = _tmp82_; | ||
2063 | 1927 | g_signal_connect (quit, "activate", (GCallback) ___lambda7__gtk_menu_item_activate, self); | ||
2064 | 1928 | _tmp83_ = self->priv->builder; | ||
2065 | 1929 | _tmp84_ = gtk_builder_get_object (_tmp83_, "miPause"); | ||
2066 | 1930 | _tmp85_ = _g_object_ref0 (GTK_IS_CHECK_MENU_ITEM (_tmp84_) ? ((GtkCheckMenuItem*) _tmp84_) : NULL); | ||
2067 | 1931 | _g_object_unref0 (self->priv->miPause); | ||
2068 | 1932 | self->priv->miPause = _tmp85_; | ||
2069 | 1933 | _tmp86_ = self->priv->miPause; | ||
2070 | 1934 | g_signal_connect (_tmp86_, "toggled", (GCallback) ___lambda8__gtk_check_menu_item_toggled, self); | ||
2072 | 1935 | _tmp87_ = self->priv->builder; | 2088 | _tmp87_ = self->priv->builder; |
2092 | 1936 | _tmp88_ = gtk_builder_get_object (_tmp87_, "miAbout"); | 2089 | _tmp88_ = gtk_builder_get_object (_tmp87_, "mRight"); |
2093 | 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); |
2094 | 1938 | about = _tmp89_; | 2091 | _g_object_unref0 (self->priv->menuR); |
2095 | 1939 | _tmp90_ = self->priv->about_win; | 2092 | self->priv->menuR = _tmp89_; |
2096 | 1940 | g_signal_connect ((GtkDialog*) _tmp90_, "response", (GCallback) ___lambda9__gtk_dialog_response, self); | 2093 | _tmp90_ = self->priv->builder; |
2097 | 1941 | g_signal_connect (about, "activate", (GCallback) ___lambda10__gtk_menu_item_activate, self); | 2094 | _tmp91_ = gtk_builder_get_object (_tmp90_, "miQuit"); |
2098 | 1942 | _tmp91_ = self->priv->about_win; | 2095 | _tmp92_ = _g_object_ref0 (GTK_IS_MENU_ITEM (_tmp91_) ? ((GtkMenuItem*) _tmp91_) : NULL); |
2099 | 1943 | gtk_about_dialog_set_comments (_tmp91_, "GNOME applet for syncmaildir version " SMD_CONF_VERSION); | 2096 | quit = _tmp92_; |
2100 | 1944 | _tmp92_ = self->priv->builder; | 2097 | g_signal_connect (quit, "activate", (GCallback) ___lambda10__gtk_menu_item_activate, self); |
2101 | 1945 | _tmp93_ = gtk_builder_get_object (_tmp92_, "miPrefs"); | 2098 | _tmp93_ = self->priv->builder; |
2102 | 1946 | _tmp94_ = _g_object_ref0 (GTK_IS_MENU_ITEM (_tmp93_) ? ((GtkMenuItem*) _tmp93_) : NULL); | 2099 | _tmp94_ = gtk_builder_get_object (_tmp93_, "miPause"); |
2103 | 1947 | prefs = _tmp94_; | 2100 | _tmp95_ = _g_object_ref0 (GTK_IS_CHECK_MENU_ITEM (_tmp94_) ? ((GtkCheckMenuItem*) _tmp94_) : NULL); |
2104 | 1948 | g_signal_connect (prefs, "activate", (GCallback) ___lambda11__gtk_menu_item_activate, self); | 2101 | _g_object_unref0 (self->priv->miPause); |
2105 | 1949 | _tmp95_ = self->priv->builder; | 2102 | self->priv->miPause = _tmp95_; |
2106 | 1950 | _tmp96_ = gtk_builder_get_object (_tmp95_, "miLog"); | 2103 | _tmp96_ = self->priv->miPause; |
2107 | 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); |
2108 | 1952 | logs = _tmp97_; | 2105 | _tmp97_ = self->priv->builder; |
2109 | 1953 | g_signal_connect (logs, "activate", (GCallback) ___lambda12__gtk_menu_item_activate, self); | 2106 | _tmp98_ = gtk_builder_get_object (_tmp97_, "miAbout"); |
2110 | 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); |
2111 | 2108 | about = _tmp99_; | ||
2112 | 2109 | _tmp100_ = self->priv->about_win; | ||
2113 | 2110 | g_signal_connect ((GtkDialog*) _tmp100_, "response", (GCallback) ___lambda12__gtk_dialog_response, self); | ||
2114 | 2111 | g_signal_connect (about, "activate", (GCallback) ___lambda13__gtk_menu_item_activate, self); | ||
2115 | 2112 | _tmp101_ = self->priv->about_win; | ||
2116 | 2113 | gtk_about_dialog_set_comments (_tmp101_, "GNOME applet for syncmaildir version " SMD_CONF_VERSION); | ||
2117 | 2114 | _tmp102_ = self->priv->builder; | ||
2118 | 2115 | _tmp103_ = gtk_builder_get_object (_tmp102_, "miPrefs"); | ||
2119 | 2116 | _tmp104_ = _g_object_ref0 (GTK_IS_MENU_ITEM (_tmp103_) ? ((GtkMenuItem*) _tmp103_) : NULL); | ||
2120 | 2117 | prefs = _tmp104_; | ||
2121 | 2118 | g_signal_connect (prefs, "activate", (GCallback) ___lambda14__gtk_menu_item_activate, self); | ||
2122 | 2119 | _tmp105_ = self->priv->builder; | ||
2123 | 2120 | _tmp106_ = gtk_builder_get_object (_tmp105_, "miLog"); | ||
2124 | 2121 | _tmp107_ = _g_object_ref0 (GTK_IS_MENU_ITEM (_tmp106_) ? ((GtkMenuItem*) _tmp106_) : NULL); | ||
2125 | 2122 | logs = _tmp107_; | ||
2126 | 2123 | g_signal_connect (logs, "activate", (GCallback) ___lambda15__gtk_menu_item_activate, self); | ||
2127 | 2124 | _tmp108_ = gtk_status_icon_new_from_icon_name ("mail-send-receive"); | ||
2128 | 1955 | _g_object_unref0 (self->priv->si); | 2125 | _g_object_unref0 (self->priv->si); |
2146 | 1956 | self->priv->si = _tmp98_; | 2126 | self->priv->si = _tmp108_; |
2147 | 1957 | _tmp99_ = self->priv->si; | 2127 | _tmp109_ = self->priv->si; |
2148 | 1958 | _tmp100_ = hide_status_icon; | 2128 | _tmp110_ = hide_status_icon; |
2149 | 1959 | gtk_status_icon_set_visible (_tmp99_, !_tmp100_); | 2129 | gtk_status_icon_set_visible (_tmp109_, !_tmp110_); |
2150 | 1960 | _tmp101_ = self->priv->si; | 2130 | _tmp111_ = self->priv->si; |
2151 | 1961 | gtk_status_icon_set_tooltip_text (_tmp101_, "smd-applet is running"); | 2131 | gtk_status_icon_set_tooltip_text (_tmp111_, "smd-applet is running"); |
2152 | 1962 | _tmp102_ = self->priv->si; | 2132 | _tmp112_ = self->priv->si; |
2153 | 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); |
2154 | 1964 | _tmp103_ = self->priv->si; | 2134 | _tmp113_ = self->priv->si; |
2155 | 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); |
2156 | 1966 | _tmp104_ = notify_get_server_caps (); | 2136 | _tmp114_ = notify_get_server_caps (); |
2157 | 1967 | l = _tmp104_; | 2137 | l = _tmp114_; |
2158 | 1968 | _tmp105_ = g_list_index (l, "persistence"); | 2138 | _tmp115_ = g_list_index (l, "persistence"); |
2159 | 1969 | self->priv->notification_server_has_persistence = 0 <= _tmp105_; | 2139 | self->priv->notification_server_has_persistence = 0 <= _tmp115_; |
2160 | 1970 | _tmp106_ = g_direct_hash; | 2140 | _tmp116_ = g_direct_hash; |
2161 | 1971 | _tmp107_ = g_str_equal; | 2141 | _tmp117_ = g_str_equal; |
2162 | 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_); |
2163 | 1973 | _g_hash_table_unref0 (self->priv->command_hash); | 2143 | _g_hash_table_unref0 (self->priv->command_hash); |
2165 | 1974 | self->priv->command_hash = _tmp108_; | 2144 | self->priv->command_hash = _tmp118_; |
2166 | 1975 | _g_object_unref0 (logs); | 2145 | _g_object_unref0 (logs); |
2167 | 1976 | _g_object_unref0 (prefs); | 2146 | _g_object_unref0 (prefs); |
2168 | 1977 | _g_object_unref0 (about); | 2147 | _g_object_unref0 (about); |
2169 | @@ -1979,6 +2149,7 @@ | |||
2170 | 1979 | _g_object_unref0 (bepp); | 2149 | _g_object_unref0 (bepp); |
2171 | 1980 | _g_object_unref0 (bel); | 2150 | _g_object_unref0 (bel); |
2172 | 1981 | _g_object_unref0 (bc); | 2151 | _g_object_unref0 (bc); |
2173 | 2152 | _g_object_unref0 (bautostart); | ||
2174 | 1982 | _g_object_unref0 (bnotify); | 2153 | _g_object_unref0 (bnotify); |
2175 | 1983 | _g_object_unref0 (bicon); | 2154 | _g_object_unref0 (bicon); |
2176 | 1984 | _g_object_unref0 (close); | 2155 | _g_object_unref0 (close); |
2177 | @@ -2023,7 +2194,7 @@ | |||
2178 | 2023 | _tmp5_ = _tmp4_; | 2194 | _tmp5_ = _tmp4_; |
2179 | 2024 | if (_inner_error_ != NULL) { | 2195 | if (_inner_error_ != NULL) { |
2180 | 2025 | if (_inner_error_->domain == EXIT) { | 2196 | if (_inner_error_->domain == EXIT) { |
2182 | 2026 | goto __catch9_exit; | 2197 | goto __catch11_exit; |
2183 | 2027 | } | 2198 | } |
2184 | 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); |
2185 | 2029 | g_clear_error (&_inner_error_); | 2200 | g_clear_error (&_inner_error_); |
2186 | @@ -2031,8 +2202,8 @@ | |||
2187 | 2031 | } | 2202 | } |
2188 | 2032 | rc = _tmp5_; | 2203 | rc = _tmp5_; |
2189 | 2033 | } | 2204 | } |
2192 | 2034 | goto __finally9; | 2205 | goto __finally11; |
2193 | 2035 | __catch9_exit: | 2206 | __catch11_exit: |
2194 | 2036 | { | 2207 | { |
2195 | 2037 | GError* e = NULL; | 2208 | GError* e = NULL; |
2196 | 2038 | e = _inner_error_; | 2209 | e = _inner_error_; |
2197 | @@ -2040,7 +2211,7 @@ | |||
2198 | 2040 | rc = FALSE; | 2211 | rc = FALSE; |
2199 | 2041 | _g_error_free0 (e); | 2212 | _g_error_free0 (e); |
2200 | 2042 | } | 2213 | } |
2202 | 2043 | __finally9: | 2214 | __finally11: |
2203 | 2044 | if (_inner_error_ != NULL) { | 2215 | if (_inner_error_ != NULL) { |
2204 | 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); |
2205 | 2046 | g_clear_error (&_inner_error_); | 2217 | g_clear_error (&_inner_error_); |
2206 | @@ -2065,7 +2236,6 @@ | |||
2207 | 2065 | gboolean _tmp2_; | 2236 | gboolean _tmp2_; |
2208 | 2066 | gboolean _tmp4_; | 2237 | gboolean _tmp4_; |
2209 | 2067 | gboolean _tmp9_; | 2238 | gboolean _tmp9_; |
2210 | 2068 | GError * _inner_error_ = NULL; | ||
2211 | 2069 | g_return_if_fail (self != NULL); | 2239 | g_return_if_fail (self != NULL); |
2212 | 2070 | _tmp2_ = force; | 2240 | _tmp2_ = force; |
2213 | 2071 | if (!_tmp2_) { | 2241 | if (!_tmp2_) { |
2214 | @@ -2095,39 +2265,10 @@ | |||
2215 | 2095 | _tmp10_ = self->priv->miPause; | 2265 | _tmp10_ = self->priv->miPause; |
2216 | 2096 | gtk_check_menu_item_set_active (_tmp10_, TRUE); | 2266 | gtk_check_menu_item_set_active (_tmp10_, TRUE); |
2217 | 2097 | } else { | 2267 | } else { |
2251 | 2098 | { | 2268 | GThread* _tmp11_; |
2252 | 2099 | GThread* _tmp11_ = NULL; | 2269 | _tmp11_ = g_thread_new (NULL, _smd_applet_smdThread_gthread_func, self); |
2253 | 2100 | GThread* _tmp12_; | 2270 | _g_thread_unref0 (self->priv->thread); |
2254 | 2101 | _tmp11_ = g_thread_create (_smd_applet_smdThread_gthread_func, self, TRUE, &_inner_error_); | 2271 | self->priv->thread = _tmp11_; |
2222 | 2102 | _tmp12_ = _tmp11_; | ||
2223 | 2103 | if (_inner_error_ != NULL) { | ||
2224 | 2104 | if (_inner_error_->domain == G_THREAD_ERROR) { | ||
2225 | 2105 | goto __catch10_g_thread_error; | ||
2226 | 2106 | } | ||
2227 | 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); | ||
2228 | 2108 | g_clear_error (&_inner_error_); | ||
2229 | 2109 | return; | ||
2230 | 2110 | } | ||
2231 | 2111 | self->priv->thread = _tmp12_; | ||
2232 | 2112 | } | ||
2233 | 2113 | goto __finally10; | ||
2234 | 2114 | __catch10_g_thread_error: | ||
2235 | 2115 | { | ||
2236 | 2116 | GError* e = NULL; | ||
2237 | 2117 | FILE* _tmp13_; | ||
2238 | 2118 | e = _inner_error_; | ||
2239 | 2119 | _inner_error_ = NULL; | ||
2240 | 2120 | _tmp13_ = stderr; | ||
2241 | 2121 | fprintf (_tmp13_, "Unable to start a thread\n"); | ||
2242 | 2122 | gtk_main_quit (); | ||
2243 | 2123 | _g_error_free0 (e); | ||
2244 | 2124 | } | ||
2245 | 2125 | __finally10: | ||
2246 | 2126 | if (_inner_error_ != NULL) { | ||
2247 | 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); | ||
2248 | 2128 | g_clear_error (&_inner_error_); | ||
2249 | 2129 | return; | ||
2250 | 2130 | } | ||
2255 | 2131 | } | 2272 | } |
2256 | 2132 | } | 2273 | } |
2257 | 2133 | 2274 | ||
2258 | @@ -2273,36 +2414,34 @@ | |||
2259 | 2273 | gchar* _tmp29_; | 2414 | gchar* _tmp29_; |
2260 | 2274 | gboolean _tmp30_; | 2415 | gboolean _tmp30_; |
2261 | 2275 | gboolean _tmp34_; | 2416 | gboolean _tmp34_; |
2266 | 2276 | GMatchInfo* _tmp43_; | 2417 | GMatchInfo* _tmp41_; |
2267 | 2277 | gchar* _tmp44_ = NULL; | 2418 | gchar* _tmp42_ = NULL; |
2268 | 2278 | gchar* _tmp45_; | 2419 | gchar* _tmp43_; |
2269 | 2279 | gboolean _tmp46_; | 2420 | gboolean _tmp44_; |
2270 | 2280 | gchar* permissions; | 2421 | gchar* permissions; |
2271 | 2281 | gchar* mail_name; | 2422 | gchar* mail_name; |
2272 | 2282 | gchar* mail_body; | 2423 | gchar* mail_body; |
2274 | 2283 | GeeArrayList* _tmp60_; | 2424 | GeeArrayList* _tmp56_; |
2275 | 2284 | GeeArrayList* commands; | 2425 | GeeArrayList* commands; |
2297 | 2285 | gboolean _tmp61_; | 2426 | gboolean _tmp57_; |
2298 | 2286 | GMutex* _tmp134_; | 2427 | GeeArrayList* _tmp130_; |
2299 | 2287 | GeeArrayList* _tmp135_; | 2428 | GeeArrayList* _tmp131_; |
2300 | 2288 | GeeArrayList* _tmp136_; | 2429 | gint _tmp132_; |
2301 | 2289 | gint _tmp137_; | 2430 | gint _tmp133_; |
2302 | 2290 | gint _tmp138_; | 2431 | const gchar* _tmp134_; |
2303 | 2291 | const gchar* _tmp139_; | 2432 | const gchar* _tmp135_; |
2304 | 2292 | const gchar* _tmp140_; | 2433 | GMatchInfo* _tmp136_; |
2305 | 2293 | GMatchInfo* _tmp141_; | 2434 | gchar* _tmp137_ = NULL; |
2306 | 2294 | gchar* _tmp142_ = NULL; | 2435 | gchar* _tmp138_; |
2307 | 2295 | gchar* _tmp143_; | 2436 | GMatchInfo* _tmp139_; |
2308 | 2296 | GMatchInfo* _tmp144_; | 2437 | gchar* _tmp140_ = NULL; |
2309 | 2297 | gchar* _tmp145_ = NULL; | 2438 | gchar* _tmp141_; |
2310 | 2298 | gchar* _tmp146_; | 2439 | const gchar* _tmp142_; |
2311 | 2299 | const gchar* _tmp147_; | 2440 | const gchar* _tmp143_; |
2312 | 2300 | const gchar* _tmp148_; | 2441 | const gchar* _tmp144_; |
2313 | 2301 | const gchar* _tmp149_; | 2442 | GeeArrayList* _tmp145_; |
2314 | 2302 | GeeArrayList* _tmp150_; | 2443 | Event* _tmp146_ = NULL; |
2315 | 2303 | Event* _tmp151_ = NULL; | 2444 | Event* _tmp147_; |
2295 | 2304 | Event* _tmp152_; | ||
2296 | 2305 | GMutex* _tmp153_; | ||
2316 | 2306 | GError * _inner_error_ = NULL; | 2445 | GError * _inner_error_ = NULL; |
2317 | 2307 | g_return_val_if_fail (self != NULL, FALSE); | 2446 | g_return_val_if_fail (self != NULL, FALSE); |
2318 | 2308 | g_return_val_if_fail (args != NULL, FALSE); | 2447 | g_return_val_if_fail (args != NULL, FALSE); |
2319 | @@ -2463,26 +2602,22 @@ | |||
2320 | 2463 | } | 2602 | } |
2321 | 2464 | _tmp34_ = _tmp26_; | 2603 | _tmp34_ = _tmp26_; |
2322 | 2465 | if (_tmp34_) { | 2604 | if (_tmp34_) { |
2324 | 2466 | GMutex* _tmp35_; | 2605 | GeeArrayList* _tmp35_; |
2325 | 2467 | GeeArrayList* _tmp36_; | 2606 | GeeArrayList* _tmp36_; |
2327 | 2468 | GeeArrayList* _tmp37_; | 2607 | gint _tmp37_; |
2328 | 2469 | gint _tmp38_; | 2608 | gint _tmp38_; |
2335 | 2470 | gint _tmp39_; | 2609 | Event* _tmp39_ = NULL; |
2336 | 2471 | Event* _tmp40_ = NULL; | 2610 | Event* _tmp40_; |
2337 | 2472 | Event* _tmp41_; | 2611 | g_mutex_lock (&self->priv->events_lock); |
2338 | 2473 | GMutex* _tmp42_; | 2612 | _tmp35_ = self->priv->events; |
2333 | 2474 | _tmp35_ = self->priv->events_lock; | ||
2334 | 2475 | g_mutex_lock (_tmp35_); | ||
2339 | 2476 | _tmp36_ = self->priv->events; | 2613 | _tmp36_ = self->priv->events; |
2349 | 2477 | _tmp37_ = self->priv->events; | 2614 | _tmp37_ = gee_abstract_collection_get_size ((GeeCollection*) _tmp36_); |
2350 | 2478 | _tmp38_ = gee_collection_get_size ((GeeCollection*) _tmp37_); | 2615 | _tmp38_ = _tmp37_; |
2351 | 2479 | _tmp39_ = _tmp38_; | 2616 | _tmp39_ = event_network_error (); |
2352 | 2480 | _tmp40_ = event_network_error (); | 2617 | _tmp40_ = _tmp39_; |
2353 | 2481 | _tmp41_ = _tmp40_; | 2618 | gee_abstract_list_insert ((GeeAbstractList*) _tmp35_, _tmp38_, _tmp40_); |
2354 | 2482 | gee_abstract_list_insert ((GeeAbstractList*) _tmp36_, _tmp39_, _tmp41_); | 2619 | _event_unref0 (_tmp40_); |
2355 | 2483 | _event_unref0 (_tmp41_); | 2620 | g_mutex_unlock (&self->priv->events_lock); |
2347 | 2484 | _tmp42_ = self->priv->events_lock; | ||
2348 | 2485 | g_mutex_unlock (_tmp42_); | ||
2356 | 2486 | result = TRUE; | 2621 | result = TRUE; |
2357 | 2487 | _g_match_info_free0 (i_act); | 2622 | _g_match_info_free0 (i_act); |
2358 | 2488 | _g_match_info_free0 (i_human); | 2623 | _g_match_info_free0 (i_human); |
2359 | @@ -2494,44 +2629,40 @@ | |||
2360 | 2494 | _g_regex_unref0 (context); | 2629 | _g_regex_unref0 (context); |
2361 | 2495 | return result; | 2630 | return result; |
2362 | 2496 | } | 2631 | } |
2390 | 2497 | _tmp43_ = i_human; | 2632 | _tmp41_ = i_human; |
2391 | 2498 | _tmp44_ = g_match_info_fetch (_tmp43_, 1); | 2633 | _tmp42_ = g_match_info_fetch (_tmp41_, 1); |
2392 | 2499 | _tmp45_ = _tmp44_; | 2634 | _tmp43_ = _tmp42_; |
2393 | 2500 | _tmp46_ = g_strcmp0 (_tmp45_, "necessary") != 0; | 2635 | _tmp44_ = g_strcmp0 (_tmp43_, "necessary") != 0; |
2394 | 2501 | _g_free0 (_tmp45_); | 2636 | _g_free0 (_tmp43_); |
2395 | 2502 | if (_tmp46_) { | 2637 | if (_tmp44_) { |
2396 | 2503 | FILE* _tmp47_; | 2638 | FILE* _tmp45_; |
2397 | 2504 | const gchar* _tmp48_; | 2639 | const gchar* _tmp46_; |
2398 | 2505 | GMutex* _tmp49_; | 2640 | GeeArrayList* _tmp47_; |
2399 | 2506 | GeeArrayList* _tmp50_; | 2641 | GeeArrayList* _tmp48_; |
2400 | 2507 | GeeArrayList* _tmp51_; | 2642 | gint _tmp49_; |
2401 | 2508 | gint _tmp52_; | 2643 | gint _tmp50_; |
2402 | 2509 | gint _tmp53_; | 2644 | GMatchInfo* _tmp51_; |
2403 | 2510 | GMatchInfo* _tmp54_; | 2645 | gchar* _tmp52_ = NULL; |
2404 | 2511 | gchar* _tmp55_ = NULL; | 2646 | gchar* _tmp53_; |
2405 | 2512 | gchar* _tmp56_; | 2647 | Event* _tmp54_ = NULL; |
2406 | 2513 | Event* _tmp57_ = NULL; | 2648 | Event* _tmp55_; |
2407 | 2514 | Event* _tmp58_; | 2649 | _tmp45_ = stderr; |
2408 | 2515 | GMutex* _tmp59_; | 2650 | _tmp46_ = args; |
2409 | 2516 | _tmp47_ = stderr; | 2651 | fprintf (_tmp45_, "smd-loop giving an avoidable error: %s\n", _tmp46_); |
2410 | 2517 | _tmp48_ = args; | 2652 | g_mutex_lock (&self->priv->events_lock); |
2411 | 2518 | fprintf (_tmp47_, "smd-loop giving an avoidable error: %s\n", _tmp48_); | 2653 | _tmp47_ = self->priv->events; |
2412 | 2519 | _tmp49_ = self->priv->events_lock; | 2654 | _tmp48_ = self->priv->events; |
2413 | 2520 | g_mutex_lock (_tmp49_); | 2655 | _tmp49_ = gee_abstract_collection_get_size ((GeeCollection*) _tmp48_); |
2414 | 2521 | _tmp50_ = self->priv->events; | 2656 | _tmp50_ = _tmp49_; |
2415 | 2522 | _tmp51_ = self->priv->events; | 2657 | _tmp51_ = i_cause; |
2416 | 2523 | _tmp52_ = gee_collection_get_size ((GeeCollection*) _tmp51_); | 2658 | _tmp52_ = g_match_info_fetch (_tmp51_, 1); |
2417 | 2524 | _tmp53_ = _tmp52_; | 2659 | _tmp53_ = _tmp52_; |
2428 | 2525 | _tmp54_ = i_cause; | 2660 | _tmp54_ = event_generic_error (_tmp53_); |
2429 | 2526 | _tmp55_ = g_match_info_fetch (_tmp54_, 1); | 2661 | _tmp55_ = _tmp54_; |
2430 | 2527 | _tmp56_ = _tmp55_; | 2662 | gee_abstract_list_insert ((GeeAbstractList*) _tmp47_, _tmp50_, _tmp55_); |
2431 | 2528 | _tmp57_ = event_generic_error (_tmp56_); | 2663 | _event_unref0 (_tmp55_); |
2432 | 2529 | _tmp58_ = _tmp57_; | 2664 | _g_free0 (_tmp53_); |
2433 | 2530 | gee_abstract_list_insert ((GeeAbstractList*) _tmp50_, _tmp53_, _tmp58_); | 2665 | g_mutex_unlock (&self->priv->events_lock); |
2424 | 2531 | _event_unref0 (_tmp58_); | ||
2425 | 2532 | _g_free0 (_tmp56_); | ||
2426 | 2533 | _tmp59_ = self->priv->events_lock; | ||
2427 | 2534 | g_mutex_unlock (_tmp59_); | ||
2434 | 2535 | result = TRUE; | 2666 | result = TRUE; |
2435 | 2536 | _g_match_info_free0 (i_act); | 2667 | _g_match_info_free0 (i_act); |
2436 | 2537 | _g_match_info_free0 (i_human); | 2668 | _g_match_info_free0 (i_human); |
2437 | @@ -2546,103 +2677,103 @@ | |||
2438 | 2546 | permissions = NULL; | 2677 | permissions = NULL; |
2439 | 2547 | mail_name = NULL; | 2678 | mail_name = NULL; |
2440 | 2548 | mail_body = NULL; | 2679 | mail_body = NULL; |
2447 | 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); |
2448 | 2550 | commands = _tmp60_; | 2681 | commands = _tmp56_; |
2449 | 2551 | _tmp61_ = has_actions; | 2682 | _tmp57_ = has_actions; |
2450 | 2552 | if (_tmp61_) { | 2683 | if (_tmp57_) { |
2451 | 2553 | GMatchInfo* _tmp62_; | 2684 | GMatchInfo* _tmp58_; |
2452 | 2554 | gchar* _tmp63_ = NULL; | 2685 | gchar* _tmp59_ = NULL; |
2453 | 2555 | gchar* acts; | 2686 | gchar* acts; |
2455 | 2556 | GRegex* _tmp64_; | 2687 | GRegex* _tmp60_; |
2456 | 2557 | GRegex* r_perm; | 2688 | GRegex* r_perm; |
2458 | 2558 | GRegex* _tmp65_; | 2689 | GRegex* _tmp61_; |
2459 | 2559 | GRegex* r_mail; | 2690 | GRegex* r_mail; |
2461 | 2560 | GRegex* _tmp66_; | 2691 | GRegex* _tmp62_; |
2462 | 2561 | GRegex* r_cmd; | 2692 | GRegex* r_cmd; |
2463 | 2562 | gint from; | 2693 | gint from; |
2547 | 2563 | _tmp62_ = i_act; | 2694 | _tmp58_ = i_act; |
2548 | 2564 | _tmp63_ = g_match_info_fetch (_tmp62_, 1); | 2695 | _tmp59_ = g_match_info_fetch (_tmp58_, 1); |
2549 | 2565 | acts = _tmp63_; | 2696 | acts = _tmp59_; |
2550 | 2566 | _tmp64_ = g_regex_new ("display-permissions\\(([^\\)]+)\\)", 0, 0, &_inner_error_); | 2697 | _tmp60_ = g_regex_new ("display-permissions\\(([^\\)]+)\\)", 0, 0, &_inner_error_); |
2551 | 2567 | r_perm = _tmp64_; | 2698 | r_perm = _tmp60_; |
2552 | 2568 | if (_inner_error_ != NULL) { | 2699 | if (_inner_error_ != NULL) { |
2553 | 2569 | if (_inner_error_->domain == G_REGEX_ERROR) { | 2700 | if (_inner_error_->domain == G_REGEX_ERROR) { |
2554 | 2570 | g_propagate_error (error, _inner_error_); | 2701 | g_propagate_error (error, _inner_error_); |
2555 | 2571 | _g_free0 (acts); | 2702 | _g_free0 (acts); |
2556 | 2572 | _g_object_unref0 (commands); | 2703 | _g_object_unref0 (commands); |
2557 | 2573 | _g_free0 (mail_body); | 2704 | _g_free0 (mail_body); |
2558 | 2574 | _g_free0 (mail_name); | 2705 | _g_free0 (mail_name); |
2559 | 2575 | _g_free0 (permissions); | 2706 | _g_free0 (permissions); |
2560 | 2576 | _g_match_info_free0 (i_act); | 2707 | _g_match_info_free0 (i_act); |
2561 | 2577 | _g_match_info_free0 (i_human); | 2708 | _g_match_info_free0 (i_human); |
2562 | 2578 | _g_match_info_free0 (i_cause); | 2709 | _g_match_info_free0 (i_cause); |
2563 | 2579 | _g_match_info_free0 (i_ctx); | 2710 | _g_match_info_free0 (i_ctx); |
2564 | 2580 | _g_regex_unref0 (actions); | 2711 | _g_regex_unref0 (actions); |
2565 | 2581 | _g_regex_unref0 (human); | 2712 | _g_regex_unref0 (human); |
2566 | 2582 | _g_regex_unref0 (cause); | 2713 | _g_regex_unref0 (cause); |
2567 | 2583 | _g_regex_unref0 (context); | 2714 | _g_regex_unref0 (context); |
2568 | 2584 | return FALSE; | 2715 | return FALSE; |
2569 | 2585 | } else { | 2716 | } else { |
2570 | 2586 | _g_free0 (acts); | 2717 | _g_free0 (acts); |
2571 | 2587 | _g_object_unref0 (commands); | 2718 | _g_object_unref0 (commands); |
2572 | 2588 | _g_free0 (mail_body); | 2719 | _g_free0 (mail_body); |
2573 | 2589 | _g_free0 (mail_name); | 2720 | _g_free0 (mail_name); |
2574 | 2590 | _g_free0 (permissions); | 2721 | _g_free0 (permissions); |
2575 | 2591 | _g_match_info_free0 (i_act); | 2722 | _g_match_info_free0 (i_act); |
2576 | 2592 | _g_match_info_free0 (i_human); | 2723 | _g_match_info_free0 (i_human); |
2577 | 2593 | _g_match_info_free0 (i_cause); | 2724 | _g_match_info_free0 (i_cause); |
2578 | 2594 | _g_match_info_free0 (i_ctx); | 2725 | _g_match_info_free0 (i_ctx); |
2579 | 2595 | _g_regex_unref0 (actions); | 2726 | _g_regex_unref0 (actions); |
2580 | 2596 | _g_regex_unref0 (human); | 2727 | _g_regex_unref0 (human); |
2581 | 2597 | _g_regex_unref0 (cause); | 2728 | _g_regex_unref0 (cause); |
2582 | 2598 | _g_regex_unref0 (context); | 2729 | _g_regex_unref0 (context); |
2583 | 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); |
2584 | 2600 | g_clear_error (&_inner_error_); | 2731 | g_clear_error (&_inner_error_); |
2585 | 2601 | return FALSE; | 2732 | return FALSE; |
2586 | 2602 | } | 2733 | } |
2587 | 2603 | } | 2734 | } |
2588 | 2604 | _tmp65_ = g_regex_new ("display-mail\\(([^\\)]+)\\)", 0, 0, &_inner_error_); | 2735 | _tmp61_ = g_regex_new ("display-mail\\(([^\\)]+)\\)", 0, 0, &_inner_error_); |
2589 | 2605 | r_mail = _tmp65_; | 2736 | r_mail = _tmp61_; |
2590 | 2606 | if (_inner_error_ != NULL) { | 2737 | if (_inner_error_ != NULL) { |
2591 | 2607 | if (_inner_error_->domain == G_REGEX_ERROR) { | 2738 | if (_inner_error_->domain == G_REGEX_ERROR) { |
2592 | 2608 | g_propagate_error (error, _inner_error_); | 2739 | g_propagate_error (error, _inner_error_); |
2593 | 2609 | _g_regex_unref0 (r_perm); | 2740 | _g_regex_unref0 (r_perm); |
2594 | 2610 | _g_free0 (acts); | 2741 | _g_free0 (acts); |
2595 | 2611 | _g_object_unref0 (commands); | 2742 | _g_object_unref0 (commands); |
2596 | 2612 | _g_free0 (mail_body); | 2743 | _g_free0 (mail_body); |
2597 | 2613 | _g_free0 (mail_name); | 2744 | _g_free0 (mail_name); |
2598 | 2614 | _g_free0 (permissions); | 2745 | _g_free0 (permissions); |
2599 | 2615 | _g_match_info_free0 (i_act); | 2746 | _g_match_info_free0 (i_act); |
2600 | 2616 | _g_match_info_free0 (i_human); | 2747 | _g_match_info_free0 (i_human); |
2601 | 2617 | _g_match_info_free0 (i_cause); | 2748 | _g_match_info_free0 (i_cause); |
2602 | 2618 | _g_match_info_free0 (i_ctx); | 2749 | _g_match_info_free0 (i_ctx); |
2603 | 2619 | _g_regex_unref0 (actions); | 2750 | _g_regex_unref0 (actions); |
2604 | 2620 | _g_regex_unref0 (human); | 2751 | _g_regex_unref0 (human); |
2605 | 2621 | _g_regex_unref0 (cause); | 2752 | _g_regex_unref0 (cause); |
2606 | 2622 | _g_regex_unref0 (context); | 2753 | _g_regex_unref0 (context); |
2607 | 2623 | return FALSE; | 2754 | return FALSE; |
2608 | 2624 | } else { | 2755 | } else { |
2609 | 2625 | _g_regex_unref0 (r_perm); | 2756 | _g_regex_unref0 (r_perm); |
2610 | 2626 | _g_free0 (acts); | 2757 | _g_free0 (acts); |
2611 | 2627 | _g_object_unref0 (commands); | 2758 | _g_object_unref0 (commands); |
2612 | 2628 | _g_free0 (mail_body); | 2759 | _g_free0 (mail_body); |
2613 | 2629 | _g_free0 (mail_name); | 2760 | _g_free0 (mail_name); |
2614 | 2630 | _g_free0 (permissions); | 2761 | _g_free0 (permissions); |
2615 | 2631 | _g_match_info_free0 (i_act); | 2762 | _g_match_info_free0 (i_act); |
2616 | 2632 | _g_match_info_free0 (i_human); | 2763 | _g_match_info_free0 (i_human); |
2617 | 2633 | _g_match_info_free0 (i_cause); | 2764 | _g_match_info_free0 (i_cause); |
2618 | 2634 | _g_match_info_free0 (i_ctx); | 2765 | _g_match_info_free0 (i_ctx); |
2619 | 2635 | _g_regex_unref0 (actions); | 2766 | _g_regex_unref0 (actions); |
2620 | 2636 | _g_regex_unref0 (human); | 2767 | _g_regex_unref0 (human); |
2621 | 2637 | _g_regex_unref0 (cause); | 2768 | _g_regex_unref0 (cause); |
2622 | 2638 | _g_regex_unref0 (context); | 2769 | _g_regex_unref0 (context); |
2623 | 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); |
2624 | 2640 | g_clear_error (&_inner_error_); | 2771 | g_clear_error (&_inner_error_); |
2625 | 2641 | return FALSE; | 2772 | return FALSE; |
2626 | 2642 | } | 2773 | } |
2627 | 2643 | } | 2774 | } |
2628 | 2644 | _tmp66_ = g_regex_new ("run\\(([^\\)]+)\\)", 0, 0, &_inner_error_); | 2775 | _tmp62_ = g_regex_new ("run\\(([^\\)]+)\\)", 0, 0, &_inner_error_); |
2629 | 2645 | r_cmd = _tmp66_; | 2776 | r_cmd = _tmp62_; |
2630 | 2646 | if (_inner_error_ != NULL) { | 2777 | if (_inner_error_ != NULL) { |
2631 | 2647 | if (_inner_error_->domain == G_REGEX_ERROR) { | 2778 | if (_inner_error_->domain == G_REGEX_ERROR) { |
2632 | 2648 | g_propagate_error (error, _inner_error_); | 2779 | g_propagate_error (error, _inner_error_); |
2633 | @@ -2685,84 +2816,84 @@ | |||
2634 | 2685 | } | 2816 | } |
2635 | 2686 | from = 0; | 2817 | from = 0; |
2636 | 2687 | { | 2818 | { |
2639 | 2688 | gboolean _tmp67_; | 2819 | gboolean _tmp63_; |
2640 | 2689 | _tmp67_ = TRUE; | 2820 | _tmp63_ = TRUE; |
2641 | 2690 | while (TRUE) { | 2821 | while (TRUE) { |
2646 | 2691 | gboolean _tmp68_; | 2822 | gboolean _tmp64_; |
2647 | 2692 | gboolean _tmp69_ = FALSE; | 2823 | gboolean _tmp65_ = FALSE; |
2648 | 2693 | const gchar* _tmp70_; | 2824 | const gchar* _tmp66_; |
2649 | 2694 | gboolean _tmp74_; | 2825 | gboolean _tmp70_; |
2650 | 2695 | GMatchInfo* i_cmd; | 2826 | GMatchInfo* i_cmd; |
2660 | 2696 | GRegex* _tmp75_; | 2827 | GRegex* _tmp71_; |
2661 | 2697 | const gchar* _tmp76_; | 2828 | const gchar* _tmp72_; |
2662 | 2698 | GMatchInfo* _tmp77_ = NULL; | 2829 | GMatchInfo* _tmp73_ = NULL; |
2663 | 2699 | gboolean _tmp78_ = FALSE; | 2830 | gboolean _tmp74_ = FALSE; |
2664 | 2700 | const gchar* _tmp131_; | 2831 | const gchar* _tmp127_; |
2665 | 2701 | gint _tmp132_; | 2832 | gint _tmp128_; |
2666 | 2702 | gchar* _tmp133_ = NULL; | 2833 | gchar* _tmp129_ = NULL; |
2667 | 2703 | _tmp68_ = _tmp67_; | 2834 | _tmp64_ = _tmp63_; |
2668 | 2704 | if (!_tmp68_) { | 2835 | if (!_tmp64_) { |
2669 | 2705 | } | 2836 | } |
2680 | 2706 | _tmp67_ = FALSE; | 2837 | _tmp63_ = FALSE; |
2681 | 2707 | _tmp70_ = acts; | 2838 | _tmp66_ = acts; |
2682 | 2708 | if (_tmp70_ != NULL) { | 2839 | if (_tmp66_ != NULL) { |
2683 | 2709 | const gchar* _tmp71_; | 2840 | const gchar* _tmp67_; |
2684 | 2710 | gint _tmp72_; | 2841 | gint _tmp68_; |
2685 | 2711 | gint _tmp73_; | 2842 | gint _tmp69_; |
2686 | 2712 | _tmp71_ = acts; | 2843 | _tmp67_ = acts; |
2687 | 2713 | _tmp72_ = strlen (_tmp71_); | 2844 | _tmp68_ = strlen (_tmp67_); |
2688 | 2714 | _tmp73_ = _tmp72_; | 2845 | _tmp69_ = _tmp68_; |
2689 | 2715 | _tmp69_ = _tmp73_ > 0; | 2846 | _tmp65_ = _tmp69_ > 0; |
2690 | 2716 | } else { | 2847 | } else { |
2692 | 2717 | _tmp69_ = FALSE; | 2848 | _tmp65_ = FALSE; |
2693 | 2718 | } | 2849 | } |
2696 | 2719 | _tmp74_ = _tmp69_; | 2850 | _tmp70_ = _tmp65_; |
2697 | 2720 | if (!_tmp74_) { | 2851 | if (!_tmp70_) { |
2698 | 2721 | break; | 2852 | break; |
2699 | 2722 | } | 2853 | } |
2700 | 2723 | i_cmd = NULL; | 2854 | i_cmd = NULL; |
2704 | 2724 | _tmp75_ = r_perm; | 2855 | _tmp71_ = r_perm; |
2705 | 2725 | _tmp76_ = acts; | 2856 | _tmp72_ = acts; |
2706 | 2726 | _tmp78_ = g_regex_match (_tmp75_, _tmp76_, 0, &_tmp77_); | 2857 | _tmp74_ = g_regex_match (_tmp71_, _tmp72_, 0, &_tmp73_); |
2707 | 2727 | _g_match_info_free0 (i_cmd); | 2858 | _g_match_info_free0 (i_cmd); |
2714 | 2728 | i_cmd = _tmp77_; | 2859 | i_cmd = _tmp73_; |
2715 | 2729 | if (_tmp78_) { | 2860 | if (_tmp74_) { |
2716 | 2730 | GMatchInfo* _tmp79_; | 2861 | GMatchInfo* _tmp75_; |
2717 | 2731 | gint _tmp80_ = 0; | 2862 | gint _tmp76_ = 0; |
2718 | 2732 | GMatchInfo* _tmp81_; | 2863 | GMatchInfo* _tmp77_; |
2719 | 2733 | gchar* _tmp82_ = NULL; | 2864 | gchar* _tmp78_ = NULL; |
2720 | 2734 | gchar* file; | 2865 | gchar* file; |
2721 | 2735 | gchar* output; | 2866 | gchar* output; |
2722 | 2736 | gchar* err; | 2867 | gchar* err; |
2729 | 2737 | _tmp79_ = i_cmd; | 2868 | _tmp75_ = i_cmd; |
2730 | 2738 | g_match_info_fetch_pos (_tmp79_, 0, NULL, &_tmp80_); | 2869 | g_match_info_fetch_pos (_tmp75_, 0, NULL, &_tmp76_); |
2731 | 2739 | from = _tmp80_; | 2870 | from = _tmp76_; |
2732 | 2740 | _tmp81_ = i_cmd; | 2871 | _tmp77_ = i_cmd; |
2733 | 2741 | _tmp82_ = g_match_info_fetch (_tmp81_, 1); | 2872 | _tmp78_ = g_match_info_fetch (_tmp77_, 1); |
2734 | 2742 | file = _tmp82_; | 2873 | file = _tmp78_; |
2735 | 2743 | output = NULL; | 2874 | output = NULL; |
2736 | 2744 | err = NULL; | 2875 | err = NULL; |
2737 | 2745 | { | 2876 | { |
2750 | 2746 | const gchar* _tmp83_; | 2877 | const gchar* _tmp79_; |
2751 | 2747 | gchar* _tmp84_; | 2878 | gchar* _tmp80_; |
2752 | 2748 | gchar* _tmp85_; | 2879 | gchar* _tmp81_; |
2753 | 2749 | gchar* _tmp86_ = NULL; | 2880 | gchar* _tmp82_ = NULL; |
2754 | 2750 | gchar* _tmp87_ = NULL; | 2881 | gchar* _tmp83_ = NULL; |
2755 | 2751 | const gchar* _tmp88_; | 2882 | const gchar* _tmp84_; |
2756 | 2752 | const gchar* _tmp89_; | 2883 | const gchar* _tmp85_; |
2757 | 2753 | gchar* _tmp90_; | 2884 | gchar* _tmp86_; |
2758 | 2754 | _tmp83_ = file; | 2885 | _tmp79_ = file; |
2759 | 2755 | _tmp84_ = g_strconcat ("ls -ld ", _tmp83_, NULL); | 2886 | _tmp80_ = g_strconcat ("ls -ld ", _tmp79_, NULL); |
2760 | 2756 | _tmp85_ = _tmp84_; | 2887 | _tmp81_ = _tmp80_; |
2761 | 2757 | g_spawn_command_line_sync (_tmp85_, &_tmp86_, &_tmp87_, NULL, &_inner_error_); | 2888 | g_spawn_command_line_sync (_tmp81_, &_tmp82_, &_tmp83_, NULL, &_inner_error_); |
2762 | 2758 | _g_free0 (output); | 2889 | _g_free0 (output); |
2764 | 2759 | output = _tmp86_; | 2890 | output = _tmp82_; |
2765 | 2760 | _g_free0 (err); | 2891 | _g_free0 (err); |
2768 | 2761 | err = _tmp87_; | 2892 | err = _tmp83_; |
2769 | 2762 | _g_free0 (_tmp85_); | 2893 | _g_free0 (_tmp81_); |
2770 | 2763 | if (_inner_error_ != NULL) { | 2894 | if (_inner_error_ != NULL) { |
2771 | 2764 | if (_inner_error_->domain == G_SPAWN_ERROR) { | 2895 | if (_inner_error_->domain == G_SPAWN_ERROR) { |
2773 | 2765 | goto __catch11_g_spawn_error; | 2896 | goto __catch12_g_spawn_error; |
2774 | 2766 | } | 2897 | } |
2775 | 2767 | _g_free0 (err); | 2898 | _g_free0 (err); |
2776 | 2768 | _g_free0 (output); | 2899 | _g_free0 (output); |
2777 | @@ -2788,28 +2919,28 @@ | |||
2778 | 2788 | g_clear_error (&_inner_error_); | 2919 | g_clear_error (&_inner_error_); |
2779 | 2789 | return FALSE; | 2920 | return FALSE; |
2780 | 2790 | } | 2921 | } |
2784 | 2791 | _tmp88_ = output; | 2922 | _tmp84_ = output; |
2785 | 2792 | _tmp89_ = err; | 2923 | _tmp85_ = err; |
2786 | 2793 | _tmp90_ = g_strconcat (_tmp88_, _tmp89_, NULL); | 2924 | _tmp86_ = g_strconcat (_tmp84_, _tmp85_, NULL); |
2787 | 2794 | _g_free0 (permissions); | 2925 | _g_free0 (permissions); |
2789 | 2795 | permissions = _tmp90_; | 2926 | permissions = _tmp86_; |
2790 | 2796 | } | 2927 | } |
2793 | 2797 | goto __finally11; | 2928 | goto __finally12; |
2794 | 2798 | __catch11_g_spawn_error: | 2929 | __catch12_g_spawn_error: |
2795 | 2799 | { | 2930 | { |
2796 | 2800 | GError* e = NULL; | 2931 | GError* e = NULL; |
2800 | 2801 | FILE* _tmp91_; | 2932 | FILE* _tmp87_; |
2801 | 2802 | GError* _tmp92_; | 2933 | GError* _tmp88_; |
2802 | 2803 | const gchar* _tmp93_; | 2934 | const gchar* _tmp89_; |
2803 | 2804 | e = _inner_error_; | 2935 | e = _inner_error_; |
2804 | 2805 | _inner_error_ = NULL; | 2936 | _inner_error_ = NULL; |
2809 | 2806 | _tmp91_ = stderr; | 2937 | _tmp87_ = stderr; |
2810 | 2807 | _tmp92_ = e; | 2938 | _tmp88_ = e; |
2811 | 2808 | _tmp93_ = _tmp92_->message; | 2939 | _tmp89_ = _tmp88_->message; |
2812 | 2809 | fprintf (_tmp91_, "Spawning ls: %s\n", _tmp93_); | 2940 | fprintf (_tmp87_, "Spawning ls: %s\n", _tmp89_); |
2813 | 2810 | _g_error_free0 (e); | 2941 | _g_error_free0 (e); |
2814 | 2811 | } | 2942 | } |
2816 | 2812 | __finally11: | 2943 | __finally12: |
2817 | 2813 | if (_inner_error_ != NULL) { | 2944 | if (_inner_error_ != NULL) { |
2818 | 2814 | if (_inner_error_->domain == G_REGEX_ERROR) { | 2945 | if (_inner_error_->domain == G_REGEX_ERROR) { |
2819 | 2815 | g_propagate_error (error, _inner_error_); | 2946 | g_propagate_error (error, _inner_error_); |
2820 | @@ -2864,60 +2995,60 @@ | |||
2821 | 2864 | _g_free0 (output); | 2995 | _g_free0 (output); |
2822 | 2865 | _g_free0 (file); | 2996 | _g_free0 (file); |
2823 | 2866 | } else { | 2997 | } else { |
2831 | 2867 | GRegex* _tmp94_; | 2998 | GRegex* _tmp90_; |
2832 | 2868 | const gchar* _tmp95_; | 2999 | const gchar* _tmp91_; |
2833 | 2869 | GMatchInfo* _tmp96_ = NULL; | 3000 | GMatchInfo* _tmp92_ = NULL; |
2834 | 2870 | gboolean _tmp97_ = FALSE; | 3001 | gboolean _tmp93_ = FALSE; |
2835 | 2871 | _tmp94_ = r_mail; | 3002 | _tmp90_ = r_mail; |
2836 | 2872 | _tmp95_ = acts; | 3003 | _tmp91_ = acts; |
2837 | 2873 | _tmp97_ = g_regex_match (_tmp94_, _tmp95_, 0, &_tmp96_); | 3004 | _tmp93_ = g_regex_match (_tmp90_, _tmp91_, 0, &_tmp92_); |
2838 | 2874 | _g_match_info_free0 (i_cmd); | 3005 | _g_match_info_free0 (i_cmd); |
2845 | 2875 | i_cmd = _tmp96_; | 3006 | i_cmd = _tmp92_; |
2846 | 2876 | if (_tmp97_) { | 3007 | if (_tmp93_) { |
2847 | 2877 | GMatchInfo* _tmp98_; | 3008 | GMatchInfo* _tmp94_; |
2848 | 2878 | gint _tmp99_ = 0; | 3009 | gint _tmp95_ = 0; |
2849 | 2879 | GMatchInfo* _tmp100_; | 3010 | GMatchInfo* _tmp96_; |
2850 | 2880 | gchar* _tmp101_ = NULL; | 3011 | gchar* _tmp97_ = NULL; |
2851 | 2881 | gchar* file; | 3012 | gchar* file; |
2853 | 2882 | gchar* _tmp102_; | 3013 | gchar* _tmp98_; |
2854 | 2883 | gchar* output; | 3014 | gchar* output; |
2855 | 2884 | gchar* err; | 3015 | gchar* err; |
2864 | 2885 | _tmp98_ = i_cmd; | 3016 | _tmp94_ = i_cmd; |
2865 | 2886 | g_match_info_fetch_pos (_tmp98_, 0, NULL, &_tmp99_); | 3017 | g_match_info_fetch_pos (_tmp94_, 0, NULL, &_tmp95_); |
2866 | 2887 | from = _tmp99_; | 3018 | from = _tmp95_; |
2867 | 2888 | _tmp100_ = i_cmd; | 3019 | _tmp96_ = i_cmd; |
2868 | 2889 | _tmp101_ = g_match_info_fetch (_tmp100_, 1); | 3020 | _tmp97_ = g_match_info_fetch (_tmp96_, 1); |
2869 | 2890 | file = _tmp101_; | 3021 | file = _tmp97_; |
2870 | 2891 | _tmp102_ = g_strdup (""); | 3022 | _tmp98_ = g_strdup (""); |
2871 | 2892 | output = _tmp102_; | 3023 | output = _tmp98_; |
2872 | 2893 | err = NULL; | 3024 | err = NULL; |
2873 | 2894 | { | 3025 | { |
2886 | 2895 | const gchar* _tmp103_; | 3026 | const gchar* _tmp99_; |
2887 | 2896 | gchar* _tmp104_; | 3027 | gchar* _tmp100_; |
2888 | 2897 | const gchar* _tmp105_; | 3028 | const gchar* _tmp101_; |
2889 | 2898 | gchar* _tmp106_; | 3029 | gchar* _tmp102_; |
2890 | 2899 | gchar* _tmp107_; | 3030 | gchar* _tmp103_; |
2891 | 2900 | gchar* _tmp108_ = NULL; | 3031 | gchar* _tmp104_ = NULL; |
2892 | 2901 | gchar* _tmp109_ = NULL; | 3032 | gchar* _tmp105_ = NULL; |
2893 | 2902 | const gchar* _tmp110_; | 3033 | const gchar* _tmp106_; |
2894 | 2903 | const gchar* _tmp111_; | 3034 | const gchar* _tmp107_; |
2895 | 2904 | gchar* _tmp112_; | 3035 | gchar* _tmp108_; |
2896 | 2905 | _tmp103_ = file; | 3036 | _tmp99_ = file; |
2897 | 2906 | _tmp104_ = g_strdup (_tmp103_); | 3037 | _tmp100_ = g_strdup (_tmp99_); |
2898 | 2907 | _g_free0 (mail_name); | 3038 | _g_free0 (mail_name); |
2904 | 2908 | mail_name = _tmp104_; | 3039 | mail_name = _tmp100_; |
2905 | 2909 | _tmp105_ = file; | 3040 | _tmp101_ = file; |
2906 | 2910 | _tmp106_ = g_strconcat ("cat ", _tmp105_, NULL); | 3041 | _tmp102_ = g_strconcat ("cat ", _tmp101_, NULL); |
2907 | 2911 | _tmp107_ = _tmp106_; | 3042 | _tmp103_ = _tmp102_; |
2908 | 2912 | g_spawn_command_line_sync (_tmp107_, &_tmp108_, &_tmp109_, NULL, &_inner_error_); | 3043 | g_spawn_command_line_sync (_tmp103_, &_tmp104_, &_tmp105_, NULL, &_inner_error_); |
2909 | 2913 | _g_free0 (output); | 3044 | _g_free0 (output); |
2911 | 2914 | output = _tmp108_; | 3045 | output = _tmp104_; |
2912 | 2915 | _g_free0 (err); | 3046 | _g_free0 (err); |
2915 | 2916 | err = _tmp109_; | 3047 | err = _tmp105_; |
2916 | 2917 | _g_free0 (_tmp107_); | 3048 | _g_free0 (_tmp103_); |
2917 | 2918 | if (_inner_error_ != NULL) { | 3049 | if (_inner_error_ != NULL) { |
2918 | 2919 | if (_inner_error_->domain == G_SPAWN_ERROR) { | 3050 | if (_inner_error_->domain == G_SPAWN_ERROR) { |
2920 | 2920 | goto __catch12_g_spawn_error; | 3051 | goto __catch13_g_spawn_error; |
2921 | 2921 | } | 3052 | } |
2922 | 2922 | _g_free0 (err); | 3053 | _g_free0 (err); |
2923 | 2923 | _g_free0 (output); | 3054 | _g_free0 (output); |
2924 | @@ -2943,28 +3074,28 @@ | |||
2925 | 2943 | g_clear_error (&_inner_error_); | 3074 | g_clear_error (&_inner_error_); |
2926 | 2944 | return FALSE; | 3075 | return FALSE; |
2927 | 2945 | } | 3076 | } |
2931 | 2946 | _tmp110_ = output; | 3077 | _tmp106_ = output; |
2932 | 2947 | _tmp111_ = err; | 3078 | _tmp107_ = err; |
2933 | 2948 | _tmp112_ = g_strconcat (_tmp110_, _tmp111_, NULL); | 3079 | _tmp108_ = g_strconcat (_tmp106_, _tmp107_, NULL); |
2934 | 2949 | _g_free0 (mail_body); | 3080 | _g_free0 (mail_body); |
2936 | 2950 | mail_body = _tmp112_; | 3081 | mail_body = _tmp108_; |
2937 | 2951 | } | 3082 | } |
2940 | 2952 | goto __finally12; | 3083 | goto __finally13; |
2941 | 2953 | __catch12_g_spawn_error: | 3084 | __catch13_g_spawn_error: |
2942 | 2954 | { | 3085 | { |
2943 | 2955 | GError* e = NULL; | 3086 | GError* e = NULL; |
2947 | 2956 | FILE* _tmp113_; | 3087 | FILE* _tmp109_; |
2948 | 2957 | GError* _tmp114_; | 3088 | GError* _tmp110_; |
2949 | 2958 | const gchar* _tmp115_; | 3089 | const gchar* _tmp111_; |
2950 | 2959 | e = _inner_error_; | 3090 | e = _inner_error_; |
2951 | 2960 | _inner_error_ = NULL; | 3091 | _inner_error_ = NULL; |
2956 | 2961 | _tmp113_ = stderr; | 3092 | _tmp109_ = stderr; |
2957 | 2962 | _tmp114_ = e; | 3093 | _tmp110_ = e; |
2958 | 2963 | _tmp115_ = _tmp114_->message; | 3094 | _tmp111_ = _tmp110_->message; |
2959 | 2964 | fprintf (_tmp113_, "Spawning ls: %s\n", _tmp115_); | 3095 | fprintf (_tmp109_, "Spawning ls: %s\n", _tmp111_); |
2960 | 2965 | _g_error_free0 (e); | 3096 | _g_error_free0 (e); |
2961 | 2966 | } | 3097 | } |
2963 | 2967 | __finally12: | 3098 | __finally13: |
2964 | 2968 | if (_inner_error_ != NULL) { | 3099 | if (_inner_error_ != NULL) { |
2965 | 2969 | if (_inner_error_->domain == G_REGEX_ERROR) { | 3100 | if (_inner_error_->domain == G_REGEX_ERROR) { |
2966 | 2970 | g_propagate_error (error, _inner_error_); | 3101 | g_propagate_error (error, _inner_error_); |
2967 | @@ -3019,55 +3150,55 @@ | |||
2968 | 3019 | _g_free0 (output); | 3150 | _g_free0 (output); |
2969 | 3020 | _g_free0 (file); | 3151 | _g_free0 (file); |
2970 | 3021 | } else { | 3152 | } else { |
2978 | 3022 | GRegex* _tmp116_; | 3153 | GRegex* _tmp112_; |
2979 | 3023 | const gchar* _tmp117_; | 3154 | const gchar* _tmp113_; |
2980 | 3024 | GMatchInfo* _tmp118_ = NULL; | 3155 | GMatchInfo* _tmp114_ = NULL; |
2981 | 3025 | gboolean _tmp119_ = FALSE; | 3156 | gboolean _tmp115_ = FALSE; |
2982 | 3026 | _tmp116_ = r_cmd; | 3157 | _tmp112_ = r_cmd; |
2983 | 3027 | _tmp117_ = acts; | 3158 | _tmp113_ = acts; |
2984 | 3028 | _tmp119_ = g_regex_match (_tmp116_, _tmp117_, 0, &_tmp118_); | 3159 | _tmp115_ = g_regex_match (_tmp112_, _tmp113_, 0, &_tmp114_); |
2985 | 3029 | _g_match_info_free0 (i_cmd); | 3160 | _g_match_info_free0 (i_cmd); |
2990 | 3030 | i_cmd = _tmp118_; | 3161 | i_cmd = _tmp114_; |
2991 | 3031 | if (_tmp119_) { | 3162 | if (_tmp115_) { |
2992 | 3032 | GMatchInfo* _tmp120_; | 3163 | GMatchInfo* _tmp116_; |
2993 | 3033 | gchar* _tmp121_ = NULL; | 3164 | gchar* _tmp117_ = NULL; |
2994 | 3034 | gchar* command; | 3165 | gchar* command; |
3014 | 3035 | GMatchInfo* _tmp122_; | 3166 | GMatchInfo* _tmp118_; |
3015 | 3036 | gint _tmp123_ = 0; | 3167 | gint _tmp119_ = 0; |
3016 | 3037 | GeeArrayList* _tmp124_; | 3168 | GeeArrayList* _tmp120_; |
3017 | 3038 | GeeArrayList* _tmp125_; | 3169 | GeeArrayList* _tmp121_; |
3018 | 3039 | gint _tmp126_; | 3170 | gint _tmp122_; |
3019 | 3040 | gint _tmp127_; | 3171 | gint _tmp123_; |
3020 | 3041 | const gchar* _tmp128_; | 3172 | const gchar* _tmp124_; |
3021 | 3042 | _tmp120_ = i_cmd; | 3173 | _tmp116_ = i_cmd; |
3022 | 3043 | _tmp121_ = g_match_info_fetch (_tmp120_, 1); | 3174 | _tmp117_ = g_match_info_fetch (_tmp116_, 1); |
3023 | 3044 | command = _tmp121_; | 3175 | command = _tmp117_; |
3024 | 3045 | _tmp122_ = i_cmd; | 3176 | _tmp118_ = i_cmd; |
3025 | 3046 | g_match_info_fetch_pos (_tmp122_, 0, NULL, &_tmp123_); | 3177 | g_match_info_fetch_pos (_tmp118_, 0, NULL, &_tmp119_); |
3026 | 3047 | from = _tmp123_; | 3178 | from = _tmp119_; |
3027 | 3048 | _tmp124_ = commands; | 3179 | _tmp120_ = commands; |
3028 | 3049 | _tmp125_ = commands; | 3180 | _tmp121_ = commands; |
3029 | 3050 | _tmp126_ = gee_collection_get_size ((GeeCollection*) _tmp125_); | 3181 | _tmp122_ = gee_abstract_collection_get_size ((GeeCollection*) _tmp121_); |
3030 | 3051 | _tmp127_ = _tmp126_; | 3182 | _tmp123_ = _tmp122_; |
3031 | 3052 | _tmp128_ = command; | 3183 | _tmp124_ = command; |
3032 | 3053 | gee_abstract_list_insert ((GeeAbstractList*) _tmp124_, _tmp127_, _tmp128_); | 3184 | gee_abstract_list_insert ((GeeAbstractList*) _tmp120_, _tmp123_, _tmp124_); |
3033 | 3054 | _g_free0 (command); | 3185 | _g_free0 (command); |
3034 | 3055 | } else { | 3186 | } else { |
3040 | 3056 | FILE* _tmp129_; | 3187 | FILE* _tmp125_; |
3041 | 3057 | const gchar* _tmp130_; | 3188 | const gchar* _tmp126_; |
3042 | 3058 | _tmp129_ = stderr; | 3189 | _tmp125_ = stderr; |
3043 | 3059 | _tmp130_ = acts; | 3190 | _tmp126_ = acts; |
3044 | 3060 | fprintf (_tmp129_, "Unrecognized action: %s\n", _tmp130_); | 3191 | fprintf (_tmp125_, "Unrecognized action: %s\n", _tmp126_); |
3045 | 3061 | _g_match_info_free0 (i_cmd); | 3192 | _g_match_info_free0 (i_cmd); |
3046 | 3062 | break; | 3193 | break; |
3047 | 3063 | } | 3194 | } |
3048 | 3064 | } | 3195 | } |
3049 | 3065 | } | 3196 | } |
3053 | 3066 | _tmp131_ = acts; | 3197 | _tmp127_ = acts; |
3054 | 3067 | _tmp132_ = from; | 3198 | _tmp128_ = from; |
3055 | 3068 | _tmp133_ = string_substring (_tmp131_, (glong) _tmp132_, (glong) (-1)); | 3199 | _tmp129_ = string_substring (_tmp127_, (glong) _tmp128_, (glong) (-1)); |
3056 | 3069 | _g_free0 (acts); | 3200 | _g_free0 (acts); |
3058 | 3070 | acts = _tmp133_; | 3201 | acts = _tmp129_; |
3059 | 3071 | _g_match_info_free0 (i_cmd); | 3202 | _g_match_info_free0 (i_cmd); |
3060 | 3072 | } | 3203 | } |
3061 | 3073 | } | 3204 | } |
3062 | @@ -3076,32 +3207,30 @@ | |||
3063 | 3076 | _g_regex_unref0 (r_perm); | 3207 | _g_regex_unref0 (r_perm); |
3064 | 3077 | _g_free0 (acts); | 3208 | _g_free0 (acts); |
3065 | 3078 | } | 3209 | } |
3071 | 3079 | _tmp134_ = self->priv->events_lock; | 3210 | g_mutex_lock (&self->priv->events_lock); |
3072 | 3080 | g_mutex_lock (_tmp134_); | 3211 | _tmp130_ = self->priv->events; |
3073 | 3081 | _tmp135_ = self->priv->events; | 3212 | _tmp131_ = self->priv->events; |
3074 | 3082 | _tmp136_ = self->priv->events; | 3213 | _tmp132_ = gee_abstract_collection_get_size ((GeeCollection*) _tmp131_); |
3075 | 3083 | _tmp137_ = gee_collection_get_size ((GeeCollection*) _tmp136_); | 3214 | _tmp133_ = _tmp132_; |
3076 | 3215 | _tmp134_ = account; | ||
3077 | 3216 | _tmp135_ = host; | ||
3078 | 3217 | _tmp136_ = i_ctx; | ||
3079 | 3218 | _tmp137_ = g_match_info_fetch (_tmp136_, 1); | ||
3080 | 3084 | _tmp138_ = _tmp137_; | 3219 | _tmp138_ = _tmp137_; |
3101 | 3085 | _tmp139_ = account; | 3220 | _tmp139_ = i_cause; |
3102 | 3086 | _tmp140_ = host; | 3221 | _tmp140_ = g_match_info_fetch (_tmp139_, 1); |
3103 | 3087 | _tmp141_ = i_ctx; | 3222 | _tmp141_ = _tmp140_; |
3104 | 3088 | _tmp142_ = g_match_info_fetch (_tmp141_, 1); | 3223 | _tmp142_ = permissions; |
3105 | 3089 | _tmp143_ = _tmp142_; | 3224 | _tmp143_ = mail_name; |
3106 | 3090 | _tmp144_ = i_cause; | 3225 | _tmp144_ = mail_body; |
3107 | 3091 | _tmp145_ = g_match_info_fetch (_tmp144_, 1); | 3226 | _tmp145_ = commands; |
3108 | 3092 | _tmp146_ = _tmp145_; | 3227 | _tmp146_ = event_error (_tmp134_, _tmp135_, _tmp138_, _tmp141_, _tmp142_, _tmp143_, _tmp144_, _tmp145_); |
3109 | 3093 | _tmp147_ = permissions; | 3228 | _tmp147_ = _tmp146_; |
3110 | 3094 | _tmp148_ = mail_name; | 3229 | gee_abstract_list_insert ((GeeAbstractList*) _tmp130_, _tmp133_, _tmp147_); |
3111 | 3095 | _tmp149_ = mail_body; | 3230 | _event_unref0 (_tmp147_); |
3112 | 3096 | _tmp150_ = commands; | 3231 | _g_free0 (_tmp141_); |
3113 | 3097 | _tmp151_ = event_error (_tmp139_, _tmp140_, _tmp143_, _tmp146_, _tmp147_, _tmp148_, _tmp149_, _tmp150_); | 3232 | _g_free0 (_tmp138_); |
3114 | 3098 | _tmp152_ = _tmp151_; | 3233 | g_mutex_unlock (&self->priv->events_lock); |
3095 | 3099 | gee_abstract_list_insert ((GeeAbstractList*) _tmp135_, _tmp138_, _tmp152_); | ||
3096 | 3100 | _event_unref0 (_tmp152_); | ||
3097 | 3101 | _g_free0 (_tmp146_); | ||
3098 | 3102 | _g_free0 (_tmp143_); | ||
3099 | 3103 | _tmp153_ = self->priv->events_lock; | ||
3100 | 3104 | g_mutex_unlock (_tmp153_); | ||
3115 | 3105 | result = FALSE; | 3234 | result = FALSE; |
3116 | 3106 | _g_object_unref0 (commands); | 3235 | _g_object_unref0 (commands); |
3117 | 3107 | _g_free0 (mail_body); | 3236 | _g_free0 (mail_body); |
3118 | @@ -3162,7 +3291,7 @@ | |||
3119 | 3162 | if (_inner_error_ != NULL) { | 3291 | if (_inner_error_ != NULL) { |
3120 | 3163 | _g_match_info_free0 (info); | 3292 | _g_match_info_free0 (info); |
3121 | 3164 | if (_inner_error_->domain == G_REGEX_ERROR) { | 3293 | if (_inner_error_->domain == G_REGEX_ERROR) { |
3123 | 3165 | goto __catch13_g_regex_error; | 3294 | goto __catch14_g_regex_error; |
3124 | 3166 | } | 3295 | } |
3125 | 3167 | _g_match_info_free0 (info); | 3296 | _g_match_info_free0 (info); |
3126 | 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); |
3127 | @@ -3175,7 +3304,7 @@ | |||
3128 | 3175 | _g_regex_unref0 (r_tags); | 3304 | _g_regex_unref0 (r_tags); |
3129 | 3176 | _g_match_info_free0 (info); | 3305 | _g_match_info_free0 (info); |
3130 | 3177 | if (_inner_error_->domain == G_REGEX_ERROR) { | 3306 | if (_inner_error_->domain == G_REGEX_ERROR) { |
3132 | 3178 | goto __catch13_g_regex_error; | 3307 | goto __catch14_g_regex_error; |
3133 | 3179 | } | 3308 | } |
3134 | 3180 | _g_regex_unref0 (r_tags); | 3309 | _g_regex_unref0 (r_tags); |
3135 | 3181 | _g_match_info_free0 (info); | 3310 | _g_match_info_free0 (info); |
3136 | @@ -3234,7 +3363,7 @@ | |||
3137 | 3234 | _g_regex_unref0 (r_tags); | 3363 | _g_regex_unref0 (r_tags); |
3138 | 3235 | _g_match_info_free0 (info); | 3364 | _g_match_info_free0 (info); |
3139 | 3236 | if (_inner_error_->domain == G_REGEX_ERROR) { | 3365 | if (_inner_error_->domain == G_REGEX_ERROR) { |
3141 | 3237 | goto __catch13_g_regex_error; | 3366 | goto __catch14_g_regex_error; |
3142 | 3238 | } | 3367 | } |
3143 | 3239 | _g_match_info_free0 (i_args); | 3368 | _g_match_info_free0 (i_args); |
3144 | 3240 | _g_free0 (tags); | 3369 | _g_free0 (tags); |
3145 | @@ -3259,7 +3388,7 @@ | |||
3146 | 3259 | _g_regex_unref0 (r_tags); | 3388 | _g_regex_unref0 (r_tags); |
3147 | 3260 | _g_match_info_free0 (info); | 3389 | _g_match_info_free0 (info); |
3148 | 3261 | if (_inner_error_->domain == G_REGEX_ERROR) { | 3390 | if (_inner_error_->domain == G_REGEX_ERROR) { |
3150 | 3262 | goto __catch13_g_regex_error; | 3391 | goto __catch14_g_regex_error; |
3151 | 3263 | } | 3392 | } |
3152 | 3264 | _g_regex_unref0 (r_stats); | 3393 | _g_regex_unref0 (r_stats); |
3153 | 3265 | _g_match_info_free0 (i_args); | 3394 | _g_match_info_free0 (i_args); |
3154 | @@ -3318,7 +3447,7 @@ | |||
3155 | 3318 | _g_regex_unref0 (r_tags); | 3447 | _g_regex_unref0 (r_tags); |
3156 | 3319 | _g_match_info_free0 (info); | 3448 | _g_match_info_free0 (info); |
3157 | 3320 | if (_inner_error_->domain == G_REGEX_ERROR) { | 3449 | if (_inner_error_->domain == G_REGEX_ERROR) { |
3159 | 3321 | goto __catch13_g_regex_error; | 3450 | goto __catch14_g_regex_error; |
3160 | 3322 | } | 3451 | } |
3161 | 3323 | _g_regex_unref0 (r_error); | 3452 | _g_regex_unref0 (r_error); |
3162 | 3324 | _g_regex_unref0 (r_stats); | 3453 | _g_regex_unref0 (r_stats); |
3163 | @@ -3347,7 +3476,7 @@ | |||
3164 | 3347 | _g_regex_unref0 (r_tags); | 3476 | _g_regex_unref0 (r_tags); |
3165 | 3348 | _g_match_info_free0 (info); | 3477 | _g_match_info_free0 (info); |
3166 | 3349 | if (_inner_error_->domain == G_REGEX_ERROR) { | 3478 | if (_inner_error_->domain == G_REGEX_ERROR) { |
3168 | 3350 | goto __catch13_g_regex_error; | 3479 | goto __catch14_g_regex_error; |
3169 | 3351 | } | 3480 | } |
3170 | 3352 | _g_regex_unref0 (r_neW); | 3481 | _g_regex_unref0 (r_neW); |
3171 | 3353 | _g_regex_unref0 (r_error); | 3482 | _g_regex_unref0 (r_error); |
3172 | @@ -3428,34 +3557,30 @@ | |||
3173 | 3428 | } | 3557 | } |
3174 | 3429 | _tmp52_ = _tmp46_; | 3558 | _tmp52_ = _tmp46_; |
3175 | 3430 | if (_tmp52_) { | 3559 | if (_tmp52_) { |
3177 | 3431 | GMutex* _tmp53_; | 3560 | GeeArrayList* _tmp53_; |
3178 | 3432 | GeeArrayList* _tmp54_; | 3561 | GeeArrayList* _tmp54_; |
3180 | 3433 | GeeArrayList* _tmp55_; | 3562 | gint _tmp55_; |
3181 | 3434 | gint _tmp56_; | 3563 | gint _tmp56_; |
3183 | 3435 | gint _tmp57_; | 3564 | const gchar* _tmp57_; |
3184 | 3436 | const gchar* _tmp58_; | 3565 | const gchar* _tmp58_; |
3186 | 3437 | const gchar* _tmp59_; | 3566 | gint _tmp59_; |
3187 | 3438 | gint _tmp60_; | 3567 | gint _tmp60_; |
3194 | 3439 | gint _tmp61_; | 3568 | Event* _tmp61_ = NULL; |
3195 | 3440 | Event* _tmp62_ = NULL; | 3569 | Event* _tmp62_; |
3196 | 3441 | Event* _tmp63_; | 3570 | g_mutex_lock (&self->priv->events_lock); |
3197 | 3442 | GMutex* _tmp64_; | 3571 | _tmp53_ = self->priv->events; |
3192 | 3443 | _tmp53_ = self->priv->events_lock; | ||
3193 | 3444 | g_mutex_lock (_tmp53_); | ||
3198 | 3445 | _tmp54_ = self->priv->events; | 3572 | _tmp54_ = self->priv->events; |
3212 | 3446 | _tmp55_ = self->priv->events; | 3573 | _tmp55_ = gee_abstract_collection_get_size ((GeeCollection*) _tmp54_); |
3213 | 3447 | _tmp56_ = gee_collection_get_size ((GeeCollection*) _tmp55_); | 3574 | _tmp56_ = _tmp55_; |
3214 | 3448 | _tmp57_ = _tmp56_; | 3575 | _tmp57_ = account; |
3215 | 3449 | _tmp58_ = account; | 3576 | _tmp58_ = host; |
3216 | 3450 | _tmp59_ = host; | 3577 | _tmp59_ = new_mails; |
3217 | 3451 | _tmp60_ = new_mails; | 3578 | _tmp60_ = del_mails; |
3218 | 3452 | _tmp61_ = del_mails; | 3579 | _tmp61_ = event_stats (_tmp57_, _tmp58_, _tmp59_, _tmp60_); |
3219 | 3453 | _tmp62_ = event_stats (_tmp58_, _tmp59_, _tmp60_, _tmp61_); | 3580 | _tmp62_ = _tmp61_; |
3220 | 3454 | _tmp63_ = _tmp62_; | 3581 | gee_abstract_list_insert ((GeeAbstractList*) _tmp53_, _tmp56_, _tmp62_); |
3221 | 3455 | gee_abstract_list_insert ((GeeAbstractList*) _tmp54_, _tmp57_, _tmp63_); | 3582 | _event_unref0 (_tmp62_); |
3222 | 3456 | _event_unref0 (_tmp63_); | 3583 | g_mutex_unlock (&self->priv->events_lock); |
3210 | 3457 | _tmp64_ = self->priv->events_lock; | ||
3211 | 3458 | g_mutex_unlock (_tmp64_); | ||
3223 | 3459 | } else { | 3584 | } else { |
3224 | 3460 | } | 3585 | } |
3225 | 3461 | result = TRUE; | 3586 | result = TRUE; |
3226 | @@ -3475,32 +3600,32 @@ | |||
3227 | 3475 | _g_match_info_free0 (info); | 3600 | _g_match_info_free0 (info); |
3228 | 3476 | return result; | 3601 | return result; |
3229 | 3477 | } else { | 3602 | } else { |
3237 | 3478 | GRegex* _tmp65_; | 3603 | GRegex* _tmp63_; |
3238 | 3479 | const gchar* _tmp66_; | 3604 | const gchar* _tmp64_; |
3239 | 3480 | GMatchInfo* _tmp67_ = NULL; | 3605 | GMatchInfo* _tmp65_ = NULL; |
3240 | 3481 | gboolean _tmp68_ = FALSE; | 3606 | gboolean _tmp66_ = FALSE; |
3241 | 3482 | _tmp65_ = r_error; | 3607 | _tmp63_ = r_error; |
3242 | 3483 | _tmp66_ = tags; | 3608 | _tmp64_ = tags; |
3243 | 3484 | _tmp68_ = g_regex_match (_tmp65_, _tmp66_, 0, &_tmp67_); | 3609 | _tmp66_ = g_regex_match (_tmp63_, _tmp64_, 0, &_tmp65_); |
3244 | 3485 | _g_match_info_free0 (i_args); | 3610 | _g_match_info_free0 (i_args); |
3249 | 3486 | i_args = _tmp67_; | 3611 | i_args = _tmp65_; |
3250 | 3487 | if (_tmp68_) { | 3612 | if (_tmp66_) { |
3251 | 3488 | GMatchInfo* _tmp69_; | 3613 | GMatchInfo* _tmp67_; |
3252 | 3489 | gchar* _tmp70_ = NULL; | 3614 | gchar* _tmp68_ = NULL; |
3253 | 3490 | gchar* args; | 3615 | gchar* args; |
3254 | 3616 | const gchar* _tmp69_; | ||
3255 | 3617 | const gchar* _tmp70_; | ||
3256 | 3491 | const gchar* _tmp71_; | 3618 | const gchar* _tmp71_; |
3269 | 3492 | const gchar* _tmp72_; | 3619 | gboolean _tmp72_ = FALSE; |
3270 | 3493 | const gchar* _tmp73_; | 3620 | gboolean _tmp73_; |
3271 | 3494 | gboolean _tmp74_ = FALSE; | 3621 | _tmp67_ = i_args; |
3272 | 3495 | gboolean _tmp75_; | 3622 | _tmp68_ = g_match_info_fetch (_tmp67_, 1); |
3273 | 3496 | _tmp69_ = i_args; | 3623 | args = _tmp68_; |
3274 | 3497 | _tmp70_ = g_match_info_fetch (_tmp69_, 1); | 3624 | _tmp69_ = args; |
3275 | 3498 | args = _tmp70_; | 3625 | _tmp70_ = account; |
3276 | 3499 | _tmp71_ = args; | 3626 | _tmp71_ = host; |
3277 | 3500 | _tmp72_ = account; | 3627 | _tmp72_ = smd_applet_eval_smd_loop_error_message (self, _tmp69_, _tmp70_, _tmp71_, &_inner_error_); |
3278 | 3501 | _tmp73_ = host; | 3628 | _tmp73_ = _tmp72_; |
3267 | 3502 | _tmp74_ = smd_applet_eval_smd_loop_error_message (self, _tmp71_, _tmp72_, _tmp73_, &_inner_error_); | ||
3268 | 3503 | _tmp75_ = _tmp74_; | ||
3279 | 3504 | if (_inner_error_ != NULL) { | 3629 | if (_inner_error_ != NULL) { |
3280 | 3505 | _g_free0 (args); | 3630 | _g_free0 (args); |
3281 | 3506 | _g_regex_unref0 (r_error); | 3631 | _g_regex_unref0 (r_error); |
3282 | @@ -3513,7 +3638,7 @@ | |||
3283 | 3513 | _g_regex_unref0 (r_tags); | 3638 | _g_regex_unref0 (r_tags); |
3284 | 3514 | _g_match_info_free0 (info); | 3639 | _g_match_info_free0 (info); |
3285 | 3515 | if (_inner_error_->domain == G_REGEX_ERROR) { | 3640 | if (_inner_error_->domain == G_REGEX_ERROR) { |
3287 | 3516 | goto __catch13_g_regex_error; | 3641 | goto __catch14_g_regex_error; |
3288 | 3517 | } | 3642 | } |
3289 | 3518 | _g_free0 (args); | 3643 | _g_free0 (args); |
3290 | 3519 | _g_regex_unref0 (r_error); | 3644 | _g_regex_unref0 (r_error); |
3291 | @@ -3529,7 +3654,7 @@ | |||
3292 | 3529 | g_clear_error (&_inner_error_); | 3654 | g_clear_error (&_inner_error_); |
3293 | 3530 | return FALSE; | 3655 | return FALSE; |
3294 | 3531 | } | 3656 | } |
3296 | 3532 | result = _tmp75_; | 3657 | result = _tmp73_; |
3297 | 3533 | _g_free0 (args); | 3658 | _g_free0 (args); |
3298 | 3534 | _g_regex_unref0 (r_error); | 3659 | _g_regex_unref0 (r_error); |
3299 | 3535 | _g_regex_unref0 (r_stats); | 3660 | _g_regex_unref0 (r_stats); |
3300 | @@ -3542,11 +3667,11 @@ | |||
3301 | 3542 | _g_match_info_free0 (info); | 3667 | _g_match_info_free0 (info); |
3302 | 3543 | return result; | 3668 | return result; |
3303 | 3544 | } else { | 3669 | } else { |
3309 | 3545 | FILE* _tmp76_; | 3670 | FILE* _tmp74_; |
3310 | 3546 | const gchar* _tmp77_; | 3671 | const gchar* _tmp75_; |
3311 | 3547 | _tmp76_ = stderr; | 3672 | _tmp74_ = stderr; |
3312 | 3548 | _tmp77_ = s; | 3673 | _tmp75_ = s; |
3313 | 3549 | fprintf (_tmp76_, "unhandled smd-loop message: %s\n", _tmp77_); | 3674 | fprintf (_tmp74_, "unhandled smd-loop message: %s\n", _tmp75_); |
3314 | 3550 | result = TRUE; | 3675 | result = TRUE; |
3315 | 3551 | _g_regex_unref0 (r_error); | 3676 | _g_regex_unref0 (r_error); |
3316 | 3552 | _g_regex_unref0 (r_stats); | 3677 | _g_regex_unref0 (r_stats); |
3317 | @@ -3570,22 +3695,22 @@ | |||
3318 | 3570 | _g_regex_unref0 (r_tags); | 3695 | _g_regex_unref0 (r_tags); |
3319 | 3571 | _g_match_info_free0 (info); | 3696 | _g_match_info_free0 (info); |
3320 | 3572 | } | 3697 | } |
3323 | 3573 | goto __finally13; | 3698 | goto __finally14; |
3324 | 3574 | __catch13_g_regex_error: | 3699 | __catch14_g_regex_error: |
3325 | 3575 | { | 3700 | { |
3326 | 3576 | GError* e = NULL; | 3701 | GError* e = NULL; |
3330 | 3577 | FILE* _tmp78_; | 3702 | FILE* _tmp76_; |
3331 | 3578 | GError* _tmp79_; | 3703 | GError* _tmp77_; |
3332 | 3579 | const gchar* _tmp80_; | 3704 | const gchar* _tmp78_; |
3333 | 3580 | e = _inner_error_; | 3705 | e = _inner_error_; |
3334 | 3581 | _inner_error_ = NULL; | 3706 | _inner_error_ = NULL; |
3339 | 3582 | _tmp78_ = stderr; | 3707 | _tmp76_ = stderr; |
3340 | 3583 | _tmp79_ = e; | 3708 | _tmp77_ = e; |
3341 | 3584 | _tmp80_ = _tmp79_->message; | 3709 | _tmp78_ = _tmp77_->message; |
3342 | 3585 | fprintf (_tmp78_, "%s\n", _tmp80_); | 3710 | fprintf (_tmp76_, "%s\n", _tmp78_); |
3343 | 3586 | _g_error_free0 (e); | 3711 | _g_error_free0 (e); |
3344 | 3587 | } | 3712 | } |
3346 | 3588 | __finally13: | 3713 | __finally14: |
3347 | 3589 | if (_inner_error_ != NULL) { | 3714 | if (_inner_error_ != NULL) { |
3348 | 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); |
3349 | 3591 | g_clear_error (&_inner_error_); | 3716 | g_clear_error (&_inner_error_); |
3350 | @@ -3596,13 +3721,13 @@ | |||
3351 | 3596 | } | 3721 | } |
3352 | 3597 | 3722 | ||
3353 | 3598 | 3723 | ||
3355 | 3599 | static void ___lambda2_ (smdApplet* self) { | 3724 | static void ___lambda4_ (smdApplet* self) { |
3356 | 3600 | setpgid ((pid_t) 0, (pid_t) 0); | 3725 | setpgid ((pid_t) 0, (pid_t) 0); |
3357 | 3601 | } | 3726 | } |
3358 | 3602 | 3727 | ||
3359 | 3603 | 3728 | ||
3362 | 3604 | static void ____lambda2__gspawn_child_setup_func (gpointer self) { | 3729 | static void ____lambda4__gspawn_child_setup_func (gpointer self) { |
3363 | 3605 | ___lambda2_ (self); | 3730 | ___lambda4_ (self); |
3364 | 3606 | } | 3731 | } |
3365 | 3607 | 3732 | ||
3366 | 3608 | 3733 | ||
3367 | @@ -3661,19 +3786,19 @@ | |||
3368 | 3661 | _tmp8_ = cmd; | 3786 | _tmp8_ = cmd; |
3369 | 3662 | _tmp8__length1 = cmd_length1; | 3787 | _tmp8__length1 = cmd_length1; |
3370 | 3663 | _tmp9_ = flags; | 3788 | _tmp9_ = flags; |
3372 | 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_); |
3373 | 3665 | self->priv->pid = _tmp10_; | 3790 | self->priv->pid = _tmp10_; |
3374 | 3666 | child_in = _tmp11_; | 3791 | child_in = _tmp11_; |
3375 | 3667 | child_out = _tmp12_; | 3792 | child_out = _tmp12_; |
3376 | 3668 | child_err = _tmp13_; | 3793 | child_err = _tmp13_; |
3377 | 3669 | _tmp15_ = _tmp14_; | 3794 | _tmp15_ = _tmp14_; |
3378 | 3670 | if (_inner_error_ != NULL) { | 3795 | if (_inner_error_ != NULL) { |
3380 | 3671 | goto __catch14_g_error; | 3796 | goto __catch15_g_error; |
3381 | 3672 | } | 3797 | } |
3382 | 3673 | rc = _tmp15_; | 3798 | rc = _tmp15_; |
3383 | 3674 | } | 3799 | } |
3386 | 3675 | goto __finally14; | 3800 | goto __finally15; |
3387 | 3676 | __catch14_g_error: | 3801 | __catch15_g_error: |
3388 | 3677 | { | 3802 | { |
3389 | 3678 | GError* e = NULL; | 3803 | GError* e = NULL; |
3390 | 3679 | FILE* _tmp16_; | 3804 | FILE* _tmp16_; |
3391 | @@ -3711,9 +3836,9 @@ | |||
3392 | 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"); |
3393 | 3712 | _inner_error_ = _tmp28_; | 3837 | _inner_error_ = _tmp28_; |
3394 | 3713 | _g_error_free0 (e); | 3838 | _g_error_free0 (e); |
3396 | 3714 | goto __finally14; | 3839 | goto __finally15; |
3397 | 3715 | } | 3840 | } |
3399 | 3716 | __finally14: | 3841 | __finally15: |
3400 | 3717 | if (_inner_error_ != NULL) { | 3842 | if (_inner_error_ != NULL) { |
3401 | 3718 | if (_inner_error_->domain == EXIT) { | 3843 | if (_inner_error_->domain == EXIT) { |
3402 | 3719 | g_propagate_error (error, _inner_error_); | 3844 | g_propagate_error (error, _inner_error_); |
3403 | @@ -3878,7 +4003,7 @@ | |||
3404 | 3878 | } | 4003 | } |
3405 | 3879 | 4004 | ||
3406 | 3880 | 4005 | ||
3408 | 3881 | static void ______lambda15_ (smdApplet* self, NotifyNotification* not, const gchar* action) { | 4006 | static void ______lambda18_ (smdApplet* self, NotifyNotification* not, const gchar* action) { |
3409 | 3882 | GtkWindow* _tmp0_; | 4007 | GtkWindow* _tmp0_; |
3410 | 3883 | g_return_if_fail (not != NULL); | 4008 | g_return_if_fail (not != NULL); |
3411 | 3884 | g_return_if_fail (action != NULL); | 4009 | g_return_if_fail (action != NULL); |
3412 | @@ -3887,12 +4012,12 @@ | |||
3413 | 3887 | } | 4012 | } |
3414 | 3888 | 4013 | ||
3415 | 3889 | 4014 | ||
3418 | 3890 | static void _______lambda15__notify_action_callback (NotifyNotification* notification, const gchar* action, gpointer self) { | 4015 | static void _______lambda18__notify_action_callback (NotifyNotification* notification, const gchar* action, gpointer self) { |
3419 | 3891 | ______lambda15_ (self, notification, action); | 4016 | ______lambda18_ (self, notification, action); |
3420 | 3892 | } | 4017 | } |
3421 | 3893 | 4018 | ||
3422 | 3894 | 4019 | ||
3424 | 3895 | static void ______lambda16_ (smdApplet* self, GtkButton* b) { | 4020 | static void ______lambda19_ (smdApplet* self, GtkButton* b) { |
3425 | 3896 | gint cmd_status = 0; | 4021 | gint cmd_status = 0; |
3426 | 3897 | gchar* output = NULL; | 4022 | gchar* output = NULL; |
3427 | 3898 | gchar* _error_ = NULL; | 4023 | gchar* _error_ = NULL; |
3428 | @@ -3931,7 +4056,7 @@ | |||
3429 | 3931 | cmd_status = _tmp10_; | 4056 | cmd_status = _tmp10_; |
3430 | 3932 | if (_inner_error_ != NULL) { | 4057 | if (_inner_error_ != NULL) { |
3431 | 3933 | if (_inner_error_->domain == G_SPAWN_ERROR) { | 4058 | if (_inner_error_->domain == G_SPAWN_ERROR) { |
3433 | 3934 | goto __catch19_g_spawn_error; | 4059 | goto __catch20_g_spawn_error; |
3434 | 3935 | } | 4060 | } |
3435 | 3936 | _g_free0 (_error_); | 4061 | _g_free0 (_error_); |
3436 | 3937 | _g_free0 (output); | 4062 | _g_free0 (output); |
3437 | @@ -3970,8 +4095,8 @@ | |||
3438 | 3970 | _g_object_unref0 (w); | 4095 | _g_object_unref0 (w); |
3439 | 3971 | } | 4096 | } |
3440 | 3972 | } | 4097 | } |
3443 | 3973 | goto __finally19; | 4098 | goto __finally20; |
3444 | 3974 | __catch19_g_spawn_error: | 4099 | __catch20_g_spawn_error: |
3445 | 3975 | { | 4100 | { |
3446 | 3976 | GError* e = NULL; | 4101 | GError* e = NULL; |
3447 | 3977 | FILE* _tmp21_; | 4102 | FILE* _tmp21_; |
3448 | @@ -3985,7 +4110,7 @@ | |||
3449 | 3985 | fprintf (_tmp21_, "Spawning: %s\n", _tmp23_); | 4110 | fprintf (_tmp21_, "Spawning: %s\n", _tmp23_); |
3450 | 3986 | _g_error_free0 (e); | 4111 | _g_error_free0 (e); |
3451 | 3987 | } | 4112 | } |
3453 | 3988 | __finally19: | 4113 | __finally20: |
3454 | 3989 | if (_inner_error_ != NULL) { | 4114 | if (_inner_error_ != NULL) { |
3455 | 3990 | _g_free0 (_error_); | 4115 | _g_free0 (_error_); |
3456 | 3991 | _g_free0 (output); | 4116 | _g_free0 (output); |
3457 | @@ -3998,8 +4123,8 @@ | |||
3458 | 3998 | } | 4123 | } |
3459 | 3999 | 4124 | ||
3460 | 4000 | 4125 | ||
3463 | 4001 | static void _______lambda16__gtk_button_clicked (GtkButton* _sender, gpointer self) { | 4126 | static void _______lambda19__gtk_button_clicked (GtkButton* _sender, gpointer self) { |
3464 | 4002 | ______lambda16_ (self, _sender); | 4127 | ______lambda19_ (self, _sender); |
3465 | 4003 | } | 4128 | } |
3466 | 4004 | 4129 | ||
3467 | 4005 | 4130 | ||
3468 | @@ -4007,17 +4132,15 @@ | |||
3469 | 4007 | gboolean result = FALSE; | 4132 | gboolean result = FALSE; |
3470 | 4008 | Event* e; | 4133 | Event* e; |
3471 | 4009 | gboolean _tmp0_; | 4134 | gboolean _tmp0_; |
3474 | 4010 | GMutex* _tmp1_; | 4135 | GeeArrayList* _tmp1_; |
3475 | 4011 | GeeArrayList* _tmp2_; | 4136 | gint _tmp2_; |
3476 | 4012 | gint _tmp3_; | 4137 | gint _tmp3_; |
3485 | 4013 | gint _tmp4_; | 4138 | gboolean _tmp9_ = FALSE; |
3486 | 4014 | GMutex* _tmp10_; | 4139 | Event* _tmp10_; |
3487 | 4015 | gboolean _tmp11_ = FALSE; | 4140 | gboolean _tmp13_; |
3488 | 4016 | Event* _tmp12_; | 4141 | gboolean _tmp63_ = FALSE; |
3489 | 4017 | gboolean _tmp15_; | 4142 | Event* _tmp64_; |
3490 | 4018 | gboolean _tmp65_ = FALSE; | 4143 | gboolean _tmp67_; |
3483 | 4019 | Event* _tmp66_; | ||
3484 | 4020 | gboolean _tmp69_; | ||
3491 | 4021 | GError * _inner_error_ = NULL; | 4144 | GError * _inner_error_ = NULL; |
3492 | 4022 | g_return_val_if_fail (self != NULL, FALSE); | 4145 | g_return_val_if_fail (self != NULL, FALSE); |
3493 | 4023 | e = NULL; | 4146 | e = NULL; |
3494 | @@ -4027,175 +4150,173 @@ | |||
3495 | 4027 | _event_unref0 (e); | 4150 | _event_unref0 (e); |
3496 | 4028 | return result; | 4151 | return result; |
3497 | 4029 | } | 4152 | } |
3511 | 4030 | _tmp1_ = self->priv->events_lock; | 4153 | g_mutex_lock (&self->priv->events_lock); |
3512 | 4031 | g_mutex_lock (_tmp1_); | 4154 | _tmp1_ = self->priv->events; |
3513 | 4032 | _tmp2_ = self->priv->events; | 4155 | _tmp2_ = gee_abstract_collection_get_size ((GeeCollection*) _tmp1_); |
3514 | 4033 | _tmp3_ = gee_collection_get_size ((GeeCollection*) _tmp2_); | 4156 | _tmp3_ = _tmp2_; |
3515 | 4034 | _tmp4_ = _tmp3_; | 4157 | if (_tmp3_ > 0) { |
3516 | 4035 | if (_tmp4_ > 0) { | 4158 | GeeArrayList* _tmp4_; |
3517 | 4036 | GeeArrayList* _tmp5_; | 4159 | gpointer _tmp5_ = NULL; |
3518 | 4037 | gpointer _tmp6_ = NULL; | 4160 | GeeArrayList* _tmp6_; |
3519 | 4038 | GeeArrayList* _tmp7_; | 4161 | gpointer _tmp7_ = NULL; |
3520 | 4039 | gpointer _tmp8_ = NULL; | 4162 | Event* _tmp8_; |
3521 | 4040 | Event* _tmp9_; | 4163 | _tmp4_ = self->priv->events; |
3522 | 4041 | _tmp5_ = self->priv->events; | 4164 | _tmp5_ = gee_abstract_list_first ((GeeAbstractList*) _tmp4_); |
3510 | 4042 | _tmp6_ = gee_abstract_list_first ((GeeAbstractList*) _tmp5_); | ||
3523 | 4043 | _event_unref0 (e); | 4165 | _event_unref0 (e); |
3529 | 4044 | e = (Event*) _tmp6_; | 4166 | e = (Event*) _tmp5_; |
3530 | 4045 | _tmp7_ = self->priv->events; | 4167 | _tmp6_ = self->priv->events; |
3531 | 4046 | _tmp8_ = gee_abstract_list_remove_at ((GeeAbstractList*) _tmp7_, 0); | 4168 | _tmp7_ = gee_abstract_list_remove_at ((GeeAbstractList*) _tmp6_, 0); |
3532 | 4047 | _tmp9_ = (Event*) _tmp8_; | 4169 | _tmp8_ = (Event*) _tmp7_; |
3533 | 4048 | _event_unref0 (_tmp9_); | 4170 | _event_unref0 (_tmp8_); |
3534 | 4049 | } | 4171 | } |
3544 | 4050 | _tmp10_ = self->priv->events_lock; | 4172 | g_mutex_unlock (&self->priv->events_lock); |
3545 | 4051 | g_mutex_unlock (_tmp10_); | 4173 | _tmp10_ = e; |
3546 | 4052 | _tmp12_ = e; | 4174 | if (_tmp10_ != NULL) { |
3547 | 4053 | if (_tmp12_ != NULL) { | 4175 | Event* _tmp11_; |
3548 | 4054 | Event* _tmp13_; | 4176 | const gchar* _tmp12_; |
3549 | 4055 | const gchar* _tmp14_; | 4177 | _tmp11_ = e; |
3550 | 4056 | _tmp13_ = e; | 4178 | _tmp12_ = _tmp11_->message; |
3551 | 4057 | _tmp14_ = _tmp13_->message; | 4179 | _tmp9_ = _tmp12_ != NULL; |
3543 | 4058 | _tmp11_ = _tmp14_ != NULL; | ||
3552 | 4059 | } else { | 4180 | } else { |
3554 | 4060 | _tmp11_ = FALSE; | 4181 | _tmp9_ = FALSE; |
3555 | 4061 | } | 4182 | } |
3558 | 4062 | _tmp15_ = _tmp11_; | 4183 | _tmp13_ = _tmp9_; |
3559 | 4063 | if (_tmp15_) { | 4184 | if (_tmp13_) { |
3560 | 4064 | gboolean notify_on_newail; | 4185 | gboolean notify_on_newail; |
3563 | 4065 | gboolean _tmp22_ = FALSE; | 4186 | gboolean _tmp20_ = FALSE; |
3564 | 4066 | Event* _tmp23_; | 4187 | Event* _tmp21_; |
3565 | 4188 | gboolean _tmp22_; | ||
3566 | 4067 | gboolean _tmp24_; | 4189 | gboolean _tmp24_; |
3567 | 4068 | gboolean _tmp26_; | ||
3568 | 4069 | notify_on_newail = FALSE; | 4190 | notify_on_newail = FALSE; |
3569 | 4070 | { | 4191 | { |
3576 | 4071 | GConfClient* _tmp16_; | 4192 | GConfClient* _tmp14_; |
3577 | 4072 | gboolean _tmp17_ = FALSE; | 4193 | gboolean _tmp15_ = FALSE; |
3578 | 4073 | gboolean _tmp18_; | 4194 | gboolean _tmp16_; |
3579 | 4074 | _tmp16_ = self->priv->gconf; | 4195 | _tmp14_ = self->priv->gconf; |
3580 | 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_); |
3581 | 4076 | _tmp18_ = _tmp17_; | 4197 | _tmp16_ = _tmp15_; |
3582 | 4077 | if (_inner_error_ != NULL) { | 4198 | if (_inner_error_ != NULL) { |
3584 | 4078 | goto __catch15_g_error; | 4199 | goto __catch16_g_error; |
3585 | 4079 | } | 4200 | } |
3587 | 4080 | notify_on_newail = _tmp18_; | 4201 | notify_on_newail = _tmp16_; |
3588 | 4081 | } | 4202 | } |
3591 | 4082 | goto __finally15; | 4203 | goto __finally16; |
3592 | 4083 | __catch15_g_error: | 4204 | __catch16_g_error: |
3593 | 4084 | { | 4205 | { |
3594 | 4085 | GError* e = NULL; | 4206 | GError* e = NULL; |
3598 | 4086 | FILE* _tmp19_; | 4207 | FILE* _tmp17_; |
3599 | 4087 | GError* _tmp20_; | 4208 | GError* _tmp18_; |
3600 | 4088 | const gchar* _tmp21_; | 4209 | const gchar* _tmp19_; |
3601 | 4089 | e = _inner_error_; | 4210 | e = _inner_error_; |
3602 | 4090 | _inner_error_ = NULL; | 4211 | _inner_error_ = NULL; |
3607 | 4091 | _tmp19_ = stderr; | 4212 | _tmp17_ = stderr; |
3608 | 4092 | _tmp20_ = e; | 4213 | _tmp18_ = e; |
3609 | 4093 | _tmp21_ = _tmp20_->message; | 4214 | _tmp19_ = _tmp18_->message; |
3610 | 4094 | fprintf (_tmp19_, "%s\n", _tmp21_); | 4215 | fprintf (_tmp17_, "%s\n", _tmp19_); |
3611 | 4095 | _g_error_free0 (e); | 4216 | _g_error_free0 (e); |
3612 | 4096 | } | 4217 | } |
3614 | 4097 | __finally15: | 4218 | __finally16: |
3615 | 4098 | if (_inner_error_ != NULL) { | 4219 | if (_inner_error_ != NULL) { |
3616 | 4099 | _event_unref0 (e); | 4220 | _event_unref0 (e); |
3617 | 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); |
3618 | 4101 | g_clear_error (&_inner_error_); | 4222 | g_clear_error (&_inner_error_); |
3619 | 4102 | return FALSE; | 4223 | return FALSE; |
3620 | 4103 | } | 4224 | } |
3623 | 4104 | _tmp23_ = e; | 4225 | _tmp21_ = e; |
3624 | 4105 | _tmp24_ = _tmp23_->enter_network_error_mode; | 4226 | _tmp22_ = _tmp21_->enter_network_error_mode; |
3625 | 4227 | if (_tmp22_) { | ||
3626 | 4228 | gboolean _tmp23_; | ||
3627 | 4229 | _tmp23_ = self->priv->network_error_mode; | ||
3628 | 4230 | _tmp20_ = _tmp23_; | ||
3629 | 4231 | } else { | ||
3630 | 4232 | _tmp20_ = FALSE; | ||
3631 | 4233 | } | ||
3632 | 4234 | _tmp24_ = _tmp20_; | ||
3633 | 4106 | if (_tmp24_) { | 4235 | if (_tmp24_) { |
3644 | 4107 | gboolean _tmp25_; | 4236 | } else { |
3645 | 4108 | _tmp25_ = self->priv->network_error_mode; | 4237 | gboolean _tmp25_ = FALSE; |
3646 | 4109 | _tmp22_ = _tmp25_; | 4238 | gboolean _tmp26_ = FALSE; |
3647 | 4110 | } else { | 4239 | Event* _tmp27_; |
3638 | 4111 | _tmp22_ = FALSE; | ||
3639 | 4112 | } | ||
3640 | 4113 | _tmp26_ = _tmp22_; | ||
3641 | 4114 | if (_tmp26_) { | ||
3642 | 4115 | } else { | ||
3643 | 4116 | gboolean _tmp27_ = FALSE; | ||
3648 | 4117 | gboolean _tmp28_ = FALSE; | 4240 | gboolean _tmp28_ = FALSE; |
3659 | 4118 | Event* _tmp29_; | 4241 | gboolean _tmp30_; |
3660 | 4119 | gboolean _tmp30_ = FALSE; | 4242 | gboolean _tmp37_; |
3661 | 4120 | gboolean _tmp32_; | 4243 | _tmp27_ = e; |
3662 | 4121 | gboolean _tmp39_; | 4244 | _tmp28_ = event_is_error_event (_tmp27_); |
3663 | 4122 | _tmp29_ = e; | 4245 | if (!_tmp28_) { |
3664 | 4123 | _tmp30_ = event_is_error_event (_tmp29_); | 4246 | gboolean _tmp29_; |
3665 | 4124 | if (!_tmp30_) { | 4247 | _tmp29_ = notify_on_newail; |
3666 | 4125 | gboolean _tmp31_; | 4248 | _tmp26_ = _tmp29_; |
3657 | 4126 | _tmp31_ = notify_on_newail; | ||
3658 | 4127 | _tmp28_ = _tmp31_; | ||
3667 | 4128 | } else { | 4249 | } else { |
3669 | 4129 | _tmp28_ = FALSE; | 4250 | _tmp26_ = FALSE; |
3670 | 4130 | } | 4251 | } |
3674 | 4131 | _tmp32_ = _tmp28_; | 4252 | _tmp30_ = _tmp26_; |
3675 | 4132 | if (_tmp32_) { | 4253 | if (_tmp30_) { |
3676 | 4133 | _tmp27_ = TRUE; | 4254 | _tmp25_ = TRUE; |
3677 | 4134 | } else { | 4255 | } else { |
3678 | 4256 | gboolean _tmp31_ = FALSE; | ||
3679 | 4257 | Event* _tmp32_; | ||
3680 | 4135 | gboolean _tmp33_ = FALSE; | 4258 | gboolean _tmp33_ = FALSE; |
3692 | 4136 | Event* _tmp34_; | 4259 | gboolean _tmp36_; |
3693 | 4137 | gboolean _tmp35_ = FALSE; | 4260 | _tmp32_ = e; |
3694 | 4138 | gboolean _tmp38_; | 4261 | _tmp33_ = event_is_error_event (_tmp32_); |
3695 | 4139 | _tmp34_ = e; | 4262 | if (_tmp33_) { |
3696 | 4140 | _tmp35_ = event_is_error_event (_tmp34_); | 4263 | Event* _tmp34_; |
3697 | 4141 | if (_tmp35_) { | 4264 | gboolean _tmp35_; |
3698 | 4142 | Event* _tmp36_; | 4265 | _tmp34_ = e; |
3699 | 4143 | gboolean _tmp37_; | 4266 | _tmp35_ = _tmp34_->enter_network_error_mode; |
3700 | 4144 | _tmp36_ = e; | 4267 | _tmp31_ = _tmp35_; |
3690 | 4145 | _tmp37_ = _tmp36_->enter_network_error_mode; | ||
3691 | 4146 | _tmp33_ = _tmp37_; | ||
3701 | 4147 | } else { | 4268 | } else { |
3703 | 4148 | _tmp33_ = FALSE; | 4269 | _tmp31_ = FALSE; |
3704 | 4149 | } | 4270 | } |
3707 | 4150 | _tmp38_ = _tmp33_; | 4271 | _tmp36_ = _tmp31_; |
3708 | 4151 | _tmp27_ = _tmp38_; | 4272 | _tmp25_ = _tmp36_; |
3709 | 4152 | } | 4273 | } |
3712 | 4153 | _tmp39_ = _tmp27_; | 4274 | _tmp37_ = _tmp25_; |
3713 | 4154 | if (_tmp39_) { | 4275 | if (_tmp37_) { |
3714 | 4276 | Event* _tmp38_; | ||
3715 | 4277 | const gchar* _tmp39_; | ||
3716 | 4155 | Event* _tmp40_; | 4278 | Event* _tmp40_; |
3717 | 4156 | const gchar* _tmp41_; | 4279 | const gchar* _tmp41_; |
3724 | 4157 | Event* _tmp42_; | 4280 | NotifyNotification* _tmp42_; |
3725 | 4158 | const gchar* _tmp43_; | 4281 | NotifyNotification* _tmp43_; |
3726 | 4159 | NotifyNotification* _tmp44_; | 4282 | GVariant* _tmp44_; |
3727 | 4160 | NotifyNotification* _tmp45_; | 4283 | GVariant* _tmp45_; |
3728 | 4161 | GVariant* _tmp46_; | 4284 | _tmp38_ = e; |
3729 | 4162 | GVariant* _tmp47_; | 4285 | _tmp39_ = _tmp38_->message; |
3730 | 4163 | _tmp40_ = e; | 4286 | _tmp40_ = e; |
3735 | 4164 | _tmp41_ = _tmp40_->message; | 4287 | _tmp41_ = _tmp40_->message_icon; |
3736 | 4165 | _tmp42_ = e; | 4288 | _tmp42_ = notify_notification_new ("Syncmaildir", _tmp39_, _tmp41_); |
3733 | 4166 | _tmp43_ = _tmp42_->message_icon; | ||
3734 | 4167 | _tmp44_ = notify_notification_new ("Syncmaildir", _tmp41_, _tmp43_); | ||
3737 | 4168 | _g_object_unref0 (self->priv->notification); | 4289 | _g_object_unref0 (self->priv->notification); |
3744 | 4169 | self->priv->notification = _tmp44_; | 4290 | self->priv->notification = _tmp42_; |
3745 | 4170 | _tmp45_ = self->priv->notification; | 4291 | _tmp43_ = self->priv->notification; |
3746 | 4171 | _tmp46_ = g_variant_new_boolean (TRUE); | 4292 | _tmp44_ = g_variant_new_boolean (TRUE); |
3747 | 4172 | _tmp47_ = g_variant_ref_sink (_tmp46_); | 4293 | _tmp45_ = g_variant_ref_sink (_tmp44_); |
3748 | 4173 | notify_notification_set_hint (_tmp45_, "transient", _tmp47_); | 4294 | notify_notification_set_hint (_tmp43_, "transient", _tmp45_); |
3749 | 4174 | _g_variant_unref0 (_tmp47_); | 4295 | _g_variant_unref0 (_tmp45_); |
3750 | 4175 | { | 4296 | { |
3754 | 4176 | NotifyNotification* _tmp48_; | 4297 | NotifyNotification* _tmp46_; |
3755 | 4177 | _tmp48_ = self->priv->notification; | 4298 | _tmp46_ = self->priv->notification; |
3756 | 4178 | notify_notification_show (_tmp48_, &_inner_error_); | 4299 | notify_notification_show (_tmp46_, &_inner_error_); |
3757 | 4179 | if (_inner_error_ != NULL) { | 4300 | if (_inner_error_ != NULL) { |
3759 | 4180 | goto __catch16_g_error; | 4301 | goto __catch17_g_error; |
3760 | 4181 | } | 4302 | } |
3761 | 4182 | } | 4303 | } |
3764 | 4183 | goto __finally16; | 4304 | goto __finally17; |
3765 | 4184 | __catch16_g_error: | 4305 | __catch17_g_error: |
3766 | 4185 | { | 4306 | { |
3767 | 4186 | GError* e = NULL; | 4307 | GError* e = NULL; |
3771 | 4187 | FILE* _tmp49_; | 4308 | FILE* _tmp47_; |
3772 | 4188 | GError* _tmp50_; | 4309 | GError* _tmp48_; |
3773 | 4189 | const gchar* _tmp51_; | 4310 | const gchar* _tmp49_; |
3774 | 4190 | e = _inner_error_; | 4311 | e = _inner_error_; |
3775 | 4191 | _inner_error_ = NULL; | 4312 | _inner_error_ = NULL; |
3780 | 4192 | _tmp49_ = stderr; | 4313 | _tmp47_ = stderr; |
3781 | 4193 | _tmp50_ = e; | 4314 | _tmp48_ = e; |
3782 | 4194 | _tmp51_ = _tmp50_->message; | 4315 | _tmp49_ = _tmp48_->message; |
3783 | 4195 | fprintf (_tmp49_, "%s\n", _tmp51_); | 4316 | fprintf (_tmp47_, "%s\n", _tmp49_); |
3784 | 4196 | _g_error_free0 (e); | 4317 | _g_error_free0 (e); |
3785 | 4197 | } | 4318 | } |
3787 | 4198 | __finally16: | 4319 | __finally17: |
3788 | 4199 | if (_inner_error_ != NULL) { | 4320 | if (_inner_error_ != NULL) { |
3789 | 4200 | _event_unref0 (e); | 4321 | _event_unref0 (e); |
3790 | 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); |
3791 | @@ -4203,53 +4324,53 @@ | |||
3792 | 4203 | return FALSE; | 4324 | return FALSE; |
3793 | 4204 | } | 4325 | } |
3794 | 4205 | } else { | 4326 | } else { |
3800 | 4206 | Event* _tmp52_; | 4327 | Event* _tmp50_; |
3801 | 4207 | gboolean _tmp53_ = FALSE; | 4328 | gboolean _tmp51_ = FALSE; |
3802 | 4208 | _tmp52_ = e; | 4329 | _tmp50_ = e; |
3803 | 4209 | _tmp53_ = event_is_error_event (_tmp52_); | 4330 | _tmp51_ = event_is_error_event (_tmp50_); |
3804 | 4210 | if (_tmp53_) { | 4331 | if (_tmp51_) { |
3805 | 4332 | Event* _tmp52_; | ||
3806 | 4333 | const gchar* _tmp53_; | ||
3807 | 4211 | Event* _tmp54_; | 4334 | Event* _tmp54_; |
3808 | 4212 | const gchar* _tmp55_; | 4335 | const gchar* _tmp55_; |
3811 | 4213 | Event* _tmp56_; | 4336 | NotifyNotification* _tmp56_; |
3812 | 4214 | const gchar* _tmp57_; | 4337 | NotifyNotification* _tmp57_; |
3813 | 4215 | NotifyNotification* _tmp58_; | 4338 | NotifyNotification* _tmp58_; |
3816 | 4216 | NotifyNotification* _tmp59_; | 4339 | _tmp52_ = e; |
3817 | 4217 | NotifyNotification* _tmp60_; | 4340 | _tmp53_ = _tmp52_->message; |
3818 | 4218 | _tmp54_ = e; | 4341 | _tmp54_ = e; |
3823 | 4219 | _tmp55_ = _tmp54_->message; | 4342 | _tmp55_ = _tmp54_->message_icon; |
3824 | 4220 | _tmp56_ = e; | 4343 | _tmp56_ = notify_notification_new ("Syncmaildir", _tmp53_, _tmp55_); |
3821 | 4221 | _tmp57_ = _tmp56_->message_icon; | ||
3822 | 4222 | _tmp58_ = notify_notification_new ("Syncmaildir", _tmp55_, _tmp57_); | ||
3825 | 4223 | _g_object_unref0 (self->priv->notification); | 4344 | _g_object_unref0 (self->priv->notification); |
3831 | 4224 | self->priv->notification = _tmp58_; | 4345 | self->priv->notification = _tmp56_; |
3832 | 4225 | _tmp59_ = self->priv->notification; | 4346 | _tmp57_ = self->priv->notification; |
3833 | 4226 | notify_notification_set_timeout (_tmp59_, 0); | 4347 | notify_notification_set_timeout (_tmp57_, 0); |
3834 | 4227 | _tmp60_ = self->priv->notification; | 4348 | _tmp58_ = self->priv->notification; |
3835 | 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); |
3836 | 4229 | { | 4350 | { |
3840 | 4230 | NotifyNotification* _tmp61_; | 4351 | NotifyNotification* _tmp59_; |
3841 | 4231 | _tmp61_ = self->priv->notification; | 4352 | _tmp59_ = self->priv->notification; |
3842 | 4232 | notify_notification_show (_tmp61_, &_inner_error_); | 4353 | notify_notification_show (_tmp59_, &_inner_error_); |
3843 | 4233 | if (_inner_error_ != NULL) { | 4354 | if (_inner_error_ != NULL) { |
3845 | 4234 | goto __catch17_g_error; | 4355 | goto __catch18_g_error; |
3846 | 4235 | } | 4356 | } |
3847 | 4236 | } | 4357 | } |
3850 | 4237 | goto __finally17; | 4358 | goto __finally18; |
3851 | 4238 | __catch17_g_error: | 4359 | __catch18_g_error: |
3852 | 4239 | { | 4360 | { |
3853 | 4240 | GError* e = NULL; | 4361 | GError* e = NULL; |
3857 | 4241 | FILE* _tmp62_; | 4362 | FILE* _tmp60_; |
3858 | 4242 | GError* _tmp63_; | 4363 | GError* _tmp61_; |
3859 | 4243 | const gchar* _tmp64_; | 4364 | const gchar* _tmp62_; |
3860 | 4244 | e = _inner_error_; | 4365 | e = _inner_error_; |
3861 | 4245 | _inner_error_ = NULL; | 4366 | _inner_error_ = NULL; |
3866 | 4246 | _tmp62_ = stderr; | 4367 | _tmp60_ = stderr; |
3867 | 4247 | _tmp63_ = e; | 4368 | _tmp61_ = e; |
3868 | 4248 | _tmp64_ = _tmp63_->message; | 4369 | _tmp62_ = _tmp61_->message; |
3869 | 4249 | fprintf (_tmp62_, "%s\n", _tmp64_); | 4370 | fprintf (_tmp60_, "%s\n", _tmp62_); |
3870 | 4250 | _g_error_free0 (e); | 4371 | _g_error_free0 (e); |
3871 | 4251 | } | 4372 | } |
3873 | 4252 | __finally17: | 4373 | __finally18: |
3874 | 4253 | if (_inner_error_ != NULL) { | 4374 | if (_inner_error_ != NULL) { |
3875 | 4254 | _event_unref0 (e); | 4375 | _event_unref0 (e); |
3876 | 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); |
3877 | @@ -4260,306 +4381,306 @@ | |||
3878 | 4260 | } | 4381 | } |
3879 | 4261 | } | 4382 | } |
3880 | 4262 | } | 4383 | } |
3888 | 4263 | _tmp66_ = e; | 4384 | _tmp64_ = e; |
3889 | 4264 | if (_tmp66_ != NULL) { | 4385 | if (_tmp64_ != NULL) { |
3890 | 4265 | Event* _tmp67_; | 4386 | Event* _tmp65_; |
3891 | 4266 | gboolean _tmp68_; | 4387 | gboolean _tmp66_; |
3892 | 4267 | _tmp67_ = e; | 4388 | _tmp65_ = e; |
3893 | 4268 | _tmp68_ = _tmp67_->enter_error_mode; | 4389 | _tmp66_ = _tmp65_->enter_error_mode; |
3894 | 4269 | _tmp65_ = _tmp68_; | 4390 | _tmp63_ = _tmp66_; |
3895 | 4270 | } else { | 4391 | } else { |
3897 | 4271 | _tmp65_ = FALSE; | 4392 | _tmp63_ = FALSE; |
3898 | 4272 | } | 4393 | } |
3907 | 4273 | _tmp69_ = _tmp65_; | 4394 | _tmp67_ = _tmp63_; |
3908 | 4274 | if (_tmp69_) { | 4395 | if (_tmp67_) { |
3909 | 4275 | GtkStatusIcon* _tmp70_; | 4396 | GtkStatusIcon* _tmp68_; |
3910 | 4276 | GtkStatusIcon* _tmp71_; | 4397 | GtkStatusIcon* _tmp69_; |
3911 | 4277 | gboolean _tmp72_; | 4398 | gboolean _tmp70_; |
3912 | 4278 | GtkBuilder* _tmp74_; | 4399 | GtkBuilder* _tmp72_; |
3913 | 4279 | GObject* _tmp75_ = NULL; | 4400 | GObject* _tmp73_ = NULL; |
3914 | 4280 | GtkLabel* _tmp76_; | 4401 | GtkLabel* _tmp74_; |
3915 | 4281 | GtkLabel* l_ctx; | 4402 | GtkLabel* l_ctx; |
3919 | 4282 | GtkBuilder* _tmp77_; | 4403 | GtkBuilder* _tmp75_; |
3920 | 4283 | GObject* _tmp78_ = NULL; | 4404 | GObject* _tmp76_ = NULL; |
3921 | 4284 | GtkLabel* _tmp79_; | 4405 | GtkLabel* _tmp77_; |
3922 | 4285 | GtkLabel* l_cause; | 4406 | GtkLabel* l_cause; |
3933 | 4286 | GtkLabel* _tmp80_; | 4407 | GtkLabel* _tmp78_; |
3934 | 4287 | Event* _tmp81_; | 4408 | Event* _tmp79_; |
3935 | 4288 | const gchar* _tmp82_; | 4409 | const gchar* _tmp80_; |
3936 | 4289 | GtkLabel* _tmp83_; | 4410 | GtkLabel* _tmp81_; |
3937 | 4290 | Event* _tmp84_; | 4411 | Event* _tmp82_; |
3938 | 4291 | const gchar* _tmp85_; | 4412 | const gchar* _tmp83_; |
3939 | 4292 | GHashTable* _tmp86_; | 4413 | GHashTable* _tmp84_; |
3940 | 4293 | GtkBuilder* _tmp87_; | 4414 | GtkBuilder* _tmp85_; |
3941 | 4294 | GObject* _tmp88_ = NULL; | 4415 | GObject* _tmp86_ = NULL; |
3942 | 4295 | GtkVBox* _tmp89_; | 4416 | GtkVBox* _tmp87_; |
3943 | 4296 | GtkVBox* vb; | 4417 | GtkVBox* vb; |
3955 | 4297 | GtkVBox* _tmp90_; | 4418 | GtkVBox* _tmp88_; |
3956 | 4298 | GList* _tmp91_ = NULL; | 4419 | GList* _tmp89_ = NULL; |
3957 | 4299 | Event* _tmp95_; | 4420 | Event* _tmp93_; |
3958 | 4300 | const gchar* _tmp96_; | 4421 | const gchar* _tmp94_; |
3959 | 4301 | Event* _tmp103_; | 4422 | Event* _tmp101_; |
3960 | 4302 | const gchar* _tmp104_; | 4423 | const gchar* _tmp102_; |
3961 | 4303 | Event* _tmp132_; | 4424 | Event* _tmp130_; |
3962 | 4304 | GeeArrayList* _tmp133_; | 4425 | GeeArrayList* _tmp131_; |
3963 | 4305 | GtkBuilder* _tmp182_; | 4426 | GtkBuilder* _tmp180_; |
3964 | 4306 | GObject* _tmp183_ = NULL; | 4427 | GObject* _tmp181_ = NULL; |
3965 | 4307 | GtkWidget* _tmp184_; | 4428 | GtkWidget* _tmp182_; |
3966 | 4308 | GtkWidget* x; | 4429 | GtkWidget* x; |
3988 | 4309 | GtkWidget* _tmp185_; | 4430 | GtkWidget* _tmp183_; |
3989 | 4310 | Event* _tmp186_; | 4431 | Event* _tmp184_; |
3990 | 4311 | const gchar* _tmp187_; | 4432 | const gchar* _tmp185_; |
3991 | 4312 | GtkBuilder* _tmp188_; | 4433 | GtkBuilder* _tmp186_; |
3992 | 4313 | GObject* _tmp189_ = NULL; | 4434 | GObject* _tmp187_ = NULL; |
3993 | 4314 | GtkWidget* _tmp190_; | 4435 | GtkWidget* _tmp188_; |
3994 | 4315 | GtkWidget* _tmp191_; | 4436 | GtkWidget* _tmp189_; |
3995 | 4316 | Event* _tmp192_; | 4437 | Event* _tmp190_; |
3996 | 4317 | const gchar* _tmp193_; | 4438 | const gchar* _tmp191_; |
3997 | 4318 | GtkBuilder* _tmp194_; | 4439 | GtkBuilder* _tmp192_; |
3998 | 4319 | GObject* _tmp195_ = NULL; | 4440 | GObject* _tmp193_ = NULL; |
3999 | 4320 | GtkWidget* _tmp196_; | 4441 | GtkWidget* _tmp194_; |
4000 | 4321 | GtkWidget* _tmp197_; | 4442 | GtkWidget* _tmp195_; |
4001 | 4322 | Event* _tmp198_; | 4443 | Event* _tmp196_; |
4002 | 4323 | GeeArrayList* _tmp199_; | 4444 | GeeArrayList* _tmp197_; |
4003 | 4324 | gint _tmp200_; | 4445 | gint _tmp198_; |
4004 | 4325 | gint _tmp201_; | 4446 | gint _tmp199_; |
4005 | 4326 | _tmp70_ = self->priv->si; | 4447 | _tmp68_ = self->priv->si; |
4006 | 4327 | gtk_status_icon_set_from_icon_name (_tmp70_, "error"); | 4448 | gtk_status_icon_set_from_icon_name (_tmp68_, "error"); |
4007 | 4328 | _tmp71_ = self->priv->si; | 4449 | _tmp69_ = self->priv->si; |
4008 | 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"); |
4009 | 4330 | self->priv->error_mode = TRUE; | 4451 | self->priv->error_mode = TRUE; |
4015 | 4331 | _tmp72_ = self->priv->notification_server_has_persistence; | 4452 | _tmp70_ = self->priv->notification_server_has_persistence; |
4016 | 4332 | if (!_tmp72_) { | 4453 | if (!_tmp70_) { |
4017 | 4333 | GtkStatusIcon* _tmp73_; | 4454 | GtkStatusIcon* _tmp71_; |
4018 | 4334 | _tmp73_ = self->priv->si; | 4455 | _tmp71_ = self->priv->si; |
4019 | 4335 | gtk_status_icon_set_visible (_tmp73_, TRUE); | 4456 | gtk_status_icon_set_visible (_tmp71_, TRUE); |
4020 | 4336 | } | 4457 | } |
4045 | 4337 | _tmp74_ = self->priv->builder; | 4458 | _tmp72_ = self->priv->builder; |
4046 | 4338 | _tmp75_ = gtk_builder_get_object (_tmp74_, "lContext"); | 4459 | _tmp73_ = gtk_builder_get_object (_tmp72_, "lContext"); |
4047 | 4339 | _tmp76_ = _g_object_ref0 (GTK_IS_LABEL (_tmp75_) ? ((GtkLabel*) _tmp75_) : NULL); | 4460 | _tmp74_ = _g_object_ref0 (GTK_IS_LABEL (_tmp73_) ? ((GtkLabel*) _tmp73_) : NULL); |
4048 | 4340 | l_ctx = _tmp76_; | 4461 | l_ctx = _tmp74_; |
4049 | 4341 | _tmp77_ = self->priv->builder; | 4462 | _tmp75_ = self->priv->builder; |
4050 | 4342 | _tmp78_ = gtk_builder_get_object (_tmp77_, "lCause"); | 4463 | _tmp76_ = gtk_builder_get_object (_tmp75_, "lCause"); |
4051 | 4343 | _tmp79_ = _g_object_ref0 (GTK_IS_LABEL (_tmp78_) ? ((GtkLabel*) _tmp78_) : NULL); | 4464 | _tmp77_ = _g_object_ref0 (GTK_IS_LABEL (_tmp76_) ? ((GtkLabel*) _tmp76_) : NULL); |
4052 | 4344 | l_cause = _tmp79_; | 4465 | l_cause = _tmp77_; |
4053 | 4345 | _tmp80_ = l_ctx; | 4466 | _tmp78_ = l_ctx; |
4054 | 4346 | _tmp81_ = e; | 4467 | _tmp79_ = e; |
4055 | 4347 | _tmp82_ = _tmp81_->context; | 4468 | _tmp80_ = _tmp79_->context; |
4056 | 4348 | gtk_label_set_text (_tmp80_, _tmp82_); | 4469 | gtk_label_set_text (_tmp78_, _tmp80_); |
4057 | 4349 | _tmp83_ = l_cause; | 4470 | _tmp81_ = l_cause; |
4058 | 4350 | _tmp84_ = e; | 4471 | _tmp82_ = e; |
4059 | 4351 | _tmp85_ = _tmp84_->cause; | 4472 | _tmp83_ = _tmp82_->cause; |
4060 | 4352 | gtk_label_set_text (_tmp83_, _tmp85_); | 4473 | gtk_label_set_text (_tmp81_, _tmp83_); |
4061 | 4353 | _tmp86_ = self->priv->command_hash; | 4474 | _tmp84_ = self->priv->command_hash; |
4062 | 4354 | g_hash_table_remove_all (_tmp86_); | 4475 | g_hash_table_remove_all (_tmp84_); |
4063 | 4355 | _tmp87_ = self->priv->builder; | 4476 | _tmp85_ = self->priv->builder; |
4064 | 4356 | _tmp88_ = gtk_builder_get_object (_tmp87_, "vbRun"); | 4477 | _tmp86_ = gtk_builder_get_object (_tmp85_, "vbRun"); |
4065 | 4357 | _tmp89_ = _g_object_ref0 (GTK_IS_VBOX (_tmp88_) ? ((GtkVBox*) _tmp88_) : NULL); | 4478 | _tmp87_ = _g_object_ref0 (GTK_IS_VBOX (_tmp86_) ? ((GtkVBox*) _tmp86_) : NULL); |
4066 | 4358 | vb = _tmp89_; | 4479 | vb = _tmp87_; |
4067 | 4359 | _tmp90_ = vb; | 4480 | _tmp88_ = vb; |
4068 | 4360 | _tmp91_ = gtk_container_get_children ((GtkContainer*) _tmp90_); | 4481 | _tmp89_ = gtk_container_get_children ((GtkContainer*) _tmp88_); |
4069 | 4361 | { | 4482 | { |
4070 | 4362 | GList* w_collection = NULL; | 4483 | GList* w_collection = NULL; |
4071 | 4363 | GList* w_it = NULL; | 4484 | GList* w_it = NULL; |
4073 | 4364 | w_collection = _tmp91_; | 4485 | w_collection = _tmp89_; |
4074 | 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) { |
4076 | 4366 | GtkWidget* _tmp92_; | 4487 | GtkWidget* _tmp90_; |
4077 | 4367 | GtkWidget* w = NULL; | 4488 | GtkWidget* w = NULL; |
4080 | 4368 | _tmp92_ = _g_object_ref0 ((GtkWidget*) w_it->data); | 4489 | _tmp90_ = _g_object_ref0 ((GtkWidget*) w_it->data); |
4081 | 4369 | w = _tmp92_; | 4490 | w = _tmp90_; |
4082 | 4370 | { | 4491 | { |
4088 | 4371 | GtkVBox* _tmp93_; | 4492 | GtkVBox* _tmp91_; |
4089 | 4372 | GtkWidget* _tmp94_; | 4493 | GtkWidget* _tmp92_; |
4090 | 4373 | _tmp93_ = vb; | 4494 | _tmp91_ = vb; |
4091 | 4374 | _tmp94_ = w; | 4495 | _tmp92_ = w; |
4092 | 4375 | gtk_container_remove ((GtkContainer*) _tmp93_, _tmp94_); | 4496 | gtk_container_remove ((GtkContainer*) _tmp91_, _tmp92_); |
4093 | 4376 | _g_object_unref0 (w); | 4497 | _g_object_unref0 (w); |
4094 | 4377 | } | 4498 | } |
4095 | 4378 | } | 4499 | } |
4096 | 4379 | _g_list_free0 (w_collection); | 4500 | _g_list_free0 (w_collection); |
4097 | 4380 | } | 4501 | } |
4104 | 4381 | _tmp95_ = e; | 4502 | _tmp93_ = e; |
4105 | 4382 | _tmp96_ = _tmp95_->permissions; | 4503 | _tmp94_ = _tmp93_->permissions; |
4106 | 4383 | if (_tmp96_ != NULL) { | 4504 | if (_tmp94_ != NULL) { |
4107 | 4384 | GtkBuilder* _tmp97_; | 4505 | GtkBuilder* _tmp95_; |
4108 | 4385 | GObject* _tmp98_ = NULL; | 4506 | GObject* _tmp96_ = NULL; |
4109 | 4386 | GtkLabel* _tmp99_; | 4507 | GtkLabel* _tmp97_; |
4110 | 4387 | GtkLabel* l; | 4508 | GtkLabel* l; |
4122 | 4388 | GtkLabel* _tmp100_; | 4509 | GtkLabel* _tmp98_; |
4123 | 4389 | Event* _tmp101_; | 4510 | Event* _tmp99_; |
4124 | 4390 | const gchar* _tmp102_; | 4511 | const gchar* _tmp100_; |
4125 | 4391 | _tmp97_ = self->priv->builder; | 4512 | _tmp95_ = self->priv->builder; |
4126 | 4392 | _tmp98_ = gtk_builder_get_object (_tmp97_, "lPermissions"); | 4513 | _tmp96_ = gtk_builder_get_object (_tmp95_, "lPermissions"); |
4127 | 4393 | _tmp99_ = _g_object_ref0 (GTK_IS_LABEL (_tmp98_) ? ((GtkLabel*) _tmp98_) : NULL); | 4514 | _tmp97_ = _g_object_ref0 (GTK_IS_LABEL (_tmp96_) ? ((GtkLabel*) _tmp96_) : NULL); |
4128 | 4394 | l = _tmp99_; | 4515 | l = _tmp97_; |
4129 | 4395 | _tmp100_ = l; | 4516 | _tmp98_ = l; |
4130 | 4396 | _tmp101_ = e; | 4517 | _tmp99_ = e; |
4131 | 4397 | _tmp102_ = _tmp101_->permissions; | 4518 | _tmp100_ = _tmp99_->permissions; |
4132 | 4398 | gtk_label_set_text (_tmp100_, _tmp102_); | 4519 | gtk_label_set_text (_tmp98_, _tmp100_); |
4133 | 4399 | _g_object_unref0 (l); | 4520 | _g_object_unref0 (l); |
4134 | 4400 | } | 4521 | } |
4141 | 4401 | _tmp103_ = e; | 4522 | _tmp101_ = e; |
4142 | 4402 | _tmp104_ = _tmp103_->mail_name; | 4523 | _tmp102_ = _tmp101_->mail_name; |
4143 | 4403 | if (_tmp104_ != NULL) { | 4524 | if (_tmp102_ != NULL) { |
4144 | 4404 | GtkBuilder* _tmp105_; | 4525 | GtkBuilder* _tmp103_; |
4145 | 4405 | GObject* _tmp106_ = NULL; | 4526 | GObject* _tmp104_ = NULL; |
4146 | 4406 | GtkEntry* _tmp107_; | 4527 | GtkEntry* _tmp105_; |
4147 | 4407 | GtkEntry* fn; | 4528 | GtkEntry* fn; |
4154 | 4408 | GtkEntry* _tmp108_; | 4529 | GtkEntry* _tmp106_; |
4155 | 4409 | Event* _tmp109_; | 4530 | Event* _tmp107_; |
4156 | 4410 | const gchar* _tmp110_; | 4531 | const gchar* _tmp108_; |
4157 | 4411 | GtkBuilder* _tmp111_; | 4532 | GtkBuilder* _tmp109_; |
4158 | 4412 | GObject* _tmp112_ = NULL; | 4533 | GObject* _tmp110_ = NULL; |
4159 | 4413 | GtkTextView* _tmp113_; | 4534 | GtkTextView* _tmp111_; |
4160 | 4414 | GtkTextView* l; | 4535 | GtkTextView* l; |
4164 | 4415 | GtkTextView* _tmp114_; | 4536 | GtkTextView* _tmp112_; |
4165 | 4416 | GtkTextBuffer* _tmp115_ = NULL; | 4537 | GtkTextBuffer* _tmp113_ = NULL; |
4166 | 4417 | GtkTextBuffer* _tmp116_; | 4538 | GtkTextBuffer* _tmp114_; |
4167 | 4418 | GtkTextBuffer* b; | 4539 | GtkTextBuffer* b; |
4171 | 4419 | GtkTextBuffer* _tmp117_; | 4540 | GtkTextBuffer* _tmp115_; |
4172 | 4420 | Event* _tmp118_; | 4541 | Event* _tmp116_; |
4173 | 4421 | const gchar* _tmp119_; | 4542 | const gchar* _tmp117_; |
4174 | 4422 | GtkTextIter it = {0}; | 4543 | GtkTextIter it = {0}; |
4175 | 4423 | GtkTextIter subj = {0}; | 4544 | GtkTextIter subj = {0}; |
4209 | 4424 | GtkTextBuffer* _tmp120_; | 4545 | GtkTextBuffer* _tmp118_; |
4210 | 4425 | GtkTextIter _tmp121_ = {0}; | 4546 | GtkTextIter _tmp119_ = {0}; |
4211 | 4426 | GtkTextIter _tmp122_ = {0}; | 4547 | GtkTextIter _tmp120_ = {0}; |
4212 | 4427 | gboolean _tmp123_ = FALSE; | 4548 | gboolean _tmp121_ = FALSE; |
4213 | 4428 | _tmp105_ = self->priv->builder; | 4549 | _tmp103_ = self->priv->builder; |
4214 | 4429 | _tmp106_ = gtk_builder_get_object (_tmp105_, "eMailName"); | 4550 | _tmp104_ = gtk_builder_get_object (_tmp103_, "eMailName"); |
4215 | 4430 | _tmp107_ = _g_object_ref0 (GTK_IS_ENTRY (_tmp106_) ? ((GtkEntry*) _tmp106_) : NULL); | 4551 | _tmp105_ = _g_object_ref0 (GTK_IS_ENTRY (_tmp104_) ? ((GtkEntry*) _tmp104_) : NULL); |
4216 | 4431 | fn = _tmp107_; | 4552 | fn = _tmp105_; |
4217 | 4432 | _tmp108_ = fn; | 4553 | _tmp106_ = fn; |
4218 | 4433 | _tmp109_ = e; | 4554 | _tmp107_ = e; |
4219 | 4434 | _tmp110_ = _tmp109_->mail_name; | 4555 | _tmp108_ = _tmp107_->mail_name; |
4220 | 4435 | gtk_entry_set_text (_tmp108_, _tmp110_); | 4556 | gtk_entry_set_text (_tmp106_, _tmp108_); |
4221 | 4436 | _tmp111_ = self->priv->builder; | 4557 | _tmp109_ = self->priv->builder; |
4222 | 4437 | _tmp112_ = gtk_builder_get_object (_tmp111_, "tvMail"); | 4558 | _tmp110_ = gtk_builder_get_object (_tmp109_, "tvMail"); |
4223 | 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); |
4224 | 4439 | l = _tmp113_; | 4560 | l = _tmp111_; |
4225 | 4440 | _tmp114_ = l; | 4561 | _tmp112_ = l; |
4226 | 4441 | _tmp115_ = gtk_text_view_get_buffer (_tmp114_); | 4562 | _tmp113_ = gtk_text_view_get_buffer (_tmp112_); |
4227 | 4442 | _tmp116_ = _g_object_ref0 (_tmp115_); | 4563 | _tmp114_ = _g_object_ref0 (_tmp113_); |
4228 | 4443 | b = _tmp116_; | 4564 | b = _tmp114_; |
4229 | 4444 | _tmp117_ = b; | 4565 | _tmp115_ = b; |
4230 | 4445 | _tmp118_ = e; | 4566 | _tmp116_ = e; |
4231 | 4446 | _tmp119_ = _tmp118_->mail_body; | 4567 | _tmp117_ = _tmp116_->mail_body; |
4232 | 4447 | gtk_text_buffer_set_text (_tmp117_, _tmp119_, -1); | 4568 | gtk_text_buffer_set_text (_tmp115_, _tmp117_, -1); |
4233 | 4448 | _tmp120_ = b; | 4569 | _tmp118_ = b; |
4234 | 4449 | gtk_text_buffer_get_start_iter (_tmp120_, &_tmp121_); | 4570 | gtk_text_buffer_get_start_iter (_tmp118_, &_tmp119_); |
4235 | 4450 | it = _tmp121_; | 4571 | it = _tmp119_; |
4236 | 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); |
4237 | 4452 | subj = _tmp122_; | 4573 | subj = _tmp120_; |
4238 | 4453 | if (_tmp123_) { | 4574 | if (_tmp121_) { |
4239 | 4454 | GtkTextBuffer* _tmp124_; | 4575 | GtkTextBuffer* _tmp122_; |
4240 | 4455 | GtkTextMark* _tmp125_ = NULL; | 4576 | GtkTextMark* _tmp123_ = NULL; |
4241 | 4456 | GtkTextMark* _tmp126_; | 4577 | GtkTextMark* _tmp124_; |
4242 | 4457 | GtkTextMark* insert; | 4578 | GtkTextMark* insert; |
4259 | 4458 | GtkTextBuffer* _tmp127_; | 4579 | GtkTextBuffer* _tmp125_; |
4260 | 4459 | GtkTextIter _tmp128_; | 4580 | GtkTextIter _tmp126_; |
4261 | 4460 | GtkTextIter _tmp129_; | 4581 | GtkTextIter _tmp127_; |
4262 | 4461 | GtkTextView* _tmp130_; | 4582 | GtkTextView* _tmp128_; |
4263 | 4462 | GtkTextMark* _tmp131_; | 4583 | GtkTextMark* _tmp129_; |
4264 | 4463 | _tmp124_ = b; | 4584 | _tmp122_ = b; |
4265 | 4464 | _tmp125_ = gtk_text_buffer_get_insert (_tmp124_); | 4585 | _tmp123_ = gtk_text_buffer_get_insert (_tmp122_); |
4266 | 4465 | _tmp126_ = _g_object_ref0 (_tmp125_); | 4586 | _tmp124_ = _g_object_ref0 (_tmp123_); |
4267 | 4466 | insert = _tmp126_; | 4587 | insert = _tmp124_; |
4268 | 4467 | _tmp127_ = b; | 4588 | _tmp125_ = b; |
4269 | 4468 | _tmp128_ = subj; | 4589 | _tmp126_ = subj; |
4270 | 4469 | _tmp129_ = subj; | 4590 | _tmp127_ = subj; |
4271 | 4470 | gtk_text_buffer_select_range (_tmp127_, &_tmp128_, &_tmp129_); | 4591 | gtk_text_buffer_select_range (_tmp125_, &_tmp126_, &_tmp127_); |
4272 | 4471 | _tmp130_ = l; | 4592 | _tmp128_ = l; |
4273 | 4472 | _tmp131_ = insert; | 4593 | _tmp129_ = insert; |
4274 | 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); |
4275 | 4474 | _g_object_unref0 (insert); | 4595 | _g_object_unref0 (insert); |
4276 | 4475 | } | 4596 | } |
4277 | 4476 | _g_object_unref0 (b); | 4597 | _g_object_unref0 (b); |
4278 | 4477 | _g_object_unref0 (l); | 4598 | _g_object_unref0 (l); |
4279 | 4478 | _g_object_unref0 (fn); | 4599 | _g_object_unref0 (fn); |
4280 | 4479 | } | 4600 | } |
4284 | 4480 | _tmp132_ = e; | 4601 | _tmp130_ = e; |
4285 | 4481 | _tmp133_ = _tmp132_->commands; | 4602 | _tmp131_ = _tmp130_->commands; |
4286 | 4482 | if (_tmp133_ != NULL) { | 4603 | if (_tmp131_ != NULL) { |
4287 | 4483 | { | 4604 | { |
4289 | 4484 | Event* _tmp134_; | 4605 | Event* _tmp132_; |
4290 | 4606 | GeeArrayList* _tmp133_; | ||
4291 | 4607 | GeeArrayList* _tmp134_; | ||
4292 | 4608 | GeeArrayList* _command_list; | ||
4293 | 4485 | GeeArrayList* _tmp135_; | 4609 | GeeArrayList* _tmp135_; |
4299 | 4486 | GeeArrayList* _tmp136_; | 4610 | gint _tmp136_; |
4300 | 4487 | GeeArrayList* _command_list; | 4611 | gint _tmp137_; |
4296 | 4488 | GeeArrayList* _tmp137_; | ||
4297 | 4489 | gint _tmp138_; | ||
4298 | 4490 | gint _tmp139_; | ||
4301 | 4491 | gint _command_size; | 4612 | gint _command_size; |
4302 | 4492 | gint _command_index; | 4613 | gint _command_index; |
4311 | 4493 | _tmp134_ = e; | 4614 | _tmp132_ = e; |
4312 | 4494 | _tmp135_ = _tmp134_->commands; | 4615 | _tmp133_ = _tmp132_->commands; |
4313 | 4495 | _tmp136_ = _g_object_ref0 (_tmp135_); | 4616 | _tmp134_ = _g_object_ref0 (_tmp133_); |
4314 | 4496 | _command_list = _tmp136_; | 4617 | _command_list = _tmp134_; |
4315 | 4497 | _tmp137_ = _command_list; | 4618 | _tmp135_ = _command_list; |
4316 | 4498 | _tmp138_ = gee_collection_get_size ((GeeCollection*) _tmp137_); | 4619 | _tmp136_ = gee_abstract_collection_get_size ((GeeCollection*) _tmp135_); |
4317 | 4499 | _tmp139_ = _tmp138_; | 4620 | _tmp137_ = _tmp136_; |
4318 | 4500 | _command_size = _tmp139_; | 4621 | _command_size = _tmp137_; |
4319 | 4501 | _command_index = -1; | 4622 | _command_index = -1; |
4320 | 4502 | while (TRUE) { | 4623 | while (TRUE) { |
4321 | 4624 | gint _tmp138_; | ||
4322 | 4625 | gint _tmp139_; | ||
4323 | 4503 | gint _tmp140_; | 4626 | gint _tmp140_; |
4325 | 4504 | gint _tmp141_; | 4627 | GeeArrayList* _tmp141_; |
4326 | 4505 | gint _tmp142_; | 4628 | gint _tmp142_; |
4330 | 4506 | GeeArrayList* _tmp143_; | 4629 | gpointer _tmp143_ = NULL; |
4328 | 4507 | gint _tmp144_; | ||
4329 | 4508 | gpointer _tmp145_ = NULL; | ||
4331 | 4509 | gchar* command; | 4630 | gchar* command; |
4334 | 4510 | GtkHBox* _tmp146_; | 4631 | GtkHBox* _tmp144_; |
4335 | 4511 | GtkHBox* _tmp147_; | 4632 | GtkHBox* _tmp145_; |
4336 | 4512 | GtkHBox* hb; | 4633 | GtkHBox* hb; |
4337 | 4513 | gchar* nice_command = NULL; | 4634 | gchar* nice_command = NULL; |
4339 | 4514 | const gchar* _tmp163_; | 4635 | const gchar* _tmp161_; |
4340 | 4636 | GtkLabel* _tmp162_; | ||
4341 | 4637 | GtkLabel* _tmp163_; | ||
4342 | 4638 | GtkLabel* lbl; | ||
4343 | 4515 | GtkLabel* _tmp164_; | 4639 | GtkLabel* _tmp164_; |
4348 | 4516 | GtkLabel* _tmp165_; | 4640 | GtkButton* _tmp165_; |
4349 | 4517 | GtkLabel* lbl; | 4641 | GtkButton* _tmp166_; |
4350 | 4518 | GtkLabel* _tmp166_; | 4642 | GtkButton* but; |
4351 | 4519 | GtkButton* _tmp167_; | 4643 | GHashTable* _tmp167_; |
4352 | 4520 | GtkButton* _tmp168_; | 4644 | GtkButton* _tmp168_; |
4360 | 4521 | GtkButton* but; | 4645 | GtkWidget* _tmp169_; |
4361 | 4522 | GHashTable* _tmp169_; | 4646 | const gchar* _tmp170_; |
4362 | 4523 | GtkButton* _tmp170_; | 4647 | gchar* _tmp171_; |
4363 | 4524 | GtkWidget* _tmp171_; | 4648 | GtkButton* _tmp172_; |
4364 | 4525 | const gchar* _tmp172_; | 4649 | GtkHBox* _tmp173_; |
4365 | 4526 | gchar* _tmp173_; | 4650 | GtkLabel* _tmp174_; |
4359 | 4527 | GtkButton* _tmp174_; | ||
4366 | 4528 | GtkHBox* _tmp175_; | 4651 | GtkHBox* _tmp175_; |
4378 | 4529 | GtkLabel* _tmp176_; | 4652 | GtkButton* _tmp176_; |
4379 | 4530 | GtkHBox* _tmp177_; | 4653 | GtkVBox* _tmp177_; |
4380 | 4531 | GtkButton* _tmp178_; | 4654 | GtkHBox* _tmp178_; |
4381 | 4532 | GtkVBox* _tmp179_; | 4655 | GtkHBox* _tmp179_; |
4382 | 4533 | GtkHBox* _tmp180_; | 4656 | _tmp138_ = _command_index; |
4383 | 4534 | GtkHBox* _tmp181_; | 4657 | _command_index = _tmp138_ + 1; |
4384 | 4535 | _tmp140_ = _command_index; | 4658 | _tmp139_ = _command_index; |
4385 | 4536 | _command_index = _tmp140_ + 1; | 4659 | _tmp140_ = _command_size; |
4386 | 4537 | _tmp141_ = _command_index; | 4660 | if (!(_tmp139_ < _tmp140_)) { |
4376 | 4538 | _tmp142_ = _command_size; | ||
4377 | 4539 | if (!(_tmp141_ < _tmp142_)) { | ||
4387 | 4540 | break; | 4661 | break; |
4388 | 4541 | } | 4662 | } |
4396 | 4542 | _tmp143_ = _command_list; | 4663 | _tmp141_ = _command_list; |
4397 | 4543 | _tmp144_ = _command_index; | 4664 | _tmp142_ = _command_index; |
4398 | 4544 | _tmp145_ = gee_abstract_list_get ((GeeAbstractList*) _tmp143_, _tmp144_); | 4665 | _tmp143_ = gee_abstract_list_get ((GeeAbstractList*) _tmp141_, _tmp142_); |
4399 | 4545 | command = (gchar*) _tmp145_; | 4666 | command = (gchar*) _tmp143_; |
4400 | 4546 | _tmp146_ = (GtkHBox*) gtk_hbox_new (FALSE, 10); | 4667 | _tmp144_ = (GtkHBox*) gtk_hbox_new (FALSE, 10); |
4401 | 4547 | _tmp147_ = g_object_ref_sink (_tmp146_); | 4668 | _tmp145_ = g_object_ref_sink (_tmp144_); |
4402 | 4548 | hb = _tmp147_; | 4669 | hb = _tmp145_; |
4403 | 4549 | { | 4670 | { |
4404 | 4550 | GMatchInfo* i_mailto = NULL; | 4671 | GMatchInfo* i_mailto = NULL; |
4406 | 4551 | GRegex* _tmp148_; | 4672 | GRegex* _tmp146_; |
4407 | 4552 | GRegex* mailto_rex; | 4673 | GRegex* mailto_rex; |
4414 | 4553 | GRegex* _tmp149_; | 4674 | GRegex* _tmp147_; |
4415 | 4554 | const gchar* _tmp150_; | 4675 | const gchar* _tmp148_; |
4416 | 4555 | GMatchInfo* _tmp151_ = NULL; | 4676 | GMatchInfo* _tmp149_ = NULL; |
4417 | 4556 | gboolean _tmp152_ = FALSE; | 4677 | gboolean _tmp150_ = FALSE; |
4418 | 4557 | _tmp148_ = g_regex_new ("^gnome-open..mailto:", 0, 0, &_inner_error_); | 4678 | _tmp146_ = g_regex_new ("^gnome-open..mailto:", 0, 0, &_inner_error_); |
4419 | 4558 | mailto_rex = _tmp148_; | 4679 | mailto_rex = _tmp146_; |
4420 | 4559 | if (_inner_error_ != NULL) { | 4680 | if (_inner_error_ != NULL) { |
4421 | 4560 | _g_match_info_free0 (i_mailto); | 4681 | _g_match_info_free0 (i_mailto); |
4422 | 4561 | if (_inner_error_->domain == G_REGEX_ERROR) { | 4682 | if (_inner_error_->domain == G_REGEX_ERROR) { |
4424 | 4562 | goto __catch18_g_regex_error; | 4683 | goto __catch19_g_regex_error; |
4425 | 4563 | } | 4684 | } |
4426 | 4564 | _g_match_info_free0 (i_mailto); | 4685 | _g_match_info_free0 (i_mailto); |
4427 | 4565 | _g_free0 (nice_command); | 4686 | _g_free0 (nice_command); |
4428 | @@ -4574,54 +4695,54 @@ | |||
4429 | 4574 | g_clear_error (&_inner_error_); | 4695 | g_clear_error (&_inner_error_); |
4430 | 4575 | return FALSE; | 4696 | return FALSE; |
4431 | 4576 | } | 4697 | } |
4435 | 4577 | _tmp149_ = mailto_rex; | 4698 | _tmp147_ = mailto_rex; |
4436 | 4578 | _tmp150_ = command; | 4699 | _tmp148_ = command; |
4437 | 4579 | _tmp152_ = g_regex_match (_tmp149_, _tmp150_, 0, &_tmp151_); | 4700 | _tmp150_ = g_regex_match (_tmp147_, _tmp148_, 0, &_tmp149_); |
4438 | 4580 | _g_match_info_free0 (i_mailto); | 4701 | _g_match_info_free0 (i_mailto); |
4442 | 4581 | i_mailto = _tmp151_; | 4702 | i_mailto = _tmp149_; |
4443 | 4582 | if (_tmp152_) { | 4703 | if (_tmp150_) { |
4444 | 4583 | const gchar* _tmp153_; | 4704 | const gchar* _tmp151_; |
4445 | 4705 | gchar* _tmp152_ = NULL; | ||
4446 | 4706 | gchar* _tmp153_; | ||
4447 | 4584 | gchar* _tmp154_ = NULL; | 4707 | gchar* _tmp154_ = NULL; |
4448 | 4585 | gchar* _tmp155_; | 4708 | gchar* _tmp155_; |
4451 | 4586 | gchar* _tmp156_ = NULL; | 4709 | gchar* _tmp156_; |
4452 | 4587 | gchar* _tmp157_; | 4710 | _tmp151_ = command; |
4453 | 4711 | _tmp152_ = g_uri_unescape_string (_tmp151_, NULL); | ||
4454 | 4712 | _tmp153_ = _tmp152_; | ||
4455 | 4713 | _tmp154_ = string_substring (_tmp153_, (glong) 12, (glong) 70); | ||
4456 | 4714 | _tmp155_ = _tmp154_; | ||
4457 | 4715 | _tmp156_ = g_strconcat (_tmp155_, "...", NULL); | ||
4458 | 4716 | _g_free0 (nice_command); | ||
4459 | 4717 | nice_command = _tmp156_; | ||
4460 | 4718 | _g_free0 (_tmp155_); | ||
4461 | 4719 | _g_free0 (_tmp153_); | ||
4462 | 4720 | } else { | ||
4463 | 4721 | const gchar* _tmp157_; | ||
4464 | 4588 | gchar* _tmp158_; | 4722 | gchar* _tmp158_; |
4471 | 4589 | _tmp153_ = command; | 4723 | _tmp157_ = command; |
4472 | 4590 | _tmp154_ = g_uri_unescape_string (_tmp153_, NULL); | 4724 | _tmp158_ = g_strdup (_tmp157_); |
4467 | 4591 | _tmp155_ = _tmp154_; | ||
4468 | 4592 | _tmp156_ = string_substring (_tmp155_, (glong) 12, (glong) 70); | ||
4469 | 4593 | _tmp157_ = _tmp156_; | ||
4470 | 4594 | _tmp158_ = g_strconcat (_tmp157_, "...", NULL); | ||
4473 | 4595 | _g_free0 (nice_command); | 4725 | _g_free0 (nice_command); |
4474 | 4596 | nice_command = _tmp158_; | 4726 | nice_command = _tmp158_; |
4475 | 4597 | _g_free0 (_tmp157_); | ||
4476 | 4598 | _g_free0 (_tmp155_); | ||
4477 | 4599 | } else { | ||
4478 | 4600 | const gchar* _tmp159_; | ||
4479 | 4601 | gchar* _tmp160_; | ||
4480 | 4602 | _tmp159_ = command; | ||
4481 | 4603 | _tmp160_ = g_strdup (_tmp159_); | ||
4482 | 4604 | _g_free0 (nice_command); | ||
4483 | 4605 | nice_command = _tmp160_; | ||
4484 | 4606 | } | 4727 | } |
4485 | 4607 | _g_regex_unref0 (mailto_rex); | 4728 | _g_regex_unref0 (mailto_rex); |
4486 | 4608 | _g_match_info_free0 (i_mailto); | 4729 | _g_match_info_free0 (i_mailto); |
4487 | 4609 | } | 4730 | } |
4490 | 4610 | goto __finally18; | 4731 | goto __finally19; |
4491 | 4611 | __catch18_g_regex_error: | 4732 | __catch19_g_regex_error: |
4492 | 4612 | { | 4733 | { |
4493 | 4613 | GError* e = NULL; | 4734 | GError* e = NULL; |
4496 | 4614 | const gchar* _tmp161_; | 4735 | const gchar* _tmp159_; |
4497 | 4615 | gchar* _tmp162_; | 4736 | gchar* _tmp160_; |
4498 | 4616 | e = _inner_error_; | 4737 | e = _inner_error_; |
4499 | 4617 | _inner_error_ = NULL; | 4738 | _inner_error_ = NULL; |
4502 | 4618 | _tmp161_ = command; | 4739 | _tmp159_ = command; |
4503 | 4619 | _tmp162_ = g_strdup (_tmp161_); | 4740 | _tmp160_ = g_strdup (_tmp159_); |
4504 | 4620 | _g_free0 (nice_command); | 4741 | _g_free0 (nice_command); |
4506 | 4621 | nice_command = _tmp162_; | 4742 | nice_command = _tmp160_; |
4507 | 4622 | _g_error_free0 (e); | 4743 | _g_error_free0 (e); |
4508 | 4623 | } | 4744 | } |
4510 | 4624 | __finally18: | 4745 | __finally19: |
4511 | 4625 | if (_inner_error_ != NULL) { | 4746 | if (_inner_error_ != NULL) { |
4512 | 4626 | _g_free0 (nice_command); | 4747 | _g_free0 (nice_command); |
4513 | 4627 | _g_object_unref0 (hb); | 4748 | _g_object_unref0 (hb); |
4514 | @@ -4635,34 +4756,34 @@ | |||
4515 | 4635 | g_clear_error (&_inner_error_); | 4756 | g_clear_error (&_inner_error_); |
4516 | 4636 | return FALSE; | 4757 | return FALSE; |
4517 | 4637 | } | 4758 | } |
4535 | 4638 | _tmp163_ = nice_command; | 4759 | _tmp161_ = nice_command; |
4536 | 4639 | _tmp164_ = (GtkLabel*) gtk_label_new (_tmp163_); | 4760 | _tmp162_ = (GtkLabel*) gtk_label_new (_tmp161_); |
4537 | 4640 | _tmp165_ = g_object_ref_sink (_tmp164_); | 4761 | _tmp163_ = g_object_ref_sink (_tmp162_); |
4538 | 4641 | lbl = _tmp165_; | 4762 | lbl = _tmp163_; |
4539 | 4642 | _tmp166_ = lbl; | 4763 | _tmp164_ = lbl; |
4540 | 4643 | gtk_misc_set_alignment ((GtkMisc*) _tmp166_, 0.0f, 0.5f); | 4764 | gtk_misc_set_alignment ((GtkMisc*) _tmp164_, 0.0f, 0.5f); |
4541 | 4644 | _tmp167_ = (GtkButton*) gtk_button_new_from_stock ("gtk-execute"); | 4765 | _tmp165_ = (GtkButton*) gtk_button_new_from_stock ("gtk-execute"); |
4542 | 4645 | _tmp168_ = g_object_ref_sink (_tmp167_); | 4766 | _tmp166_ = g_object_ref_sink (_tmp165_); |
4543 | 4646 | but = _tmp168_; | 4767 | but = _tmp166_; |
4544 | 4647 | _tmp169_ = self->priv->command_hash; | 4768 | _tmp167_ = self->priv->command_hash; |
4545 | 4648 | _tmp170_ = but; | 4769 | _tmp168_ = but; |
4546 | 4649 | _tmp171_ = _g_object_ref0 ((GtkWidget*) _tmp170_); | 4770 | _tmp169_ = _g_object_ref0 ((GtkWidget*) _tmp168_); |
4547 | 4650 | _tmp172_ = command; | 4771 | _tmp170_ = command; |
4548 | 4651 | _tmp173_ = g_strdup (_tmp172_); | 4772 | _tmp171_ = g_strdup (_tmp170_); |
4549 | 4652 | g_hash_table_insert (_tmp169_, _tmp171_, _tmp173_); | 4773 | g_hash_table_insert (_tmp167_, _tmp169_, _tmp171_); |
4550 | 4653 | _tmp174_ = but; | 4774 | _tmp172_ = but; |
4551 | 4654 | g_signal_connect (_tmp174_, "clicked", (GCallback) _______lambda16__gtk_button_clicked, self); | 4775 | g_signal_connect (_tmp172_, "clicked", (GCallback) _______lambda19__gtk_button_clicked, self); |
4552 | 4776 | _tmp173_ = hb; | ||
4553 | 4777 | _tmp174_ = lbl; | ||
4554 | 4778 | gtk_box_pack_end ((GtkBox*) _tmp173_, (GtkWidget*) _tmp174_, TRUE, TRUE, (guint) 0); | ||
4555 | 4655 | _tmp175_ = hb; | 4779 | _tmp175_ = hb; |
4566 | 4656 | _tmp176_ = lbl; | 4780 | _tmp176_ = but; |
4567 | 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); |
4568 | 4658 | _tmp177_ = hb; | 4782 | _tmp177_ = vb; |
4569 | 4659 | _tmp178_ = but; | 4783 | _tmp178_ = hb; |
4570 | 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); |
4571 | 4661 | _tmp179_ = vb; | 4785 | _tmp179_ = hb; |
4572 | 4662 | _tmp180_ = hb; | 4786 | gtk_widget_show_all ((GtkWidget*) _tmp179_); |
4563 | 4663 | gtk_box_pack_end ((GtkBox*) _tmp179_, (GtkWidget*) _tmp180_, TRUE, TRUE, (guint) 0); | ||
4564 | 4664 | _tmp181_ = hb; | ||
4565 | 4665 | gtk_widget_show_all ((GtkWidget*) _tmp181_); | ||
4573 | 4666 | _g_object_unref0 (but); | 4787 | _g_object_unref0 (but); |
4574 | 4667 | _g_object_unref0 (lbl); | 4788 | _g_object_unref0 (lbl); |
4575 | 4668 | _g_free0 (nice_command); | 4789 | _g_free0 (nice_command); |
4576 | @@ -4672,72 +4793,72 @@ | |||
4577 | 4672 | _g_object_unref0 (_command_list); | 4793 | _g_object_unref0 (_command_list); |
4578 | 4673 | } | 4794 | } |
4579 | 4674 | } | 4795 | } |
4608 | 4675 | _tmp182_ = self->priv->builder; | 4796 | _tmp180_ = self->priv->builder; |
4609 | 4676 | _tmp183_ = gtk_builder_get_object (_tmp182_, "fDisplayPermissions"); | 4797 | _tmp181_ = gtk_builder_get_object (_tmp180_, "fDisplayPermissions"); |
4610 | 4677 | _tmp184_ = _g_object_ref0 (GTK_IS_WIDGET (_tmp183_) ? ((GtkWidget*) _tmp183_) : NULL); | 4798 | _tmp182_ = _g_object_ref0 (GTK_IS_WIDGET (_tmp181_) ? ((GtkWidget*) _tmp181_) : NULL); |
4611 | 4678 | x = _tmp184_; | 4799 | x = _tmp182_; |
4612 | 4679 | _tmp185_ = x; | 4800 | _tmp183_ = x; |
4613 | 4680 | _tmp186_ = e; | 4801 | _tmp184_ = e; |
4614 | 4681 | _tmp187_ = _tmp186_->permissions; | 4802 | _tmp185_ = _tmp184_->permissions; |
4615 | 4682 | gtk_widget_set_visible (_tmp185_, _tmp187_ != NULL); | 4803 | gtk_widget_set_visible (_tmp183_, _tmp185_ != NULL); |
4616 | 4683 | _tmp188_ = self->priv->builder; | 4804 | _tmp186_ = self->priv->builder; |
4617 | 4684 | _tmp189_ = gtk_builder_get_object (_tmp188_, "fDisplayMail"); | 4805 | _tmp187_ = gtk_builder_get_object (_tmp186_, "fDisplayMail"); |
4618 | 4685 | _tmp190_ = _g_object_ref0 (GTK_IS_WIDGET (_tmp189_) ? ((GtkWidget*) _tmp189_) : NULL); | 4806 | _tmp188_ = _g_object_ref0 (GTK_IS_WIDGET (_tmp187_) ? ((GtkWidget*) _tmp187_) : NULL); |
4619 | 4686 | _g_object_unref0 (x); | 4807 | _g_object_unref0 (x); |
4620 | 4687 | x = _tmp190_; | 4808 | x = _tmp188_; |
4621 | 4688 | _tmp191_ = x; | 4809 | _tmp189_ = x; |
4622 | 4689 | _tmp192_ = e; | 4810 | _tmp190_ = e; |
4623 | 4690 | _tmp193_ = _tmp192_->mail_name; | 4811 | _tmp191_ = _tmp190_->mail_name; |
4624 | 4691 | gtk_widget_set_visible (_tmp191_, _tmp193_ != NULL); | 4812 | gtk_widget_set_visible (_tmp189_, _tmp191_ != NULL); |
4625 | 4692 | _tmp194_ = self->priv->builder; | 4813 | _tmp192_ = self->priv->builder; |
4626 | 4693 | _tmp195_ = gtk_builder_get_object (_tmp194_, "fRun"); | 4814 | _tmp193_ = gtk_builder_get_object (_tmp192_, "fRun"); |
4627 | 4694 | _tmp196_ = _g_object_ref0 (GTK_IS_WIDGET (_tmp195_) ? ((GtkWidget*) _tmp195_) : NULL); | 4815 | _tmp194_ = _g_object_ref0 (GTK_IS_WIDGET (_tmp193_) ? ((GtkWidget*) _tmp193_) : NULL); |
4628 | 4695 | _g_object_unref0 (x); | 4816 | _g_object_unref0 (x); |
4629 | 4696 | x = _tmp196_; | 4817 | x = _tmp194_; |
4630 | 4697 | _tmp197_ = x; | 4818 | _tmp195_ = x; |
4631 | 4698 | _tmp198_ = e; | 4819 | _tmp196_ = e; |
4632 | 4699 | _tmp199_ = _tmp198_->commands; | 4820 | _tmp197_ = _tmp196_->commands; |
4633 | 4700 | _tmp200_ = gee_collection_get_size ((GeeCollection*) _tmp199_); | 4821 | _tmp198_ = gee_abstract_collection_get_size ((GeeCollection*) _tmp197_); |
4634 | 4701 | _tmp201_ = _tmp200_; | 4822 | _tmp199_ = _tmp198_; |
4635 | 4702 | gtk_widget_set_visible (_tmp197_, _tmp201_ > 0); | 4823 | gtk_widget_set_visible (_tmp195_, _tmp199_ > 0); |
4636 | 4703 | _g_object_unref0 (x); | 4824 | _g_object_unref0 (x); |
4637 | 4704 | _g_object_unref0 (vb); | 4825 | _g_object_unref0 (vb); |
4638 | 4705 | _g_object_unref0 (l_cause); | 4826 | _g_object_unref0 (l_cause); |
4639 | 4706 | _g_object_unref0 (l_ctx); | 4827 | _g_object_unref0 (l_ctx); |
4640 | 4707 | } else { | 4828 | } else { |
4651 | 4708 | gboolean _tmp202_ = FALSE; | 4829 | gboolean _tmp200_ = FALSE; |
4652 | 4709 | Event* _tmp203_; | 4830 | Event* _tmp201_; |
4653 | 4710 | gboolean _tmp206_; | 4831 | gboolean _tmp204_; |
4654 | 4711 | _tmp203_ = e; | 4832 | _tmp201_ = e; |
4655 | 4712 | if (_tmp203_ != NULL) { | 4833 | if (_tmp201_ != NULL) { |
4656 | 4713 | Event* _tmp204_; | 4834 | Event* _tmp202_; |
4657 | 4714 | gboolean _tmp205_; | 4835 | gboolean _tmp203_; |
4658 | 4715 | _tmp204_ = e; | 4836 | _tmp202_ = e; |
4659 | 4716 | _tmp205_ = _tmp204_->enter_network_error_mode; | 4837 | _tmp203_ = _tmp202_->enter_network_error_mode; |
4660 | 4717 | _tmp202_ = _tmp205_; | 4838 | _tmp200_ = _tmp203_; |
4661 | 4718 | } else { | 4839 | } else { |
4663 | 4719 | _tmp202_ = FALSE; | 4840 | _tmp200_ = FALSE; |
4664 | 4720 | } | 4841 | } |
4669 | 4721 | _tmp206_ = _tmp202_; | 4842 | _tmp204_ = _tmp200_; |
4670 | 4722 | if (_tmp206_) { | 4843 | if (_tmp204_) { |
4671 | 4723 | GtkStatusIcon* _tmp207_; | 4844 | GtkStatusIcon* _tmp205_; |
4672 | 4724 | GtkStatusIcon* _tmp208_; | 4845 | GtkStatusIcon* _tmp206_; |
4673 | 4725 | self->priv->network_error_mode = TRUE; | 4846 | self->priv->network_error_mode = TRUE; |
4678 | 4726 | _tmp207_ = self->priv->si; | 4847 | _tmp205_ = self->priv->si; |
4679 | 4727 | gtk_status_icon_set_from_icon_name (_tmp207_, "dialog-warning"); | 4848 | gtk_status_icon_set_from_icon_name (_tmp205_, "dialog-warning"); |
4680 | 4728 | _tmp208_ = self->priv->si; | 4849 | _tmp206_ = self->priv->si; |
4681 | 4729 | gtk_status_icon_set_tooltip_text (_tmp208_, "Network error"); | 4850 | gtk_status_icon_set_tooltip_text (_tmp206_, "Network error"); |
4682 | 4730 | } else { | 4851 | } else { |
4688 | 4731 | Event* _tmp209_; | 4852 | Event* _tmp207_; |
4689 | 4732 | _tmp209_ = e; | 4853 | _tmp207_ = e; |
4690 | 4733 | if (_tmp209_ != NULL) { | 4854 | if (_tmp207_ != NULL) { |
4691 | 4734 | GtkStatusIcon* _tmp210_; | 4855 | GtkStatusIcon* _tmp208_; |
4692 | 4735 | GtkStatusIcon* _tmp211_; | 4856 | GtkStatusIcon* _tmp209_; |
4693 | 4736 | self->priv->network_error_mode = FALSE; | 4857 | self->priv->network_error_mode = FALSE; |
4698 | 4737 | _tmp210_ = self->priv->si; | 4858 | _tmp208_ = self->priv->si; |
4699 | 4738 | gtk_status_icon_set_from_icon_name (_tmp210_, "mail-send-receive"); | 4859 | gtk_status_icon_set_from_icon_name (_tmp208_, "mail-send-receive"); |
4700 | 4739 | _tmp211_ = self->priv->si; | 4860 | _tmp209_ = self->priv->si; |
4701 | 4740 | gtk_status_icon_set_tooltip_text (_tmp211_, "smd-applet is running"); | 4861 | gtk_status_icon_set_tooltip_text (_tmp209_, "smd-applet is running"); |
4702 | 4741 | } | 4862 | } |
4703 | 4742 | } | 4863 | } |
4704 | 4743 | } | 4864 | } |
4705 | @@ -4788,13 +4909,13 @@ | |||
4706 | 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_); |
4707 | 4789 | _tmp5_ = _tmp4_; | 4910 | _tmp5_ = _tmp4_; |
4708 | 4790 | if (_inner_error_ != NULL) { | 4911 | if (_inner_error_ != NULL) { |
4710 | 4791 | goto __catch20_g_error; | 4912 | goto __catch21_g_error; |
4711 | 4792 | } | 4913 | } |
4712 | 4793 | _tmp6_ = self->priv->si; | 4914 | _tmp6_ = self->priv->si; |
4713 | 4794 | gtk_status_icon_set_visible (_tmp6_, !_tmp5_); | 4915 | gtk_status_icon_set_visible (_tmp6_, !_tmp5_); |
4714 | 4795 | } | 4916 | } |
4717 | 4796 | goto __finally20; | 4917 | goto __finally21; |
4718 | 4797 | __catch20_g_error: | 4918 | __catch21_g_error: |
4719 | 4798 | { | 4919 | { |
4720 | 4799 | GError* e = NULL; | 4920 | GError* e = NULL; |
4721 | 4800 | FILE* _tmp7_; | 4921 | FILE* _tmp7_; |
4722 | @@ -4808,7 +4929,7 @@ | |||
4723 | 4808 | fprintf (_tmp7_, "%s\n", _tmp9_); | 4929 | fprintf (_tmp7_, "%s\n", _tmp9_); |
4724 | 4809 | _g_error_free0 (e); | 4930 | _g_error_free0 (e); |
4725 | 4810 | } | 4931 | } |
4727 | 4811 | __finally20: | 4932 | __finally21: |
4728 | 4812 | if (_inner_error_ != NULL) { | 4933 | if (_inner_error_ != NULL) { |
4729 | 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); |
4730 | 4814 | g_clear_error (&_inner_error_); | 4935 | g_clear_error (&_inner_error_); |
4731 | @@ -4871,13 +4992,13 @@ | |||
4732 | 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_); |
4733 | 4872 | _tmp7_ = _tmp6_; | 4993 | _tmp7_ = _tmp6_; |
4734 | 4873 | if (_inner_error_ != NULL) { | 4994 | if (_inner_error_ != NULL) { |
4736 | 4874 | goto __catch21_g_error; | 4995 | goto __catch22_g_error; |
4737 | 4875 | } | 4996 | } |
4738 | 4876 | _tmp8_ = self->priv->si; | 4997 | _tmp8_ = self->priv->si; |
4739 | 4877 | gtk_status_icon_set_visible (_tmp8_, !_tmp7_); | 4998 | gtk_status_icon_set_visible (_tmp8_, !_tmp7_); |
4740 | 4878 | } | 4999 | } |
4743 | 4879 | goto __finally21; | 5000 | goto __finally22; |
4744 | 4880 | __catch21_g_error: | 5001 | __catch22_g_error: |
4745 | 4881 | { | 5002 | { |
4746 | 4882 | GError* e = NULL; | 5003 | GError* e = NULL; |
4747 | 4883 | FILE* _tmp9_; | 5004 | FILE* _tmp9_; |
4748 | @@ -4891,7 +5012,7 @@ | |||
4749 | 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_); |
4750 | 4892 | _g_error_free0 (e); | 5013 | _g_error_free0 (e); |
4751 | 4893 | } | 5014 | } |
4753 | 4894 | __finally21: | 5015 | __finally22: |
4754 | 4895 | if (_inner_error_ != NULL) { | 5016 | if (_inner_error_ != NULL) { |
4755 | 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); |
4756 | 4897 | g_clear_error (&_inner_error_); | 5018 | g_clear_error (&_inner_error_); |
4757 | @@ -5113,7 +5234,7 @@ | |||
4758 | 5113 | d = _tmp7_; | 5234 | d = _tmp7_; |
4759 | 5114 | if (_inner_error_ != NULL) { | 5235 | if (_inner_error_ != NULL) { |
4760 | 5115 | if (_inner_error_->domain == G_FILE_ERROR) { | 5236 | if (_inner_error_->domain == G_FILE_ERROR) { |
4762 | 5116 | goto __catch22_g_file_error; | 5237 | goto __catch23_g_file_error; |
4763 | 5117 | } | 5238 | } |
4764 | 5118 | _g_object_unref0 (b); | 5239 | _g_object_unref0 (b); |
4765 | 5119 | _g_object_unref0 (tv); | 5240 | _g_object_unref0 (tv); |
4766 | @@ -5152,7 +5273,7 @@ | |||
4767 | 5152 | gtk_combo_box_text_append_text (_tmp17_, _tmp18_); | 5273 | gtk_combo_box_text_append_text (_tmp17_, _tmp18_); |
4768 | 5153 | } | 5274 | } |
4769 | 5154 | _tmp19_ = self->priv->lognames; | 5275 | _tmp19_ = self->priv->lognames; |
4771 | 5155 | _tmp20_ = gee_collection_get_size ((GeeCollection*) _tmp19_); | 5276 | _tmp20_ = gee_abstract_collection_get_size ((GeeCollection*) _tmp19_); |
4772 | 5156 | _tmp21_ = _tmp20_; | 5277 | _tmp21_ = _tmp20_; |
4773 | 5157 | if (_tmp21_ == 0) { | 5278 | if (_tmp21_ == 0) { |
4774 | 5158 | GtkTextBuffer* _tmp22_; | 5279 | GtkTextBuffer* _tmp22_; |
4775 | @@ -5176,8 +5297,8 @@ | |||
4776 | 5176 | _g_free0 (file); | 5297 | _g_free0 (file); |
4777 | 5177 | _g_dir_close0 (d); | 5298 | _g_dir_close0 (d); |
4778 | 5178 | } | 5299 | } |
4781 | 5179 | goto __finally22; | 5300 | goto __finally23; |
4782 | 5180 | __catch22_g_file_error: | 5301 | __catch23_g_file_error: |
4783 | 5181 | { | 5302 | { |
4784 | 5182 | GError* e = NULL; | 5303 | GError* e = NULL; |
4785 | 5183 | GtkTextBuffer* _tmp28_; | 5304 | GtkTextBuffer* _tmp28_; |
4786 | @@ -5194,7 +5315,7 @@ | |||
4787 | 5194 | _g_free0 (_tmp31_); | 5315 | _g_free0 (_tmp31_); |
4788 | 5195 | _g_error_free0 (e); | 5316 | _g_error_free0 (e); |
4789 | 5196 | } | 5317 | } |
4791 | 5197 | __finally22: | 5318 | __finally23: |
4792 | 5198 | if (_inner_error_ != NULL) { | 5319 | if (_inner_error_ != NULL) { |
4793 | 5199 | _g_object_unref0 (b); | 5320 | _g_object_unref0 (b); |
4794 | 5200 | _g_object_unref0 (tv); | 5321 | _g_object_unref0 (tv); |
4795 | @@ -5292,11 +5413,11 @@ | |||
4796 | 5292 | _tmp13_ = self->priv->notification; | 5413 | _tmp13_ = self->priv->notification; |
4797 | 5293 | notify_notification_show (_tmp13_, &_inner_error_); | 5414 | notify_notification_show (_tmp13_, &_inner_error_); |
4798 | 5294 | if (_inner_error_ != NULL) { | 5415 | if (_inner_error_ != NULL) { |
4800 | 5295 | goto __catch23_g_error; | 5416 | goto __catch24_g_error; |
4801 | 5296 | } | 5417 | } |
4802 | 5297 | } | 5418 | } |
4805 | 5298 | goto __finally23; | 5419 | goto __finally24; |
4806 | 5299 | __catch23_g_error: | 5420 | __catch24_g_error: |
4807 | 5300 | { | 5421 | { |
4808 | 5301 | GError* e = NULL; | 5422 | GError* e = NULL; |
4809 | 5302 | FILE* _tmp14_; | 5423 | FILE* _tmp14_; |
4810 | @@ -5310,7 +5431,7 @@ | |||
4811 | 5310 | fprintf (_tmp14_, "%s\n", _tmp16_); | 5431 | fprintf (_tmp14_, "%s\n", _tmp16_); |
4812 | 5311 | _g_error_free0 (e); | 5432 | _g_error_free0 (e); |
4813 | 5312 | } | 5433 | } |
4815 | 5313 | __finally23: | 5434 | __finally24: |
4816 | 5314 | if (_inner_error_ != NULL) { | 5435 | if (_inner_error_ != NULL) { |
4817 | 5315 | if (_inner_error_->domain == EXIT) { | 5436 | if (_inner_error_->domain == EXIT) { |
4818 | 5316 | g_propagate_error (error, _inner_error_); | 5437 | g_propagate_error (error, _inner_error_); |
4819 | @@ -5331,13 +5452,13 @@ | |||
4820 | 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_); |
4821 | 5332 | _tmp19_ = _tmp18_; | 5453 | _tmp19_ = _tmp18_; |
4822 | 5333 | if (_inner_error_ != NULL) { | 5454 | if (_inner_error_ != NULL) { |
4824 | 5334 | goto __catch24_g_error; | 5455 | goto __catch25_g_error; |
4825 | 5335 | } | 5456 | } |
4826 | 5336 | _tmp20_ = self->priv->si; | 5457 | _tmp20_ = self->priv->si; |
4827 | 5337 | gtk_status_icon_set_visible (_tmp20_, !_tmp19_); | 5458 | gtk_status_icon_set_visible (_tmp20_, !_tmp19_); |
4828 | 5338 | } | 5459 | } |
4831 | 5339 | goto __finally24; | 5460 | goto __finally25; |
4832 | 5340 | __catch24_g_error: | 5461 | __catch25_g_error: |
4833 | 5341 | { | 5462 | { |
4834 | 5342 | GError* e = NULL; | 5463 | GError* e = NULL; |
4835 | 5343 | FILE* _tmp21_; | 5464 | FILE* _tmp21_; |
4836 | @@ -5351,7 +5472,7 @@ | |||
4837 | 5351 | fprintf (_tmp21_, "%s\n", _tmp23_); | 5472 | fprintf (_tmp21_, "%s\n", _tmp23_); |
4838 | 5352 | _g_error_free0 (e); | 5473 | _g_error_free0 (e); |
4839 | 5353 | } | 5474 | } |
4841 | 5354 | __finally24: | 5475 | __finally25: |
4842 | 5355 | if (_inner_error_ != NULL) { | 5476 | if (_inner_error_ != NULL) { |
4843 | 5356 | if (_inner_error_->domain == EXIT) { | 5477 | if (_inner_error_->domain == EXIT) { |
4844 | 5357 | g_propagate_error (error, _inner_error_); | 5478 | g_propagate_error (error, _inner_error_); |
4845 | @@ -5533,6 +5654,7 @@ | |||
4846 | 5533 | 5654 | ||
4847 | 5534 | 5655 | ||
4848 | 5535 | static void smd_applet_instance_init (smdApplet * self) { | 5656 | static void smd_applet_instance_init (smdApplet * self) { |
4849 | 5657 | GMutex _tmp0_ = {0}; | ||
4850 | 5536 | self->priv = SMD_APPLET_GET_PRIVATE (self); | 5658 | self->priv = SMD_APPLET_GET_PRIVATE (self); |
4851 | 5537 | self->priv->builder = NULL; | 5659 | self->priv->builder = NULL; |
4852 | 5538 | self->priv->menuL = NULL; | 5660 | self->priv->menuL = NULL; |
4853 | @@ -5548,7 +5670,8 @@ | |||
4854 | 5548 | self->priv->gconf = NULL; | 5670 | self->priv->gconf = NULL; |
4855 | 5549 | self->priv->thread = NULL; | 5671 | self->priv->thread = NULL; |
4856 | 5550 | self->priv->thread_die = FALSE; | 5672 | self->priv->thread_die = FALSE; |
4858 | 5551 | self->priv->events_lock = NULL; | 5673 | g_mutex_init (&_tmp0_); |
4859 | 5674 | self->priv->events_lock = _tmp0_; | ||
4860 | 5552 | self->priv->events = NULL; | 5675 | self->priv->events = NULL; |
4861 | 5553 | self->priv->error_mode = FALSE; | 5676 | self->priv->error_mode = FALSE; |
4862 | 5554 | self->priv->network_error_mode = FALSE; | 5677 | self->priv->network_error_mode = FALSE; |
4863 | @@ -5575,7 +5698,8 @@ | |||
4864 | 5575 | _g_object_unref0 (self->priv->cblogs); | 5698 | _g_object_unref0 (self->priv->cblogs); |
4865 | 5576 | _g_object_unref0 (self->priv->lognames); | 5699 | _g_object_unref0 (self->priv->lognames); |
4866 | 5577 | _g_object_unref0 (self->priv->gconf); | 5700 | _g_object_unref0 (self->priv->gconf); |
4868 | 5578 | _g_mutex_free0 (self->priv->events_lock); | 5701 | _g_thread_unref0 (self->priv->thread); |
4869 | 5702 | g_mutex_clear (&self->priv->events_lock); | ||
4870 | 5579 | _g_object_unref0 (self->priv->events); | 5703 | _g_object_unref0 (self->priv->events); |
4871 | 5580 | _g_hash_table_unref0 (self->priv->command_hash); | 5704 | _g_hash_table_unref0 (self->priv->command_hash); |
4872 | 5581 | _g_object_unref0 (self->priv->net_manager); | 5705 | _g_object_unref0 (self->priv->net_manager); |
4873 | @@ -5624,29 +5748,36 @@ | |||
4874 | 5624 | gchar* _tmp3_; | 5748 | gchar* _tmp3_; |
4875 | 5625 | gboolean _tmp4_ = FALSE; | 5749 | gboolean _tmp4_ = FALSE; |
4876 | 5626 | gboolean _tmp5_; | 5750 | gboolean _tmp5_; |
4879 | 5627 | const gchar* _tmp23_ = NULL; | 5751 | const gchar* _tmp28_ = NULL; |
4880 | 5628 | gchar* _tmp24_; | 5752 | gchar* _tmp29_; |
4881 | 5629 | gchar* homedir; | 5753 | gchar* homedir; |
4888 | 5630 | const gchar* _tmp25_; | 5754 | const gchar* _tmp30_; |
4889 | 5631 | gchar* _tmp26_; | 5755 | gchar* _tmp31_; |
4890 | 5632 | const gchar* _tmp27_; | 5756 | const gchar* _tmp32_; |
4891 | 5633 | gchar* _tmp28_; | 5757 | gchar* _tmp33_; |
4892 | 5634 | const gchar* _tmp29_; | 5758 | const gchar* _tmp34_; |
4893 | 5635 | gchar* _tmp30_; | 5759 | gchar* _tmp35_; |
4894 | 5760 | const gchar* _tmp36_ = NULL; | ||
4895 | 5761 | gchar* _tmp37_; | ||
4896 | 5762 | gchar* conf_home; | ||
4897 | 5763 | const gchar* _tmp38_; | ||
4898 | 5764 | const gchar* _tmp43_; | ||
4899 | 5765 | gchar* _tmp44_ = NULL; | ||
4900 | 5766 | gchar* _tmp45_; | ||
4901 | 5636 | gboolean config_only; | 5767 | gboolean config_only; |
4907 | 5637 | GOptionEntry _tmp31_ = {0}; | 5768 | GOptionEntry _tmp46_ = {0}; |
4908 | 5638 | GOptionEntry _tmp32_ = {0}; | 5769 | GOptionEntry _tmp47_ = {0}; |
4909 | 5639 | GOptionEntry _tmp33_ = {0}; | 5770 | GOptionEntry _tmp48_ = {0}; |
4910 | 5640 | GOptionEntry _tmp34_ = {0}; | 5771 | GOptionEntry _tmp49_ = {0}; |
4911 | 5641 | GOptionEntry* _tmp35_ = NULL; | 5772 | GOptionEntry* _tmp50_ = NULL; |
4912 | 5642 | GOptionEntry* oe; | 5773 | GOptionEntry* oe; |
4913 | 5643 | gint oe_length1; | 5774 | gint oe_length1; |
4914 | 5644 | gint _oe_size_; | 5775 | gint _oe_size_; |
4916 | 5645 | GOptionContext* _tmp36_; | 5776 | GOptionContext* _tmp51_; |
4917 | 5646 | GOptionContext* oc; | 5777 | GOptionContext* oc; |
4921 | 5647 | GOptionContext* _tmp37_; | 5778 | GOptionContext* _tmp52_; |
4922 | 5648 | GOptionEntry* _tmp38_; | 5779 | GOptionEntry* _tmp53_; |
4923 | 5649 | gint _tmp38__length1; | 5780 | gint _tmp53__length1; |
4924 | 5650 | GError * _inner_error_ = NULL; | 5781 | GError * _inner_error_ = NULL; |
4925 | 5651 | _tmp0_ = g_strdup (SMD_CONF_PREFIX); | 5782 | _tmp0_ = g_strdup (SMD_CONF_PREFIX); |
4926 | 5652 | PREFIX = _tmp0_; | 5783 | PREFIX = _tmp0_; |
4927 | @@ -5668,6 +5799,9 @@ | |||
4928 | 5668 | gchar* _tmp14_; | 5799 | gchar* _tmp14_; |
4929 | 5669 | FILE* _tmp15_; | 5800 | FILE* _tmp15_; |
4930 | 5670 | const gchar* _tmp16_; | 5801 | const gchar* _tmp16_; |
4931 | 5802 | gchar* _tmp17_; | ||
4932 | 5803 | FILE* _tmp18_; | ||
4933 | 5804 | const gchar* _tmp19_; | ||
4934 | 5671 | _tmp6_ = stderr; | 5805 | _tmp6_ = stderr; |
4935 | 5672 | _tmp7_ = PREFIX; | 5806 | _tmp7_ = PREFIX; |
4936 | 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); |
4937 | @@ -5689,94 +5823,131 @@ | |||
4938 | 5689 | _tmp15_ = stderr; | 5823 | _tmp15_ = stderr; |
4939 | 5690 | _tmp16_ = smd_applet_smd_push_cmd; | 5824 | _tmp16_ = smd_applet_smd_push_cmd; |
4940 | 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_); |
4941 | 5826 | _tmp17_ = g_strdup ("./smd-applet.desktop"); | ||
4942 | 5827 | _g_free0 (smd_applet_smd_applet_desktop); | ||
4943 | 5828 | smd_applet_smd_applet_desktop = _tmp17_; | ||
4944 | 5829 | _tmp18_ = stderr; | ||
4945 | 5830 | _tmp19_ = smd_applet_smd_applet_desktop; | ||
4946 | 5831 | fprintf (_tmp18_, "smd-applet not installed, " "assuming smd-applet.desktop is: %s\n", _tmp19_); | ||
4947 | 5692 | } else { | 5832 | } else { |
4956 | 5693 | const gchar* _tmp17_; | 5833 | const gchar* _tmp20_; |
4957 | 5694 | gchar* _tmp18_; | 5834 | gchar* _tmp21_; |
4958 | 5695 | const gchar* _tmp19_; | 5835 | const gchar* _tmp22_; |
4959 | 5696 | gchar* _tmp20_; | 5836 | gchar* _tmp23_; |
4960 | 5697 | const gchar* _tmp21_; | 5837 | const gchar* _tmp24_; |
4961 | 5698 | gchar* _tmp22_; | 5838 | gchar* _tmp25_; |
4962 | 5699 | _tmp17_ = PREFIX; | 5839 | const gchar* _tmp26_; |
4963 | 5700 | _tmp18_ = g_strconcat (_tmp17_, SMD_LOOP, NULL); | 5840 | gchar* _tmp27_; |
4964 | 5841 | _tmp20_ = PREFIX; | ||
4965 | 5842 | _tmp21_ = g_strconcat (_tmp20_, SMD_LOOP, NULL); | ||
4966 | 5701 | _g_free0 (smd_applet_smd_loop_cmd); | 5843 | _g_free0 (smd_applet_smd_loop_cmd); |
4970 | 5702 | smd_applet_smd_loop_cmd = _tmp18_; | 5844 | smd_applet_smd_loop_cmd = _tmp21_; |
4971 | 5703 | _tmp19_ = PREFIX; | 5845 | _tmp22_ = PREFIX; |
4972 | 5704 | _tmp20_ = g_strconcat (_tmp19_, SMD_PUSH, NULL); | 5846 | _tmp23_ = g_strconcat (_tmp22_, SMD_PUSH, NULL); |
4973 | 5705 | _g_free0 (smd_applet_smd_push_cmd); | 5847 | _g_free0 (smd_applet_smd_push_cmd); |
4977 | 5706 | smd_applet_smd_push_cmd = _tmp20_; | 5848 | smd_applet_smd_push_cmd = _tmp23_; |
4978 | 5707 | _tmp21_ = PREFIX; | 5849 | _tmp24_ = PREFIX; |
4979 | 5708 | _tmp22_ = g_strconcat (_tmp21_, SMD_APPLET_UI, NULL); | 5850 | _tmp25_ = g_strconcat (_tmp24_, SMD_APPLET_UI, NULL); |
4980 | 5709 | _g_free0 (smd_applet_smd_applet_ui); | 5851 | _g_free0 (smd_applet_smd_applet_ui); |
4982 | 5710 | smd_applet_smd_applet_ui = _tmp22_; | 5852 | smd_applet_smd_applet_ui = _tmp25_; |
4983 | 5853 | _tmp26_ = PREFIX; | ||
4984 | 5854 | _tmp27_ = g_strconcat (_tmp26_, SMD_APPLET_DESKTOP, NULL); | ||
4985 | 5855 | _g_free0 (smd_applet_smd_applet_desktop); | ||
4986 | 5856 | smd_applet_smd_applet_desktop = _tmp27_; | ||
4987 | 5711 | } | 5857 | } |
4993 | 5712 | _tmp23_ = g_get_home_dir (); | 5858 | _tmp28_ = g_get_home_dir (); |
4994 | 5713 | _tmp24_ = g_strdup (_tmp23_); | 5859 | _tmp29_ = g_strdup (_tmp28_); |
4995 | 5714 | homedir = _tmp24_; | 5860 | homedir = _tmp29_; |
4996 | 5715 | _tmp25_ = homedir; | 5861 | _tmp30_ = homedir; |
4997 | 5716 | _tmp26_ = g_strconcat (_tmp25_, "/.smd/log/", NULL); | 5862 | _tmp31_ = g_strconcat (_tmp30_, "/.smd/log/", NULL); |
4998 | 5717 | _g_free0 (SMD_LOGS_DIR); | 5863 | _g_free0 (SMD_LOGS_DIR); |
4999 | 5718 | SMD_LOGS_DIR = _tmp26_; | ||
5000 | 5719 | _tmp27_ = homedir; |
The diff has been truncated for viewing.
Looks good! Uploading.