aboutsummaryrefslogtreecommitdiff
path: root/libindicator/indicator-ng.c
Commit message (Collapse)AuthorAgeFilesLines
* Use named icons rather than (deprecated) stock items.Colin Watson2013-12-201-1/+1
|
* Allow setting different positions for each profile in indicator filesLars Uebernickel2013-10-291-0/+3
|\ | | | | | | | | | | | | | | The 'Position' key in a profile section has precedence over the global 'Position' key, but otherwise the same semantics. We need this along with lp:~larsu/unity8/per-profile-indicator-positions to enable different positioning on the desktop and phone. Approved by PS Jenkins bot, Charles Kerr.
| * Allow setting per-profile positions in indicator filesLars Uebernickel2013-10-101-0/+3
| | | | | | | | | | | | The 'Position' key in a profile section has precedence over the global 'Position' key, but otherwise the same semantics.
* | indicator-ng: always create entry.label and entry.imageLars Uebernickel2013-10-171-6/+3
| | | | | | | | | | | | | | | | | | | | | | They used to be created lazily when the root menu item changed to include and image or a label. However, there is no way to notify a panel that this happened. Panels connect to notify signals on these widgets when an entry gets added. If the widgets don't exist from the very beginning, the panel won't update when they change.
* | Warn when an indicator doesn't get respawned anymoreLars Uebernickel2013-10-161-1/+5
|/
* Remove debug messageLars Uebernickel2013-09-091-2/+0
|
* Support x-canonical-secondary actionLars Uebernickel2013-09-091-0/+27
| | | | | | | An attribute for the root menu action may contain an action name. If it exists, the action is activated whenever the middle mouse button is pressed on the indicator.
* Support "x-canonical-scroll-action"Lars Uebernickel2013-09-091-5/+32
| | | | | | | An attribute that can be set on the root menu item. If it exists, it must point to an action that is activatable with a int32 parameter. It is activated on scroll events. The parameter signifies magnitude and direction of the scroll.
* Allow indicators to tell the panel where they want to appearLars Uebernickel2013-06-281-0/+35
| | | | | | Only implemented in IndicatorNg right now, which gets that information from the indicator file.
* in indicator_ng_service_started(), the result's variant type should be ↵Charles Kerr2013-06-271-6/+10
| | | | parsed as '(u)' rather than 'u'
* in indicator_ng_update_entry, unconditionally call set_label, set_icon, ↵Charles Kerr2013-06-161-6/+3
| | | | set_accessible. Previously these were only called if the respective fields weren't NULL, which made it impossible to, for example, turn off a label or icon once it had been set.
* indicator-ng: properly fail when keyfile doesn't existLars Uebernickel2013-06-071-1/+1
|
* indicator-ng: fix crashLars Uebernickel2013-05-291-5/+2
|
* IndicatorNg: update indicator file formatLars Uebernickel2013-05-241-12/+50
| | | | | | | | | | | | | | | | | | The old file format had some shortcomings: (1) It was impossible to efficiently reuse a menu for different profiles, because the profile name was implicit in the object path. The only way to do this was to export the same menu twice. Now, object paths have to be set explicitly in the indicator file. (2) The well-known dbus name of a service and the name of its service file were similar but slightly different (com.canonical.indicator.test vs com.canonical.test.indicator), which caused some confusion on when to use which. Now, the file name *is* the bus name, and the `BusName` key has been dropped. The new file format is documented in README.
* refactor indicator_ng_initable_initLars Uebernickel2013-05-241-22/+16
| | | | | This makes the flow a bit more apparent. Also gets rid of a goto.
* Don't free label and accessible_desc.William Hua2013-04-261-5/+2
|
* [ William Hua ]William Hua2013-04-221-13/+26
| | | | | | | | | | | | * debian/control: - Bump GLib to 2.37. * configure.ac: - Bump GLib to 2.37. * libindicator/indicator-image-helper.c: - Support display of GBytesIcons. * libindicator/indicator-ng.c: - Change action state icon type to GVariant.
* indicator-ng: allow a dictionary as the root action's stateLars Uebernickel2013-03-211-11/+20
| | | | | | | | | Hopefully, this is more straightforward to use than (sssb). It's also extensible. (sssb) is still supported for backwards compatibility, but I wouldn't recommend using it anymore.
* Revert: indicator-ng: allow a dictionary as the root action's stateMathieu Trudel-Lapierre2013-03-181-20/+11
|
* indicator-ng: allow a dictionary as the root action's stateLars Uebernickel2013-03-131-11/+20
| | | | | | | | | Hopefully, this is more straightforward to use than (sssb). It's also extensible. (sssb) is still supported for backwards compatibility, but I wouldn't recommend using it anymore.
* indicator-ng: add license headerLars Uebernickel2013-02-141-0/+18
|
* indicator-ng: don't hide the indicator if the service is already runningLars Uebernickel2013-02-061-1/+0
|
* indicator-ng: try to restart the service when it crashesLars Uebernickel2013-02-061-5/+74
| | | | | | | This uses a (slightly) awkward heuristic: when the well-known name vanishes from the session bus, it only restarts the service when it didn't explicitly hide the indicator before.
* indicator-ng: simplify flow in initable_initLars Uebernickel2013-01-301-21/+20
|
* indicator-ng: use strlen instead of hard coding the lengthLars Uebernickel2013-01-251-1/+1
|
* indicator-ng: use indicator_image_helperLars Uebernickel2013-01-251-1/+2
| | | | | | | | gtk_icon_set_from_gicon doesn't scale rectangular icons correctly. This adds indicator_image_helper_update_from_gicon() and makes refresh_image() set a broken image instead of erroring out when an icon couldn't be found.
* indicator-ng: lazily allocate entry.label and entry.imageLars Uebernickel2013-01-251-7/+27
| | | | | Most indicators only need one of those.
* indicator-ng: require header item to have x-canonical-type setLars Uebernickel2013-01-251-15/+38
|
* indicator-ng: check return value of g_menu_model_get_item_attributeLars Uebernickel2013-01-241-3/+5
| | | | | If it returns false, we'd use uninitialized memory.
* indicator-ng: document error conditions in menu_changedLars Uebernickel2013-01-241-0/+4
|
* indicator-ng: save unnecessary allocations by using "&" in g_variant_getLars Uebernickel2013-01-241-8/+4
|
* indicator-ng: show broken image when g_icon_for_string returns NULLLars Uebernickel2013-01-241-17/+18
|
* indicator-ng: use an IndicatorObjectEntry internallyLars Uebernickel2013-01-241-83/+26
| | | | | We needed the entry anyway (that's what indicator_ng_get_entry was for).
* indicator-ng: set name hint to the value of the service file's "Name" fieldLars Uebernickel2013-01-231-8/+23
|
* indicator-ng: use base->get_entries to get the invisible ones, tooLars Uebernickel2013-01-231-1/+1
|
* indicator-ng: auto start service if it's not runningLars Uebernickel2013-01-231-1/+1
|
* indicator-ng: properly unset action group when the service disappearsLars Uebernickel2013-01-221-1/+1
|
* indicator-ng: add gettersLars Uebernickel2013-01-211-0/+16
|
* indicator-ng: add indicator_ng_new_for_profileLars Uebernickel2013-01-211-0/+11
|
* indicator-ng: fix crash (tried to free a string with g_object_unref)Lars Uebernickel2013-01-211-1/+0
|
* indicator-ng: always set an accessible description to avoid imminent warningLars Uebernickel2013-01-211-0/+6
|
* Add IndicatorNgLars Uebernickel2013-01-181-0/+444
IndicatorNg is an indicator object that reads an indicator service file and watches the bus for a corresponding service to appear. It turns the menus and actions exported by the service into an indicator entry.