mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-14 06:10:21 +00:00
parent
34e8bd9dba
commit
9125ccb1cb
@ -265,6 +265,7 @@ gtk_application_new
|
|||||||
gtk_application_set_action_group
|
gtk_application_set_action_group
|
||||||
gtk_application_create_window
|
gtk_application_create_window
|
||||||
gtk_application_get_window
|
gtk_application_get_window
|
||||||
|
gtk_application_get_windows
|
||||||
gtk_application_add_window
|
gtk_application_add_window
|
||||||
gtk_application_run
|
gtk_application_run
|
||||||
gtk_application_quit
|
gtk_application_quit
|
||||||
|
@ -445,6 +445,28 @@ gtk_application_get_window (GtkApplication *app)
|
|||||||
return gtk_application_create_window (app);
|
return gtk_application_create_window (app);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* gtk_application_get_windows:
|
||||||
|
* @app: a #GtkApplication
|
||||||
|
*
|
||||||
|
* Retrieves the list of windows previously registered with
|
||||||
|
* gtk_application_create_window() or gtk_application_add_window().
|
||||||
|
*
|
||||||
|
* Return value: (element-type GtkWindow) (transfer none): A pointer
|
||||||
|
* to the list of #GtkWindow<!-- -->s registered by this application,
|
||||||
|
* or %NULL. The returned #GSList is owned by the #GtkApplication
|
||||||
|
* and it should not be modified or freed directly.
|
||||||
|
*
|
||||||
|
* Since: 3.0
|
||||||
|
*/
|
||||||
|
G_CONST_RETURN GSList *
|
||||||
|
gtk_application_get_windows (GtkApplication *app)
|
||||||
|
{
|
||||||
|
g_return_val_if_fail (GTK_IS_APPLICATION (app), NULL);
|
||||||
|
|
||||||
|
return app->priv->windows;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* gtk_application_create_window:
|
* gtk_application_create_window:
|
||||||
* @app: a #GtkApplication
|
* @app: a #GtkApplication
|
||||||
|
@ -95,6 +95,7 @@ void gtk_application_set_action_group (GtkApplication *app,
|
|||||||
GtkActionGroup *group);
|
GtkActionGroup *group);
|
||||||
GtkWindow * gtk_application_create_window (GtkApplication *app);
|
GtkWindow * gtk_application_create_window (GtkApplication *app);
|
||||||
GtkWindow * gtk_application_get_window (GtkApplication *app);
|
GtkWindow * gtk_application_get_window (GtkApplication *app);
|
||||||
|
G_CONST_RETURN GSList * gtk_application_get_windows (GtkApplication *app);
|
||||||
void gtk_application_add_window (GtkApplication *app,
|
void gtk_application_add_window (GtkApplication *app,
|
||||||
GtkWindow *window);
|
GtkWindow *window);
|
||||||
void gtk_application_run (GtkApplication *app);
|
void gtk_application_run (GtkApplication *app);
|
||||||
|
Loading…
Reference in New Issue
Block a user