Merge lp:~indicator-applet-developers/indicator-application/ubuntu into lp:~ubuntu-desktop/indicator-application/ubuntu
- ubuntu
- Merge into ubuntu
Proposed by
Ted Gould
Status: | Merged |
---|---|
Merged at revision: | 116 |
Proposed branch: | lp:~indicator-applet-developers/indicator-application/ubuntu |
Merge into: | lp:~ubuntu-desktop/indicator-application/ubuntu |
Diff against target: |
1478 lines (+650/-99) 23 files modified
ChangeLog (+128/-0) configure (+10/-10) configure.ac (+2/-2) debian/changelog (+8/-0) docs/reference/html/ch01.html (+1/-1) docs/reference/html/index.html (+1/-1) docs/reference/html/libappindicator-app-indicator.html (+55/-55) docs/reference/html/object-tree.html (+1/-1) docs/reference/libappindicator-docs.sgml (+1/-1) docs/reference/tmpl/app-indicator.sgml (+0/-2) docs/reference/version.xml (+1/-1) docs/reference/xml/app-indicator.xml (+2/-2) src/Makefile.am (+1/-0) src/Makefile.in (+1/-0) src/application-service-appstore.c (+115/-10) src/application-service-appstore.h (+10/-4) src/application-service-watcher.c (+14/-0) src/dbus-shared.h (+2/-0) src/notification-approver.xml (+22/-0) src/notification-watcher.xml (+7/-0) tests/Makefile.am (+28/-0) tests/Makefile.in (+61/-9) tests/test-approver.c (+179/-0) |
To merge this branch: | bzr merge lp:~indicator-applet-developers/indicator-application/ubuntu |
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Ken VanDine | Approve | ||
Review via email: mp+30022@code.launchpad.net |
Commit message
Description of the change
Oops, right branch.
To post a comment you must log in.
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === modified file 'ChangeLog' | |||
2 | --- ChangeLog 2010-07-08 15:22:02 +0000 | |||
3 | +++ ChangeLog 2010-07-15 15:45:53 +0000 | |||
4 | @@ -1,5 +1,133 @@ | |||
5 | 1 | # Generated by Makefile. Do not edit. | 1 | # Generated by Makefile. Do not edit. |
6 | 2 | 2 | ||
7 | 3 | 2010-07-13 Ted Gould <ted@gould.cx> | ||
8 | 4 | |||
9 | 5 | Adjusting the tests so they can deal with slow systems better. | ||
10 | 6 | |||
11 | 7 | 2010-07-12 Ted Gould <ted@gould.cx> | ||
12 | 8 | |||
13 | 9 | Ignoring the tester script | ||
14 | 10 | |||
15 | 11 | 2010-07-12 Ted Gould <ted@gould.cx> | ||
16 | 12 | |||
17 | 13 | Add a fail timeout so this test can't block. | ||
18 | 14 | |||
19 | 15 | 2010-07-12 Ted Gould <ted@gould.cx> | ||
20 | 16 | |||
21 | 17 | Adding in setting the environment variable to adjust the timeout to be twice as long for slow systems. | ||
22 | 18 | |||
23 | 19 | 2010-07-12 Ted Gould <ted@gould.cx> | ||
24 | 20 | |||
25 | 21 | Putting in a basic approver API. | ||
26 | 22 | |||
27 | 23 | 2010-07-09 Ted Gould <ted@gould.cx> | ||
28 | 24 | |||
29 | 25 | Need the built headers too | ||
30 | 26 | |||
31 | 27 | 2010-07-09 Ted Gould <ted@gould.cx> | ||
32 | 28 | |||
33 | 29 | Oops, with a menu we're all GTK now. | ||
34 | 30 | |||
35 | 31 | 2010-07-09 Ted Gould <ted@gould.cx> | ||
36 | 32 | |||
37 | 33 | Building up to a formal test | ||
38 | 34 | |||
39 | 35 | 2010-07-09 Ted Gould <ted@gould.cx> | ||
40 | 36 | |||
41 | 37 | Filling out the approve function. | ||
42 | 38 | |||
43 | 39 | 2010-07-09 Ted Gould <ted@gould.cx> | ||
44 | 40 | |||
45 | 41 | Filling out the approver prototype | ||
46 | 42 | |||
47 | 43 | 2010-07-09 Ted Gould <ted@gould.cx> | ||
48 | 44 | |||
49 | 45 | Building an application indicator too! | ||
50 | 46 | |||
51 | 47 | 2010-07-09 Ted Gould <ted@gould.cx> | ||
52 | 48 | |||
53 | 49 | Making the registration async to clean things up, and async is better anyway. | ||
54 | 50 | |||
55 | 51 | 2010-07-09 Ted Gould <ted@gould.cx> | ||
56 | 52 | |||
57 | 53 | Some more error handling and better debug messages. | ||
58 | 54 | |||
59 | 55 | 2010-07-09 Ted Gould <ted@gould.cx> | ||
60 | 56 | |||
61 | 57 | Helpful debug info | ||
62 | 58 | |||
63 | 59 | 2010-07-09 Ted Gould <ted@gould.cx> | ||
64 | 60 | |||
65 | 61 | Okay, so now we're detecing when the watcher comes up, and registering ourselves as the approver. | ||
66 | 62 | |||
67 | 63 | 2010-07-09 Ted Gould <ted@gould.cx> | ||
68 | 64 | |||
69 | 65 | Adding a new sample approver | ||
70 | 66 | |||
71 | 67 | 2010-07-09 Ted Gould <ted@gould.cx> | ||
72 | 68 | |||
73 | 69 | When we have new apps we can ask the approver about them. | ||
74 | 70 | |||
75 | 71 | 2010-07-09 Ted Gould <ted@gould.cx> | ||
76 | 72 | |||
77 | 73 | Looking at all the applications when we get a new approver. | ||
78 | 74 | |||
79 | 75 | 2010-07-09 Ted Gould <ted@gould.cx> | ||
80 | 76 | |||
81 | 77 | Building the approver structure and putting it in the list. | ||
82 | 78 | |||
83 | 79 | 2010-07-09 Ted Gould <ted@gould.cx> | ||
84 | 80 | |||
85 | 81 | Comments | ||
86 | 82 | |||
87 | 83 | 2010-07-09 Ted Gould <ted@gould.cx> | ||
88 | 84 | |||
89 | 85 | Adding some structures for approvers and making them real. | ||
90 | 86 | |||
91 | 87 | 2010-07-09 Ted Gould <ted@gould.cx> | ||
92 | 88 | |||
93 | 89 | For DBus to real objects, the signal shall travel. | ||
94 | 90 | |||
95 | 91 | 2010-07-09 Ted Gould <ted@gould.cx> | ||
96 | 92 | |||
97 | 93 | Adding a function to bring in approvers | ||
98 | 94 | |||
99 | 95 | 2010-07-09 Ted Gould <ted@gould.cx> | ||
100 | 96 | |||
101 | 97 | Sync to trunk | ||
102 | 98 | |||
103 | 99 | 2010-07-01 Ted Gould <ted@gould.cx> | ||
104 | 100 | |||
105 | 101 | Return a boolean | ||
106 | 102 | |||
107 | 103 | 2010-06-25 Ted Gould <ted@gould.cx> | ||
108 | 104 | |||
109 | 105 | Adding in a template function to register approvers. | ||
110 | 106 | |||
111 | 107 | 2010-06-25 Ted Gould <ted@gould.cx> | ||
112 | 108 | |||
113 | 109 | Adding a function to register an approver. | ||
114 | 110 | |||
115 | 111 | 2010-06-25 Ted Gould <ted@gould.cx> | ||
116 | 112 | |||
117 | 113 | Adding an approver interface. | ||
118 | 114 | |||
119 | 115 | 2010-07-08 Ted Gould <ted@gould.cx> | ||
120 | 116 | |||
121 | 117 | Use a private pointer instead of a lookup. | ||
122 | 118 | |||
123 | 119 | 2010-07-08 Sense Hofstede <qense@ubuntu.com> | ||
124 | 120 | |||
125 | 121 | Removed all but one calls to the APPLICATION_SERVICE_APPSTORE_GET_PRIVATE() macro | ||
126 | 122 | |||
127 | 123 | All references to the APPLICATION_SERVICE_APPSTORE_GET_PRIVATE() macro were removed | ||
128 | 124 | from src/application-service-appstore.c. This makes this file comply with the | ||
129 | 125 | recommended practise, which should reduce overhead. | ||
130 | 126 | |||
131 | 127 | 2010-07-08 Ted Gould <ted@gould.cx> | ||
132 | 128 | |||
133 | 129 | 0.2.2 | ||
134 | 130 | |||
135 | 3 | 2010-07-07 Ted Gould <ted@gould.cx> | 131 | 2010-07-07 Ted Gould <ted@gould.cx> |
136 | 4 | 132 | ||
137 | 5 | Merging this branch, but I think it's fixes must have gone in with another. | 133 | Merging this branch, but I think it's fixes must have gone in with another. |
138 | 6 | 134 | ||
139 | === modified file 'configure' | |||
140 | --- configure 2010-07-08 15:23:57 +0000 | |||
141 | +++ configure 2010-07-15 15:45:53 +0000 | |||
142 | @@ -1,6 +1,6 @@ | |||
143 | 1 | #! /bin/sh | 1 | #! /bin/sh |
144 | 2 | # Guess values for system-dependent variables and create Makefiles. | 2 | # Guess values for system-dependent variables and create Makefiles. |
146 | 3 | # Generated by GNU Autoconf 2.65 for indicator-application 0.2.2. | 3 | # Generated by GNU Autoconf 2.65 for indicator-application 0.2.3. |
147 | 4 | # | 4 | # |
148 | 5 | # Report bugs to <ted@canonical.com>. | 5 | # Report bugs to <ted@canonical.com>. |
149 | 6 | # | 6 | # |
150 | @@ -703,8 +703,8 @@ | |||
151 | 703 | # Identity of this package. | 703 | # Identity of this package. |
152 | 704 | PACKAGE_NAME='indicator-application' | 704 | PACKAGE_NAME='indicator-application' |
153 | 705 | PACKAGE_TARNAME='indicator-application' | 705 | PACKAGE_TARNAME='indicator-application' |
156 | 706 | PACKAGE_VERSION='0.2.2' | 706 | PACKAGE_VERSION='0.2.3' |
157 | 707 | PACKAGE_STRING='indicator-application 0.2.2' | 707 | PACKAGE_STRING='indicator-application 0.2.3' |
158 | 708 | PACKAGE_BUGREPORT='ted@canonical.com' | 708 | PACKAGE_BUGREPORT='ted@canonical.com' |
159 | 709 | PACKAGE_URL='' | 709 | PACKAGE_URL='' |
160 | 710 | 710 | ||
161 | @@ -1505,7 +1505,7 @@ | |||
162 | 1505 | # Omit some internal or obsolete options to make the list less imposing. | 1505 | # Omit some internal or obsolete options to make the list less imposing. |
163 | 1506 | # This message is too long to be a string in the A/UX 3.1 sh. | 1506 | # This message is too long to be a string in the A/UX 3.1 sh. |
164 | 1507 | cat <<_ACEOF | 1507 | cat <<_ACEOF |
166 | 1508 | \`configure' configures indicator-application 0.2.2 to adapt to many kinds of systems. | 1508 | \`configure' configures indicator-application 0.2.3 to adapt to many kinds of systems. |
167 | 1509 | 1509 | ||
168 | 1510 | Usage: $0 [OPTION]... [VAR=VALUE]... | 1510 | Usage: $0 [OPTION]... [VAR=VALUE]... |
169 | 1511 | 1511 | ||
170 | @@ -1576,7 +1576,7 @@ | |||
171 | 1576 | 1576 | ||
172 | 1577 | if test -n "$ac_init_help"; then | 1577 | if test -n "$ac_init_help"; then |
173 | 1578 | case $ac_init_help in | 1578 | case $ac_init_help in |
175 | 1579 | short | recursive ) echo "Configuration of indicator-application 0.2.2:";; | 1579 | short | recursive ) echo "Configuration of indicator-application 0.2.3:";; |
176 | 1580 | esac | 1580 | esac |
177 | 1581 | cat <<\_ACEOF | 1581 | cat <<\_ACEOF |
178 | 1582 | 1582 | ||
179 | @@ -1709,7 +1709,7 @@ | |||
180 | 1709 | test -n "$ac_init_help" && exit $ac_status | 1709 | test -n "$ac_init_help" && exit $ac_status |
181 | 1710 | if $ac_init_version; then | 1710 | if $ac_init_version; then |
182 | 1711 | cat <<\_ACEOF | 1711 | cat <<\_ACEOF |
184 | 1712 | indicator-application configure 0.2.2 | 1712 | indicator-application configure 0.2.3 |
185 | 1713 | generated by GNU Autoconf 2.65 | 1713 | generated by GNU Autoconf 2.65 |
186 | 1714 | 1714 | ||
187 | 1715 | Copyright (C) 2009 Free Software Foundation, Inc. | 1715 | Copyright (C) 2009 Free Software Foundation, Inc. |
188 | @@ -1989,7 +1989,7 @@ | |||
189 | 1989 | This file contains any messages produced by compilers while | 1989 | This file contains any messages produced by compilers while |
190 | 1990 | running configure, to aid debugging if configure makes a mistake. | 1990 | running configure, to aid debugging if configure makes a mistake. |
191 | 1991 | 1991 | ||
193 | 1992 | It was created by indicator-application $as_me 0.2.2, which was | 1992 | It was created by indicator-application $as_me 0.2.3, which was |
194 | 1993 | generated by GNU Autoconf 2.65. Invocation command line was | 1993 | generated by GNU Autoconf 2.65. Invocation command line was |
195 | 1994 | 1994 | ||
196 | 1995 | $ $0 $@ | 1995 | $ $0 $@ |
197 | @@ -2803,7 +2803,7 @@ | |||
198 | 2803 | 2803 | ||
199 | 2804 | # Define the identity of the package. | 2804 | # Define the identity of the package. |
200 | 2805 | PACKAGE=indicator-application | 2805 | PACKAGE=indicator-application |
202 | 2806 | VERSION=0.2.2 | 2806 | VERSION=0.2.3 |
203 | 2807 | 2807 | ||
204 | 2808 | 2808 | ||
205 | 2809 | cat >>confdefs.h <<_ACEOF | 2809 | cat >>confdefs.h <<_ACEOF |
206 | @@ -13684,7 +13684,7 @@ | |||
207 | 13684 | # report actual input values of CONFIG_FILES etc. instead of their | 13684 | # report actual input values of CONFIG_FILES etc. instead of their |
208 | 13685 | # values after options handling. | 13685 | # values after options handling. |
209 | 13686 | ac_log=" | 13686 | ac_log=" |
211 | 13687 | This file was extended by indicator-application $as_me 0.2.2, which was | 13687 | This file was extended by indicator-application $as_me 0.2.3, which was |
212 | 13688 | generated by GNU Autoconf 2.65. Invocation command line was | 13688 | generated by GNU Autoconf 2.65. Invocation command line was |
213 | 13689 | 13689 | ||
214 | 13690 | CONFIG_FILES = $CONFIG_FILES | 13690 | CONFIG_FILES = $CONFIG_FILES |
215 | @@ -13750,7 +13750,7 @@ | |||
216 | 13750 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 13750 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
217 | 13751 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" | 13751 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
218 | 13752 | ac_cs_version="\\ | 13752 | ac_cs_version="\\ |
220 | 13753 | indicator-application config.status 0.2.2 | 13753 | indicator-application config.status 0.2.3 |
221 | 13754 | configured by $0, generated by GNU Autoconf 2.65, | 13754 | configured by $0, generated by GNU Autoconf 2.65, |
222 | 13755 | with options \\"\$ac_cs_config\\" | 13755 | with options \\"\$ac_cs_config\\" |
223 | 13756 | 13756 | ||
224 | 13757 | 13757 | ||
225 | === modified file 'configure.ac' | |||
226 | --- configure.ac 2010-07-08 15:08:02 +0000 | |||
227 | +++ configure.ac 2010-07-15 15:45:53 +0000 | |||
228 | @@ -1,11 +1,11 @@ | |||
229 | 1 | 1 | ||
231 | 2 | AC_INIT(indicator-application, 0.2.2, ted@canonical.com) | 2 | AC_INIT(indicator-application, 0.2.3, ted@canonical.com) |
232 | 3 | AC_COPYRIGHT([Copyright 2009, 2010 Canonical]) | 3 | AC_COPYRIGHT([Copyright 2009, 2010 Canonical]) |
233 | 4 | 4 | ||
234 | 5 | AC_PREREQ(2.53) | 5 | AC_PREREQ(2.53) |
235 | 6 | 6 | ||
236 | 7 | AM_CONFIG_HEADER(config.h) | 7 | AM_CONFIG_HEADER(config.h) |
238 | 8 | AM_INIT_AUTOMAKE(indicator-application, 0.2.2) | 8 | AM_INIT_AUTOMAKE(indicator-application, 0.2.3) |
239 | 9 | 9 | ||
240 | 10 | AM_MAINTAINER_MODE | 10 | AM_MAINTAINER_MODE |
241 | 11 | 11 | ||
242 | 12 | 12 | ||
243 | === modified file 'debian/changelog' | |||
244 | --- debian/changelog 2010-07-08 16:26:25 +0000 | |||
245 | +++ debian/changelog 2010-07-15 15:45:53 +0000 | |||
246 | @@ -1,3 +1,11 @@ | |||
247 | 1 | indicator-application (0.2.3-0ubuntu1~ppa1) lucid; urgency=low | ||
248 | 2 | |||
249 | 3 | * New upstream release. | ||
250 | 4 | * Fixing test for slower machines | ||
251 | 5 | * Adding an Approver API to remove things from the AppIndicators. | ||
252 | 6 | |||
253 | 7 | -- Ted Gould <ted@ubuntu.com> Thu, 15 Jul 2010 10:22:33 -0500 | ||
254 | 8 | |||
255 | 1 | indicator-application (0.2.2-0ubuntu1) maverick; urgency=low | 9 | indicator-application (0.2.2-0ubuntu1) maverick; urgency=low |
256 | 2 | 10 | ||
257 | 3 | * debian/control, debian/rules: | 11 | * debian/control, debian/rules: |
258 | 4 | 12 | ||
259 | === modified file 'docs/reference/html/ch01.html' | |||
260 | --- docs/reference/html/ch01.html 2010-06-21 19:22:34 +0000 | |||
261 | +++ docs/reference/html/ch01.html 2010-07-15 15:45:53 +0000 | |||
262 | @@ -21,7 +21,7 @@ | |||
263 | 21 | </tr></table> | 21 | </tr></table> |
264 | 22 | <div class="chapter" title="Base Classes for Applications"> | 22 | <div class="chapter" title="Base Classes for Applications"> |
265 | 23 | <div class="titlepage"><div><div><h2 class="title"> | 23 | <div class="titlepage"><div><div><h2 class="title"> |
267 | 24 | <a name="id460829"></a>Base Classes for Applications</h2></div></div></div> | 24 | <a name="id495610"></a>Base Classes for Applications</h2></div></div></div> |
268 | 25 | <div class="toc"><dl><dt> | 25 | <div class="toc"><dl><dt> |
269 | 26 | <span class="refentrytitle"><a href="libappindicator-app-indicator.html">AppIndicator</a></span><span class="refpurpose"> — An object to put application information | 26 | <span class="refentrytitle"><a href="libappindicator-app-indicator.html">AppIndicator</a></span><span class="refpurpose"> — An object to put application information |
270 | 27 | into the panel.</span> | 27 | into the panel.</span> |
271 | 28 | 28 | ||
272 | === modified file 'docs/reference/html/index.html' | |||
273 | --- docs/reference/html/index.html 2010-06-03 19:00:39 +0000 | |||
274 | +++ docs/reference/html/index.html 2010-07-15 15:45:53 +0000 | |||
275 | @@ -15,7 +15,7 @@ | |||
276 | 15 | <div> | 15 | <div> |
277 | 16 | <div><table class="navigation" id="top" width="100%" cellpadding="2" cellspacing="0"><tr><th valign="middle"><p class="title">libappindicator Reference Manual</p></th></tr></table></div> | 16 | <div><table class="navigation" id="top" width="100%" cellpadding="2" cellspacing="0"><tr><th valign="middle"><p class="title">libappindicator Reference Manual</p></th></tr></table></div> |
278 | 17 | <div><p class="releaseinfo"> | 17 | <div><p class="releaseinfo"> |
280 | 18 | for libappindicator 0.2.0 | 18 | for libappindicator 0.2.2 |
281 | 19 | </p></div> | 19 | </p></div> |
282 | 20 | </div> | 20 | </div> |
283 | 21 | <hr> | 21 | <hr> |
284 | 22 | 22 | ||
285 | === modified file 'docs/reference/html/libappindicator-app-indicator.html' | |||
286 | --- docs/reference/html/libappindicator-app-indicator.html 2010-06-21 19:17:44 +0000 | |||
287 | +++ docs/reference/html/libappindicator-app-indicator.html 2010-07-15 15:45:53 +0000 | |||
288 | @@ -66,48 +66,48 @@ | |||
289 | 66 | <a class="link" href="libappindicator-app-indicator.html#AppIndicatorPrivate" title="AppIndicatorPrivate">AppIndicatorPrivate</a>; | 66 | <a class="link" href="libappindicator-app-indicator.html#AppIndicatorPrivate" title="AppIndicatorPrivate">AppIndicatorPrivate</a>; |
290 | 67 | <a class="link" href="libappindicator-app-indicator.html#AppIndicator-struct" title="AppIndicator">AppIndicator</a>; | 67 | <a class="link" href="libappindicator-app-indicator.html#AppIndicator-struct" title="AppIndicator">AppIndicator</a>; |
291 | 68 | <a class="link" href="libappindicator-app-indicator.html#AppIndicatorClass" title="AppIndicatorClass">AppIndicatorClass</a>; | 68 | <a class="link" href="libappindicator-app-indicator.html#AppIndicatorClass" title="AppIndicatorClass">AppIndicatorClass</a>; |
295 | 69 | <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#GType"><span class="returnvalue">GType</span></a> <a class="link" href="libappindicator-app-indicator.html#app-indicator-get-type" title="app_indicator_get_type ()">app_indicator_get_type</a> (<em class="parameter"><code><span class="type">void</span></code></em>); | 69 | <a href="/usr/share/gtk-doc/html/gobject/gobject-Type-Information.html#GType"><span class="returnvalue">GType</span></a> <a class="link" href="libappindicator-app-indicator.html#app-indicator-get-type" title="app_indicator_get_type ()">app_indicator_get_type</a> (<em class="parameter"><code><span class="type">void</span></code></em>); |
296 | 70 | <a class="link" href="libappindicator-app-indicator.html#AppIndicator"><span class="returnvalue">AppIndicator</span></a> * <a class="link" href="libappindicator-app-indicator.html#app-indicator-new" title="app_indicator_new ()">app_indicator_new</a> (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *id</code></em>, | 70 | <a class="link" href="libappindicator-app-indicator.html#AppIndicator"><span class="returnvalue">AppIndicator</span></a> * <a class="link" href="libappindicator-app-indicator.html#app-indicator-new" title="app_indicator_new ()">app_indicator_new</a> (<em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *id</code></em>, |
297 | 71 | <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *icon_name</code></em>, | 71 | <em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *icon_name</code></em>, |
298 | 72 | <em class="parameter"><code><a class="link" href="libappindicator-app-indicator.html#AppIndicatorCategory" title="enum AppIndicatorCategory"><span class="type">AppIndicatorCategory</span></a> category</code></em>); | 72 | <em class="parameter"><code><a class="link" href="libappindicator-app-indicator.html#AppIndicatorCategory" title="enum AppIndicatorCategory"><span class="type">AppIndicatorCategory</span></a> category</code></em>); |
301 | 73 | <a class="link" href="libappindicator-app-indicator.html#AppIndicator"><span class="returnvalue">AppIndicator</span></a> * <a class="link" href="libappindicator-app-indicator.html#app-indicator-new-with-path" title="app_indicator_new_with_path ()">app_indicator_new_with_path</a> (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *id</code></em>, | 73 | <a class="link" href="libappindicator-app-indicator.html#AppIndicator"><span class="returnvalue">AppIndicator</span></a> * <a class="link" href="libappindicator-app-indicator.html#app-indicator-new-with-path" title="app_indicator_new_with_path ()">app_indicator_new_with_path</a> (<em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *id</code></em>, |
302 | 74 | <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *icon_name</code></em>, | 74 | <em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *icon_name</code></em>, |
303 | 75 | <em class="parameter"><code><a class="link" href="libappindicator-app-indicator.html#AppIndicatorCategory" title="enum AppIndicatorCategory"><span class="type">AppIndicatorCategory</span></a> category</code></em>, | 75 | <em class="parameter"><code><a class="link" href="libappindicator-app-indicator.html#AppIndicatorCategory" title="enum AppIndicatorCategory"><span class="type">AppIndicatorCategory</span></a> category</code></em>, |
305 | 76 | <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *icon_path</code></em>); | 76 | <em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *icon_path</code></em>); |
306 | 77 | <span class="returnvalue">void</span> <a class="link" href="libappindicator-app-indicator.html#app-indicator-set-status" title="app_indicator_set_status ()">app_indicator_set_status</a> (<em class="parameter"><code><a class="link" href="libappindicator-app-indicator.html#AppIndicator"><span class="type">AppIndicator</span></a> *self</code></em>, | 77 | <span class="returnvalue">void</span> <a class="link" href="libappindicator-app-indicator.html#app-indicator-set-status" title="app_indicator_set_status ()">app_indicator_set_status</a> (<em class="parameter"><code><a class="link" href="libappindicator-app-indicator.html#AppIndicator"><span class="type">AppIndicator</span></a> *self</code></em>, |
307 | 78 | <em class="parameter"><code><a class="link" href="libappindicator-app-indicator.html#AppIndicatorStatus" title="enum AppIndicatorStatus"><span class="type">AppIndicatorStatus</span></a> status</code></em>); | 78 | <em class="parameter"><code><a class="link" href="libappindicator-app-indicator.html#AppIndicatorStatus" title="enum AppIndicatorStatus"><span class="type">AppIndicatorStatus</span></a> status</code></em>); |
308 | 79 | <span class="returnvalue">void</span> <a class="link" href="libappindicator-app-indicator.html#app-indicator-set-attention-icon" title="app_indicator_set_attention_icon ()">app_indicator_set_attention_icon</a> (<em class="parameter"><code><a class="link" href="libappindicator-app-indicator.html#AppIndicator"><span class="type">AppIndicator</span></a> *self</code></em>, | 79 | <span class="returnvalue">void</span> <a class="link" href="libappindicator-app-indicator.html#app-indicator-set-attention-icon" title="app_indicator_set_attention_icon ()">app_indicator_set_attention_icon</a> (<em class="parameter"><code><a class="link" href="libappindicator-app-indicator.html#AppIndicator"><span class="type">AppIndicator</span></a> *self</code></em>, |
310 | 80 | <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *icon_name</code></em>); | 80 | <em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *icon_name</code></em>); |
311 | 81 | <span class="returnvalue">void</span> <a class="link" href="libappindicator-app-indicator.html#app-indicator-set-menu" title="app_indicator_set_menu ()">app_indicator_set_menu</a> (<em class="parameter"><code><a class="link" href="libappindicator-app-indicator.html#AppIndicator"><span class="type">AppIndicator</span></a> *self</code></em>, | 81 | <span class="returnvalue">void</span> <a class="link" href="libappindicator-app-indicator.html#app-indicator-set-menu" title="app_indicator_set_menu ()">app_indicator_set_menu</a> (<em class="parameter"><code><a class="link" href="libappindicator-app-indicator.html#AppIndicator"><span class="type">AppIndicator</span></a> *self</code></em>, |
312 | 82 | <em class="parameter"><code><a href="/usr/share/gtk-doc/html/gtk/GtkMenu.html"><span class="type">GtkMenu</span></a> *menu</code></em>); | 82 | <em class="parameter"><code><a href="/usr/share/gtk-doc/html/gtk/GtkMenu.html"><span class="type">GtkMenu</span></a> *menu</code></em>); |
313 | 83 | <span class="returnvalue">void</span> <a class="link" href="libappindicator-app-indicator.html#app-indicator-set-icon" title="app_indicator_set_icon ()">app_indicator_set_icon</a> (<em class="parameter"><code><a class="link" href="libappindicator-app-indicator.html#AppIndicator"><span class="type">AppIndicator</span></a> *self</code></em>, | 83 | <span class="returnvalue">void</span> <a class="link" href="libappindicator-app-indicator.html#app-indicator-set-icon" title="app_indicator_set_icon ()">app_indicator_set_icon</a> (<em class="parameter"><code><a class="link" href="libappindicator-app-indicator.html#AppIndicator"><span class="type">AppIndicator</span></a> *self</code></em>, |
316 | 84 | <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *icon_name</code></em>); | 84 | <em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *icon_name</code></em>); |
317 | 85 | const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * <a class="link" href="libappindicator-app-indicator.html#app-indicator-get-id" title="app_indicator_get_id ()">app_indicator_get_id</a> (<em class="parameter"><code><a class="link" href="libappindicator-app-indicator.html#AppIndicator"><span class="type">AppIndicator</span></a> *self</code></em>); | 85 | const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * <a class="link" href="libappindicator-app-indicator.html#app-indicator-get-id" title="app_indicator_get_id ()">app_indicator_get_id</a> (<em class="parameter"><code><a class="link" href="libappindicator-app-indicator.html#AppIndicator"><span class="type">AppIndicator</span></a> *self</code></em>); |
318 | 86 | <a class="link" href="libappindicator-app-indicator.html#AppIndicatorCategory" title="enum AppIndicatorCategory"><span class="returnvalue">AppIndicatorCategory</span></a> <a class="link" href="libappindicator-app-indicator.html#app-indicator-get-category" title="app_indicator_get_category ()">app_indicator_get_category</a> (<em class="parameter"><code><a class="link" href="libappindicator-app-indicator.html#AppIndicator"><span class="type">AppIndicator</span></a> *self</code></em>); | 86 | <a class="link" href="libappindicator-app-indicator.html#AppIndicatorCategory" title="enum AppIndicatorCategory"><span class="returnvalue">AppIndicatorCategory</span></a> <a class="link" href="libappindicator-app-indicator.html#app-indicator-get-category" title="app_indicator_get_category ()">app_indicator_get_category</a> (<em class="parameter"><code><a class="link" href="libappindicator-app-indicator.html#AppIndicator"><span class="type">AppIndicator</span></a> *self</code></em>); |
319 | 87 | <a class="link" href="libappindicator-app-indicator.html#AppIndicatorStatus" title="enum AppIndicatorStatus"><span class="returnvalue">AppIndicatorStatus</span></a> <a class="link" href="libappindicator-app-indicator.html#app-indicator-get-status" title="app_indicator_get_status ()">app_indicator_get_status</a> (<em class="parameter"><code><a class="link" href="libappindicator-app-indicator.html#AppIndicator"><span class="type">AppIndicator</span></a> *self</code></em>); | 87 | <a class="link" href="libappindicator-app-indicator.html#AppIndicatorStatus" title="enum AppIndicatorStatus"><span class="returnvalue">AppIndicatorStatus</span></a> <a class="link" href="libappindicator-app-indicator.html#app-indicator-get-status" title="app_indicator_get_status ()">app_indicator_get_status</a> (<em class="parameter"><code><a class="link" href="libappindicator-app-indicator.html#AppIndicator"><span class="type">AppIndicator</span></a> *self</code></em>); |
322 | 88 | const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * <a class="link" href="libappindicator-app-indicator.html#app-indicator-get-icon" title="app_indicator_get_icon ()">app_indicator_get_icon</a> (<em class="parameter"><code><a class="link" href="libappindicator-app-indicator.html#AppIndicator"><span class="type">AppIndicator</span></a> *self</code></em>); | 88 | const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * <a class="link" href="libappindicator-app-indicator.html#app-indicator-get-icon" title="app_indicator_get_icon ()">app_indicator_get_icon</a> (<em class="parameter"><code><a class="link" href="libappindicator-app-indicator.html#AppIndicator"><span class="type">AppIndicator</span></a> *self</code></em>); |
323 | 89 | const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * <a class="link" href="libappindicator-app-indicator.html#app-indicator-get-attention-icon" title="app_indicator_get_attention_icon ()">app_indicator_get_attention_icon</a> (<em class="parameter"><code><a class="link" href="libappindicator-app-indicator.html#AppIndicator"><span class="type">AppIndicator</span></a> *self</code></em>); | 89 | const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * <a class="link" href="libappindicator-app-indicator.html#app-indicator-get-attention-icon" title="app_indicator_get_attention_icon ()">app_indicator_get_attention_icon</a> (<em class="parameter"><code><a class="link" href="libappindicator-app-indicator.html#AppIndicator"><span class="type">AppIndicator</span></a> *self</code></em>); |
324 | 90 | <a href="/usr/share/gtk-doc/html/gtk/GtkMenu.html"><span class="returnvalue">GtkMenu</span></a> * <a class="link" href="libappindicator-app-indicator.html#app-indicator-get-menu" title="app_indicator_get_menu ()">app_indicator_get_menu</a> (<em class="parameter"><code><a class="link" href="libappindicator-app-indicator.html#AppIndicator"><span class="type">AppIndicator</span></a> *self</code></em>); | 90 | <a href="/usr/share/gtk-doc/html/gtk/GtkMenu.html"><span class="returnvalue">GtkMenu</span></a> * <a class="link" href="libappindicator-app-indicator.html#app-indicator-get-menu" title="app_indicator_get_menu ()">app_indicator_get_menu</a> (<em class="parameter"><code><a class="link" href="libappindicator-app-indicator.html#AppIndicator"><span class="type">AppIndicator</span></a> *self</code></em>); |
325 | 91 | </pre> | 91 | </pre> |
326 | 92 | </div> | 92 | </div> |
327 | 93 | <div class="refsect1" title="Object Hierarchy"> | 93 | <div class="refsect1" title="Object Hierarchy"> |
328 | 94 | <a name="libappindicator-app-indicator.object-hierarchy"></a><h2>Object Hierarchy</h2> | 94 | <a name="libappindicator-app-indicator.object-hierarchy"></a><h2>Object Hierarchy</h2> |
329 | 95 | <pre class="synopsis"> | 95 | <pre class="synopsis"> |
331 | 96 | <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject">GObject</a> | 96 | <a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject">GObject</a> |
332 | 97 | +----AppIndicator | 97 | +----AppIndicator |
333 | 98 | </pre> | 98 | </pre> |
334 | 99 | </div> | 99 | </div> |
335 | 100 | <div class="refsect1" title="Properties"> | 100 | <div class="refsect1" title="Properties"> |
336 | 101 | <a name="libappindicator-app-indicator.properties"></a><h2>Properties</h2> | 101 | <a name="libappindicator-app-indicator.properties"></a><h2>Properties</h2> |
337 | 102 | <pre class="synopsis"> | 102 | <pre class="synopsis"> |
344 | 103 | "<a class="link" href="libappindicator-app-indicator.html#AppIndicator--attention-icon-name" title='The "attention-icon-name" property'>attention-icon-name</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Read / Write | 103 | "<a class="link" href="libappindicator-app-indicator.html#AppIndicator--attention-icon-name" title='The "attention-icon-name" property'>attention-icon-name</a>" <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Read / Write |
345 | 104 | "<a class="link" href="libappindicator-app-indicator.html#AppIndicator--category" title='The "category" property'>category</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Read / Write / Construct Only | 104 | "<a class="link" href="libappindicator-app-indicator.html#AppIndicator--category" title='The "category" property'>category</a>" <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Read / Write / Construct Only |
346 | 105 | "<a class="link" href="libappindicator-app-indicator.html#AppIndicator--connected" title='The "connected" property'>connected</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> : Read | 105 | "<a class="link" href="libappindicator-app-indicator.html#AppIndicator--connected" title='The "connected" property'>connected</a>" <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> : Read |
347 | 106 | "<a class="link" href="libappindicator-app-indicator.html#AppIndicator--icon-name" title='The "icon-name" property'>icon-name</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Read / Write / Construct | 106 | "<a class="link" href="libappindicator-app-indicator.html#AppIndicator--icon-name" title='The "icon-name" property'>icon-name</a>" <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Read / Write |
348 | 107 | "<a class="link" href="libappindicator-app-indicator.html#AppIndicator--icon-theme-path" title='The "icon-theme-path" property'>icon-theme-path</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Read / Write / Construct Only | 107 | "<a class="link" href="libappindicator-app-indicator.html#AppIndicator--icon-theme-path" title='The "icon-theme-path" property'>icon-theme-path</a>" <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Read / Write / Construct Only |
349 | 108 | "<a class="link" href="libappindicator-app-indicator.html#AppIndicator--id" title='The "id" property'>id</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Read / Write / Construct Only | 108 | "<a class="link" href="libappindicator-app-indicator.html#AppIndicator--id" title='The "id" property'>id</a>" <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Read / Write / Construct Only |
350 | 109 | "<a class="link" href="libappindicator-app-indicator.html#AppIndicator--menu" title='The "menu" property'>menu</a>" <span class="type">DBusGObjectPath</span>* : Read | 109 | "<a class="link" href="libappindicator-app-indicator.html#AppIndicator--menu" title='The "menu" property'>menu</a>" <span class="type">DBusGObjectPath</span>* : Read |
352 | 110 | "<a class="link" href="libappindicator-app-indicator.html#AppIndicator--status" title='The "status" property'>status</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Read / Write | 110 | "<a class="link" href="libappindicator-app-indicator.html#AppIndicator--status" title='The "status" property'>status</a>" <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Read / Write |
353 | 111 | </pre> | 111 | </pre> |
354 | 112 | </div> | 112 | </div> |
355 | 113 | <div class="refsect1" title="Signals"> | 113 | <div class="refsect1" title="Signals"> |
356 | @@ -139,7 +139,7 @@ | |||
357 | 139 | <pre class="programlisting">#define APP_INDICATOR_TYPE (app_indicator_get_type ()) | 139 | <pre class="programlisting">#define APP_INDICATOR_TYPE (app_indicator_get_type ()) |
358 | 140 | </pre> | 140 | </pre> |
359 | 141 | <p> | 141 | <p> |
361 | 142 | Get the <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#GType"><span class="type">GType</span></a> for a <a class="link" href="libappindicator-app-indicator.html#AppIndicator"><span class="type">AppIndicator</span></a>. | 142 | Get the <a href="/usr/share/gtk-doc/html/gobject/gobject-Type-Information.html#GType"><span class="type">GType</span></a> for a <a class="link" href="libappindicator-app-indicator.html#AppIndicator"><span class="type">AppIndicator</span></a>. |
362 | 143 | </p> | 143 | </p> |
363 | 144 | </div> | 144 | </div> |
364 | 145 | <hr> | 145 | <hr> |
365 | @@ -148,7 +148,7 @@ | |||
366 | 148 | <pre class="programlisting">#define APP_INDICATOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), APP_INDICATOR_TYPE, AppIndicator)) | 148 | <pre class="programlisting">#define APP_INDICATOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), APP_INDICATOR_TYPE, AppIndicator)) |
367 | 149 | </pre> | 149 | </pre> |
368 | 150 | <p> | 150 | <p> |
370 | 151 | Safely convert a <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> into an <a class="link" href="libappindicator-app-indicator.html#AppIndicator"><span class="type">AppIndicator</span></a>. | 151 | Safely convert a <a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> into an <a class="link" href="libappindicator-app-indicator.html#AppIndicator"><span class="type">AppIndicator</span></a>. |
371 | 152 | </p> | 152 | </p> |
372 | 153 | <div class="variablelist"><table border="0"> | 153 | <div class="variablelist"><table border="0"> |
373 | 154 | <col align="left" valign="top"> | 154 | <col align="left" valign="top"> |
374 | @@ -165,14 +165,14 @@ | |||
375 | 165 | <pre class="programlisting">#define APP_INDICATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), APP_INDICATOR_TYPE, AppIndicatorClass)) | 165 | <pre class="programlisting">#define APP_INDICATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), APP_INDICATOR_TYPE, AppIndicatorClass)) |
376 | 166 | </pre> | 166 | </pre> |
377 | 167 | <p> | 167 | <p> |
379 | 168 | Safely convert a <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObjectClass"><span class="type">GObjectClass</span></a> into a <a class="link" href="libappindicator-app-indicator.html#AppIndicatorClass" title="AppIndicatorClass"><span class="type">AppIndicatorClass</span></a>. | 168 | Safely convert a <a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObjectClass"><span class="type">GObjectClass</span></a> into a <a class="link" href="libappindicator-app-indicator.html#AppIndicatorClass" title="AppIndicatorClass"><span class="type">AppIndicatorClass</span></a>. |
380 | 169 | </p> | 169 | </p> |
381 | 170 | <div class="variablelist"><table border="0"> | 170 | <div class="variablelist"><table border="0"> |
382 | 171 | <col align="left" valign="top"> | 171 | <col align="left" valign="top"> |
383 | 172 | <tbody><tr> | 172 | <tbody><tr> |
384 | 173 | <td><p><span class="term"><em class="parameter"><code>klass</code></em>Â :</span></p></td> | 173 | <td><p><span class="term"><em class="parameter"><code>klass</code></em>Â :</span></p></td> |
385 | 174 | <td> | 174 | <td> |
387 | 175 | <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObjectClass"><span class="type">GObjectClass</span></a> based class to convert. | 175 | <a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObjectClass"><span class="type">GObjectClass</span></a> based class to convert. |
388 | 176 | </td> | 176 | </td> |
389 | 177 | </tr></tbody> | 177 | </tr></tbody> |
390 | 178 | </table></div> | 178 | </table></div> |
391 | @@ -189,7 +189,7 @@ | |||
392 | 189 | <col align="left" valign="top"> | 189 | <col align="left" valign="top"> |
393 | 190 | <tbody><tr> | 190 | <tbody><tr> |
394 | 191 | <td><p><span class="term"><em class="parameter"><code>obj</code></em>Â :</span></p></td> | 191 | <td><p><span class="term"><em class="parameter"><code>obj</code></em>Â :</span></p></td> |
396 | 192 | <td>An <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> to check | 192 | <td>An <a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> to check |
397 | 193 | </td> | 193 | </td> |
398 | 194 | </tr></tbody> | 194 | </tr></tbody> |
399 | 195 | </table></div> | 195 | </table></div> |
400 | @@ -206,7 +206,7 @@ | |||
401 | 206 | <col align="left" valign="top"> | 206 | <col align="left" valign="top"> |
402 | 207 | <tbody><tr> | 207 | <tbody><tr> |
403 | 208 | <td><p><span class="term"><em class="parameter"><code>klass</code></em>Â :</span></p></td> | 208 | <td><p><span class="term"><em class="parameter"><code>klass</code></em>Â :</span></p></td> |
405 | 209 | <td>An <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObjectClass"><span class="type">GObjectClass</span></a> to check | 209 | <td>An <a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObjectClass"><span class="type">GObjectClass</span></a> to check |
406 | 210 | </td> | 210 | </td> |
407 | 211 | </tr></tbody> | 211 | </tr></tbody> |
408 | 212 | </table></div> | 212 | </table></div> |
409 | @@ -223,7 +223,7 @@ | |||
410 | 223 | <col align="left" valign="top"> | 223 | <col align="left" valign="top"> |
411 | 224 | <tbody><tr> | 224 | <tbody><tr> |
412 | 225 | <td><p><span class="term"><em class="parameter"><code>obj</code></em>Â :</span></p></td> | 225 | <td><p><span class="term"><em class="parameter"><code>obj</code></em>Â :</span></p></td> |
414 | 226 | <td>A <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> in the class hierarchy of <a class="link" href="libappindicator-app-indicator.html#AppIndicator"><span class="type">AppIndicator</span></a>. | 226 | <td>A <a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> in the class hierarchy of <a class="link" href="libappindicator-app-indicator.html#AppIndicator"><span class="type">AppIndicator</span></a>. |
415 | 227 | </td> | 227 | </td> |
416 | 228 | </tr></tbody> | 228 | </tr></tbody> |
417 | 229 | </table></div> | 229 | </table></div> |
418 | @@ -405,7 +405,7 @@ | |||
419 | 405 | <col align="left" valign="top"> | 405 | <col align="left" valign="top"> |
420 | 406 | <tbody> | 406 | <tbody> |
421 | 407 | <tr> | 407 | <tr> |
423 | 408 | <td><p><span class="term"><a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObjectClass"><span class="type">GObjectClass</span></a>Â <em class="structfield"><code><a name="AppIndicatorClass.parent-class"></a>parent_class</code></em>;</span></p></td> | 408 | <td><p><span class="term"><a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObjectClass"><span class="type">GObjectClass</span></a>Â <em class="structfield"><code><a name="AppIndicatorClass.parent-class"></a>parent_class</code></em>;</span></p></td> |
424 | 409 | <td>Mia familia | 409 | <td>Mia familia |
425 | 410 | </td> | 410 | </td> |
426 | 411 | </tr> | 411 | </tr> |
427 | @@ -457,15 +457,15 @@ | |||
428 | 457 | <hr> | 457 | <hr> |
429 | 458 | <div class="refsect2" title="app_indicator_get_type ()"> | 458 | <div class="refsect2" title="app_indicator_get_type ()"> |
430 | 459 | <a name="app-indicator-get-type"></a><h3>app_indicator_get_type ()</h3> | 459 | <a name="app-indicator-get-type"></a><h3>app_indicator_get_type ()</h3> |
432 | 460 | <pre class="programlisting"><a href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#GType"><span class="returnvalue">GType</span></a> app_indicator_get_type (<em class="parameter"><code><span class="type">void</span></code></em>);</pre> | 460 | <pre class="programlisting"><a href="/usr/share/gtk-doc/html/gobject/gobject-Type-Information.html#GType"><span class="returnvalue">GType</span></a> app_indicator_get_type (<em class="parameter"><code><span class="type">void</span></code></em>);</pre> |
433 | 461 | <p> | 461 | <p> |
435 | 462 | Generates or returns the unique <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#GType"><span class="type">GType</span></a> for <a class="link" href="libappindicator-app-indicator.html#AppIndicator"><span class="type">AppIndicator</span></a>. | 462 | Generates or returns the unique <a href="/usr/share/gtk-doc/html/gobject/gobject-Type-Information.html#GType"><span class="type">GType</span></a> for <a class="link" href="libappindicator-app-indicator.html#AppIndicator"><span class="type">AppIndicator</span></a>. |
436 | 463 | </p> | 463 | </p> |
437 | 464 | <div class="variablelist"><table border="0"> | 464 | <div class="variablelist"><table border="0"> |
438 | 465 | <col align="left" valign="top"> | 465 | <col align="left" valign="top"> |
439 | 466 | <tbody><tr> | 466 | <tbody><tr> |
440 | 467 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span>Â :</span></p></td> | 467 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span>Â :</span></p></td> |
442 | 468 | <td> A unique <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#GType"><span class="type">GType</span></a> for <a class="link" href="libappindicator-app-indicator.html#AppIndicator"><span class="type">AppIndicator</span></a> objects. | 468 | <td> A unique <a href="/usr/share/gtk-doc/html/gobject/gobject-Type-Information.html#GType"><span class="type">GType</span></a> for <a class="link" href="libappindicator-app-indicator.html#AppIndicator"><span class="type">AppIndicator</span></a> objects. |
443 | 469 | </td> | 469 | </td> |
444 | 470 | </tr></tbody> | 470 | </tr></tbody> |
445 | 471 | </table></div> | 471 | </table></div> |
446 | @@ -473,8 +473,8 @@ | |||
447 | 473 | <hr> | 473 | <hr> |
448 | 474 | <div class="refsect2" title="app_indicator_new ()"> | 474 | <div class="refsect2" title="app_indicator_new ()"> |
449 | 475 | <a name="app-indicator-new"></a><h3>app_indicator_new ()</h3> | 475 | <a name="app-indicator-new"></a><h3>app_indicator_new ()</h3> |
452 | 476 | <pre class="programlisting"><a class="link" href="libappindicator-app-indicator.html#AppIndicator"><span class="returnvalue">AppIndicator</span></a> * app_indicator_new (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *id</code></em>, | 476 | <pre class="programlisting"><a class="link" href="libappindicator-app-indicator.html#AppIndicator"><span class="returnvalue">AppIndicator</span></a> * app_indicator_new (<em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *id</code></em>, |
453 | 477 | <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *icon_name</code></em>, | 477 | <em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *icon_name</code></em>, |
454 | 478 | <em class="parameter"><code><a class="link" href="libappindicator-app-indicator.html#AppIndicatorCategory" title="enum AppIndicatorCategory"><span class="type">AppIndicatorCategory</span></a> category</code></em>);</pre> | 478 | <em class="parameter"><code><a class="link" href="libappindicator-app-indicator.html#AppIndicatorCategory" title="enum AppIndicatorCategory"><span class="type">AppIndicatorCategory</span></a> category</code></em>);</pre> |
455 | 479 | <p> | 479 | <p> |
456 | 480 | Creates a new <a class="link" href="libappindicator-app-indicator.html#AppIndicator"><span class="type">AppIndicator</span></a> setting the properties: | 480 | Creates a new <a class="link" href="libappindicator-app-indicator.html#AppIndicator"><span class="type">AppIndicator</span></a> setting the properties: |
457 | @@ -511,10 +511,10 @@ | |||
458 | 511 | <hr> | 511 | <hr> |
459 | 512 | <div class="refsect2" title="app_indicator_new_with_path ()"> | 512 | <div class="refsect2" title="app_indicator_new_with_path ()"> |
460 | 513 | <a name="app-indicator-new-with-path"></a><h3>app_indicator_new_with_path ()</h3> | 513 | <a name="app-indicator-new-with-path"></a><h3>app_indicator_new_with_path ()</h3> |
463 | 514 | <pre class="programlisting"><a class="link" href="libappindicator-app-indicator.html#AppIndicator"><span class="returnvalue">AppIndicator</span></a> * app_indicator_new_with_path (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *id</code></em>, | 514 | <pre class="programlisting"><a class="link" href="libappindicator-app-indicator.html#AppIndicator"><span class="returnvalue">AppIndicator</span></a> * app_indicator_new_with_path (<em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *id</code></em>, |
464 | 515 | <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *icon_name</code></em>, | 515 | <em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *icon_name</code></em>, |
465 | 516 | <em class="parameter"><code><a class="link" href="libappindicator-app-indicator.html#AppIndicatorCategory" title="enum AppIndicatorCategory"><span class="type">AppIndicatorCategory</span></a> category</code></em>, | 516 | <em class="parameter"><code><a class="link" href="libappindicator-app-indicator.html#AppIndicatorCategory" title="enum AppIndicatorCategory"><span class="type">AppIndicatorCategory</span></a> category</code></em>, |
467 | 517 | <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *icon_path</code></em>);</pre> | 517 | <em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *icon_path</code></em>);</pre> |
468 | 518 | <p> | 518 | <p> |
469 | 519 | Creates a new <a class="link" href="libappindicator-app-indicator.html#AppIndicator"><span class="type">AppIndicator</span></a> setting the properties: | 519 | Creates a new <a class="link" href="libappindicator-app-indicator.html#AppIndicator"><span class="type">AppIndicator</span></a> setting the properties: |
470 | 520 | <a class="link" href="libappindicator-app-indicator.html#AppIndicator--id" title='The "id" property'><span class="type">"id"</span></a> with <em class="parameter"><code>id</code></em>, <a class="link" href="libappindicator-app-indicator.html#AppIndicator--category" title='The "category" property'><span class="type">"category"</span></a> | 520 | <a class="link" href="libappindicator-app-indicator.html#AppIndicator--id" title='The "id" property'><span class="type">"id"</span></a> with <em class="parameter"><code>id</code></em>, <a class="link" href="libappindicator-app-indicator.html#AppIndicator--category" title='The "category" property'><span class="type">"category"</span></a> |
471 | @@ -580,7 +580,7 @@ | |||
472 | 580 | <div class="refsect2" title="app_indicator_set_attention_icon ()"> | 580 | <div class="refsect2" title="app_indicator_set_attention_icon ()"> |
473 | 581 | <a name="app-indicator-set-attention-icon"></a><h3>app_indicator_set_attention_icon ()</h3> | 581 | <a name="app-indicator-set-attention-icon"></a><h3>app_indicator_set_attention_icon ()</h3> |
474 | 582 | <pre class="programlisting"><span class="returnvalue">void</span> app_indicator_set_attention_icon (<em class="parameter"><code><a class="link" href="libappindicator-app-indicator.html#AppIndicator"><span class="type">AppIndicator</span></a> *self</code></em>, | 582 | <pre class="programlisting"><span class="returnvalue">void</span> app_indicator_set_attention_icon (<em class="parameter"><code><a class="link" href="libappindicator-app-indicator.html#AppIndicator"><span class="type">AppIndicator</span></a> *self</code></em>, |
476 | 583 | <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *icon_name</code></em>);</pre> | 583 | <em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *icon_name</code></em>);</pre> |
477 | 584 | <p> | 584 | <p> |
478 | 585 | Wrapper function for property <a class="link" href="libappindicator-app-indicator.html#AppIndicator--attention-icon-name" title='The "attention-icon-name" property'><span class="type">"attention-icon-name"</span></a>. | 585 | Wrapper function for property <a class="link" href="libappindicator-app-indicator.html#AppIndicator--attention-icon-name" title='The "attention-icon-name" property'><span class="type">"attention-icon-name"</span></a>. |
479 | 586 | </p> | 586 | </p> |
480 | @@ -632,7 +632,7 @@ | |||
481 | 632 | <div class="refsect2" title="app_indicator_set_icon ()"> | 632 | <div class="refsect2" title="app_indicator_set_icon ()"> |
482 | 633 | <a name="app-indicator-set-icon"></a><h3>app_indicator_set_icon ()</h3> | 633 | <a name="app-indicator-set-icon"></a><h3>app_indicator_set_icon ()</h3> |
483 | 634 | <pre class="programlisting"><span class="returnvalue">void</span> app_indicator_set_icon (<em class="parameter"><code><a class="link" href="libappindicator-app-indicator.html#AppIndicator"><span class="type">AppIndicator</span></a> *self</code></em>, | 634 | <pre class="programlisting"><span class="returnvalue">void</span> app_indicator_set_icon (<em class="parameter"><code><a class="link" href="libappindicator-app-indicator.html#AppIndicator"><span class="type">AppIndicator</span></a> *self</code></em>, |
485 | 635 | <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *icon_name</code></em>);</pre> | 635 | <em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *icon_name</code></em>);</pre> |
486 | 636 | <p> | 636 | <p> |
487 | 637 | Sets the default icon to use when the status is active but | 637 | Sets the default icon to use when the status is active but |
488 | 638 | not set to attention. In most cases, this should be the | 638 | not set to attention. In most cases, this should be the |
489 | @@ -658,7 +658,7 @@ | |||
490 | 658 | <hr> | 658 | <hr> |
491 | 659 | <div class="refsect2" title="app_indicator_get_id ()"> | 659 | <div class="refsect2" title="app_indicator_get_id ()"> |
492 | 660 | <a name="app-indicator-get-id"></a><h3>app_indicator_get_id ()</h3> | 660 | <a name="app-indicator-get-id"></a><h3>app_indicator_get_id ()</h3> |
494 | 661 | <pre class="programlisting">const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * app_indicator_get_id (<em class="parameter"><code><a class="link" href="libappindicator-app-indicator.html#AppIndicator"><span class="type">AppIndicator</span></a> *self</code></em>);</pre> | 661 | <pre class="programlisting">const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * app_indicator_get_id (<em class="parameter"><code><a class="link" href="libappindicator-app-indicator.html#AppIndicator"><span class="type">AppIndicator</span></a> *self</code></em>);</pre> |
495 | 662 | <p> | 662 | <p> |
496 | 663 | Wrapper function for property <a class="link" href="libappindicator-app-indicator.html#AppIndicator--id" title='The "id" property'><span class="type">"id"</span></a>. | 663 | Wrapper function for property <a class="link" href="libappindicator-app-indicator.html#AppIndicator--id" title='The "id" property'><span class="type">"id"</span></a>. |
497 | 664 | </p> | 664 | </p> |
498 | @@ -727,7 +727,7 @@ | |||
499 | 727 | <hr> | 727 | <hr> |
500 | 728 | <div class="refsect2" title="app_indicator_get_icon ()"> | 728 | <div class="refsect2" title="app_indicator_get_icon ()"> |
501 | 729 | <a name="app-indicator-get-icon"></a><h3>app_indicator_get_icon ()</h3> | 729 | <a name="app-indicator-get-icon"></a><h3>app_indicator_get_icon ()</h3> |
503 | 730 | <pre class="programlisting">const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * app_indicator_get_icon (<em class="parameter"><code><a class="link" href="libappindicator-app-indicator.html#AppIndicator"><span class="type">AppIndicator</span></a> *self</code></em>);</pre> | 730 | <pre class="programlisting">const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * app_indicator_get_icon (<em class="parameter"><code><a class="link" href="libappindicator-app-indicator.html#AppIndicator"><span class="type">AppIndicator</span></a> *self</code></em>);</pre> |
504 | 731 | <p> | 731 | <p> |
505 | 732 | Wrapper function for property <a class="link" href="libappindicator-app-indicator.html#AppIndicator--icon-name" title='The "icon-name" property'><span class="type">"icon-name"</span></a>. | 732 | Wrapper function for property <a class="link" href="libappindicator-app-indicator.html#AppIndicator--icon-name" title='The "icon-name" property'><span class="type">"icon-name"</span></a>. |
506 | 733 | </p> | 733 | </p> |
507 | @@ -750,7 +750,7 @@ | |||
508 | 750 | <hr> | 750 | <hr> |
509 | 751 | <div class="refsect2" title="app_indicator_get_attention_icon ()"> | 751 | <div class="refsect2" title="app_indicator_get_attention_icon ()"> |
510 | 752 | <a name="app-indicator-get-attention-icon"></a><h3>app_indicator_get_attention_icon ()</h3> | 752 | <a name="app-indicator-get-attention-icon"></a><h3>app_indicator_get_attention_icon ()</h3> |
512 | 753 | <pre class="programlisting">const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * app_indicator_get_attention_icon (<em class="parameter"><code><a class="link" href="libappindicator-app-indicator.html#AppIndicator"><span class="type">AppIndicator</span></a> *self</code></em>);</pre> | 753 | <pre class="programlisting">const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * app_indicator_get_attention_icon (<em class="parameter"><code><a class="link" href="libappindicator-app-indicator.html#AppIndicator"><span class="type">AppIndicator</span></a> *self</code></em>);</pre> |
513 | 754 | <p> | 754 | <p> |
514 | 755 | Wrapper function for property <a class="link" href="libappindicator-app-indicator.html#AppIndicator--attention-icon-name" title='The "attention-icon-name" property'><span class="type">"attention-icon-name"</span></a>. | 755 | Wrapper function for property <a class="link" href="libappindicator-app-indicator.html#AppIndicator--attention-icon-name" title='The "attention-icon-name" property'><span class="type">"attention-icon-name"</span></a>. |
515 | 756 | </p> | 756 | </p> |
516 | @@ -788,7 +788,7 @@ | |||
517 | 788 | </tr> | 788 | </tr> |
518 | 789 | <tr> | 789 | <tr> |
519 | 790 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span>Â :</span></p></td> | 790 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span>Â :</span></p></td> |
521 | 791 | <td> A <a href="/usr/share/gtk-doc/html/gtk/GtkMenu.html"><span class="type">GtkMenu</span></a> object or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if one hasn't been set. | 791 | <td> A <a href="/usr/share/gtk-doc/html/gtk/GtkMenu.html"><span class="type">GtkMenu</span></a> object or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if one hasn't been set. |
522 | 792 | </td> | 792 | </td> |
523 | 793 | </tr> | 793 | </tr> |
524 | 794 | </tbody> | 794 | </tbody> |
525 | @@ -799,7 +799,7 @@ | |||
526 | 799 | <a name="libappindicator-app-indicator.property-details"></a><h2>Property Details</h2> | 799 | <a name="libappindicator-app-indicator.property-details"></a><h2>Property Details</h2> |
527 | 800 | <div class="refsect2" title='The "attention-icon-name" property'> | 800 | <div class="refsect2" title='The "attention-icon-name" property'> |
528 | 801 | <a name="AppIndicator--attention-icon-name"></a><h3>The <code class="literal">"attention-icon-name"</code> property</h3> | 801 | <a name="AppIndicator--attention-icon-name"></a><h3>The <code class="literal">"attention-icon-name"</code> property</h3> |
530 | 802 | <pre class="programlisting"> "attention-icon-name" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Read / Write</pre> | 802 | <pre class="programlisting"> "attention-icon-name" <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Read / Write</pre> |
531 | 803 | <p> | 803 | <p> |
532 | 804 | If the indicator sets it's status to <a class="link" href="libappindicator-app-indicator.html#APP-INDICATOR-STATUS-ATTENTION:CAPS"><code class="literal">APP_INDICATOR_STATUS_ATTENTION</code></a> | 804 | If the indicator sets it's status to <a class="link" href="libappindicator-app-indicator.html#APP-INDICATOR-STATUS-ATTENTION:CAPS"><code class="literal">APP_INDICATOR_STATUS_ATTENTION</code></a> |
533 | 805 | then this icon is shown. | 805 | then this icon is shown. |
534 | @@ -809,7 +809,7 @@ | |||
535 | 809 | <hr> | 809 | <hr> |
536 | 810 | <div class="refsect2" title='The "category" property'> | 810 | <div class="refsect2" title='The "category" property'> |
537 | 811 | <a name="AppIndicator--category"></a><h3>The <code class="literal">"category"</code> property</h3> | 811 | <a name="AppIndicator--category"></a><h3>The <code class="literal">"category"</code> property</h3> |
539 | 812 | <pre class="programlisting"> "category" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Read / Write / Construct Only</pre> | 812 | <pre class="programlisting"> "category" <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Read / Write / Construct Only</pre> |
540 | 813 | <p> | 813 | <p> |
541 | 814 | The type of indicator that this represents. Please don't use 'Other'. | 814 | The type of indicator that this represents. Please don't use 'Other'. |
542 | 815 | Defaults to 'ApplicationStatus'. | 815 | Defaults to 'ApplicationStatus'. |
543 | @@ -819,9 +819,9 @@ | |||
544 | 819 | <hr> | 819 | <hr> |
545 | 820 | <div class="refsect2" title='The "connected" property'> | 820 | <div class="refsect2" title='The "connected" property'> |
546 | 821 | <a name="AppIndicator--connected"></a><h3>The <code class="literal">"connected"</code> property</h3> | 821 | <a name="AppIndicator--connected"></a><h3>The <code class="literal">"connected"</code> property</h3> |
548 | 822 | <pre class="programlisting"> "connected" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> : Read</pre> | 822 | <pre class="programlisting"> "connected" <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> : Read</pre> |
549 | 823 | <p> | 823 | <p> |
551 | 824 | Pretty simple, <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if we have a reasonable expectation of being | 824 | Pretty simple, <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if we have a reasonable expectation of being |
552 | 825 | displayed through this object. You should hide your TrayIcon if so. | 825 | displayed through this object. You should hide your TrayIcon if so. |
553 | 826 | </p> | 826 | </p> |
554 | 827 | <p>Default value: FALSE</p> | 827 | <p>Default value: FALSE</p> |
555 | @@ -829,7 +829,7 @@ | |||
556 | 829 | <hr> | 829 | <hr> |
557 | 830 | <div class="refsect2" title='The "icon-name" property'> | 830 | <div class="refsect2" title='The "icon-name" property'> |
558 | 831 | <a name="AppIndicator--icon-name"></a><h3>The <code class="literal">"icon-name"</code> property</h3> | 831 | <a name="AppIndicator--icon-name"></a><h3>The <code class="literal">"icon-name"</code> property</h3> |
560 | 832 | <pre class="programlisting"> "icon-name" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Read / Write / Construct</pre> | 832 | <pre class="programlisting"> "icon-name" <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Read / Write</pre> |
561 | 833 | <p> | 833 | <p> |
562 | 834 | The name of the regular icon that is shown for the indicator. | 834 | The name of the regular icon that is shown for the indicator. |
563 | 835 | </p> | 835 | </p> |
564 | @@ -838,7 +838,7 @@ | |||
565 | 838 | <hr> | 838 | <hr> |
566 | 839 | <div class="refsect2" title='The "icon-theme-path" property'> | 839 | <div class="refsect2" title='The "icon-theme-path" property'> |
567 | 840 | <a name="AppIndicator--icon-theme-path"></a><h3>The <code class="literal">"icon-theme-path"</code> property</h3> | 840 | <a name="AppIndicator--icon-theme-path"></a><h3>The <code class="literal">"icon-theme-path"</code> property</h3> |
569 | 841 | <pre class="programlisting"> "icon-theme-path" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Read / Write / Construct Only</pre> | 841 | <pre class="programlisting"> "icon-theme-path" <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Read / Write / Construct Only</pre> |
570 | 842 | <p> | 842 | <p> |
571 | 843 | An additional place to look for icon names that may be installed by the | 843 | An additional place to look for icon names that may be installed by the |
572 | 844 | application. | 844 | application. |
573 | @@ -848,7 +848,7 @@ | |||
574 | 848 | <hr> | 848 | <hr> |
575 | 849 | <div class="refsect2" title='The "id" property'> | 849 | <div class="refsect2" title='The "id" property'> |
576 | 850 | <a name="AppIndicator--id"></a><h3>The <code class="literal">"id"</code> property</h3> | 850 | <a name="AppIndicator--id"></a><h3>The <code class="literal">"id"</code> property</h3> |
578 | 851 | <pre class="programlisting"> "id" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Read / Write / Construct Only</pre> | 851 | <pre class="programlisting"> "id" <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Read / Write / Construct Only</pre> |
579 | 852 | <p> | 852 | <p> |
580 | 853 | The ID for this indicator, which should be unique, but used consistently | 853 | The ID for this indicator, which should be unique, but used consistently |
581 | 854 | by this program and its indicator. | 854 | by this program and its indicator. |
582 | @@ -866,7 +866,7 @@ | |||
583 | 866 | <hr> | 866 | <hr> |
584 | 867 | <div class="refsect2" title='The "status" property'> | 867 | <div class="refsect2" title='The "status" property'> |
585 | 868 | <a name="AppIndicator--status"></a><h3>The <code class="literal">"status"</code> property</h3> | 868 | <a name="AppIndicator--status"></a><h3>The <code class="literal">"status"</code> property</h3> |
587 | 869 | <pre class="programlisting"> "status" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Read / Write</pre> | 869 | <pre class="programlisting"> "status" <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Read / Write</pre> |
588 | 870 | <p> | 870 | <p> |
589 | 871 | Whether the indicator is shown or requests attention. Defaults to | 871 | Whether the indicator is shown or requests attention. Defaults to |
590 | 872 | 'Passive'. | 872 | 'Passive'. |
591 | @@ -879,8 +879,8 @@ | |||
592 | 879 | <div class="refsect2" title='The "connection-changed" signal'> | 879 | <div class="refsect2" title='The "connection-changed" signal'> |
593 | 880 | <a name="AppIndicator-connection-changed"></a><h3>The <code class="literal">"connection-changed"</code> signal</h3> | 880 | <a name="AppIndicator-connection-changed"></a><h3>The <code class="literal">"connection-changed"</code> signal</h3> |
594 | 881 | <pre class="programlisting"><span class="returnvalue">void</span> user_function (<a class="link" href="libappindicator-app-indicator.html#AppIndicator"><span class="type">AppIndicator</span></a> *arg0, | 881 | <pre class="programlisting"><span class="returnvalue">void</span> user_function (<a class="link" href="libappindicator-app-indicator.html#AppIndicator"><span class="type">AppIndicator</span></a> *arg0, |
597 | 882 | <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> arg1, | 882 | <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> arg1, |
598 | 883 | <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data) : Run Last</pre> | 883 | <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data) : Run Last</pre> |
599 | 884 | <p> | 884 | <p> |
600 | 885 | Signaled when we connect to a watcher, or when it drops away. | 885 | Signaled when we connect to a watcher, or when it drops away. |
601 | 886 | </p> | 886 | </p> |
602 | @@ -908,7 +908,7 @@ | |||
603 | 908 | <div class="refsect2" title='The "new-attention-icon" signal'> | 908 | <div class="refsect2" title='The "new-attention-icon" signal'> |
604 | 909 | <a name="AppIndicator-new-attention-icon"></a><h3>The <code class="literal">"new-attention-icon"</code> signal</h3> | 909 | <a name="AppIndicator-new-attention-icon"></a><h3>The <code class="literal">"new-attention-icon"</code> signal</h3> |
605 | 910 | <pre class="programlisting"><span class="returnvalue">void</span> user_function (<a class="link" href="libappindicator-app-indicator.html#AppIndicator"><span class="type">AppIndicator</span></a> *arg0, | 910 | <pre class="programlisting"><span class="returnvalue">void</span> user_function (<a class="link" href="libappindicator-app-indicator.html#AppIndicator"><span class="type">AppIndicator</span></a> *arg0, |
607 | 911 | <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data) : Run Last</pre> | 911 | <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data) : Run Last</pre> |
608 | 912 | <p> | 912 | <p> |
609 | 913 | Emitted when <a class="link" href="libappindicator-app-indicator.html#AppIndicator--attention-icon-name" title='The "attention-icon-name" property'><span class="type">"attention-icon-name"</span></a> is changed | 913 | Emitted when <a class="link" href="libappindicator-app-indicator.html#AppIndicator--attention-icon-name" title='The "attention-icon-name" property'><span class="type">"attention-icon-name"</span></a> is changed |
610 | 914 | </p> | 914 | </p> |
611 | @@ -931,7 +931,7 @@ | |||
612 | 931 | <div class="refsect2" title='The "new-icon" signal'> | 931 | <div class="refsect2" title='The "new-icon" signal'> |
613 | 932 | <a name="AppIndicator-new-icon"></a><h3>The <code class="literal">"new-icon"</code> signal</h3> | 932 | <a name="AppIndicator-new-icon"></a><h3>The <code class="literal">"new-icon"</code> signal</h3> |
614 | 933 | <pre class="programlisting"><span class="returnvalue">void</span> user_function (<a class="link" href="libappindicator-app-indicator.html#AppIndicator"><span class="type">AppIndicator</span></a> *arg0, | 933 | <pre class="programlisting"><span class="returnvalue">void</span> user_function (<a class="link" href="libappindicator-app-indicator.html#AppIndicator"><span class="type">AppIndicator</span></a> *arg0, |
616 | 934 | <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data) : Run Last</pre> | 934 | <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data) : Run Last</pre> |
617 | 935 | <p> | 935 | <p> |
618 | 936 | Emitted when <a class="link" href="libappindicator-app-indicator.html#AppIndicator--icon-name" title='The "icon-name" property'><span class="type">"icon-name"</span></a> is changed | 936 | Emitted when <a class="link" href="libappindicator-app-indicator.html#AppIndicator--icon-name" title='The "icon-name" property'><span class="type">"icon-name"</span></a> is changed |
619 | 937 | </p> | 937 | </p> |
620 | @@ -954,8 +954,8 @@ | |||
621 | 954 | <div class="refsect2" title='The "new-status" signal'> | 954 | <div class="refsect2" title='The "new-status" signal'> |
622 | 955 | <a name="AppIndicator-new-status"></a><h3>The <code class="literal">"new-status"</code> signal</h3> | 955 | <a name="AppIndicator-new-status"></a><h3>The <code class="literal">"new-status"</code> signal</h3> |
623 | 956 | <pre class="programlisting"><span class="returnvalue">void</span> user_function (<a class="link" href="libappindicator-app-indicator.html#AppIndicator"><span class="type">AppIndicator</span></a> *arg0, | 956 | <pre class="programlisting"><span class="returnvalue">void</span> user_function (<a class="link" href="libappindicator-app-indicator.html#AppIndicator"><span class="type">AppIndicator</span></a> *arg0, |
626 | 957 | <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *arg1, | 957 | <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *arg1, |
627 | 958 | <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data) : Run Last</pre> | 958 | <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data) : Run Last</pre> |
628 | 959 | <p> | 959 | <p> |
629 | 960 | Emitted when <a class="link" href="libappindicator-app-indicator.html#AppIndicator--status" title='The "status" property'><span class="type">"status"</span></a> is changed | 960 | Emitted when <a class="link" href="libappindicator-app-indicator.html#AppIndicator--status" title='The "status" property'><span class="type">"status"</span></a> is changed |
630 | 961 | </p> | 961 | </p> |
631 | 962 | 962 | ||
632 | === modified file 'docs/reference/html/object-tree.html' | |||
633 | --- docs/reference/html/object-tree.html 2010-06-21 19:17:44 +0000 | |||
634 | +++ docs/reference/html/object-tree.html 2010-07-15 15:45:53 +0000 | |||
635 | @@ -23,7 +23,7 @@ | |||
636 | 23 | <div class="titlepage"><div><div><h2 class="title"> | 23 | <div class="titlepage"><div><div><h2 class="title"> |
637 | 24 | <a name="object-tree"></a>Object Hierarchy</h2></div></div></div> | 24 | <a name="object-tree"></a>Object Hierarchy</h2></div></div></div> |
638 | 25 | <pre class="screen"> | 25 | <pre class="screen"> |
640 | 26 | <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject">GObject</a> | 26 | <a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject">GObject</a> |
641 | 27 | <a class="link" href="libappindicator-app-indicator.html#AppIndicator">AppIndicator</a> | 27 | <a class="link" href="libappindicator-app-indicator.html#AppIndicator">AppIndicator</a> |
642 | 28 | </pre> | 28 | </pre> |
643 | 29 | </div> | 29 | </div> |
644 | 30 | 30 | ||
645 | === modified file 'docs/reference/libappindicator-docs.sgml' | |||
646 | --- docs/reference/libappindicator-docs.sgml 2010-07-08 15:22:02 +0000 | |||
647 | +++ docs/reference/libappindicator-docs.sgml 2010-07-15 15:45:53 +0000 | |||
648 | @@ -8,7 +8,7 @@ | |||
649 | 8 | <bookinfo> | 8 | <bookinfo> |
650 | 9 | <title>libappindicator Reference Manual</title> | 9 | <title>libappindicator Reference Manual</title> |
651 | 10 | <releaseinfo> | 10 | <releaseinfo> |
653 | 11 | for libappindicator 0.2.2 | 11 | for libappindicator 0.2.3 |
654 | 12 | </releaseinfo> | 12 | </releaseinfo> |
655 | 13 | </bookinfo> | 13 | </bookinfo> |
656 | 14 | 14 | ||
657 | 15 | 15 | ||
658 | === modified file 'docs/reference/tmpl/app-indicator.sgml' | |||
659 | --- docs/reference/tmpl/app-indicator.sgml 2010-06-21 19:22:34 +0000 | |||
660 | +++ docs/reference/tmpl/app-indicator.sgml 2010-07-15 15:45:53 +0000 | |||
661 | @@ -9,13 +9,11 @@ | |||
662 | 9 | 9 | ||
663 | 10 | </para> | 10 | </para> |
664 | 11 | 11 | ||
665 | 12 | |||
666 | 13 | <!-- ##### SECTION See_Also ##### --> | 12 | <!-- ##### SECTION See_Also ##### --> |
667 | 14 | <para> | 13 | <para> |
668 | 15 | 14 | ||
669 | 16 | </para> | 15 | </para> |
670 | 17 | 16 | ||
671 | 18 | |||
672 | 19 | <!-- ##### SECTION Stability_Level ##### --> | 17 | <!-- ##### SECTION Stability_Level ##### --> |
673 | 20 | 18 | ||
674 | 21 | 19 | ||
675 | 22 | 20 | ||
676 | === modified file 'docs/reference/version.xml' | |||
677 | --- docs/reference/version.xml 2010-07-08 15:22:02 +0000 | |||
678 | +++ docs/reference/version.xml 2010-07-15 15:45:53 +0000 | |||
679 | @@ -1,1 +1,1 @@ | |||
681 | 1 | 0.2.2 | 1 | 0.2.3 |
682 | 2 | 2 | ||
683 | === modified file 'docs/reference/xml/app-indicator.xml' | |||
684 | --- docs/reference/xml/app-indicator.xml 2010-06-03 19:00:39 +0000 | |||
685 | +++ docs/reference/xml/app-indicator.xml 2010-07-15 15:45:53 +0000 | |||
686 | @@ -80,7 +80,7 @@ | |||
687 | 80 | "<link linkend="AppIndicator--attention-icon-name">attention-icon-name</link>" <link linkend="gchar"><type>gchar</type></link>* : Read / Write | 80 | "<link linkend="AppIndicator--attention-icon-name">attention-icon-name</link>" <link linkend="gchar"><type>gchar</type></link>* : Read / Write |
688 | 81 | "<link linkend="AppIndicator--category">category</link>" <link linkend="gchar"><type>gchar</type></link>* : Read / Write / Construct Only | 81 | "<link linkend="AppIndicator--category">category</link>" <link linkend="gchar"><type>gchar</type></link>* : Read / Write / Construct Only |
689 | 82 | "<link linkend="AppIndicator--connected">connected</link>" <link linkend="gboolean"><type>gboolean</type></link> : Read | 82 | "<link linkend="AppIndicator--connected">connected</link>" <link linkend="gboolean"><type>gboolean</type></link> : Read |
691 | 83 | "<link linkend="AppIndicator--icon-name">icon-name</link>" <link linkend="gchar"><type>gchar</type></link>* : Read / Write / Construct | 83 | "<link linkend="AppIndicator--icon-name">icon-name</link>" <link linkend="gchar"><type>gchar</type></link>* : Read / Write |
692 | 84 | "<link linkend="AppIndicator--icon-theme-path">icon-theme-path</link>" <link linkend="gchar"><type>gchar</type></link>* : Read / Write / Construct Only | 84 | "<link linkend="AppIndicator--icon-theme-path">icon-theme-path</link>" <link linkend="gchar"><type>gchar</type></link>* : Read / Write / Construct Only |
693 | 85 | "<link linkend="AppIndicator--id">id</link>" <link linkend="gchar"><type>gchar</type></link>* : Read / Write / Construct Only | 85 | "<link linkend="AppIndicator--id">id</link>" <link linkend="gchar"><type>gchar</type></link>* : Read / Write / Construct Only |
694 | 86 | "<link linkend="AppIndicator--menu">menu</link>" <link linkend="DBusGObjectPath"><type>DBusGObjectPath</type></link>* : Read | 86 | "<link linkend="AppIndicator--menu">menu</link>" <link linkend="DBusGObjectPath"><type>DBusGObjectPath</type></link>* : Read |
695 | @@ -614,7 +614,7 @@ | |||
696 | 614 | </refsect2> | 614 | </refsect2> |
697 | 615 | <refsect2 id="AppIndicator--icon-name" role="property"><title>The <literal>"icon-name"</literal> property</title> | 615 | <refsect2 id="AppIndicator--icon-name" role="property"><title>The <literal>"icon-name"</literal> property</title> |
698 | 616 | <indexterm zone="AppIndicator--icon-name"><primary>AppIndicator:icon-name</primary></indexterm> | 616 | <indexterm zone="AppIndicator--icon-name"><primary>AppIndicator:icon-name</primary></indexterm> |
700 | 617 | <programlisting> "icon-name" <link linkend="gchar"><type>gchar</type></link>* : Read / Write / Construct</programlisting> | 617 | <programlisting> "icon-name" <link linkend="gchar"><type>gchar</type></link>* : Read / Write</programlisting> |
701 | 618 | <para> | 618 | <para> |
702 | 619 | The name of the regular icon that is shown for the indicator. | 619 | The name of the regular icon that is shown for the indicator. |
703 | 620 | </para><para>Default value: NULL</para> | 620 | </para><para>Default value: NULL</para> |
704 | 621 | 621 | ||
705 | === modified file 'src/Makefile.am' | |||
706 | --- src/Makefile.am 2010-06-01 16:07:44 +0000 | |||
707 | +++ src/Makefile.am 2010-07-15 15:45:53 +0000 | |||
708 | @@ -116,6 +116,7 @@ | |||
709 | 116 | DBUS_SPECS = \ | 116 | DBUS_SPECS = \ |
710 | 117 | dbus-properties.xml \ | 117 | dbus-properties.xml \ |
711 | 118 | application-service.xml \ | 118 | application-service.xml \ |
712 | 119 | notification-approver.xml \ | ||
713 | 119 | notification-item.xml \ | 120 | notification-item.xml \ |
714 | 120 | notification-watcher.xml | 121 | notification-watcher.xml |
715 | 121 | 122 | ||
716 | 122 | 123 | ||
717 | === modified file 'src/Makefile.in' | |||
718 | --- src/Makefile.in 2010-06-21 19:22:34 +0000 | |||
719 | +++ src/Makefile.in 2010-07-15 15:45:53 +0000 | |||
720 | @@ -462,6 +462,7 @@ | |||
721 | 462 | DBUS_SPECS = \ | 462 | DBUS_SPECS = \ |
722 | 463 | dbus-properties.xml \ | 463 | dbus-properties.xml \ |
723 | 464 | application-service.xml \ | 464 | application-service.xml \ |
724 | 465 | notification-approver.xml \ | ||
725 | 465 | notification-item.xml \ | 466 | notification-item.xml \ |
726 | 466 | notification-watcher.xml | 467 | notification-watcher.xml |
727 | 467 | 468 | ||
728 | 468 | 469 | ||
729 | === modified file 'src/application-service-appstore.c' | |||
730 | --- src/application-service-appstore.c 2010-06-18 16:22:56 +0000 | |||
731 | +++ src/application-service-appstore.c 2010-07-15 15:45:53 +0000 | |||
732 | @@ -31,6 +31,7 @@ | |||
733 | 31 | #include "application-service-marshal.h" | 31 | #include "application-service-marshal.h" |
734 | 32 | #include "dbus-properties-client.h" | 32 | #include "dbus-properties-client.h" |
735 | 33 | #include "dbus-shared.h" | 33 | #include "dbus-shared.h" |
736 | 34 | #include "notification-approver-client.h" | ||
737 | 34 | 35 | ||
738 | 35 | /* DBus Prototypes */ | 36 | /* DBus Prototypes */ |
739 | 36 | static gboolean _application_service_server_get_applications (ApplicationServiceAppstore * appstore, GPtrArray ** apps, GError ** error); | 37 | static gboolean _application_service_server_get_applications (ApplicationServiceAppstore * appstore, GPtrArray ** apps, GError ** error); |
740 | @@ -50,13 +51,18 @@ | |||
741 | 50 | #define NOTIFICATION_ITEM_SIG_NEW_STATUS "NewStatus" | 51 | #define NOTIFICATION_ITEM_SIG_NEW_STATUS "NewStatus" |
742 | 51 | 52 | ||
743 | 52 | /* Private Stuff */ | 53 | /* Private Stuff */ |
744 | 53 | typedef struct _ApplicationServiceAppstorePrivate ApplicationServiceAppstorePrivate; | ||
745 | 54 | struct _ApplicationServiceAppstorePrivate { | 54 | struct _ApplicationServiceAppstorePrivate { |
746 | 55 | DBusGConnection * bus; | 55 | DBusGConnection * bus; |
747 | 56 | GList * applications; | 56 | GList * applications; |
748 | 57 | GList * approvers; | ||
749 | 57 | AppLruFile * lrufile; | 58 | AppLruFile * lrufile; |
750 | 58 | }; | 59 | }; |
751 | 59 | 60 | ||
752 | 61 | typedef struct _Approver Approver; | ||
753 | 62 | struct _Approver { | ||
754 | 63 | DBusGProxy * proxy; | ||
755 | 64 | }; | ||
756 | 65 | |||
757 | 60 | typedef struct _Application Application; | 66 | typedef struct _Application Application; |
758 | 61 | struct _Application { | 67 | struct _Application { |
759 | 62 | gchar * id; | 68 | gchar * id; |
760 | @@ -95,6 +101,9 @@ | |||
761 | 95 | static void application_service_appstore_finalize (GObject *object); | 101 | static void application_service_appstore_finalize (GObject *object); |
762 | 96 | static AppIndicatorStatus string_to_status(const gchar * status_string); | 102 | static AppIndicatorStatus string_to_status(const gchar * status_string); |
763 | 97 | static void apply_status (Application * app, AppIndicatorStatus status); | 103 | static void apply_status (Application * app, AppIndicatorStatus status); |
764 | 104 | static void approver_free (gpointer papprover, gpointer user_data); | ||
765 | 105 | static void check_with_new_approver (gpointer papp, gpointer papprove); | ||
766 | 106 | static void check_with_old_approver (gpointer papprove, gpointer papp); | ||
767 | 98 | 107 | ||
768 | 99 | G_DEFINE_TYPE (ApplicationServiceAppstore, application_service_appstore, G_TYPE_OBJECT); | 108 | G_DEFINE_TYPE (ApplicationServiceAppstore, application_service_appstore, G_TYPE_OBJECT); |
769 | 100 | 109 | ||
770 | @@ -139,9 +148,11 @@ | |||
771 | 139 | static void | 148 | static void |
772 | 140 | application_service_appstore_init (ApplicationServiceAppstore *self) | 149 | application_service_appstore_init (ApplicationServiceAppstore *self) |
773 | 141 | { | 150 | { |
775 | 142 | ApplicationServiceAppstorePrivate * priv = APPLICATION_SERVICE_APPSTORE_GET_PRIVATE(self); | 151 | |
776 | 152 | ApplicationServiceAppstorePrivate * priv = APPLICATION_SERVICE_APPSTORE_GET_PRIVATE (self); | ||
777 | 143 | 153 | ||
778 | 144 | priv->applications = NULL; | 154 | priv->applications = NULL; |
779 | 155 | priv->approvers = NULL; | ||
780 | 145 | priv->lrufile = NULL; | 156 | priv->lrufile = NULL; |
781 | 146 | 157 | ||
782 | 147 | GError * error = NULL; | 158 | GError * error = NULL; |
783 | @@ -155,6 +166,8 @@ | |||
784 | 155 | dbus_g_connection_register_g_object(priv->bus, | 166 | dbus_g_connection_register_g_object(priv->bus, |
785 | 156 | INDICATOR_APPLICATION_DBUS_OBJ, | 167 | INDICATOR_APPLICATION_DBUS_OBJ, |
786 | 157 | G_OBJECT(self)); | 168 | G_OBJECT(self)); |
787 | 169 | |||
788 | 170 | self->priv = priv; | ||
789 | 158 | 171 | ||
790 | 159 | return; | 172 | return; |
791 | 160 | } | 173 | } |
792 | @@ -162,7 +175,7 @@ | |||
793 | 162 | static void | 175 | static void |
794 | 163 | application_service_appstore_dispose (GObject *object) | 176 | application_service_appstore_dispose (GObject *object) |
795 | 164 | { | 177 | { |
797 | 165 | ApplicationServiceAppstorePrivate * priv = APPLICATION_SERVICE_APPSTORE_GET_PRIVATE(object); | 178 | ApplicationServiceAppstorePrivate * priv = APPLICATION_SERVICE_APPSTORE(object)->priv; |
798 | 166 | 179 | ||
799 | 167 | while (priv->applications != NULL) { | 180 | while (priv->applications != NULL) { |
800 | 168 | application_service_appstore_application_remove(APPLICATION_SERVICE_APPSTORE(object), | 181 | application_service_appstore_application_remove(APPLICATION_SERVICE_APPSTORE(object), |
801 | @@ -170,6 +183,12 @@ | |||
802 | 170 | ((Application *)priv->applications->data)->dbus_object); | 183 | ((Application *)priv->applications->data)->dbus_object); |
803 | 171 | } | 184 | } |
804 | 172 | 185 | ||
805 | 186 | if (priv->approvers != NULL) { | ||
806 | 187 | g_list_foreach(priv->approvers, approver_free, NULL); | ||
807 | 188 | g_list_free(priv->approvers); | ||
808 | 189 | priv->approvers = NULL; | ||
809 | 190 | } | ||
810 | 191 | |||
811 | 173 | G_OBJECT_CLASS (application_service_appstore_parent_class)->dispose (object); | 192 | G_OBJECT_CLASS (application_service_appstore_parent_class)->dispose (object); |
812 | 174 | return; | 193 | return; |
813 | 175 | } | 194 | } |
814 | @@ -209,7 +228,7 @@ | |||
815 | 209 | 228 | ||
816 | 210 | app->id = g_value_dup_string(g_hash_table_lookup(properties, NOTIFICATION_ITEM_PROP_ID)); | 229 | app->id = g_value_dup_string(g_hash_table_lookup(properties, NOTIFICATION_ITEM_PROP_ID)); |
817 | 211 | app->category = g_value_dup_string(g_hash_table_lookup(properties, NOTIFICATION_ITEM_PROP_CATEGORY)); | 230 | app->category = g_value_dup_string(g_hash_table_lookup(properties, NOTIFICATION_ITEM_PROP_CATEGORY)); |
819 | 212 | ApplicationServiceAppstorePrivate * priv = APPLICATION_SERVICE_APPSTORE_GET_PRIVATE(app->appstore); | 231 | ApplicationServiceAppstorePrivate * priv = app->appstore->priv; |
820 | 213 | app_lru_file_touch(priv->lrufile, app->id, app->category); | 232 | app_lru_file_touch(priv->lrufile, app->id, app->category); |
821 | 214 | 233 | ||
822 | 215 | app->icon = g_value_dup_string(g_hash_table_lookup(properties, NOTIFICATION_ITEM_PROP_ICON_NAME)); | 234 | app->icon = g_value_dup_string(g_hash_table_lookup(properties, NOTIFICATION_ITEM_PROP_ICON_NAME)); |
823 | @@ -234,11 +253,23 @@ | |||
824 | 234 | app->icon_path = g_strdup(""); | 253 | app->icon_path = g_strdup(""); |
825 | 235 | } | 254 | } |
826 | 236 | 255 | ||
827 | 256 | /* TODO: Calling approvers, but we're ignoring the results. So, eh. */ | ||
828 | 257 | g_list_foreach(priv->approvers, check_with_old_approver, app); | ||
829 | 258 | |||
830 | 237 | apply_status(app, string_to_status(g_value_get_string(g_hash_table_lookup(properties, NOTIFICATION_ITEM_PROP_STATUS)))); | 259 | apply_status(app, string_to_status(g_value_get_string(g_hash_table_lookup(properties, NOTIFICATION_ITEM_PROP_STATUS)))); |
831 | 238 | 260 | ||
832 | 239 | return; | 261 | return; |
833 | 240 | } | 262 | } |
834 | 241 | 263 | ||
835 | 264 | /* Check the application against an approver */ | ||
836 | 265 | static void | ||
837 | 266 | check_with_old_approver (gpointer papprove, gpointer papp) | ||
838 | 267 | { | ||
839 | 268 | /* Funny the parallels, eh? */ | ||
840 | 269 | check_with_new_approver(papp, papprove); | ||
841 | 270 | return; | ||
842 | 271 | } | ||
843 | 272 | |||
844 | 242 | /* Simple translation function -- could be optimized */ | 273 | /* Simple translation function -- could be optimized */ |
845 | 243 | static AppIndicatorStatus | 274 | static AppIndicatorStatus |
846 | 244 | string_to_status(const gchar * status_string) | 275 | string_to_status(const gchar * status_string) |
847 | @@ -265,7 +296,7 @@ | |||
848 | 265 | static gint | 296 | static gint |
849 | 266 | get_position (Application * app) { | 297 | get_position (Application * app) { |
850 | 267 | ApplicationServiceAppstore * appstore = app->appstore; | 298 | ApplicationServiceAppstore * appstore = app->appstore; |
852 | 268 | ApplicationServiceAppstorePrivate * priv = APPLICATION_SERVICE_APPSTORE_GET_PRIVATE(appstore); | 299 | ApplicationServiceAppstorePrivate * priv = appstore->priv; |
853 | 269 | 300 | ||
854 | 270 | GList * applistitem = g_list_find(priv->applications, app); | 301 | GList * applistitem = g_list_find(priv->applications, app); |
855 | 271 | if (applistitem == NULL) { | 302 | if (applistitem == NULL) { |
856 | @@ -384,7 +415,7 @@ | |||
857 | 384 | g_debug("Changing app status to: %d", status); | 415 | g_debug("Changing app status to: %d", status); |
858 | 385 | 416 | ||
859 | 386 | ApplicationServiceAppstore * appstore = app->appstore; | 417 | ApplicationServiceAppstore * appstore = app->appstore; |
861 | 387 | ApplicationServiceAppstorePrivate * priv = APPLICATION_SERVICE_APPSTORE_GET_PRIVATE(appstore); | 418 | ApplicationServiceAppstorePrivate * priv = appstore->priv; |
862 | 388 | 419 | ||
863 | 389 | /* This means we're going off line */ | 420 | /* This means we're going off line */ |
864 | 390 | if (status == APP_INDICATOR_STATUS_PASSIVE) { | 421 | if (status == APP_INDICATOR_STATUS_PASSIVE) { |
865 | @@ -567,7 +598,7 @@ | |||
866 | 567 | g_return_if_fail(IS_APPLICATION_SERVICE_APPSTORE(appstore)); | 598 | g_return_if_fail(IS_APPLICATION_SERVICE_APPSTORE(appstore)); |
867 | 568 | g_return_if_fail(dbus_name != NULL && dbus_name[0] != '\0'); | 599 | g_return_if_fail(dbus_name != NULL && dbus_name[0] != '\0'); |
868 | 569 | g_return_if_fail(dbus_object != NULL && dbus_object[0] != '\0'); | 600 | g_return_if_fail(dbus_object != NULL && dbus_object[0] != '\0'); |
870 | 570 | ApplicationServiceAppstorePrivate * priv = APPLICATION_SERVICE_APPSTORE_GET_PRIVATE(appstore); | 601 | ApplicationServiceAppstorePrivate * priv = appstore->priv; |
871 | 571 | 602 | ||
872 | 572 | /* Build the application entry. This will be carried | 603 | /* Build the application entry. This will be carried |
873 | 573 | along until we're sure we've got everything. */ | 604 | along until we're sure we've got everything. */ |
874 | @@ -665,7 +696,7 @@ | |||
875 | 665 | g_return_if_fail(dbus_name != NULL && dbus_name[0] != '\0'); | 696 | g_return_if_fail(dbus_name != NULL && dbus_name[0] != '\0'); |
876 | 666 | g_return_if_fail(dbus_object != NULL && dbus_object[0] != '\0'); | 697 | g_return_if_fail(dbus_object != NULL && dbus_object[0] != '\0'); |
877 | 667 | 698 | ||
879 | 668 | ApplicationServiceAppstorePrivate * priv = APPLICATION_SERVICE_APPSTORE_GET_PRIVATE(appstore); | 699 | ApplicationServiceAppstorePrivate * priv = appstore->priv; |
880 | 669 | GList * listpntr; | 700 | GList * listpntr; |
881 | 670 | 701 | ||
882 | 671 | for (listpntr = priv->applications; listpntr != NULL; listpntr = g_list_next(listpntr)) { | 702 | for (listpntr = priv->applications; listpntr != NULL; listpntr = g_list_next(listpntr)) { |
883 | @@ -687,7 +718,7 @@ | |||
884 | 687 | { | 718 | { |
885 | 688 | g_return_val_if_fail(IS_APP_LRU_FILE(lrufile), NULL); | 719 | g_return_val_if_fail(IS_APP_LRU_FILE(lrufile), NULL); |
886 | 689 | ApplicationServiceAppstore * appstore = APPLICATION_SERVICE_APPSTORE(g_object_new(APPLICATION_SERVICE_APPSTORE_TYPE, NULL)); | 720 | ApplicationServiceAppstore * appstore = APPLICATION_SERVICE_APPSTORE(g_object_new(APPLICATION_SERVICE_APPSTORE_TYPE, NULL)); |
888 | 690 | ApplicationServiceAppstorePrivate * priv = APPLICATION_SERVICE_APPSTORE_GET_PRIVATE(appstore); | 721 | ApplicationServiceAppstorePrivate * priv = appstore->priv; |
889 | 691 | priv->lrufile = lrufile; | 722 | priv->lrufile = lrufile; |
890 | 692 | return appstore; | 723 | return appstore; |
891 | 693 | } | 724 | } |
892 | @@ -696,7 +727,7 @@ | |||
893 | 696 | static gboolean | 727 | static gboolean |
894 | 697 | _application_service_server_get_applications (ApplicationServiceAppstore * appstore, GPtrArray ** apps, GError ** error) | 728 | _application_service_server_get_applications (ApplicationServiceAppstore * appstore, GPtrArray ** apps, GError ** error) |
895 | 698 | { | 729 | { |
897 | 699 | ApplicationServiceAppstorePrivate * priv = APPLICATION_SERVICE_APPSTORE_GET_PRIVATE(appstore); | 730 | ApplicationServiceAppstorePrivate * priv = appstore->priv; |
898 | 700 | 731 | ||
899 | 701 | *apps = g_ptr_array_new(); | 732 | *apps = g_ptr_array_new(); |
900 | 702 | GList * listpntr; | 733 | GList * listpntr; |
901 | @@ -743,3 +774,77 @@ | |||
902 | 743 | return TRUE; | 774 | return TRUE; |
903 | 744 | } | 775 | } |
904 | 745 | 776 | ||
905 | 777 | /* Frees the data associated with an approver */ | ||
906 | 778 | static void | ||
907 | 779 | approver_free (gpointer papprover, gpointer user_data) | ||
908 | 780 | { | ||
909 | 781 | Approver * approver = (Approver *)papprover; | ||
910 | 782 | g_return_if_fail(approver != NULL); | ||
911 | 783 | |||
912 | 784 | if (approver->proxy != NULL) { | ||
913 | 785 | g_object_unref(approver->proxy); | ||
914 | 786 | approver->proxy = NULL; | ||
915 | 787 | } | ||
916 | 788 | |||
917 | 789 | g_free(approver); | ||
918 | 790 | return; | ||
919 | 791 | } | ||
920 | 792 | |||
921 | 793 | /* What did the approver tell us? */ | ||
922 | 794 | static void | ||
923 | 795 | approver_request_cb (DBusGProxy *proxy, gboolean OUT_approved, GError *error, gpointer userdata) | ||
924 | 796 | { | ||
925 | 797 | g_debug("Approver responded: %s", OUT_approved ? "approve" : "rejected"); | ||
926 | 798 | return; | ||
927 | 799 | } | ||
928 | 800 | |||
929 | 801 | /* Run the applications through the new approver */ | ||
930 | 802 | static void | ||
931 | 803 | check_with_new_approver (gpointer papp, gpointer papprove) | ||
932 | 804 | { | ||
933 | 805 | Application * app = (Application *)papp; | ||
934 | 806 | Approver * approver = (Approver *)papprove; | ||
935 | 807 | |||
936 | 808 | org_ayatana_StatusNotifierApprover_approve_item_async(approver->proxy, | ||
937 | 809 | app->id, | ||
938 | 810 | app->category, | ||
939 | 811 | 0, | ||
940 | 812 | app->dbus_name, | ||
941 | 813 | app->dbus_object, | ||
942 | 814 | approver_request_cb, | ||
943 | 815 | app); | ||
944 | 816 | |||
945 | 817 | return; | ||
946 | 818 | } | ||
947 | 819 | |||
948 | 820 | /* Adds a new approver to the app store */ | ||
949 | 821 | void | ||
950 | 822 | application_service_appstore_approver_add (ApplicationServiceAppstore * appstore, const gchar * dbus_name, const gchar * dbus_object) | ||
951 | 823 | { | ||
952 | 824 | g_return_if_fail(IS_APPLICATION_SERVICE_APPSTORE(appstore)); | ||
953 | 825 | g_return_if_fail(dbus_name != NULL); | ||
954 | 826 | g_return_if_fail(dbus_object != NULL); | ||
955 | 827 | ApplicationServiceAppstorePrivate * priv = APPLICATION_SERVICE_APPSTORE_GET_PRIVATE (appstore); | ||
956 | 828 | |||
957 | 829 | Approver * approver = g_new0(Approver, 1); | ||
958 | 830 | |||
959 | 831 | GError * error = NULL; | ||
960 | 832 | approver->proxy = dbus_g_proxy_new_for_name_owner(priv->bus, | ||
961 | 833 | dbus_name, | ||
962 | 834 | dbus_object, | ||
963 | 835 | NOTIFICATION_APPROVER_DBUS_IFACE, | ||
964 | 836 | &error); | ||
965 | 837 | if (error != NULL) { | ||
966 | 838 | g_warning("Unable to get approver interface on '%s:%s' : %s", dbus_name, dbus_object, error->message); | ||
967 | 839 | g_error_free(error); | ||
968 | 840 | g_free(approver); | ||
969 | 841 | return; | ||
970 | 842 | } | ||
971 | 843 | |||
972 | 844 | priv->approvers = g_list_prepend(priv->approvers, approver); | ||
973 | 845 | |||
974 | 846 | g_list_foreach(priv->applications, check_with_new_approver, approver); | ||
975 | 847 | |||
976 | 848 | return; | ||
977 | 849 | } | ||
978 | 850 | |||
979 | 746 | 851 | ||
980 | === modified file 'src/application-service-appstore.h' | |||
981 | --- src/application-service-appstore.h 2010-01-19 23:20:21 +0000 | |||
982 | +++ src/application-service-appstore.h 2010-07-15 15:45:53 +0000 | |||
983 | @@ -38,6 +38,7 @@ | |||
984 | 38 | 38 | ||
985 | 39 | typedef struct _ApplicationServiceAppstore ApplicationServiceAppstore; | 39 | typedef struct _ApplicationServiceAppstore ApplicationServiceAppstore; |
986 | 40 | typedef struct _ApplicationServiceAppstoreClass ApplicationServiceAppstoreClass; | 40 | typedef struct _ApplicationServiceAppstoreClass ApplicationServiceAppstoreClass; |
987 | 41 | typedef struct _ApplicationServiceAppstorePrivate ApplicationServiceAppstorePrivate; | ||
988 | 41 | 42 | ||
989 | 42 | struct _ApplicationServiceAppstoreClass { | 43 | struct _ApplicationServiceAppstoreClass { |
990 | 43 | GObjectClass parent_class; | 44 | GObjectClass parent_class; |
991 | @@ -49,16 +50,21 @@ | |||
992 | 49 | 50 | ||
993 | 50 | struct _ApplicationServiceAppstore { | 51 | struct _ApplicationServiceAppstore { |
994 | 51 | GObject parent; | 52 | GObject parent; |
995 | 53 | |||
996 | 54 | ApplicationServiceAppstorePrivate * priv; | ||
997 | 52 | }; | 55 | }; |
998 | 53 | 56 | ||
999 | 54 | ApplicationServiceAppstore * application_service_appstore_new (AppLruFile * lrufile); | 57 | ApplicationServiceAppstore * application_service_appstore_new (AppLruFile * lrufile); |
1000 | 55 | GType application_service_appstore_get_type (void); | 58 | GType application_service_appstore_get_type (void); |
1001 | 56 | void application_service_appstore_application_add (ApplicationServiceAppstore * appstore, | 59 | void application_service_appstore_application_add (ApplicationServiceAppstore * appstore, |
1004 | 57 | const gchar * dbus_name, | 60 | const gchar * dbus_name, |
1005 | 58 | const gchar * dbus_object); | 61 | const gchar * dbus_object); |
1006 | 59 | void application_service_appstore_application_remove (ApplicationServiceAppstore * appstore, | 62 | void application_service_appstore_application_remove (ApplicationServiceAppstore * appstore, |
1009 | 60 | const gchar * dbus_name, | 63 | const gchar * dbus_name, |
1010 | 61 | const gchar * dbus_object); | 64 | const gchar * dbus_object); |
1011 | 65 | void application_service_appstore_approver_add (ApplicationServiceAppstore * appstore, | ||
1012 | 66 | const gchar * dbus_name, | ||
1013 | 67 | const gchar * dbus_object); | ||
1014 | 62 | 68 | ||
1015 | 63 | G_END_DECLS | 69 | G_END_DECLS |
1016 | 64 | 70 | ||
1017 | 65 | 71 | ||
1018 | === modified file 'src/application-service-watcher.c' | |||
1019 | --- src/application-service-watcher.c 2010-01-08 20:57:22 +0000 | |||
1020 | +++ src/application-service-watcher.c 2010-07-15 15:45:53 +0000 | |||
1021 | @@ -34,6 +34,7 @@ | |||
1022 | 34 | static gboolean _notification_watcher_server_registered_status_notifier_items (ApplicationServiceWatcher * appwatcher, GArray ** apps); | 34 | static gboolean _notification_watcher_server_registered_status_notifier_items (ApplicationServiceWatcher * appwatcher, GArray ** apps); |
1023 | 35 | static gboolean _notification_watcher_server_protocol_version (ApplicationServiceWatcher * appwatcher, char ** version); | 35 | static gboolean _notification_watcher_server_protocol_version (ApplicationServiceWatcher * appwatcher, char ** version); |
1024 | 36 | static gboolean _notification_watcher_server_register_notification_host (ApplicationServiceWatcher * appwatcher, const gchar * host); | 36 | static gboolean _notification_watcher_server_register_notification_host (ApplicationServiceWatcher * appwatcher, const gchar * host); |
1025 | 37 | static gboolean _notification_watcher_server_register_notification_approver (ApplicationServiceWatcher * appwatcher, const gchar * path, const GArray * categories, DBusGMethodInvocation * method); | ||
1026 | 37 | static gboolean _notification_watcher_server_is_notification_host_registered (ApplicationServiceWatcher * appwatcher, gboolean * haveHost); | 38 | static gboolean _notification_watcher_server_is_notification_host_registered (ApplicationServiceWatcher * appwatcher, gboolean * haveHost); |
1027 | 38 | static void get_name_cb (DBusGProxy * proxy, guint status, GError * error, gpointer data); | 39 | static void get_name_cb (DBusGProxy * proxy, guint status, GError * error, gpointer data); |
1028 | 39 | 40 | ||
1029 | @@ -249,3 +250,16 @@ | |||
1030 | 249 | 250 | ||
1031 | 250 | return; | 251 | return; |
1032 | 251 | } | 252 | } |
1033 | 253 | |||
1034 | 254 | static gboolean | ||
1035 | 255 | _notification_watcher_server_register_notification_approver (ApplicationServiceWatcher * appwatcher, const gchar * path, const GArray * categories, DBusGMethodInvocation * method) | ||
1036 | 256 | { | ||
1037 | 257 | ApplicationServiceWatcherPrivate * priv = APPLICATION_SERVICE_WATCHER_GET_PRIVATE(appwatcher); | ||
1038 | 258 | |||
1039 | 259 | application_service_appstore_approver_add(priv->appstore, | ||
1040 | 260 | dbus_g_method_get_sender(method), | ||
1041 | 261 | path); | ||
1042 | 262 | |||
1043 | 263 | dbus_g_method_return(method, G_TYPE_NONE); | ||
1044 | 264 | return TRUE; | ||
1045 | 265 | } | ||
1046 | 252 | 266 | ||
1047 | === modified file 'src/dbus-shared.h' | |||
1048 | --- src/dbus-shared.h 2010-03-15 17:10:43 +0000 | |||
1049 | +++ src/dbus-shared.h 2010-07-15 15:45:53 +0000 | |||
1050 | @@ -31,3 +31,5 @@ | |||
1051 | 31 | #define NOTIFICATION_ITEM_DBUS_IFACE "org.kde.StatusNotifierItem" | 31 | #define NOTIFICATION_ITEM_DBUS_IFACE "org.kde.StatusNotifierItem" |
1052 | 32 | #define NOTIFICATION_ITEM_DEFAULT_OBJ "/StatusNotifierItem" | 32 | #define NOTIFICATION_ITEM_DEFAULT_OBJ "/StatusNotifierItem" |
1053 | 33 | 33 | ||
1054 | 34 | #define NOTIFICATION_APPROVER_DBUS_IFACE "org.ayatana.StatusNotifierApprover" | ||
1055 | 35 | |||
1056 | 34 | 36 | ||
1057 | === added file 'src/notification-approver.xml' | |||
1058 | --- src/notification-approver.xml 1970-01-01 00:00:00 +0000 | |||
1059 | +++ src/notification-approver.xml 2010-07-15 15:45:53 +0000 | |||
1060 | @@ -0,0 +1,22 @@ | |||
1061 | 1 | <?xml version="1.0" encoding="UTF-8"?> | ||
1062 | 2 | <node name="/"> | ||
1063 | 3 | <interface name="org.ayatana.StatusNotifierApprover"> | ||
1064 | 4 | |||
1065 | 5 | <!-- Methods --> | ||
1066 | 6 | <method name="ApproveItem"> | ||
1067 | 7 | <!-- KSNI ID --> | ||
1068 | 8 | <arg type="s" name="id" direction="in" /> | ||
1069 | 9 | <!-- KSNI Category --> | ||
1070 | 10 | <arg type="s" name="category" direction="in" /> | ||
1071 | 11 | <!-- Application PID --> | ||
1072 | 12 | <arg type="u" name="pid" direction="in" /> | ||
1073 | 13 | <!-- Application DBus Address --> | ||
1074 | 14 | <arg type="s" name="address" direction="in" /> | ||
1075 | 15 | <!-- Application DBus Path for KSNI interface --> | ||
1076 | 16 | <arg type="o" name="path" direction="in" /> | ||
1077 | 17 | <!-- So, what do you think? --> | ||
1078 | 18 | <arg type="b" name="approved" direction="out" /> | ||
1079 | 19 | </method> | ||
1080 | 20 | |||
1081 | 21 | </interface> | ||
1082 | 22 | </node> | ||
1083 | 0 | 23 | ||
1084 | === modified file 'src/notification-watcher.xml' | |||
1085 | --- src/notification-watcher.xml 2010-03-15 17:10:43 +0000 | |||
1086 | +++ src/notification-watcher.xml 2010-07-15 15:45:53 +0000 | |||
1087 | @@ -22,6 +22,13 @@ | |||
1088 | 22 | <method name="IsNotificationHostRegistered"> | 22 | <method name="IsNotificationHostRegistered"> |
1089 | 23 | <arg type="b" name="hasHost" direction="out" /> | 23 | <arg type="b" name="hasHost" direction="out" /> |
1090 | 24 | </method> | 24 | </method> |
1091 | 25 | <method name="RegisterNotificationApprover"> | ||
1092 | 26 | <annotation name="org.freedesktop.DBus.GLib.Async" value="true" /> | ||
1093 | 27 | <!-- The path where to find the approver interface --> | ||
1094 | 28 | <arg type="o" name="path" direction="in" /> | ||
1095 | 29 | <!-- List of categories to approve, none represents all --> | ||
1096 | 30 | <arg type="as" name="categories" direction="in" /> | ||
1097 | 31 | </method> | ||
1098 | 25 | 32 | ||
1099 | 26 | <!-- Signals --> | 33 | <!-- Signals --> |
1100 | 27 | <signal name="ServiceRegistered"> | 34 | <signal name="ServiceRegistered"> |
1101 | 28 | 35 | ||
1102 | === modified file 'tests/Makefile.am' | |||
1103 | --- tests/Makefile.am 2010-06-11 17:34:09 +0000 | |||
1104 | +++ tests/Makefile.am 2010-07-15 15:45:53 +0000 | |||
1105 | @@ -1,5 +1,6 @@ | |||
1106 | 1 | 1 | ||
1107 | 2 | check_PROGRAMS = \ | 2 | check_PROGRAMS = \ |
1108 | 3 | test-approver \ | ||
1109 | 3 | test-libappindicator \ | 4 | test-libappindicator \ |
1110 | 4 | test-libappindicator-dbus-client \ | 5 | test-libappindicator-dbus-client \ |
1111 | 5 | test-libappindicator-dbus-server \ | 6 | test-libappindicator-dbus-server \ |
1112 | @@ -99,6 +100,33 @@ | |||
1113 | 99 | $(top_builddir)/src/libappindicator.la | 100 | $(top_builddir)/src/libappindicator.la |
1114 | 100 | 101 | ||
1115 | 101 | ######################################### | 102 | ######################################### |
1116 | 103 | ## test-approver | ||
1117 | 104 | ######################################### | ||
1118 | 105 | |||
1119 | 106 | test_approver_SOURCES = \ | ||
1120 | 107 | test-approver.c | ||
1121 | 108 | |||
1122 | 109 | test_approver_CFLAGS = \ | ||
1123 | 110 | $(INDICATOR_CFLAGS) \ | ||
1124 | 111 | -Wall -Werror \ | ||
1125 | 112 | -I$(top_srcdir)/src \ | ||
1126 | 113 | -I$(top_builddir)/src | ||
1127 | 114 | |||
1128 | 115 | test_approver_LDADD = \ | ||
1129 | 116 | $(INDICATOR_LIBS) \ | ||
1130 | 117 | $(top_builddir)/src/libappindicator.la | ||
1131 | 118 | |||
1132 | 119 | test-approver-tester: test-approver Makefile.am | ||
1133 | 120 | @echo "#!/bin/bash" > $@ | ||
1134 | 121 | @echo export INDICATOR_SERVICE_SHUTDOWN_TIMEOUT=1000 >> $@ | ||
1135 | 122 | @echo . $(srcdir)/run-xvfb.sh >> $@ | ||
1136 | 123 | @echo $(DBUS_RUNNER) --task $(builddir)/test-approver --task-name Approver --task $(top_builddir)/src/indicator-application-service --task-name Service --ignore-return >> $@ | ||
1137 | 124 | @chmod +x $@ | ||
1138 | 125 | |||
1139 | 126 | TESTS += test-approver-tester | ||
1140 | 127 | |||
1141 | 128 | |||
1142 | 129 | ######################################### | ||
1143 | 102 | ## test-libappindicator-fallback | 130 | ## test-libappindicator-fallback |
1144 | 103 | ######################################### | 131 | ######################################### |
1145 | 104 | 132 | ||
1146 | 105 | 133 | ||
1147 | === modified file 'tests/Makefile.in' | |||
1148 | --- tests/Makefile.in 2010-06-21 19:17:44 +0000 | |||
1149 | +++ tests/Makefile.in 2010-07-15 15:45:53 +0000 | |||
1150 | @@ -33,7 +33,7 @@ | |||
1151 | 33 | POST_UNINSTALL = : | 33 | POST_UNINSTALL = : |
1152 | 34 | build_triplet = @build@ | 34 | build_triplet = @build@ |
1153 | 35 | host_triplet = @host@ | 35 | host_triplet = @host@ |
1155 | 36 | check_PROGRAMS = test-libappindicator$(EXEEXT) \ | 36 | check_PROGRAMS = test-approver$(EXEEXT) test-libappindicator$(EXEEXT) \ |
1156 | 37 | test-libappindicator-dbus-client$(EXEEXT) \ | 37 | test-libappindicator-dbus-client$(EXEEXT) \ |
1157 | 38 | test-libappindicator-dbus-server$(EXEEXT) \ | 38 | test-libappindicator-dbus-server$(EXEEXT) \ |
1158 | 39 | test-libappindicator-status-client$(EXEEXT) \ | 39 | test-libappindicator-status-client$(EXEEXT) \ |
1159 | @@ -52,15 +52,22 @@ | |||
1160 | 52 | CONFIG_HEADER = $(top_builddir)/config.h | 52 | CONFIG_HEADER = $(top_builddir)/config.h |
1161 | 53 | CONFIG_CLEAN_FILES = | 53 | CONFIG_CLEAN_FILES = |
1162 | 54 | CONFIG_CLEAN_VPATH_FILES = | 54 | CONFIG_CLEAN_VPATH_FILES = |
1163 | 55 | am_test_approver_OBJECTS = test_approver-test-approver.$(OBJEXT) | ||
1164 | 56 | test_approver_OBJECTS = $(am_test_approver_OBJECTS) | ||
1165 | 57 | am__DEPENDENCIES_1 = | ||
1166 | 58 | test_approver_DEPENDENCIES = $(am__DEPENDENCIES_1) \ | ||
1167 | 59 | $(top_builddir)/src/libappindicator.la | ||
1168 | 60 | AM_V_lt = $(am__v_lt_$(V)) | ||
1169 | 61 | am__v_lt_ = $(am__v_lt_$(AM_DEFAULT_VERBOSITY)) | ||
1170 | 62 | am__v_lt_0 = --silent | ||
1171 | 63 | test_approver_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ | ||
1172 | 64 | $(LIBTOOLFLAGS) --mode=link $(CCLD) $(test_approver_CFLAGS) \ | ||
1173 | 65 | $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ | ||
1174 | 55 | am_test_libappindicator_OBJECTS = \ | 66 | am_test_libappindicator_OBJECTS = \ |
1175 | 56 | test_libappindicator-test-libappindicator.$(OBJEXT) | 67 | test_libappindicator-test-libappindicator.$(OBJEXT) |
1176 | 57 | test_libappindicator_OBJECTS = $(am_test_libappindicator_OBJECTS) | 68 | test_libappindicator_OBJECTS = $(am_test_libappindicator_OBJECTS) |
1177 | 58 | am__DEPENDENCIES_1 = | ||
1178 | 59 | test_libappindicator_DEPENDENCIES = $(am__DEPENDENCIES_1) \ | 69 | test_libappindicator_DEPENDENCIES = $(am__DEPENDENCIES_1) \ |
1179 | 60 | $(top_builddir)/src/libappindicator.la | 70 | $(top_builddir)/src/libappindicator.la |
1180 | 61 | AM_V_lt = $(am__v_lt_$(V)) | ||
1181 | 62 | am__v_lt_ = $(am__v_lt_$(AM_DEFAULT_VERBOSITY)) | ||
1182 | 63 | am__v_lt_0 = --silent | ||
1183 | 64 | test_libappindicator_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ | 71 | test_libappindicator_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ |
1184 | 65 | $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \ | 72 | $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \ |
1185 | 66 | $(test_libappindicator_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ | 73 | $(test_libappindicator_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ |
1186 | @@ -154,7 +161,7 @@ | |||
1187 | 154 | AM_V_GEN = $(am__v_GEN_$(V)) | 161 | AM_V_GEN = $(am__v_GEN_$(V)) |
1188 | 155 | am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY)) | 162 | am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY)) |
1189 | 156 | am__v_GEN_0 = @echo " GEN " $@; | 163 | am__v_GEN_0 = @echo " GEN " $@; |
1191 | 157 | SOURCES = $(test_libappindicator_SOURCES) \ | 164 | SOURCES = $(test_approver_SOURCES) $(test_libappindicator_SOURCES) \ |
1192 | 158 | $(test_libappindicator_dbus_client_SOURCES) \ | 165 | $(test_libappindicator_dbus_client_SOURCES) \ |
1193 | 159 | $(test_libappindicator_dbus_server_SOURCES) \ | 166 | $(test_libappindicator_dbus_server_SOURCES) \ |
1194 | 160 | $(test_libappindicator_fallback_item_SOURCES) \ | 167 | $(test_libappindicator_fallback_item_SOURCES) \ |
1195 | @@ -162,7 +169,8 @@ | |||
1196 | 162 | $(test_libappindicator_status_client_SOURCES) \ | 169 | $(test_libappindicator_status_client_SOURCES) \ |
1197 | 163 | $(test_libappindicator_status_server_SOURCES) \ | 170 | $(test_libappindicator_status_server_SOURCES) \ |
1198 | 164 | $(test_simple_app_SOURCES) | 171 | $(test_simple_app_SOURCES) |
1200 | 165 | DIST_SOURCES = $(test_libappindicator_SOURCES) \ | 172 | DIST_SOURCES = $(test_approver_SOURCES) \ |
1201 | 173 | $(test_libappindicator_SOURCES) \ | ||
1202 | 166 | $(test_libappindicator_dbus_client_SOURCES) \ | 174 | $(test_libappindicator_dbus_client_SOURCES) \ |
1203 | 167 | $(test_libappindicator_dbus_server_SOURCES) \ | 175 | $(test_libappindicator_dbus_server_SOURCES) \ |
1204 | 168 | $(test_libappindicator_fallback_item_SOURCES) \ | 176 | $(test_libappindicator_fallback_item_SOURCES) \ |
1205 | @@ -341,8 +349,9 @@ | |||
1206 | 341 | top_build_prefix = @top_build_prefix@ | 349 | top_build_prefix = @top_build_prefix@ |
1207 | 342 | top_builddir = @top_builddir@ | 350 | top_builddir = @top_builddir@ |
1208 | 343 | top_srcdir = @top_srcdir@ | 351 | top_srcdir = @top_srcdir@ |
1211 | 344 | TESTS = test-libappindicator-fallback libappindicator-tests \ | 352 | TESTS = test-approver-tester test-libappindicator-fallback \ |
1212 | 345 | test-libappindicator-dbus test-libappindicator-status | 353 | libappindicator-tests test-libappindicator-dbus \ |
1213 | 354 | test-libappindicator-status | ||
1214 | 346 | DISTCLEANFILES = $(TESTS) $(XML_REPORT) $(HTML_REPORT) \ | 355 | DISTCLEANFILES = $(TESTS) $(XML_REPORT) $(HTML_REPORT) \ |
1215 | 347 | libappindicator-tests-gtester | 356 | libappindicator-tests-gtester |
1216 | 348 | EXTRA_DIST = run-xvfb.sh | 357 | EXTRA_DIST = run-xvfb.sh |
1217 | @@ -428,6 +437,22 @@ | |||
1218 | 428 | 437 | ||
1219 | 429 | ######################################### | 438 | ######################################### |
1220 | 430 | ######################################### | 439 | ######################################### |
1221 | 440 | test_approver_SOURCES = \ | ||
1222 | 441 | test-approver.c | ||
1223 | 442 | |||
1224 | 443 | test_approver_CFLAGS = \ | ||
1225 | 444 | $(INDICATOR_CFLAGS) \ | ||
1226 | 445 | -Wall -Werror \ | ||
1227 | 446 | -I$(top_srcdir)/src \ | ||
1228 | 447 | -I$(top_builddir)/src | ||
1229 | 448 | |||
1230 | 449 | test_approver_LDADD = \ | ||
1231 | 450 | $(INDICATOR_LIBS) \ | ||
1232 | 451 | $(top_builddir)/src/libappindicator.la | ||
1233 | 452 | |||
1234 | 453 | |||
1235 | 454 | ######################################### | ||
1236 | 455 | ######################################### | ||
1237 | 431 | test_libappindicator_fallback_watcher_SOURCES = \ | 456 | test_libappindicator_fallback_watcher_SOURCES = \ |
1238 | 432 | test-libappindicator-fallback-watcher.c | 457 | test-libappindicator-fallback-watcher.c |
1239 | 433 | 458 | ||
1240 | @@ -516,6 +541,9 @@ | |||
1241 | 516 | list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ | 541 | list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ |
1242 | 517 | echo " rm -f" $$list; \ | 542 | echo " rm -f" $$list; \ |
1243 | 518 | rm -f $$list | 543 | rm -f $$list |
1244 | 544 | test-approver$(EXEEXT): $(test_approver_OBJECTS) $(test_approver_DEPENDENCIES) | ||
1245 | 545 | @rm -f test-approver$(EXEEXT) | ||
1246 | 546 | $(AM_V_CCLD)$(test_approver_LINK) $(test_approver_OBJECTS) $(test_approver_LDADD) $(LIBS) | ||
1247 | 519 | test-libappindicator$(EXEEXT): $(test_libappindicator_OBJECTS) $(test_libappindicator_DEPENDENCIES) | 547 | test-libappindicator$(EXEEXT): $(test_libappindicator_OBJECTS) $(test_libappindicator_DEPENDENCIES) |
1248 | 520 | @rm -f test-libappindicator$(EXEEXT) | 548 | @rm -f test-libappindicator$(EXEEXT) |
1249 | 521 | $(AM_V_CCLD)$(test_libappindicator_LINK) $(test_libappindicator_OBJECTS) $(test_libappindicator_LDADD) $(LIBS) | 549 | $(AM_V_CCLD)$(test_libappindicator_LINK) $(test_libappindicator_OBJECTS) $(test_libappindicator_LDADD) $(LIBS) |
1250 | @@ -547,6 +575,7 @@ | |||
1251 | 547 | distclean-compile: | 575 | distclean-compile: |
1252 | 548 | -rm -f *.tab.c | 576 | -rm -f *.tab.c |
1253 | 549 | 577 | ||
1254 | 578 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_approver-test-approver.Po@am__quote@ | ||
1255 | 550 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_libappindicator-test-libappindicator.Po@am__quote@ | 579 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_libappindicator-test-libappindicator.Po@am__quote@ |
1256 | 551 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_libappindicator_dbus_client-test-libappindicator-dbus-client.Po@am__quote@ | 580 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_libappindicator_dbus_client-test-libappindicator-dbus-client.Po@am__quote@ |
1257 | 552 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_libappindicator_dbus_server-test-libappindicator-dbus-server.Po@am__quote@ | 581 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_libappindicator_dbus_server-test-libappindicator-dbus-server.Po@am__quote@ |
1258 | @@ -580,6 +609,22 @@ | |||
1259 | 580 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | 609 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ |
1260 | 581 | @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< | 610 | @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< |
1261 | 582 | 611 | ||
1262 | 612 | test_approver-test-approver.o: test-approver.c | ||
1263 | 613 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_approver_CFLAGS) $(CFLAGS) -MT test_approver-test-approver.o -MD -MP -MF $(DEPDIR)/test_approver-test-approver.Tpo -c -o test_approver-test-approver.o `test -f 'test-approver.c' || echo '$(srcdir)/'`test-approver.c | ||
1264 | 614 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_approver-test-approver.Tpo $(DEPDIR)/test_approver-test-approver.Po | ||
1265 | 615 | @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ | ||
1266 | 616 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='test-approver.c' object='test_approver-test-approver.o' libtool=no @AMDEPBACKSLASH@ | ||
1267 | 617 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
1268 | 618 | @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_approver_CFLAGS) $(CFLAGS) -c -o test_approver-test-approver.o `test -f 'test-approver.c' || echo '$(srcdir)/'`test-approver.c | ||
1269 | 619 | |||
1270 | 620 | test_approver-test-approver.obj: test-approver.c | ||
1271 | 621 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_approver_CFLAGS) $(CFLAGS) -MT test_approver-test-approver.obj -MD -MP -MF $(DEPDIR)/test_approver-test-approver.Tpo -c -o test_approver-test-approver.obj `if test -f 'test-approver.c'; then $(CYGPATH_W) 'test-approver.c'; else $(CYGPATH_W) '$(srcdir)/test-approver.c'; fi` | ||
1272 | 622 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_approver-test-approver.Tpo $(DEPDIR)/test_approver-test-approver.Po | ||
1273 | 623 | @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ | ||
1274 | 624 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='test-approver.c' object='test_approver-test-approver.obj' libtool=no @AMDEPBACKSLASH@ | ||
1275 | 625 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
1276 | 626 | @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_approver_CFLAGS) $(CFLAGS) -c -o test_approver-test-approver.obj `if test -f 'test-approver.c'; then $(CYGPATH_W) 'test-approver.c'; else $(CYGPATH_W) '$(srcdir)/test-approver.c'; fi` | ||
1277 | 627 | |||
1278 | 583 | test_libappindicator-test-libappindicator.o: test-libappindicator.c | 628 | test_libappindicator-test-libappindicator.o: test-libappindicator.c |
1279 | 584 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_libappindicator_CFLAGS) $(CFLAGS) -MT test_libappindicator-test-libappindicator.o -MD -MP -MF $(DEPDIR)/test_libappindicator-test-libappindicator.Tpo -c -o test_libappindicator-test-libappindicator.o `test -f 'test-libappindicator.c' || echo '$(srcdir)/'`test-libappindicator.c | 629 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_libappindicator_CFLAGS) $(CFLAGS) -MT test_libappindicator-test-libappindicator.o -MD -MP -MF $(DEPDIR)/test_libappindicator-test-libappindicator.Tpo -c -o test_libappindicator-test-libappindicator.o `test -f 'test-libappindicator.c' || echo '$(srcdir)/'`test-libappindicator.c |
1280 | 585 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_libappindicator-test-libappindicator.Tpo $(DEPDIR)/test_libappindicator-test-libappindicator.Po | 630 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_libappindicator-test-libappindicator.Tpo $(DEPDIR)/test_libappindicator-test-libappindicator.Po |
1281 | @@ -1008,6 +1053,13 @@ | |||
1282 | 1008 | tags uninstall uninstall-am | 1053 | tags uninstall uninstall-am |
1283 | 1009 | 1054 | ||
1284 | 1010 | 1055 | ||
1285 | 1056 | test-approver-tester: test-approver Makefile.am | ||
1286 | 1057 | @echo "#!/bin/bash" > $@ | ||
1287 | 1058 | @echo export INDICATOR_SERVICE_SHUTDOWN_TIMEOUT=1000 >> $@ | ||
1288 | 1059 | @echo . $(srcdir)/run-xvfb.sh >> $@ | ||
1289 | 1060 | @echo $(DBUS_RUNNER) --task $(builddir)/test-approver --task-name Approver --task $(top_builddir)/src/indicator-application-service --task-name Service --ignore-return >> $@ | ||
1290 | 1061 | @chmod +x $@ | ||
1291 | 1062 | |||
1292 | 1011 | test-libappindicator-fallback: test-libappindicator-fallback-watcher test-libappindicator-fallback-item Makefile.am | 1063 | test-libappindicator-fallback: test-libappindicator-fallback-watcher test-libappindicator-fallback-item Makefile.am |
1293 | 1012 | @echo "#!/bin/bash" > $@ | 1064 | @echo "#!/bin/bash" > $@ |
1294 | 1013 | @echo . $(srcdir)/run-xvfb.sh >> $@ | 1065 | @echo . $(srcdir)/run-xvfb.sh >> $@ |
1295 | 1014 | 1066 | ||
1296 | === added file 'tests/test-approver.c' | |||
1297 | --- tests/test-approver.c 1970-01-01 00:00:00 +0000 | |||
1298 | +++ tests/test-approver.c 2010-07-15 15:45:53 +0000 | |||
1299 | @@ -0,0 +1,179 @@ | |||
1300 | 1 | #include <glib.h> | ||
1301 | 2 | #include <glib-object.h> | ||
1302 | 3 | |||
1303 | 4 | #include <dbus/dbus-glib-bindings.h> | ||
1304 | 5 | |||
1305 | 6 | #include "notification-watcher-client.h" | ||
1306 | 7 | #include "dbus-shared.h" | ||
1307 | 8 | #include "app-indicator.h" | ||
1308 | 9 | |||
1309 | 10 | #define APPROVER_PATH "/my/approver" | ||
1310 | 11 | |||
1311 | 12 | #define INDICATOR_ID "test-indicator-id" | ||
1312 | 13 | #define INDICATOR_ICON "test-indicator-icon-name" | ||
1313 | 14 | #define INDICATOR_CATEGORY APP_INDICATOR_CATEGORY_APPLICATION_STATUS | ||
1314 | 15 | |||
1315 | 16 | #define TEST_APPROVER_TYPE (test_approver_get_type ()) | ||
1316 | 17 | #define TEST_APPROVER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TEST_APPROVER_TYPE, TestApprover)) | ||
1317 | 18 | #define TEST_APPROVER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TEST_APPROVER_TYPE, TestApproverClass)) | ||
1318 | 19 | #define IS_TEST_APPROVER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TEST_APPROVER_TYPE)) | ||
1319 | 20 | #define IS_TEST_APPROVER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TEST_APPROVER_TYPE)) | ||
1320 | 21 | #define TEST_APPROVER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TEST_APPROVER_TYPE, TestApproverClass)) | ||
1321 | 22 | |||
1322 | 23 | typedef struct _TestApprover TestApprover; | ||
1323 | 24 | typedef struct _TestApproverClass TestApproverClass; | ||
1324 | 25 | |||
1325 | 26 | struct _TestApproverClass { | ||
1326 | 27 | GObjectClass parent_class; | ||
1327 | 28 | }; | ||
1328 | 29 | |||
1329 | 30 | struct _TestApprover { | ||
1330 | 31 | GObject parent; | ||
1331 | 32 | }; | ||
1332 | 33 | |||
1333 | 34 | GType test_approver_get_type (void); | ||
1334 | 35 | |||
1335 | 36 | static void test_approver_class_init (TestApproverClass *klass); | ||
1336 | 37 | static void test_approver_init (TestApprover *self); | ||
1337 | 38 | static gboolean _notification_approver_server_approve_item (TestApprover * ta, const gchar * id, const gchar * category, guint pid, const gchar * address, const gchar * path, gboolean * approved, GError ** error); | ||
1338 | 39 | |||
1339 | 40 | #include "../src/notification-approver-server.h" | ||
1340 | 41 | |||
1341 | 42 | GMainLoop * main_loop = NULL; | ||
1342 | 43 | DBusGConnection * session_bus = NULL; | ||
1343 | 44 | DBusGProxy * bus_proxy = NULL; | ||
1344 | 45 | AppIndicator * app_indicator = NULL; | ||
1345 | 46 | gboolean passed = FALSE; | ||
1346 | 47 | |||
1347 | 48 | G_DEFINE_TYPE (TestApprover, test_approver, G_TYPE_OBJECT); | ||
1348 | 49 | |||
1349 | 50 | static void | ||
1350 | 51 | test_approver_class_init (TestApproverClass *klass) | ||
1351 | 52 | { | ||
1352 | 53 | dbus_g_object_type_install_info(TEST_APPROVER_TYPE, | ||
1353 | 54 | &dbus_glib__notification_approver_server_object_info); | ||
1354 | 55 | |||
1355 | 56 | return; | ||
1356 | 57 | } | ||
1357 | 58 | |||
1358 | 59 | static void | ||
1359 | 60 | test_approver_init (TestApprover *self) | ||
1360 | 61 | { | ||
1361 | 62 | dbus_g_connection_register_g_object(session_bus, | ||
1362 | 63 | APPROVER_PATH, | ||
1363 | 64 | G_OBJECT(self)); | ||
1364 | 65 | |||
1365 | 66 | return; | ||
1366 | 67 | } | ||
1367 | 68 | |||
1368 | 69 | static gboolean | ||
1369 | 70 | _notification_approver_server_approve_item (TestApprover * ta, const gchar * id, const gchar * category, guint pid, const gchar * address, const gchar * path, gboolean * approved, GError ** error) | ||
1370 | 71 | { | ||
1371 | 72 | *approved = TRUE; | ||
1372 | 73 | g_debug("Asked to approve indicator"); | ||
1373 | 74 | |||
1374 | 75 | if (g_strcmp0(id, INDICATOR_ID) == 0) { | ||
1375 | 76 | passed = TRUE; | ||
1376 | 77 | } | ||
1377 | 78 | |||
1378 | 79 | g_main_loop_quit(main_loop); | ||
1379 | 80 | |||
1380 | 81 | return TRUE; | ||
1381 | 82 | } | ||
1382 | 83 | |||
1383 | 84 | static void | ||
1384 | 85 | register_cb (DBusGProxy * proxy, GError * error, gpointer user_data) | ||
1385 | 86 | { | ||
1386 | 87 | if (error != NULL) { | ||
1387 | 88 | g_warning("Unable to register approver: %s", error->message); | ||
1388 | 89 | g_error_free(error); | ||
1389 | 90 | g_main_loop_quit(main_loop); | ||
1390 | 91 | return; | ||
1391 | 92 | } | ||
1392 | 93 | |||
1393 | 94 | g_debug("Building App Indicator"); | ||
1394 | 95 | app_indicator = app_indicator_new(INDICATOR_ID, INDICATOR_ICON, INDICATOR_CATEGORY); | ||
1395 | 96 | |||
1396 | 97 | GtkWidget * menu = gtk_menu_new(); | ||
1397 | 98 | GtkWidget * mi = gtk_image_menu_item_new_from_stock(GTK_STOCK_ABOUT, NULL); | ||
1398 | 99 | gtk_menu_shell_append(GTK_MENU_SHELL(menu), mi); | ||
1399 | 100 | |||
1400 | 101 | app_indicator_set_menu(app_indicator, GTK_MENU(menu)); | ||
1401 | 102 | |||
1402 | 103 | return; | ||
1403 | 104 | } | ||
1404 | 105 | |||
1405 | 106 | gint owner_count = 0; | ||
1406 | 107 | gboolean | ||
1407 | 108 | check_for_service (gpointer user_data) | ||
1408 | 109 | { | ||
1409 | 110 | g_debug("Checking for Watcher"); | ||
1410 | 111 | |||
1411 | 112 | if (owner_count > 100) { | ||
1412 | 113 | g_warning("Couldn't find watcher after 100 tries."); | ||
1413 | 114 | g_main_loop_quit(main_loop); | ||
1414 | 115 | return FALSE; | ||
1415 | 116 | } | ||
1416 | 117 | |||
1417 | 118 | owner_count++; | ||
1418 | 119 | |||
1419 | 120 | gboolean has_owner = FALSE; | ||
1420 | 121 | org_freedesktop_DBus_name_has_owner(bus_proxy, NOTIFICATION_WATCHER_DBUS_ADDR, &has_owner, NULL); | ||
1421 | 122 | |||
1422 | 123 | if (has_owner) { | ||
1423 | 124 | const char * cats = NULL; | ||
1424 | 125 | DBusGProxy * proxy = dbus_g_proxy_new_for_name(session_bus, | ||
1425 | 126 | NOTIFICATION_WATCHER_DBUS_ADDR, | ||
1426 | 127 | NOTIFICATION_WATCHER_DBUS_OBJ, | ||
1427 | 128 | NOTIFICATION_WATCHER_DBUS_IFACE); | ||
1428 | 129 | |||
1429 | 130 | g_debug("Registering Approver"); | ||
1430 | 131 | org_kde_StatusNotifierWatcher_register_notification_approver_async (proxy, APPROVER_PATH, &cats, register_cb, NULL); | ||
1431 | 132 | |||
1432 | 133 | return FALSE; | ||
1433 | 134 | } | ||
1434 | 135 | |||
1435 | 136 | return TRUE; | ||
1436 | 137 | } | ||
1437 | 138 | |||
1438 | 139 | gboolean | ||
1439 | 140 | fail_timeout (gpointer user_data) | ||
1440 | 141 | { | ||
1441 | 142 | g_debug("Failure timeout initiated."); | ||
1442 | 143 | g_main_loop_quit(main_loop); | ||
1443 | 144 | return FALSE; | ||
1444 | 145 | } | ||
1445 | 146 | |||
1446 | 147 | int | ||
1447 | 148 | main (int argc, char ** argv) | ||
1448 | 149 | { | ||
1449 | 150 | GError * error = NULL; | ||
1450 | 151 | |||
1451 | 152 | gtk_init(&argc, &argv); | ||
1452 | 153 | g_debug("Initing"); | ||
1453 | 154 | |||
1454 | 155 | session_bus = dbus_g_bus_get(DBUS_BUS_SESSION, &error); | ||
1455 | 156 | if (error != NULL) { | ||
1456 | 157 | g_warning("Unable to get session bus: %s", error->message); | ||
1457 | 158 | g_error_free(error); | ||
1458 | 159 | return -1; | ||
1459 | 160 | } | ||
1460 | 161 | |||
1461 | 162 | TestApprover * approver = g_object_new(TEST_APPROVER_TYPE, NULL); | ||
1462 | 163 | |||
1463 | 164 | bus_proxy = dbus_g_proxy_new_for_name(session_bus, DBUS_SERVICE_DBUS, DBUS_PATH_DBUS, DBUS_INTERFACE_DBUS); | ||
1464 | 165 | |||
1465 | 166 | g_timeout_add(100, check_for_service, NULL); | ||
1466 | 167 | g_timeout_add_seconds(2, fail_timeout, NULL); | ||
1467 | 168 | |||
1468 | 169 | main_loop = g_main_loop_new(NULL, FALSE); | ||
1469 | 170 | g_main_loop_run(main_loop); | ||
1470 | 171 | |||
1471 | 172 | g_object_unref(approver); | ||
1472 | 173 | |||
1473 | 174 | if (!passed) { | ||
1474 | 175 | return -1; | ||
1475 | 176 | } | ||
1476 | 177 | |||
1477 | 178 | return 0; | ||
1478 | 179 | } |
Approve