aboutsummaryrefslogtreecommitdiff
path: root/libmessaging-menu/messaging-menu.c
Commit message (Collapse)AuthorAgeFilesLines
* Unexport actions/menus on disposeJason Conti2012-10-101-15/+34
|
* Fixed typo in docstringKen VanDine2012-10-091-1/+1
|
* libmessaging-menu: don't crash when getting an invalid desktop idLars Uebernickel2012-10-011-3/+14
| | | | | | Instead, silently don't export menus and actions. The single warning about the desktop id being invalid should be enough.
* Set the global chat status more intelligentlyLars Uebernickel2012-09-181-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | Up until now, the global chat status was set every time an application called _set_status. Thus, global status really meant "status of the app that last changed the status". Now, the service remembers the chat status for each application and sets the global status as a combination of all of application statuses. If applications have different statuses, the menu items are shown in an inconsistent state. This is implemented in IdoMenuItem by making it accept state as an array of strings in addition to a single string. It is drawn inconsistent if the state contains the menu item's target value in addition to other values. When the global status is changed through the messaging menu, the service doesn't update the action immediately anymore. Instead, it notifies all applications about the change via the "status-changed" signal. Applications must call _set_state to acknowledge that they have indeed changed their state. This is consistent with libmessaging-menu's documentation and design. Also, the SetStatus D-Bus call was missing a "desktop-id" parameter to tell the menu which application changed status. Changing this doesn't break existing apps, as the D-Bus interface is considered private to indicator-messages.
* libmessaging-menu: don't set app->status when global status changesLars Uebernickel2012-09-181-2/+1
| | | | | | | | | The application's status only changes when it calls _set_status, so it's wrong to set the internal status when the global status changes. This shouldn't be a problem in practice, as app->status is not accessible from the API.
* libmessaging-menu: don't call SetStatus(OFFLINE) for all appsLars Uebernickel2012-09-181-2/+5
| | | | | | | | Only notify the service about status if the application has actually called messaging_menu_app_set_status. This saves a d-bus call per non-chat application and - more importantly - doesn't make the messaging menu go into "unknown status" mode when one application is reporting 'online' status.
* libmessaging-menu: fix shortcut action documentationLars Uebernickel2012-09-041-4/+5
|
* libmessaging-menu: add convenience docLars Uebernickel2012-09-021-3/+6
| | | | | | | The most common case when inserting a timed source is to insert a source with the current time. Emphasize this in the documentation by linking to the convenience methods from the _with_time variants.
* libmessaging-menu: document that @time is expressed in microsecondsLars Uebernickel2012-09-021-3/+3
|
* libmessaging-menu: add @include hint to documentationLars Uebernickel2012-09-021-0/+1
|
* libmessaging-menu: allow using multiple MessagingMenuAppsLars Uebernickel2012-08-311-48/+73
| | | | | | | The dbus path was set to /com/canonical/indicator/messages for all MessagingMenuApps that a process created. This patch adds the desktop id into the path.
* libmessaging-menu: allow changing label and icon of sourcesLars Uebernickel2012-08-311-0/+101
|
* libmessaging-menu: make real links out of urls in the documentationLars Uebernickel2012-08-291-7/+7
|
* Fix gtk-doc warningsLars Uebernickel2012-08-291-1/+1
|
* Add gtk-doc supportLars Uebernickel2012-08-291-1/+1
|
* libmessaging-menu: add documentationLars Uebernickel2012-08-291-12/+120
| | | | | | Adds an overview description of the messaging menu and documentation for enums, properties, and signals.
* Don't use '&' in variant format strings of g_menu_item_* callsLars Uebernickel2012-08-241-6/+10
|
* libmessaging-menu: fix g-ir-scanner warningsLars Uebernickel2012-08-231-4/+2
| | | | | | Also, enable warnings by default and only include messaging-menu.[ch] in the gir.
* libmessaging-menu: re-register with the service if it restartedLars Uebernickel2012-08-231-1/+41
|
* libmessaging-menu: don't warn when removing a non-existant sourceLars Uebernickel2012-08-231-3/+0
|
* libmessaging-menu: remove sources when they are activatedLars Uebernickel2012-08-231-0/+2
| | | | | | | Applications shouldn't leave message sources that the user clicked on in the messaging menu. This patch spares apps from having to call remove_source in all of their handlers.
* libmessaging-menu: annotate icon parameters with allow-noneLars Uebernickel2012-08-231-7/+7
|
* libmessaging-menu: warn when desktop_id is NULL (instead of crashing)Lars Uebernickel2012-08-231-6/+16
|
* Show icons in application and source menu itemsLars Uebernickel2012-08-211-3/+3
| | | | | | | Everthing goes through GIcon now, using g_icon_{to,new_for}_string to set a string attribute on the menu item. The attribute is prefixed x-canonical- for now.
* Use a custom menu item for message source menu itemsLars Uebernickel2012-08-211-0/+1
|
* libmessaging-menu: use the (newly added) GTupleAction instead of GSimpleActionLars Uebernickel2012-06-281-44/+27
| | | | | | | | | | GTupleAction is a bit simpler to handle when the action state contains a tuple of things that are independently modified most the time. It might be useful for other indicators as well. This implicitly also fixes the bug that libmessaging-menu did not preserve the other values in the action state when updating count, time, or string.
* Sync chat status from and to clientsLars Uebernickel2012-06-271-1/+73
|
* Add draws-attention flag to source actionsLars Uebernickel2012-06-271-8/+37
| | | | | | AppSections watch those flags for associated sources and mux them into a draws-attention property for the whole section.
* libmessaging-menu: add source name detail to "active-source" signalLars Uebernickel2012-06-151-3/+5
|
* Check parameter types in public APILars Uebernickel2012-06-151-0/+4
|
* Add first version of a libmessaging-menu client libraryLars Uebernickel2012-06-151-0/+746