Merge lp:~3v1n0/libappindicator/g-ir-scanner-docs into lp:libappindicator

Proposed by Marco Trevisan (Treviño)
Status: Merged
Approved by: Ted Gould
Approved revision: 219
Merged at revision: 213
Proposed branch: lp:~3v1n0/libappindicator/g-ir-scanner-docs
Merge into: lp:libappindicator
Prerequisite: lp:~3v1n0/libappindicator/secondary-activate-support
Diff against target: 1387 lines (+490/-492)
3 files modified
src/Makefile.am (+1/-0)
src/app-indicator.c (+350/-353)
src/app-indicator.h (+139/-139)
To merge this branch: bzr merge lp:~3v1n0/libappindicator/g-ir-scanner-docs
Reviewer Review Type Date Requested Status
Ted Gould (community) Approve
Review via email: mp+68560@code.launchpad.net

Description of the change

When compiling libappindicator you get some g-ir-scanner warnings:

 GISCAN AppIndicator3-0.1.gir
 app-indicator.h:299: Warning: AppIndicator3: app_indicator_get_menu: return value: Missing (transfer) annotation
 app-indicator.h:303: Warning: AppIndicator3: app_indicator_get_secondary_activate_target: return value: Missing (transfer) annotation

This is due to the fact that the app-indicator.c is not scanned and the comments there don't use a syntax that the scanner recognize... This branch fixes this issue, moving all the GTK-doc comments to the standard syntax.

PS: As important side-effect of this warning, the mentioned functions aren't (were not) available in gir based bindings such as Vala.

To post a comment you must log in.
Revision history for this message
Ted Gould (ted) wrote :

Sucks that g-ir-scanner can only use that format as I like the other one better :-) Thanks for converting everything!

review: Approve
Revision history for this message
Marco Trevisan (Treviño) (3v1n0) wrote :

