mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-04 01:31:13 +00:00
GtkWindow: Add gtk_window_has_group()
To check whether the window has an explicit group Fixes https://bugzilla.gnome.org/show_bug.cgi?id=618271
This commit is contained in:
parent
6c7dc26935
commit
4acc2716cb
@ -5313,6 +5313,7 @@ gtk_window_group_get_type G_GNUC_CONST
|
||||
gtk_window_group_new
|
||||
gtk_window_group_remove_window
|
||||
gtk_window_group_list_windows
|
||||
gtk_window_has_group
|
||||
gtk_window_has_toplevel_focus
|
||||
gtk_window_iconify
|
||||
gtk_window_is_active
|
||||
|
@ -7743,6 +7743,24 @@ gtk_window_get_group (GtkWindow *window)
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* gtk_window_has_group:
|
||||
* @window: a #GtkWindow
|
||||
*
|
||||
* Returns whether @window has an explicit window group.
|
||||
*
|
||||
* Return value: %TRUE if @window has an explicit window group.
|
||||
*
|
||||
* Since 2.22
|
||||
**/
|
||||
gboolean
|
||||
gtk_window_has_group (GtkWindow *window)
|
||||
{
|
||||
g_return_val_if_fail (GTK_IS_WINDOW (window), FALSE);
|
||||
|
||||
return window->group != NULL;
|
||||
}
|
||||
|
||||
/* Return the current grab widget of the given group
|
||||
*/
|
||||
GtkWidget *
|
||||
|
@ -384,6 +384,7 @@ void gtk_window_get_position (GtkWindow *window,
|
||||
gboolean gtk_window_parse_geometry (GtkWindow *window,
|
||||
const gchar *geometry);
|
||||
GtkWindowGroup *gtk_window_get_group (GtkWindow *window);
|
||||
gboolean gtk_window_has_group (GtkWindow *window);
|
||||
|
||||
/* Ignore this unless you are writing a GUI builder */
|
||||
void gtk_window_reshow_with_initial_size (GtkWindow *window);
|
||||
|
Loading…
Reference in New Issue
Block a user