summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2012-01-10 00:59:16 -0500
committerMatthias Clasen <mclasen@redhat.com>2012-01-10 21:45:30 -0500
commit1c486fb8b83e9a4590e4768d604efd82b68e3e79 (patch)
treece006c249296e82eeeaa6cf53cc8d8665ea81f9c /docs
parentc1f44c0f835fe2a1c0387c9201df9dc8d2eac44d (diff)
downloadgtk+-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.txt1
-rw-r--r--docs/reference/gtk/migrating-smclient-GtkApplication.xml11
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>