|  |  |  | GTK+ Reference Manual |  | 
|---|---|---|---|---|
| Top | Description | Object Hierarchy | ||||
#include <gtk/gtk.h>
                    GtkWindowGroup;
GtkWindowGroup *    gtk_window_group_new                (void);
void                gtk_window_group_add_window         (GtkWindowGroup *window_group,
                                                         GtkWindow *window);
void                gtk_window_group_remove_window      (GtkWindowGroup *window_group,
                                                         GtkWindow *window);
GList *             gtk_window_group_list_windows       (GtkWindowGroup *window_group);
GtkWidget *         gtk_window_group_get_current_grab   (GtkWindowGroup *window_group);
GtkWidget *         gtk_window_group_get_current_device_grab
                                                        (GtkWindowGroup *window_group,
                                                         GdkDevice *device);
GtkWindowGroup *    gtk_window_group_new                (void);
Creates a new GtkWindowGroup object. Grabs added with
gtk_grab_add() only affect windows within the same GtkWindowGroup.
| Returns : | a new GtkWindowGroup. | 
void gtk_window_group_add_window (GtkWindowGroup *window_group,GtkWindow *window);
Adds a window to a GtkWindowGroup.
| 
 | a GtkWindowGroup | 
| 
 | the GtkWindow to add | 
void gtk_window_group_remove_window (GtkWindowGroup *window_group,GtkWindow *window);
Removes a window from a GtkWindowGroup.
| 
 | a GtkWindowGroup | 
| 
 | the GtkWindow to remove | 
GList *             gtk_window_group_list_windows       (GtkWindowGroup *window_group);
Returns a list of the GtkWindows that belong to window_group.
| 
 | a GtkWindowGroup | 
| Returns : | A newly-allocated list of windows inside the group. [element-type GtkWidget][transfer container GtkWidget] | 
Since 2.14
GtkWidget *         gtk_window_group_get_current_grab   (GtkWindowGroup *window_group);
Gets the current grab widget of the given group,
see gtk_grab_add().
| 
 | a GtkWindowGroup | 
| Returns : | the current grab widget of the group | 
Since 2.22
GtkWidget * gtk_window_group_get_current_device_grab (GtkWindowGroup *window_group,GdkDevice *device);
Returns the current grab widget for device, or NULL if none.
| 
 | a GtkWindowGroup | 
| 
 | a GdkDevice | 
| Returns : | The grab widget, or NULL | 
Since 3.0