Eh, unfortunately that's the only format that it seems to recognize, but to get nice bindings with low effort this is the way to write comments! :)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'src/Makefile.am'
--- src/Makefile.am 2011-02-11 04:04:25 +0000
+++ src/Makefile.am 2011-07-20 15:29:24 +0000
@@ -148,6 +148,7 @@
148if HAVE_INTROSPECTION148if HAVE_INTROSPECTION
149149
150introspection_sources = \150introspection_sources = \
151 $(addprefix $(srcdir)/,app-indicator.c) \
151 $(addprefix $(srcdir)/,$(libappindicator_headers))152 $(addprefix $(srcdir)/,$(libappindicator_headers))
152153
153AppIndicator$(VER)-0.1.gir: libappindicator$(VER).la154AppIndicator$(VER)-0.1.gir: libappindicator$(VER).la
154155
=== modified file 'src/app-indicator.c'
--- src/app-indicator.c 2011-07-20 15:29:24 +0000
+++ src/app-indicator.c 2011-07-20 15:29:24 +0000
@@ -51,20 +51,18 @@
51#define PANEL_ICON_SUFFIX "panel"51#define PANEL_ICON_SUFFIX "panel"
5252
53/**53/**
54 AppIndicatorPrivate:54 * AppIndicatorPrivate:
5555 * All of the private data in an instance of an application indicator.
56 All of the private data in an instance of a56 *
57 application indicator.57 * Private Fields
58*/58 * @id: The ID of the indicator. Maps to AppIndicator:id.
59/* Private Fields59 * @category: Which category the indicator is. Maps to AppIndicator:category.
60 @id: The ID of the indicator. Maps to AppIndicator:id.60 * @status: The status of the indicator. Maps to AppIndicator:status.
61 @category: Which category the indicator is. Maps to AppIndicator:category.61 * @icon_name: The name of the icon to use. Maps to AppIndicator:icon-name.
62 @status: The status of the indicator. Maps to AppIndicator:status.62 * @attention_icon_name: The name of the attention icon to use. Maps to AppIndicator:attention-icon-name.
63 @icon_name: The name of the icon to use. Maps to AppIndicator:icon-name.63 * @menu: The menu for this indicator. Maps to AppIndicator:menu
64 @attention_icon_name: The name of the attention icon to use. Maps to AppIndicator:attention-icon-name.64 * @watcher_proxy: The proxy connection to the watcher we're connected to. If we're not connected to one this will be %NULL.
65 @menu: The menu for this indicator. Maps to AppIndicator:menu65 */
66 @watcher_proxy: The proxy connection to the watcher we're connected to. If we're not connected to one this will be %NULL.
67*/
68struct _AppIndicatorPrivate {66struct _AppIndicatorPrivate {
69 /*< Private >*/67 /*< Private >*/
70 /* Properties */68 /* Properties */
@@ -225,11 +223,11 @@
225 /* Properties */223 /* Properties */
226224
227 /**225 /**
228 AppIndicator:id:226 * AppIndicator:id:
229 227 *
230 The ID for this indicator, which should be unique, but used consistently228 * The ID for this indicator, which should be unique, but used consistently
231 by this program and its indicator.229 * by this program and its indicator.
232 */230 */
233 g_object_class_install_property (object_class,231 g_object_class_install_property (object_class,
234 PROP_ID,232 PROP_ID,
235 g_param_spec_string(PROP_ID_S,233 g_param_spec_string(PROP_ID_S,
@@ -239,11 +237,11 @@
239 G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_CONSTRUCT_ONLY));237 G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_CONSTRUCT_ONLY));
240238
241 /**239 /**
242 AppIndicator:category:240 * AppIndicator:category:
243 241 *
244 The type of indicator that this represents. Please don't use 'Other'. 242 * The type of indicator that this represents. Please don't use 'Other'.
245 Defaults to 'ApplicationStatus'.243 * Defaults to 'ApplicationStatus'.
246 */244 */
247 g_object_class_install_property (object_class,245 g_object_class_install_property (object_class,
248 PROP_CATEGORY,246 PROP_CATEGORY,
249 g_param_spec_string (PROP_CATEGORY_S,247 g_param_spec_string (PROP_CATEGORY_S,
@@ -253,11 +251,11 @@
253 G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_CONSTRUCT_ONLY));251 G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_CONSTRUCT_ONLY));
254252
255 /**253 /**
256 AppIndicator:status:254 * AppIndicator:
257 255 *
258 Whether the indicator is shown or requests attention. Defaults to256 * Whether the indicator is shown or requests attention. Defaults to
259 'Passive'.257 * 'Passive'.
260 */258 */
261 g_object_class_install_property (object_class,259 g_object_class_install_property (object_class,
262 PROP_STATUS,260 PROP_STATUS,
263 g_param_spec_string (PROP_STATUS_S,261 g_param_spec_string (PROP_STATUS_S,
@@ -267,10 +265,10 @@
267 G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));265 G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
268266
269 /**267 /**
270 AppIndicator:icon-name:268 * AppIndicator:icon-name:
271 269 *
272 The name of the regular icon that is shown for the indicator.270 * The name of the regular icon that is shown for the indicator.
273 */271 */
274 g_object_class_install_property(object_class,272 g_object_class_install_property(object_class,
275 PROP_ICON_NAME,273 PROP_ICON_NAME,
276 g_param_spec_string (PROP_ICON_NAME_S,274 g_param_spec_string (PROP_ICON_NAME_S,
@@ -279,10 +277,10 @@
279 NULL,277 NULL,
280 G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));278 G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
281 /**279 /**
282 AppIndicator:icon-desc:280 * AppIndicator:icon-desc:
283 281 *
284 The description of the regular icon that is shown for the indicator.282 * The description of the regular icon that is shown for the indicator.
285 */283 */
286 g_object_class_install_property(object_class,284 g_object_class_install_property(object_class,
287 PROP_ICON_DESC,285 PROP_ICON_DESC,
288 g_param_spec_string (PROP_ICON_DESC_S,286 g_param_spec_string (PROP_ICON_DESC_S,
@@ -292,11 +290,11 @@
292 G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));290 G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
293291
294 /**292 /**
295 AppIndicator:attention-icon-name:293 * AppIndicator:attention-icon-name:
296 294 *
297 If the indicator sets it's status to %APP_INDICATOR_STATUS_ATTENTION295 * If the indicator sets it's status to %APP_INDICATOR_STATUS_ATTENTION
298 then this icon is shown.296 * then this icon is shown.
299 */297 */
300 g_object_class_install_property (object_class,298 g_object_class_install_property (object_class,
301 PROP_ATTENTION_ICON_NAME,299 PROP_ATTENTION_ICON_NAME,
302 g_param_spec_string (PROP_ATTENTION_ICON_NAME_S,300 g_param_spec_string (PROP_ATTENTION_ICON_NAME_S,
@@ -305,11 +303,11 @@
305 NULL,303 NULL,
306 G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));304 G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
307 /**305 /**
308 AppIndicator:attention-icon-desc:306 * AppIndicator:attention-icon-desc:
309 307 *
310 If the indicator sets it's status to %APP_INDICATOR_STATUS_ATTENTION308 * If the indicator sets it's status to %APP_INDICATOR_STATUS_ATTENTION
311 then this textual description of the icon shown.309 * then this textual description of the icon shown.
312 */310 */
313 g_object_class_install_property (object_class,311 g_object_class_install_property (object_class,
314 PROP_ATTENTION_ICON_DESC,312 PROP_ATTENTION_ICON_DESC,
315 g_param_spec_string (PROP_ATTENTION_ICON_DESC_S,313 g_param_spec_string (PROP_ATTENTION_ICON_DESC_S,
@@ -318,11 +316,11 @@
318 NULL,316 NULL,
319 G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));317 G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
320 /**318 /**
321 AppIndicator:icon-theme-path:319 * AppIndicator:icon-theme-path:
322 320 *
323 An additional place to look for icon names that may be installed by the321 * An additional place to look for icon names that may be installed by the
324 application.322 * application.
325 */323 */
326 g_object_class_install_property(object_class,324 g_object_class_install_property(object_class,
327 PROP_ICON_THEME_PATH,325 PROP_ICON_THEME_PATH,
328 g_param_spec_string (PROP_ICON_THEME_PATH_S,326 g_param_spec_string (PROP_ICON_THEME_PATH_S,
@@ -332,11 +330,11 @@
332 G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_CONSTRUCT));330 G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_CONSTRUCT));
333 331
334 /**332 /**
335 AppIndicator:connected:333 * AppIndicator:connected:
336 334 *
337 Pretty simple, %TRUE if we have a reasonable expectation of being 335 * Pretty simple, %TRUE if we have a reasonable expectation of being
338 displayed through this object. You should hide your TrayIcon if so.336 * displayed through this object. You should hide your TrayIcon if so.
339 */337 */
340 g_object_class_install_property (object_class,338 g_object_class_install_property (object_class,
341 PROP_CONNECTED,339 PROP_CONNECTED,
342 g_param_spec_boolean (PROP_CONNECTED_S,340 g_param_spec_boolean (PROP_CONNECTED_S,
@@ -345,15 +343,15 @@
345 FALSE,343 FALSE,
346 G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));344 G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
347 /**345 /**
348 AppIndicator:label:346 * AppIndicator:label:
349 347 *
350 A label that can be shown next to the string in the application348 * A label that can be shown next to the string in the application
351 indicator. The label will not be shown unless there is an icon349 * indicator. The label will not be shown unless there is an icon
352 as well. The label is useful for numerical and other frequently350 * as well. The label is useful for numerical and other frequently
353 updated information. In general, it shouldn't be shown unless a351 * updated information. In general, it shouldn't be shown unless a
354 user requests it as it can take up a significant amount of space352 * user requests it as it can take up a significant amount of space
355 on the user's panel. This may not be shown in all visualizations.353 * on the user's panel. This may not be shown in all visualizations.
356 */354 */
357 g_object_class_install_property(object_class,355 g_object_class_install_property(object_class,
358 PROP_LABEL,356 PROP_LABEL,
359 g_param_spec_string (PROP_LABEL_S,357 g_param_spec_string (PROP_LABEL_S,
@@ -362,16 +360,16 @@
362 NULL,360 NULL,
363 G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));361 G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
364 /**362 /**
365 AppIndicator:label-guide:363 * AppIndicator:label-guide:
366 364 *
367 An optional string to provide guidance to the panel on how big365 * An optional string to provide guidance to the panel on how big
368 the #AppIndicator:label string could get. If this is set correctly366 * the #AppIndicator:label string could get. If this is set correctly
369 then the panel should never 'jiggle' as the string adjusts through367 * then the panel should never 'jiggle' as the string adjusts through
370 out the range of options. For instance, if you were providing a368 * out the range of options. For instance, if you were providing a
371 percentage like "54% thrust" in #AppIndicator:label you'd want to369 * percentage like "54% thrust" in #AppIndicator:label you'd want to
372 set this string to "100% thrust" to ensure space when Scotty can370 * set this string to "100% thrust" to ensure space when Scotty can
373 get you enough power.371 * get you enough power.
374 */372 */
375 g_object_class_install_property(object_class,373 g_object_class_install_property(object_class,
376 PROP_LABEL_GUIDE,374 PROP_LABEL_GUIDE,
377 g_param_spec_string (PROP_LABEL_GUIDE_S,375 g_param_spec_string (PROP_LABEL_GUIDE_S,
@@ -380,17 +378,17 @@
380 NULL,378 NULL,
381 G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));379 G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
382 /**380 /**
383 AppIndicator:ordering-index:381 * AppIndicator:ordering-index:
384382 *
385 The ordering index is an odd parameter, and if you think you don't need383 * The ordering index is an odd parameter, and if you think you don't need
386 it you're probably right. In general, the application indicator try384 * it you're probably right. In general, the application indicator try
387 to place the applications in a recreatable place taking into account385 * to place the applications in a recreatable place taking into account
388 which category they're in to try and group them. But, there are some386 * which category they're in to try and group them. But, there are some
389 cases where you'd want to ensure indicators are next to each other.387 * cases where you'd want to ensure indicators are next to each other.
390 To do that you can override the generated ordering index and replace it388 * To do that you can override the generated ordering index and replace it
391 with a new one. Again, you probably don't want to be doing this, but389 * with a new one. Again, you probably don't want to be doing this, but
392 in case you do, this is the way.390 * in case you do, this is the way.
393 */391 */
394 g_object_class_install_property(object_class,392 g_object_class_install_property(object_class,
395 PROP_ORDERING_INDEX,393 PROP_ORDERING_INDEX,
396 g_param_spec_uint (PROP_ORDERING_INDEX_S,394 g_param_spec_uint (PROP_ORDERING_INDEX_S,
@@ -400,11 +398,11 @@
400 G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));398 G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
401399
402 /**400 /**
403 AppIndicator:dbus-menu-server:401 * AppIndicator:dbus-menu-server:
404402 *
405 A way to get the internal dbusmenu server if it is available.403 * A way to get the internal dbusmenu server if it is available.
406 This should only be used for testing.404 * This should only be used for testing.
407 */405 */
408 g_object_class_install_property(object_class,406 g_object_class_install_property(object_class,
409 PROP_DBUS_MENU_SERVER,407 PROP_DBUS_MENU_SERVER,
410 g_param_spec_object (PROP_DBUS_MENU_SERVER_S,408 g_param_spec_object (PROP_DBUS_MENU_SERVER_S,
@@ -416,11 +414,11 @@
416 /* Signals */414 /* Signals */
417415
418 /**416 /**
419 AppIndicator::new-icon:417 * AppIndicator::new-icon:
420 @arg0: The #AppIndicator object418 * @arg0: The #AppIndicator object
421419 *
422 Emitted when #AppIndicator:icon-name is changed420 * when #AppIndicator:icon-name is changed
423 */421 */
424 signals[NEW_ICON] = g_signal_new (APP_INDICATOR_SIGNAL_NEW_ICON,422 signals[NEW_ICON] = g_signal_new (APP_INDICATOR_SIGNAL_NEW_ICON,
425 G_TYPE_FROM_CLASS(klass),423 G_TYPE_FROM_CLASS(klass),
426 G_SIGNAL_RUN_LAST,424 G_SIGNAL_RUN_LAST,
@@ -430,11 +428,11 @@
430 G_TYPE_NONE, 0, G_TYPE_NONE);428 G_TYPE_NONE, 0, G_TYPE_NONE);
431429
432 /**430 /**
433 AppIndicator::new-attention-icon:431 * AppIndicator::new-attention-icon:
434 @arg0: The #AppIndicator object432 * @arg0: The #AppIndicator object
435433 *
436 Emitted when #AppIndicator:attention-icon-name is changed434 * Emitted when #AppIndicator:attention-icon-name is changed
437 */435 */
438 signals[NEW_ATTENTION_ICON] = g_signal_new (APP_INDICATOR_SIGNAL_NEW_ATTENTION_ICON,436 signals[NEW_ATTENTION_ICON] = g_signal_new (APP_INDICATOR_SIGNAL_NEW_ATTENTION_ICON,
439 G_TYPE_FROM_CLASS(klass),437 G_TYPE_FROM_CLASS(klass),
440 G_SIGNAL_RUN_LAST,438 G_SIGNAL_RUN_LAST,
@@ -444,12 +442,12 @@
444 G_TYPE_NONE, 0, G_TYPE_NONE);442 G_TYPE_NONE, 0, G_TYPE_NONE);
445443
446 /**444 /**
447 AppIndicator::new-status:445 * AppIndicator::new-status:
448 @arg0: The #AppIndicator object446 * @arg0: The #AppIndicator object
449 @arg1: The string value of the #AppIndicatorStatus enum.447 * @arg1: The string value of the #AppIndicatorStatus enum.
450448 *
451 Emitted when #AppIndicator:status is changed449 * Emitted when #AppIndicator:status is changed
452 */450 */
453 signals[NEW_STATUS] = g_signal_new (APP_INDICATOR_SIGNAL_NEW_STATUS,451 signals[NEW_STATUS] = g_signal_new (APP_INDICATOR_SIGNAL_NEW_STATUS,
454 G_TYPE_FROM_CLASS(klass),452 G_TYPE_FROM_CLASS(klass),
455 G_SIGNAL_RUN_LAST,453 G_SIGNAL_RUN_LAST,
@@ -460,13 +458,13 @@
460 G_TYPE_STRING);458 G_TYPE_STRING);
461459
462 /**460 /**
463 AppIndicator::new-label:461 * AppIndicator::new-label:
464 @arg0: The #AppIndicator object462 * @arg0: The #AppIndicator object
465 @arg1: The string for the label463 * @arg1: The string for the label
466 @arg1: The string for the guide464 * @arg1: The string for the guide
467465 *
468 Emitted when either #AppIndicator:label or #AppIndicator:label-guide are466 * Emitted when either #AppIndicator:label or #AppIndicator:label-guide are
469 changed.467 * changed.
470 */468 */
471 signals[NEW_LABEL] = g_signal_new (APP_INDICATOR_SIGNAL_NEW_LABEL,469 signals[NEW_LABEL] = g_signal_new (APP_INDICATOR_SIGNAL_NEW_LABEL,
472 G_TYPE_FROM_CLASS(klass),470 G_TYPE_FROM_CLASS(klass),
@@ -477,12 +475,12 @@
477 G_TYPE_NONE, 2, G_TYPE_STRING, G_TYPE_STRING);475 G_TYPE_NONE, 2, G_TYPE_STRING, G_TYPE_STRING);
478476
479 /**477 /**
480 AppIndicator::connection-changed:478 * AppIndicator::connection-changed:
481 @arg0: The #AppIndicator object479 * @arg0: The #AppIndicator object
482 @arg1: Whether we're connected or not480 * @arg1: Whether we're connected or not
483481 *
484 Signaled when we connect to a watcher, or when it drops away.482 * Signaled when we connect to a watcher, or when it drops away.
485 */483 */
486 signals[CONNECTION_CHANGED] = g_signal_new (APP_INDICATOR_SIGNAL_CONNECTION_CHANGED,484 signals[CONNECTION_CHANGED] = g_signal_new (APP_INDICATOR_SIGNAL_CONNECTION_CHANGED,
487 G_TYPE_FROM_CLASS(klass),485 G_TYPE_FROM_CLASS(klass),
488 G_SIGNAL_RUN_LAST,486 G_SIGNAL_RUN_LAST,
@@ -492,12 +490,12 @@
492 G_TYPE_NONE, 1, G_TYPE_BOOLEAN, G_TYPE_NONE);490 G_TYPE_NONE, 1, G_TYPE_BOOLEAN, G_TYPE_NONE);
493491
494 /**492 /**
495 AppIndicator::new-icon-theme-path:493 * AppIndicator::new-icon-theme-path:
496 @arg0: The #AppIndicator object494 * @arg0: The #AppIndicator object
497495 *
498 Signaled when there is a new icon set for the496 * Signaled when there is a new icon set for the
499 object.497 * object.
500 */498 */
501 signals[NEW_ICON_THEME_PATH] = g_signal_new (APP_INDICATOR_SIGNAL_NEW_ICON_THEME_PATH,499 signals[NEW_ICON_THEME_PATH] = g_signal_new (APP_INDICATOR_SIGNAL_NEW_ICON_THEME_PATH,
502 G_TYPE_FROM_CLASS(klass),500 G_TYPE_FROM_CLASS(klass),
503 G_SIGNAL_RUN_LAST,501 G_SIGNAL_RUN_LAST,
@@ -507,13 +505,13 @@
507 G_TYPE_NONE, 1, G_TYPE_STRING);505 G_TYPE_NONE, 1, G_TYPE_STRING);
508506
509 /**507 /**
510 AppIndicator::scroll-event:508 * AppIndicator::scroll-event:
511 @arg0: The #AppIndicator object509 * @arg0: The #AppIndicator object
512 @arg1: How many steps the scroll wheel has taken510 * @arg1: How many steps the scroll wheel has taken
513 @arg2: (type Gdk.ScrollDirection) Which direction the wheel went in511 * @arg2: (type Gdk.ScrollDirection) Which direction the wheel went in
514512 *
515 Signaled when the #AppIndicator receives a scroll event.513 * Signaled when the #AppIndicator receives a scroll event.
516 */514 */
517 signals[SCROLL_EVENT] = g_signal_new (APP_INDICATOR_SIGNAL_SCROLL_EVENT,515 signals[SCROLL_EVENT] = g_signal_new (APP_INDICATOR_SIGNAL_SCROLL_EVENT,
518 G_TYPE_FROM_CLASS(klass),516 G_TYPE_FROM_CLASS(klass),
519 G_SIGNAL_RUN_LAST,517 G_SIGNAL_RUN_LAST,
@@ -1646,17 +1644,16 @@
1646/* ************************* */1644/* ************************* */
16471645
1648/**1646/**
1649 app_indicator_new:1647 * app_indicator_new:
1650 @id: The unique id of the indicator to create.1648 * @id: The unique id of the indicator to create.
1651 @icon_name: The icon name for this indicator1649 * @icon_name: The icon name for this indicator
1652 @category: The category of indicator.1650 * @category: The category of indicator.
16531651 *
1654 Creates a new #AppIndicator setting the properties:1652 * Creates a new #AppIndicator setting the properties:
1655 #AppIndicator:id with @id, #AppIndicator:category1653 * #AppIndicator:id with @id, #AppIndicator:category with @category
1656 with @category and #AppIndicator:icon-name with1654 * and #AppIndicator:icon-name with @icon_name.
1657 @icon_name.1655 *
16581656 * Return value: A pointer to a new #AppIndicator object.
1659 Return value: A pointer to a new #AppIndicator object.
1660 */1657 */
1661AppIndicator *1658AppIndicator *
1662app_indicator_new (const gchar *id,1659app_indicator_new (const gchar *id,
@@ -1673,18 +1670,18 @@
1673}1670}
16741671
1675/**1672/**
1676 app_indicator_new_with_path:1673 * app_indicator_new_with_path:
1677 @id: The unique id of the indicator to create.1674 * @id: The unique id of the indicator to create.
1678 @icon_name: The icon name for this indicator1675 * @icon_name: The icon name for this indicator
1679 @category: The category of indicator.1676 * @category: The category of indicator.
1680 @icon_theme_path: A custom path for finding icons.1677 * @icon_theme_path: A custom path for finding icons.
16811678
1682 Creates a new #AppIndicator setting the properties:1679 * Creates a new #AppIndicator setting the properties:
1683 #AppIndicator:id with @id, #AppIndicator:category1680 * #AppIndicator:id with @id, #AppIndicator:category with @category,
1684 with @category, #AppIndicator:icon-name with1681 * #AppIndicator:icon-name with @icon_name and #AppIndicator:icon-theme-path
1685 @icon_name and #AppIndicator:icon-theme-path with @icon_theme_path.1682 * with @icon_theme_path.
16861683 *
1687 Return value: A pointer to a new #AppIndicator object.1684 * Return value: A pointer to a new #AppIndicator object.
1688 */1685 */
1689AppIndicator *1686AppIndicator *
1690app_indicator_new_with_path (const gchar *id,1687app_indicator_new_with_path (const gchar *id,
@@ -1703,20 +1700,20 @@
1703}1700}
17041701
1705/**1702/**
1706 app_indicator_get_type:1703 * app_indicator_get_type:
17071704 *
1708 Generates or returns the unique #GType for #AppIndicator.1705 * Generates or returns the unique #GType for #AppIndicator.
17091706 *
1710 Return value: A unique #GType for #AppIndicator objects.1707 * Return value: A unique #GType for #AppIndicator objects.
1711*/1708 */
17121709
1713/**1710/**
1714 app_indicator_set_status:1711 * app_indicator_set_status:
1715 @self: The #AppIndicator object to use1712 * @self: The #AppIndicator object to use
1716 @status: The status to set for this indicator1713 * @status: The status to set for this indicator
17171714 *
1718 Wrapper function for property #AppIndicator:status.1715 * Wrapper function for property #AppIndicator:status.
1719*/1716 */
1720void1717void
1721app_indicator_set_status (AppIndicator *self, AppIndicatorStatus status)1718app_indicator_set_status (AppIndicator *self, AppIndicatorStatus status)
1722{1719{
@@ -1750,15 +1747,15 @@
1750}1747}
17511748
1752/**1749/**
1753 app_indicator_set_attention_icon:1750 * app_indicator_set_attention_icon:
1754 @self: The #AppIndicator object to use1751 * @self: The #AppIndicator object to use
1755 @icon_name: The name of the attention icon to set for this indicator1752 * @icon_name: The name of the attention icon to set for this indicator
17561753 *
1757 Wrapper for app_indicator_set_attention_icon_full() with a NULL1754 * Wrapper for app_indicator_set_attention_icon_full() with a NULL
1758 description.1755 * description.
17591756 *
1760 Deprecated: Use app_indicator_set_attention_icon_full() instead.1757 * Deprecated: Use app_indicator_set_attention_icon_full() instead.
1761*/1758 */
1762void1759void
1763app_indicator_set_attention_icon (AppIndicator *self, const gchar *icon_name)1760app_indicator_set_attention_icon (AppIndicator *self, const gchar *icon_name)
1764{1761{
@@ -1766,13 +1763,13 @@
1766}1763}
17671764
1768/**1765/**
1769 app_indicator_set_attention_icon_full:1766 * app_indicator_set_attention_icon_full:
1770 @self: The #AppIndicator object to use1767 * @self: The #AppIndicator object to use
1771 @icon_name: The name of the attention icon to set for this indicator1768 * @icon_name: The name of the attention icon to set for this indicator
1772 @icon_desc: A textual description of the icon1769 * @icon_desc: A textual description of the icon
17731770 *
1774 Wrapper function for property #AppIndicator:attention-icon-name.1771 * Wrapper function for property #AppIndicator:attention-icon-name.
1775*/1772 */
1776void1773void
1777app_indicator_set_attention_icon_full (AppIndicator *self, const gchar *icon_name, const gchar * icon_desc)1774app_indicator_set_attention_icon_full (AppIndicator *self, const gchar *icon_name, const gchar * icon_desc)
1778{1775{
@@ -1823,15 +1820,15 @@
1823}1820}
18241821
1825/**1822/**
1826 app_indicator_set_icon:1823 * app_indicator_set_icon:
1827 @self: The #AppIndicator object to use1824 * @self: The #AppIndicator object to use
1828 @icon_name: The icon name to set.1825 * @icon_name: The icon name to set.
18291826 *
1830 Wrapper function for app_indicator_set_icon_full() with a NULL1827 * Wrapper function for app_indicator_set_icon_full() with a NULL
1831 description.1828 * description.
18321829 *
1833 Deprecated: Use app_indicator_set_icon_full()1830 * Deprecated: Use app_indicator_set_icon_full()
1834**/1831 */
1835void1832void
1836app_indicator_set_icon (AppIndicator *self, const gchar *icon_name)1833app_indicator_set_icon (AppIndicator *self, const gchar *icon_name)
1837{1834{
@@ -1839,18 +1836,18 @@
1839}1836}
18401837
1841/**1838/**
1842 app_indicator_set_icon_full:1839 * app_indicator_set_icon_full:
1843 @self: The #AppIndicator object to use1840 * @self: The #AppIndicator object to use
1844 @icon_name: The icon name to set.1841 * @icon_name: The icon name to set.
1845 @icon_desc: A textual description of the icon for accessibility1842 * @icon_desc: A textual description of the icon for accessibility
18461843 *
1847 Sets the default icon to use when the status is active but1844 * Sets the default icon to use when the status is active but
1848 not set to attention. In most cases, this should be the1845 * not set to attention. In most cases, this should be the
1849 application icon for the program.1846 * application icon for the program.
18501847 *
1851 Wrapper function for property #AppIndicator:icon-name and1848 * Wrapper function for property #AppIndicator:icon-name and
1852 #AppIndicator::icon-desc.1849 * #AppIndicator::icon-desc.
1853**/1850 */
1854void1851void
1855app_indicator_set_icon_full (AppIndicator *self, const gchar *icon_name, const gchar * icon_desc)1852app_indicator_set_icon_full (AppIndicator *self, const gchar *icon_name, const gchar * icon_desc)
1856{1853{
@@ -1901,14 +1898,14 @@
1901}1898}
19021899
1903/**1900/**
1904 app_indicator_set_label:1901 * app_indicator_set_label:
1905 @self: The #AppIndicator object to use1902 * @self: The #AppIndicator object to use
1906 @label: The label to show next to the icon.1903 * @label: The label to show next to the icon.
1907 @guide: A guide to size the label correctly.1904 * @guide: A guide to size the label correctly.
19081905 *
1909 This is a wrapper function for the #AppIndicator:label and1906 * This is a wrapper function for the #AppIndicator:label and
1910 #AppIndicator:guide properties. This function can take #NULL1907 * #AppIndicator:guide properties. This function can take #NULL
1911 as either @label or @guide and will clear the entries.1908 * as either @label or @guide and will clear the entries.
1912*/1909*/
1913void1910void
1914app_indicator_set_label (AppIndicator *self, const gchar * label, const gchar * guide)1911app_indicator_set_label (AppIndicator *self, const gchar * label, const gchar * guide)
@@ -1926,12 +1923,12 @@
1926}1923}
19271924
1928/**1925/**
1929 app_indicator_set_icon_theme_path:1926 * app_indicator_set_icon_theme_path:
1930 @self: The #AppIndicator object to use1927 * @self: The #AppIndicator object to use
1931 @icon_theme_path: The icon theme path to set.1928 * @icon_theme_path: The icon theme path to set.
19321929 *
1933 Sets the path to use when searching for icons.1930 * Sets the path to use when searching for icons.
1934**/1931 */
1935void1932void
1936app_indicator_set_icon_theme_path (AppIndicator *self, const gchar *icon_theme_path)1933app_indicator_set_icon_theme_path (AppIndicator *self, const gchar *icon_theme_path)
1937{1934{
@@ -1997,17 +1994,17 @@
1997 return;1994 return;
1998}1995}
19991996
2000/**1997/*
2001 app_indicator_set_menu:1998 * app_indicator_set_menu:
2002 @self: The #AppIndicator1999 * @self: The #AppIndicator
2003 @menu: A #GtkMenu to set2000 * @menu: (allow-none): A #GtkMenu to set
20042001 *
2005 Sets the menu that should be shown when the Application Indicator2002 * Sets the menu that should be shown when the Application Indicator
2006 is clicked on in the panel. An application indicator will not2003 * is clicked on in the panel. An application indicator will not
2007 be rendered unless it has a menu.2004 * be rendered unless it has a menu.
2008 2005 *
2009 Wrapper function for property #AppIndicator:menu.2006 * Wrapper function for property #AppIndicator:menu.
2010**/2007 */
2011void2008void
2012app_indicator_set_menu (AppIndicator *self, GtkMenu *menu)2009app_indicator_set_menu (AppIndicator *self, GtkMenu *menu)
2013{2010{
@@ -2037,16 +2034,16 @@
2037}2034}
20382035
2039/**2036/**
2040 app_indicator_set_ordering_index:2037 * app_indicator_set_ordering_index:
2041 @self: The #AppIndicator2038 * @self: The #AppIndicator
2042 @ordering_index: A value for the ordering of this app indicator2039 * @ordering_index: A value for the ordering of this app indicator
20432040 *
2044 Sets the ordering index for the app indicator which effects the2041 * Sets the ordering index for the app indicator which effects the
2045 placement of it on the panel. For almost all app indicator2042 * placement of it on the panel. For almost all app indicator
2046 this is not the function you're looking for.2043 * this is not the function you're looking for.
20472044 *
2048 Wrapper function for property #AppIndicator:ordering-index.2045 * Wrapper function for property #AppIndicator:ordering-index.
2049**/2046 */
2050void2047void
2051app_indicator_set_ordering_index (AppIndicator *self, guint32 ordering_index)2048app_indicator_set_ordering_index (AppIndicator *self, guint32 ordering_index)
2052{2049{
@@ -2058,19 +2055,19 @@
2058}2055}
20592056
2060/**2057/**
2061 app_indicator_set_secondary_activate_target:2058 * app_indicator_set_secondary_activate_target:
2062 @self: The #AppIndicator2059 * @self: The #AppIndicator
2063 @menuitem: A #GtkWidget to be activated on secondary activation2060 * @menuitem: (allow-none): A #GtkWidget to be activated on secondary activation
20642061 *
2065 Set the @menuitem to be activated when a secondary activation event (i.e. a2062 * Set the @menuitem to be activated when a secondary activation event (i.e. a
2066 middle-click) is emitted over the #AppIndicator icon/label.2063 * middle-click) is emitted over the #AppIndicator icon/label.
20672064 *
2068 The @menuitem can be also a complex #GtkWidget, but to get activated when2065 * The @menuitem can be also a complex #GtkWidget, but to get activated when
2069 a secondary activation occurs in the #Appindicator, it must be a visible and2066 * a secondary activation occurs in the #Appindicator, it must be a visible and
2070 active child (or inner-child) of the #AppIndicator:menu.2067 * active child (or inner-child) of the #AppIndicator:menu.
20712068 *
2072 Setting @menuitem to %NULL causes to disable this feature.2069 * Setting @menuitem to %NULL causes to disable this feature.
2073**/2070 */
2074void2071void
2075app_indicator_set_secondary_activate_target (AppIndicator *self, GtkWidget *menuitem)2072app_indicator_set_secondary_activate_target (AppIndicator *self, GtkWidget *menuitem)
2076{2073{
@@ -2097,13 +2094,13 @@
2097}2094}
20982095
2099/**2096/**
2100 app_indicator_get_id:2097 * app_indicator_get_id:
2101 @self: The #AppIndicator object to use2098 * @self: The #AppIndicator object to use
21022099 *
2103 Wrapper function for property #AppIndicator:id.2100 * Wrapper function for property #AppIndicator:id.
21042101 *
2105 Return value: The current ID2102 * Return value: The current ID
2106*/2103 */
2107const gchar *2104const gchar *
2108app_indicator_get_id (AppIndicator *self)2105app_indicator_get_id (AppIndicator *self)
2109{2106{
@@ -2113,13 +2110,13 @@
2113}2110}
21142111
2115/**2112/**
2116 app_indicator_get_category:2113 * app_indicator_get_category:
2117 @self: The #AppIndicator object to use2114 * @self: The #AppIndicator object to use
21182115 *
2119 Wrapper function for property #AppIndicator:category.2116 * Wrapper function for property #AppIndicator:category.
21202117 *
2121 Return value: The current category.2118 * Return value: The current category.
2122*/2119 */
2123AppIndicatorCategory2120AppIndicatorCategory
2124app_indicator_get_category (AppIndicator *self)2121app_indicator_get_category (AppIndicator *self)
2125{2122{
@@ -2129,13 +2126,13 @@
2129}2126}
21302127
2131/**2128/**
2132 app_indicator_get_status:2129 * app_indicator_get_status:
2133 @self: The #AppIndicator object to use2130 * @self: The #AppIndicator object to use
21342131 *
2135 Wrapper function for property #AppIndicator:status.2132 * Wrapper function for property #AppIndicator:status.
21362133 *
2137 Return value: The current status.2134 * Return value: The current status.
2138*/2135 */
2139AppIndicatorStatus2136AppIndicatorStatus
2140app_indicator_get_status (AppIndicator *self)2137app_indicator_get_status (AppIndicator *self)
2141{2138{
@@ -2145,13 +2142,13 @@
2145}2142}
21462143
2147/**2144/**
2148 app_indicator_get_icon:2145 * app_indicator_get_icon:
2149 @self: The #AppIndicator object to use2146 * @self: The #AppIndicator object to use
21502147 *
2151 Wrapper function for property #AppIndicator:icon-name.2148 * Wrapper function for property #AppIndicator:icon-name.
21522149 *
2153 Return value: The current icon name.2150 * Return value: The current icon name.
2154*/2151 */
2155const gchar *2152const gchar *
2156app_indicator_get_icon (AppIndicator *self)2153app_indicator_get_icon (AppIndicator *self)
2157{2154{
@@ -2161,12 +2158,12 @@
2161}2158}
21622159
2163/**2160/**
2164 app_indicator_get_icon_desc:2161 * app_indicator_get_icon_desc:
2165 @self: The #AppIndicator object to use2162 * @self: The #AppIndicator object to use
21662163 *
2167 Wrapper function for property #AppIndicator:icon-desc.2164 * Wrapper function for property #AppIndicator:icon-desc.
21682165 *
2169 Return value: The current icon description.2166 * Return value: The current icon description.
2170*/2167*/
2171const gchar *2168const gchar *
2172app_indicator_get_icon_desc (AppIndicator *self)2169app_indicator_get_icon_desc (AppIndicator *self)
@@ -2177,13 +2174,13 @@
2177}2174}
21782175
2179/**2176/**
2180 app_indicator_get_icon_theme_path:2177 * app_indicator_get_icon_theme_path:
2181 @self: The #AppIndicator object to use2178 * @self: The #AppIndicator object to use
21822179 *
2183 Wrapper function for property #AppIndicator:icon-theme-path.2180 * Wrapper function for property #AppIndicator:icon-theme-path.
21842181 *
2185 Return value: The current icon theme path.2182 * Return value: The current icon theme path.
2186*/2183 */
2187const gchar *2184const gchar *
2188app_indicator_get_icon_theme_path (AppIndicator *self)2185app_indicator_get_icon_theme_path (AppIndicator *self)
2189{2186{
@@ -2193,13 +2190,13 @@
2193}2190}
21942191
2195/**2192/**
2196 app_indicator_get_attention_icon:2193 * app_indicator_get_attention_icon:
2197 @self: The #AppIndicator object to use2194 * @self: The #AppIndicator object to use
21982195 *
2199 Wrapper function for property #AppIndicator:attention-icon-name.2196 * Wrapper function for property #AppIndicator:attention-icon-name.
22002197 *
2201 Return value: The current attention icon name.2198 * Return value: The current attention icon name.
2202*/2199 */
2203const gchar *2200const gchar *
2204app_indicator_get_attention_icon (AppIndicator *self)2201app_indicator_get_attention_icon (AppIndicator *self)
2205{2202{
@@ -2209,13 +2206,13 @@
2209}2206}
22102207
2211/**2208/**
2212 app_indicator_get_attention_icon_desc:2209 * app_indicator_get_attention_icon_desc:
2213 @self: The #AppIndicator object to use2210 * @self: The #AppIndicator object to use
22142211 *
2215 Wrapper function for property #AppIndicator:attention-icon-desc.2212 * Wrapper function for property #AppIndicator:attention-icon-desc.
22162213 *
2217 Return value: The current attention icon description.2214 * Return value: The current attention icon description.
2218*/2215 */
2219const gchar *2216const gchar *
2220app_indicator_get_attention_icon_desc (AppIndicator *self)2217app_indicator_get_attention_icon_desc (AppIndicator *self)
2221{2218{
@@ -2225,14 +2222,14 @@
2225}2222}
22262223
2227/**2224/**
2228 app_indicator_get_menu:2225 * app_indicator_get_menu:
2229 @self: The #AppIndicator object to use2226 * @self: The #AppIndicator object to use
22302227 *
2231 Gets the menu being used for this application indicator.2228 * Gets the menu being used for this application indicator.
2232 Wrapper function for property #AppIndicator:menu.2229 * Wrapper function for property #AppIndicator:menu.
22332230 *
2234 Return value: (transfer full): A #GtkMenu object or %NULL if one hasn't been set.2231 * Returns: (transfer full): A #GtkMenu object or %NULL if one hasn't been set.
2235*/2232 */
2236GtkMenu *2233GtkMenu *
2237app_indicator_get_menu (AppIndicator *self)2234app_indicator_get_menu (AppIndicator *self)
2238{2235{
@@ -2246,13 +2243,13 @@
2246}2243}
22472244
2248/**2245/**
2249 app_indicator_get_label:2246 * app_indicator_get_label:
2250 @self: The #AppIndicator object to use2247 * @self: The #AppIndicator object to use
22512248 *
2252 Wrapper function for property #AppIndicator:label.2249 * Wrapper function for property #AppIndicator:label.
22532250 *
2254 Return value: The current label.2251 * Return value: The current label.
2255*/2252 */
2256const gchar *2253const gchar *
2257app_indicator_get_label (AppIndicator *self)2254app_indicator_get_label (AppIndicator *self)
2258{2255{
@@ -2262,13 +2259,13 @@
2262}2259}
22632260
2264/**2261/**
2265 app_indicator_get_label_guide:2262 * app_indicator_get_label_guide:
2266 @self: The #AppIndicator object to use2263 * @self: The #AppIndicator object to use
22672264 *
2268 Wrapper function for property #AppIndicator:label-guide.2265 * Wrapper function for property #AppIndicator:label-guide.
22692266 *
2270 Return value: The current label guide.2267 * Return value: The current label guide.
2271*/2268 */
2272const gchar *2269const gchar *
2273app_indicator_get_label_guide (AppIndicator *self)2270app_indicator_get_label_guide (AppIndicator *self)
2274{2271{
@@ -2278,13 +2275,13 @@
2278}2275}
22792276
2280/**2277/**
2281 app_indicator_get_ordering_index:2278 * app_indicator_get_ordering_index:
2282 @self: The #AppIndicator object to use2279 * @self: The #AppIndicator object to use
22832280 *
2284 Wrapper function for property #AppIndicator:ordering-index.2281 * Wrapper function for property #AppIndicator:ordering-index.
22852282 *
2286 Return value: The current ordering index.2283 * Return value: The current ordering index.
2287*/2284 */
2288guint322285guint32
2289app_indicator_get_ordering_index (AppIndicator *self)2286app_indicator_get_ordering_index (AppIndicator *self)
2290{2287{
@@ -2298,13 +2295,13 @@
2298}2295}
22992296
2300/**2297/**
2301 app_indicator_get_secondary_activate_target:2298 * app_indicator_get_secondary_activate_target:
2302 @self: The #AppIndicator object to use2299 * @self: The #AppIndicator object to use
23032300 *
2304 Gets the menuitem being called on secondary-activate event.2301 * Gets the menuitem being called on secondary-activate event.
23052302 *
2306 Return value: (transfer full): A #GtkWidget object or %NULL if none has been set.2303 * Returns: (transfer full): A #GtkWidget object or %NULL if none has been set.
2307*/2304 */
2308GtkWidget *2305GtkWidget *
2309app_indicator_get_secondary_activate_target (AppIndicator *self)2306app_indicator_get_secondary_activate_target (AppIndicator *self)
2310{2307{
@@ -2335,14 +2332,14 @@
2335}2332}
23362333
2337/**2334/**
2338 app_indicator_build_menu_from_desktop:2335 * app_indicator_build_menu_from_desktop:
2339 @self: The #AppIndicator object to use2336 * @self: The #AppIndicator object to use
2340 @desktop_file: A path to the desktop file to build the menu from2337 * @desktop_file: A path to the desktop file to build the menu from
2341 @desktop_profile: Which entries should be used from the desktop file2338 * @desktop_profile: Which entries should be used from the desktop file
23422339 *
2343 This function allows for building the Application Indicator menu2340 * This function allows for building the Application Indicator menu
2344 from a static desktop file.2341 * from a static desktop file.
2345*/2342 */
2346void2343void
2347app_indicator_build_menu_from_desktop (AppIndicator * self, const gchar * desktop_file, const gchar * desktop_profile)2344app_indicator_build_menu_from_desktop (AppIndicator * self, const gchar * desktop_file, const gchar * desktop_profile)
2348{2345{
23492346
=== modified file 'src/app-indicator.h'
--- src/app-indicator.h 2011-07-20 15:29:24 +0000
+++ src/app-indicator.h 2011-07-20 15:29:24 +0000
@@ -35,40 +35,40 @@
35G_BEGIN_DECLS35G_BEGIN_DECLS
3636
37/**37/**
38 APP_INDICATOR_TYPE:38 * APP_INDICATOR_TYPE:
3939 *
40 Get the #GType for a #AppIndicator.40 * Get the #GType for a #AppIndicator.
41*/41 */
42/**42/**
43 APP_INDICATOR:43 * APP_INDICATOR:
44 @obj: The object to convert44 * @obj: The object to convert
4545 *
46 Safely convert a #GObject into an #AppIndicator.46 * Safely convert a #GObject into an #AppIndicator.
47*/47 */
48/**48/**
49 APP_INDICATOR_CLASS:49 * APP_INDICATOR_CLASS:
50 @klass: #GObjectClass based class to convert.50 * @klass: #GObjectClass based class to convert.
5151 *
52 Safely convert a #GObjectClass into a #AppIndicatorClass.52 * Safely convert a #GObjectClass into a #AppIndicatorClass.
53*/53 */
54/**54/**
55 IS_APP_INDICATOR:55 * IS_APP_INDICATOR:
56 @obj: An #GObject to check56 * @obj: An #GObject to check
5757 *
58 Checks to see if @obj is in the object hierarchy of #AppIndicator.58 * Checks to see if @obj is in the object hierarchy of #AppIndicator.
59*/59 */
60/**60/**
61 IS_APP_INDICATOR_CLASS:61 * IS_APP_INDICATOR_CLASS:
62 @klass: An #GObjectClass to check62 * @klass: An #GObjectClass to check
6363 *
64 Checks to see if @klass is in the object class hierarchy of #AppIndicatorClass.64 * Checks to see if @klass is in the object class hierarchy of #AppIndicatorClass.
65*/65 */
66/**66/**
67 APP_INDICATOR_GET_CLASS:67 * APP_INDICATOR_GET_CLASS:
68 @obj: A #GObject in the class hierarchy of #AppIndicator.68 * @obj: A #GObject in the class hierarchy of #AppIndicator.
6969 *
70 Gets a pointer to the #AppIndicatorClass for the object @obj.70 * Gets a pointer to the #AppIndicatorClass for the object @obj.
71*/71 */
7272
73#define APP_INDICATOR_TYPE (app_indicator_get_type ())73#define APP_INDICATOR_TYPE (app_indicator_get_type ())
74#define APP_INDICATOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), APP_INDICATOR_TYPE, AppIndicator))74#define APP_INDICATOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), APP_INDICATOR_TYPE, AppIndicator))
@@ -78,40 +78,40 @@
78#define APP_INDICATOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), APP_INDICATOR_TYPE, AppIndicatorClass))78#define APP_INDICATOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), APP_INDICATOR_TYPE, AppIndicatorClass))
7979
80/**80/**
81 APP_INDICATOR_SIGNAL_NEW_ICON:81 * APP_INDICATOR_SIGNAL_NEW_ICON:
8282 *
83 String identifier for the #AppIndicator::new-icon signal.83 * String identifier for the #AppIndicator::new-icon signal.
84*/84 */
85/**85/**
86 APP_INDICATOR_SIGNAL_NEW_ATTENTION_ICON:86 * APP_INDICATOR_SIGNAL_NEW_ATTENTION_ICON:
8787 *
88 String identifier for the #AppIndicator::new-attention-icon signal.88 * String identifier for the #AppIndicator::new-attention-icon signal.
89*/89 */
90/**90/**
91 APP_INDICATOR_SIGNAL_NEW_STATUS:91 * APP_INDICATOR_SIGNAL_NEW_STATUS:
9292 *
93 String identifier for the #AppIndicator::new-status signal.93 * String identifier for the #AppIndicator::new-status signal.
94*/94 */
95/**95/**
96 APP_INDICATOR_SIGNAL_NEW_LABEL:96 * APP_INDICATOR_SIGNAL_NEW_LABEL:
9797 *
98 String identifier for the #AppIndicator::new-label signal.98 * String identifier for the #AppIndicator::new-label signal.
99*/99 */
100/**100/**
101 APP_INDICATOR_SIGNAL_CONNECTION_CHANGED:101 * APP_INDICATOR_SIGNAL_CONNECTION_CHANGED:
102102 *
103 String identifier for the #AppIndicator::connection-changed signal.103 * String identifier for the #AppIndicator::connection-changed signal.
104*/104 */
105/**105/**
106 APP_INDICATOR_SIGNAL_NEW_ICON_THEME_PATH:106 * APP_INDICATOR_SIGNAL_NEW_ICON_THEME_PATH:
107107 *
108 String identifier for the #AppIndicator::new-icon-theme-path signal.108 * String identifier for the #AppIndicator::new-icon-theme-path signal.
109*/109 */
110/**110/**
111 APP_INDICATOR_SIGNAL_SCROLL_EVENT:111 * APP_INDICATOR_SIGNAL_SCROLL_EVENT:
112112 *
113 String identifier for the #AppIndicator::scroll-event signal.113 * String identifier for the #AppIndicator::scroll-event signal.
114*/114 */
115#define APP_INDICATOR_SIGNAL_NEW_ICON "new-icon"115#define APP_INDICATOR_SIGNAL_NEW_ICON "new-icon"
116#define APP_INDICATOR_SIGNAL_NEW_ATTENTION_ICON "new-attention-icon"116#define APP_INDICATOR_SIGNAL_NEW_ATTENTION_ICON "new-attention-icon"
117#define APP_INDICATOR_SIGNAL_NEW_STATUS "new-status"117#define APP_INDICATOR_SIGNAL_NEW_STATUS "new-status"
@@ -121,16 +121,16 @@
121#define APP_INDICATOR_SIGNAL_SCROLL_EVENT "scroll-event"121#define APP_INDICATOR_SIGNAL_SCROLL_EVENT "scroll-event"
122122
123/**123/**
124 AppIndicatorCategory:124 * AppIndicatorCategory:
125 @APP_INDICATOR_CATEGORY_APPLICATION_STATUS: The indicator is used to display the status of the application.125 * @APP_INDICATOR_CATEGORY_APPLICATION_STATUS: The indicator is used to display the status of the application.
126 @APP_INDICATOR_CATEGORY_COMMUNICATIONS: The application is used for communication with other people.126 * @APP_INDICATOR_CATEGORY_COMMUNICATIONS: The application is used for communication with other people.
127 @APP_INDICATOR_CATEGORY_SYSTEM_SERVICES: A system indicator relating to something in the user's system.127 * @APP_INDICATOR_CATEGORY_SYSTEM_SERVICES: A system indicator relating to something in the user's system.
128 @APP_INDICATOR_CATEGORY_HARDWARE: An indicator relating to the user's hardware.128 * @APP_INDICATOR_CATEGORY_HARDWARE: An indicator relating to the user's hardware.
129 @APP_INDICATOR_CATEGORY_OTHER: Something not defined in this enum, please don't use unless you really need it.129 * @APP_INDICATOR_CATEGORY_OTHER: Something not defined in this enum, please don't use unless you really need it.
130130 *
131 The category provides grouping for the indicators so that131 * The category provides grouping for the indicators so that
132 users can find indicators that are similar together.132 * users can find indicators that are similar together.
133*/133 */
134typedef enum { /*< prefix=APP_INDICATOR_CATEGORY >*/134typedef enum { /*< prefix=APP_INDICATOR_CATEGORY >*/
135 APP_INDICATOR_CATEGORY_APPLICATION_STATUS, /*< nick=ApplicationStatus >*/135 APP_INDICATOR_CATEGORY_APPLICATION_STATUS, /*< nick=ApplicationStatus >*/
136 APP_INDICATOR_CATEGORY_COMMUNICATIONS, /*< nick=Communications >*/136 APP_INDICATOR_CATEGORY_COMMUNICATIONS, /*< nick=Communications >*/
@@ -140,16 +140,16 @@
140} AppIndicatorCategory;140} AppIndicatorCategory;
141141
142/**142/**
143 AppIndicatorStatus:143 * AppIndicatorStatus:
144 @APP_INDICATOR_STATUS_PASSIVE: The indicator should not be shown to the user.144 * @APP_INDICATOR_STATUS_PASSIVE: The indicator should not be shown to the user.
145 @APP_INDICATOR_STATUS_ACTIVE: The indicator should be shown in it's default state.145 * @APP_INDICATOR_STATUS_ACTIVE: The indicator should be shown in it's default state.
146 @APP_INDICATOR_STATUS_ATTENTION: The indicator should show it's attention icon.146 * @APP_INDICATOR_STATUS_ATTENTION: The indicator should show it's attention icon.
147147 *
148 These are the states that the indicator can be on in148 * These are the states that the indicator can be on in
149 the user's panel. The indicator by default starts149 * the user's panel. The indicator by default starts
150 in the state @APP_INDICATOR_STATUS_PASSIVE and can be150 * in the state @APP_INDICATOR_STATUS_PASSIVE and can be
151 shown by setting it to @APP_INDICATOR_STATUS_ACTIVE.151 * shown by setting it to @APP_INDICATOR_STATUS_ACTIVE.
152*/152 */
153typedef enum { /*< prefix=APP_INDICATOR_STATUS >*/153typedef enum { /*< prefix=APP_INDICATOR_STATUS >*/
154 APP_INDICATOR_STATUS_PASSIVE, /*< nick=Passive >*/154 APP_INDICATOR_STATUS_PASSIVE, /*< nick=Passive >*/
155 APP_INDICATOR_STATUS_ACTIVE, /*< nick=Active >*/155 APP_INDICATOR_STATUS_ACTIVE, /*< nick=Active >*/
@@ -161,30 +161,30 @@
161typedef struct _AppIndicatorPrivate AppIndicatorPrivate;161typedef struct _AppIndicatorPrivate AppIndicatorPrivate;
162162
163/**163/**
164 AppIndicatorClass:164 * AppIndicatorClass:
165 @parent_class: Mia familia165 * @parent_class: Mia familia
166 @new_icon: Slot for #AppIndicator::new-icon.166 * @new_icon: Slot for #AppIndicator::new-icon.
167 @new_attention_icon: Slot for #AppIndicator::new-attention-icon.167 * @new_attention_icon: Slot for #AppIndicator::new-attention-icon.
168 @new_status: Slot for #AppIndicator::new-status.168 * @new_status: Slot for #AppIndicator::new-status.
169 @new_icon_theme_path: Slot for #AppIndicator::new-icon-theme-path169 * @new_icon_theme_path: Slot for #AppIndicator::new-icon-theme-path
170 @new_label: Slot for #AppIndicator::new-label.170 * @new_label: Slot for #AppIndicator::new-label.
171 @connection_changed: Slot for #AppIndicator::connection-changed.171 * @connection_changed: Slot for #AppIndicator::connection-changed.
172 @scroll_event: Slot for #AppIndicator::scroll-event172 * @scroll_event: Slot for #AppIndicator::scroll-event
173 @app_indicator_reserved_ats: Reserved for future use.173 * @app_indicator_reserved_ats: Reserved for future use.
174 @fallback: Function that gets called to make a #GtkStatusIcon when174 * @fallback: Function that gets called to make a #GtkStatusIcon when
175 there is no Application Indicator area available.175 * there is no Application Indicator area available.
176 @unfallback: The function that gets called if an Application176 * @unfallback: The function that gets called if an Application
177 Indicator area appears after the fallback has been created.177 * Indicator area appears after the fallback has been created.
178 @app_indicator_reserved_1: Reserved for future use.178 * @app_indicator_reserved_1: Reserved for future use.
179 @app_indicator_reserved_2: Reserved for future use.179 * @app_indicator_reserved_2: Reserved for future use.
180 @app_indicator_reserved_3: Reserved for future use.180 * @app_indicator_reserved_3: Reserved for future use.
181 @app_indicator_reserved_4: Reserved for future use.181 * @app_indicator_reserved_4: Reserved for future use.
182 @app_indicator_reserved_5: Reserved for future use.182 * @app_indicator_reserved_5: Reserved for future use.
183 @app_indicator_reserved_6: Reserved for future use.183 * @app_indicator_reserved_6: Reserved for future use.
184184 *
185 The signals and external functions that make up the #AppIndicator185 * The signals and external functions that make up the #AppIndicator
186 class object.186 * class object.
187*/187 */
188struct _AppIndicatorClass {188struct _AppIndicatorClass {
189 /* Parent */189 /* Parent */
190 GObjectClass parent_class;190 GObjectClass parent_class;
@@ -232,19 +232,18 @@
232};232};
233233
234/**234/**
235 AppIndicator:235 * AppIndicator:
236236 *
237 A application indicator represents the values that are needed to show a237 * A application indicator represents the values that are needed to show a
238 unique status in the panel for an application. In general, applications238 * unique status in the panel for an application. In general, applications
239 should try to fit in the other indicators that are available on the239 * should try to fit in the other indicators that are available on the
240 panel before using this. But, sometimes it is necissary.240 * panel before using this. But, sometimes it is necissary.
241*/241 *
242/* Private fields242 * Private fields
243 @parent: Parent object.243 * @parent: Parent object.
244 @priv: Internal data.244 * @priv: Internal data.
245*/245 */
246struct _AppIndicator {246struct _AppIndicator {
247 /*< Private >*/
248 GObject parent;247 GObject parent;
249248
250 /*< Private >*/249 /*< Private >*/
@@ -296,6 +295,7 @@
296const gchar * app_indicator_get_icon_theme_path (AppIndicator *self);295const gchar * app_indicator_get_icon_theme_path (AppIndicator *self);
297const gchar * app_indicator_get_attention_icon (AppIndicator *self);296const gchar * app_indicator_get_attention_icon (AppIndicator *self);
298const gchar * app_indicator_get_attention_icon_desc (AppIndicator *self);297const gchar * app_indicator_get_attention_icon_desc (AppIndicator *self);
298
299GtkMenu * app_indicator_get_menu (AppIndicator *self);299GtkMenu * app_indicator_get_menu (AppIndicator *self);
300const gchar * app_indicator_get_label (AppIndicator *self);300const gchar * app_indicator_get_label (AppIndicator *self);
301const gchar * app_indicator_get_label_guide (AppIndicator *self);301const gchar * app_indicator_get_label_guide (AppIndicator *self);
@@ -310,20 +310,20 @@
310G_END_DECLS310G_END_DECLS
311311
312/**312/**
313 SECTION:app-indicator313 * SECTION:app-indicator
314 @short_description: An object to put application information314 * @short_description: An object to put application information
315 into the panel.315 * into the panel.
316 @stability: Unstable316 * @stability: Unstable
317 @include: libappindicator/app-indicator.h317 * @include: libappindicator/app-indicator.h
318318 *
319 An application indicator is a way for an application to put319 * An application indicator is a way for an application to put
320 a menu into the panel on the user's screen. This allows the320 * a menu into the panel on the user's screen. This allows the
321 user to interact with the application even though it might321 * user to interact with the application even though it might
322 not be visible to the user at the time. In most cases this322 * not be visible to the user at the time. In most cases this
323 is not a good solution as there are other ways to inform the323 * is not a good solution as there are other ways to inform the
324 user. It should only be use if persistence is a desired324 * user. It should only be use if persistence is a desired
325 feature for the user (not for your marketing purpose of325 * feature for the user (not for your marketing purpose of
326 having your logo in the panel).326 * having your logo in the panel).
327*/327 */
328328
329#endif329#endif

Subscribers

People subscribed via source and target branches