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:
@ -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),
|
||||
|
||||
Reference in New Issue
Block a user