diff options
author | Matthias Clasen <mclasen@redhat.com> | 2010-10-31 22:14:53 -0400 |
---|---|---|
committer | Tristan Van Berkom <tristan.van.berkom@gmail.com> | 2010-11-02 12:04:36 +0900 |
commit | 0c8df06f731cf8dc387065b4b45dd60e4a355860 (patch) | |
tree | 6bf24728e8cf05915e0db061a46a7cdf5c71e8c8 /docs/reference/gtk/migrating-GtkApplication.xml | |
parent | 71d6a289fc17ca55cbe1bcd071611919550ff24c (diff) | |
download | gtk+-0c8df06f731cf8dc387065b4b45dd60e4a355860.tar.gz |
Mention actions in the libunique migration guide
Diffstat (limited to 'docs/reference/gtk/migrating-GtkApplication.xml')
-rw-r--r-- | docs/reference/gtk/migrating-GtkApplication.xml | 26 |
1 files changed, 16 insertions, 10 deletions
diff --git a/docs/reference/gtk/migrating-GtkApplication.xml b/docs/reference/gtk/migrating-GtkApplication.xml index 0598456a90..712d521a45 100644 --- a/docs/reference/gtk/migrating-GtkApplication.xml +++ b/docs/reference/gtk/migrating-GtkApplication.xml @@ -106,22 +106,28 @@ main (int argc, char *argv[]) <section><title>Commands and Messages</title> <para> libunique lets you send messages with commands to a running - instance using unique_app_send_message(). GApplication does not - have a direct equivalent for this feature at this time, but - some of the predefined libunique commands have equivalents in - GApplication. Instead of sending the %UNIQUE_ACTIVATE command, - call g_application_activate(), instead of sending the + instance using unique_app_send_message(). The commands can be either + predefined or custom. Some of the predefined libunique commands have + equivalents in GApplication. Instead of sending the %UNIQUE_ACTIVATE + command, call g_application_activate(), instead of sending the %UNIQUE_OPEN command, call g_application_open(). The %UNIQUE_NEW and %UNIQUE_CLOSE and user-defined commands don't have direct replacement at this time. </para> <para> - On the other hand, GApplication supports passing entire - commandlines to the running instance, which reduces the need - for user-defined commands. And GDBus makes it very easy to - implement D-Bus interfaces for communication between - application instances, see e.g. g_dbus_connection_register_object(). + As a replacement for custom commands, GApplication implements the + #GActionGroup interface and lets you add a group of actions with + g_application_set_action_group(). The actions can then be invoked, + either by using the D-Bus interface for #GAction directly, or by + calling g_action_group_activate_action() from another instance of + the GApplication. The #GApplication documentation contains an + example for using GApplication with actions. + </para> + + <para> + For more complex needs, GApplication supports passing entire + commandlines to the running instance. </para> </section> </chapter> |