<?xml version="1.0"?>
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
<!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
<!ENTITY version SYSTEM "version.xml">
]>
<!--ENTITY index-Objects-Grouped SYSTEM "objects_grouped.sgml"-->
<refentry id="GtkWindowGroup">
<refmeta>
<refentrytitle role="top_of_page" id="GtkWindowGroup.top_of_page">GtkWindowGroup</refentrytitle>
<manvolnum>3</manvolnum>
<refmiscinfo>GTK Library</refmiscinfo>
</refmeta>

<refnamediv>
<refname>GtkWindowGroup</refname>
<refpurpose>Limit the effect of grabs</refpurpose>
</refnamediv>

<refsynopsisdiv id="GtkWindowGroup.synopsis" role="synopsis">
<title role="synopsis.title">Synopsis</title>

<synopsis>

#include &lt;gtk/gtk.h&gt;

                    <link linkend="GtkWindowGroup-struct">GtkWindowGroup</link>;
<link linkend="GtkWindowGroup">GtkWindowGroup</link> *    <link linkend="gtk-window-group-new">gtk_window_group_new</link>                (void);
<link linkend="void">void</link>                <link linkend="gtk-window-group-add-window">gtk_window_group_add_window</link>         (<link linkend="GtkWindowGroup">GtkWindowGroup</link> *window_group,
                                                         <link linkend="GtkWindow">GtkWindow</link> *window);
<link linkend="void">void</link>                <link linkend="gtk-window-group-remove-window">gtk_window_group_remove_window</link>      (<link linkend="GtkWindowGroup">GtkWindowGroup</link> *window_group,
                                                         <link linkend="GtkWindow">GtkWindow</link> *window);
<link linkend="GList">GList</link> *             <link linkend="gtk-window-group-list-windows">gtk_window_group_list_windows</link>       (<link linkend="GtkWindowGroup">GtkWindowGroup</link> *window_group);
</synopsis>
</refsynopsisdiv>

<refsect1 id="GtkWindowGroup.object-hierarchy" role="object_hierarchy">
<title role="object_hierarchy.title">Object Hierarchy</title>
<synopsis>
  <link linkend="GObject">GObject</link>
   +----GtkWindowGroup
</synopsis>
</refsect1>








<refsect1 id="GtkWindowGroup.description" role="desc">
<title role="desc.title">Description</title>
<para>
</para>
</refsect1>

<refsect1 id="GtkWindowGroup.details" role="details">
<title role="details.title">Details</title>
<refsect2 id="GtkWindowGroup-struct" role="struct">
<title>GtkWindowGroup</title>
<indexterm zone="GtkWindowGroup-struct"><primary sortas="WindowGroup">GtkWindowGroup</primary></indexterm><programlisting>typedef struct _GtkWindowGroup GtkWindowGroup;</programlisting>
<para>
</para></refsect2>
<refsect2 id="gtk-window-group-new" role="function">
<title>gtk_window_group_new ()</title>
<indexterm zone="gtk-window-group-new"><primary sortas="window_group_new">gtk_window_group_new</primary></indexterm><programlisting><link linkend="GtkWindowGroup">GtkWindowGroup</link> *    gtk_window_group_new                (void);</programlisting>
<para>
Creates a new <link linkend="GtkWindowGroup"><type>GtkWindowGroup</type></link> object. Grabs added with
<link linkend="gtk-grab-add"><function>gtk_grab_add()</function></link> only affect windows within the same <link linkend="GtkWindowGroup"><type>GtkWindowGroup</type></link>.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara> a new <link linkend="GtkWindowGroup"><type>GtkWindowGroup</type></link>. 
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="gtk-window-group-add-window" role="function">
<title>gtk_window_group_add_window ()</title>
<indexterm zone="gtk-window-group-add-window"><primary sortas="window_group_add_window">gtk_window_group_add_window</primary></indexterm><programlisting><link linkend="void">void</link>                gtk_window_group_add_window         (<link linkend="GtkWindowGroup">GtkWindowGroup</link> *window_group,
                                                         <link linkend="GtkWindow">GtkWindow</link> *window);</programlisting>
<para>
Adds a window to a <link linkend="GtkWindowGroup"><type>GtkWindowGroup</type></link>.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>window_group</parameter>&#160;:</term>
<listitem><simpara> a <link linkend="GtkWindowGroup"><type>GtkWindowGroup</type></link>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>window</parameter>&#160;:</term>
<listitem><simpara> the <link linkend="GtkWindow"><type>GtkWindow</type></link> to add
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="gtk-window-group-remove-window" role="function">
<title>gtk_window_group_remove_window ()</title>
<indexterm zone="gtk-window-group-remove-window"><primary sortas="window_group_remove_window">gtk_window_group_remove_window</primary></indexterm><programlisting><link linkend="void">void</link>                gtk_window_group_remove_window      (<link linkend="GtkWindowGroup">GtkWindowGroup</link> *window_group,
                                                         <link linkend="GtkWindow">GtkWindow</link> *window);</programlisting>
<para>
Removes a window from a <link linkend="GtkWindowGroup"><type>GtkWindowGroup</type></link>.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>window_group</parameter>&#160;:</term>
<listitem><simpara> a <link linkend="GtkWindowGroup"><type>GtkWindowGroup</type></link>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>window</parameter>&#160;:</term>
<listitem><simpara> the <link linkend="GtkWindow"><type>GtkWindow</type></link> to remove
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="gtk-window-group-list-windows" role="function" condition="since:2.14">
<title>gtk_window_group_list_windows ()</title>
<indexterm zone="gtk-window-group-list-windows" role="2.14"><primary sortas="window_group_list_windows">gtk_window_group_list_windows</primary></indexterm><programlisting><link linkend="GList">GList</link> *             gtk_window_group_list_windows       (<link linkend="GtkWindowGroup">GtkWindowGroup</link> *window_group);</programlisting>
<para>
Returns a list of the <link linkend="GtkWindows"><type>GtkWindows</type></link> that belong to <parameter>window_group</parameter>.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>window_group</parameter>&#160;:</term>
<listitem><simpara> a <link linkend="GtkWindowGroup"><type>GtkWindowGroup</type></link>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara> A newly-allocated list of windows inside the group.

</simpara></listitem></varlistentry>
</variablelist><para role="since">Since 2.14</para></refsect2>

</refsect1>




</refentry>
