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.
This commit is contained in:
Matthias Clasen
2012-01-10 00:59:16 -05:00
parent c1f44c0f83
commit 1c486fb8b8
6 changed files with 106 additions and 249 deletions

View File

@ -59,8 +59,6 @@ struct _GtkApplicationClass
void (*window_removed) (GtkApplication *application,
GtkWindow *window);
void (*quit_requested) (GtkApplication *application);
void (*quit_cancelled) (GtkApplication *application);
void (*quit) (GtkApplication *application);
/*< private >*/
@ -95,10 +93,6 @@ void gtk_application_remove_accelerator (GtkApplication *application
const gchar *action_name,
GVariant *parameter);
void gtk_application_quit_response (GtkApplication *application,
gboolean will_quit,
const gchar *reason);
typedef enum
{
GTK_APPLICATION_INHIBIT_LOGOUT = (1 << 0),