diff options
author | Matthias Clasen <mclasen@redhat.com> | 2012-01-10 00:59:16 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2012-01-10 21:45:30 -0500 |
commit | 1c486fb8b83e9a4590e4768d604efd82b68e3e79 (patch) | |
tree | ce006c249296e82eeeaa6cf53cc8d8665ea81f9c /docs | |
parent | c1f44c0f835fe2a1c0387c9201df9dc8d2eac44d (diff) | |
download | gtk+-1c486fb8b83e9a4590e4768d604efd82b68e3e79.tar.gz |
Simplify logout notification api
We don't expose ::quit-requested as API anymore. Instead, we expect
users to register inhibitors when needed. Without quit-requested,
there is no need for ::quit-cancelled and gtk_application_quit_response
anymore.
We still emit ::quit when the application is about to quit.
Diffstat (limited to 'docs')
-rw-r--r-- | docs/reference/gtk/gtk3-sections.txt | 1 | ||||
-rw-r--r-- | docs/reference/gtk/migrating-smclient-GtkApplication.xml | 11 |
2 files changed, 5 insertions, 7 deletions
diff --git a/docs/reference/gtk/gtk3-sections.txt b/docs/reference/gtk/gtk3-sections.txt index 55049f7409..83c134ca5c 100644 --- a/docs/reference/gtk/gtk3-sections.txt +++ b/docs/reference/gtk/gtk3-sections.txt @@ -7009,7 +7009,6 @@ gtk_application_remove_window gtk_application_get_windows <SUBSECTION> -gtk_application_quit_response GtkApplicationInhibitFlags gtk_application_inhibit gtk_application_uninhibit diff --git a/docs/reference/gtk/migrating-smclient-GtkApplication.xml b/docs/reference/gtk/migrating-smclient-GtkApplication.xml index 58cae9a1b8..38bb417d5d 100644 --- a/docs/reference/gtk/migrating-smclient-GtkApplication.xml +++ b/docs/reference/gtk/migrating-smclient-GtkApplication.xml @@ -21,8 +21,7 @@ <para> Starting with GTK+ 3.4, #GtkApplication supports logout notification - and negotiation in the same way as EggSMClient, using the same - basic API: + and negotiation similar to EggSMClient. </para> <table> <tgroup cols="2"> @@ -31,10 +30,10 @@ <row><entry>EggSMClient</entry><entry>GtkApplication</entry></row> </thead> <tbody> - <row><entry>EggSMClient::quit-requested</entry><entry>#GtkApplication::quit-requested</entry></row> - <row><entry>EggSMClient::quit</entry><entry>#GtkApplication::quit</entry></row> - <row><entry>EggSMClient::quit-cancelled</entry><entry>#GtkApplication::quit-cancelled</entry></row> - <row><entry>egg_sm_client_will_quit</entry><entry>gtk_application_quit_response()</entry></row> + <row><entry>EggSMClient::quit-requested</entry><entry>instead of calling will_quit (FALSE,...) in response to this signal, install an inhibitor</entry></row> + <row><entry>EggSMClient::quit</entry><entry>the #GtkApplication::quit signal</entry></row> + <row><entry>EggSMClient::quit-cancelled</entry><entry></entry></row> + <row><entry>egg_sm_client_will_quit</entry><entry>instead of calling will_quit (FALSE,...), install an inhibitor</entry></row> <row><entry>egg_sm_client_end_session</entry><entry>gtk_application_end_session()</entry></row> </tbody> </tgroup> |