<?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="GtkWindow">
<refmeta>
<refentrytitle role="top_of_page" id="GtkWindow.top_of_page">GtkWindow</refentrytitle>
<manvolnum>3</manvolnum>
<refmiscinfo>GTK Library</refmiscinfo>
</refmeta>

<refnamediv>
<refname>GtkWindow</refname>
<refpurpose>Toplevel which can contain other widgets</refpurpose>
</refnamediv>

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

<synopsis>

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

                    <link linkend="GtkWindow-struct">GtkWindow</link>;
<link linkend="GtkWidget">GtkWidget</link>*          <link linkend="gtk-window-new">gtk_window_new</link>                      (<link linkend="GtkWindowType">GtkWindowType</link> type);
<link linkend="void">void</link>                <link linkend="gtk-window-set-title">gtk_window_set_title</link>                (<link linkend="GtkWindow">GtkWindow</link> *window,
                                                         const <link linkend="gchar">gchar</link> *title);
<link linkend="void">void</link>                <link linkend="gtk-window-set-wmclass">gtk_window_set_wmclass</link>              (<link linkend="GtkWindow">GtkWindow</link> *window,
                                                         const <link linkend="gchar">gchar</link> *wmclass_name,
                                                         const <link linkend="gchar">gchar</link> *wmclass_class);
<link linkend="void">void</link>                <link linkend="gtk-window-set-policy">gtk_window_set_policy</link>               (<link linkend="GtkWindow">GtkWindow</link> *window,
                                                         <link linkend="gint">gint</link> allow_shrink,
                                                         <link linkend="gint">gint</link> allow_grow,
                                                         <link linkend="gint">gint</link> auto_shrink);
<link linkend="void">void</link>                <link linkend="gtk-window-set-resizable">gtk_window_set_resizable</link>            (<link linkend="GtkWindow">GtkWindow</link> *window,
                                                         <link linkend="gboolean">gboolean</link> resizable);
<link linkend="gboolean">gboolean</link>            <link linkend="gtk-window-get-resizable">gtk_window_get_resizable</link>            (<link linkend="GtkWindow">GtkWindow</link> *window);
<link linkend="void">void</link>                <link linkend="gtk-window-add-accel-group">gtk_window_add_accel_group</link>          (<link linkend="GtkWindow">GtkWindow</link> *window,
                                                         <link linkend="GtkAccelGroup">GtkAccelGroup</link> *accel_group);
<link linkend="void">void</link>                <link linkend="gtk-window-remove-accel-group">gtk_window_remove_accel_group</link>       (<link linkend="GtkWindow">GtkWindow</link> *window,
                                                         <link linkend="GtkAccelGroup">GtkAccelGroup</link> *accel_group);
#define             <link linkend="gtk-window-position">gtk_window_position</link>
<link linkend="gboolean">gboolean</link>            <link linkend="gtk-window-activate-focus">gtk_window_activate_focus</link>           (<link linkend="GtkWindow">GtkWindow</link> *window);
<link linkend="gboolean">gboolean</link>            <link linkend="gtk-window-activate-default">gtk_window_activate_default</link>         (<link linkend="GtkWindow">GtkWindow</link> *window);
<link linkend="void">void</link>                <link linkend="gtk-window-set-modal">gtk_window_set_modal</link>                (<link linkend="GtkWindow">GtkWindow</link> *window,
                                                         <link linkend="gboolean">gboolean</link> modal);
<link linkend="void">void</link>                <link linkend="gtk-window-set-default-size">gtk_window_set_default_size</link>         (<link linkend="GtkWindow">GtkWindow</link> *window,
                                                         <link linkend="gint">gint</link> width,
                                                         <link linkend="gint">gint</link> height);
<link linkend="void">void</link>                <link linkend="gtk-window-set-geometry-hints">gtk_window_set_geometry_hints</link>       (<link linkend="GtkWindow">GtkWindow</link> *window,
                                                         <link linkend="GtkWidget">GtkWidget</link> *geometry_widget,
                                                         <link linkend="GdkGeometry">GdkGeometry</link> *geometry,
                                                         <link linkend="GdkWindowHints">GdkWindowHints</link> geom_mask);
<link linkend="void">void</link>                <link linkend="gtk-window-set-gravity">gtk_window_set_gravity</link>              (<link linkend="GtkWindow">GtkWindow</link> *window,
                                                         <link linkend="GdkGravity">GdkGravity</link> gravity);
<link linkend="GdkGravity">GdkGravity</link>          <link linkend="gtk-window-get-gravity">gtk_window_get_gravity</link>              (<link linkend="GtkWindow">GtkWindow</link> *window);
<link linkend="void">void</link>                <link linkend="gtk-window-set-position">gtk_window_set_position</link>             (<link linkend="GtkWindow">GtkWindow</link> *window,
                                                         <link linkend="GtkWindowPosition">GtkWindowPosition</link> position);
<link linkend="void">void</link>                <link linkend="gtk-window-set-transient-for">gtk_window_set_transient_for</link>        (<link linkend="GtkWindow">GtkWindow</link> *window,
                                                         <link linkend="GtkWindow">GtkWindow</link> *parent);
<link linkend="void">void</link>                <link linkend="gtk-window-set-destroy-with-parent">gtk_window_set_destroy_with_parent</link>  (<link linkend="GtkWindow">GtkWindow</link> *window,
                                                         <link linkend="gboolean">gboolean</link> setting);
<link linkend="void">void</link>                <link linkend="gtk-window-set-screen">gtk_window_set_screen</link>               (<link linkend="GtkWindow">GtkWindow</link> *window,
                                                         <link linkend="GdkScreen">GdkScreen</link> *screen);
<link linkend="GdkScreen">GdkScreen</link>*          <link linkend="gtk-window-get-screen">gtk_window_get_screen</link>               (<link linkend="GtkWindow">GtkWindow</link> *window);
<link linkend="gboolean">gboolean</link>            <link linkend="gtk-window-is-active">gtk_window_is_active</link>                (<link linkend="GtkWindow">GtkWindow</link> *window);
<link linkend="gboolean">gboolean</link>            <link linkend="gtk-window-has-toplevel-focus">gtk_window_has_toplevel_focus</link>       (<link linkend="GtkWindow">GtkWindow</link> *window);
<link linkend="GList">GList</link>*              <link linkend="gtk-window-list-toplevels">gtk_window_list_toplevels</link>           (void);
<link linkend="void">void</link>                <link linkend="gtk-window-add-mnemonic">gtk_window_add_mnemonic</link>             (<link linkend="GtkWindow">GtkWindow</link> *window,
                                                         <link linkend="guint">guint</link> keyval,
                                                         <link linkend="GtkWidget">GtkWidget</link> *target);
<link linkend="void">void</link>                <link linkend="gtk-window-remove-mnemonic">gtk_window_remove_mnemonic</link>          (<link linkend="GtkWindow">GtkWindow</link> *window,
                                                         <link linkend="guint">guint</link> keyval,
                                                         <link linkend="GtkWidget">GtkWidget</link> *target);
<link linkend="gboolean">gboolean</link>            <link linkend="gtk-window-mnemonic-activate">gtk_window_mnemonic_activate</link>        (<link linkend="GtkWindow">GtkWindow</link> *window,
                                                         <link linkend="guint">guint</link> keyval,
                                                         <link linkend="GdkModifierType">GdkModifierType</link> modifier);
<link linkend="gboolean">gboolean</link>            <link linkend="gtk-window-activate-key">gtk_window_activate_key</link>             (<link linkend="GtkWindow">GtkWindow</link> *window,
                                                         <link linkend="GdkEventKey">GdkEventKey</link> *event);
<link linkend="gboolean">gboolean</link>            <link linkend="gtk-window-propagate-key-event">gtk_window_propagate_key_event</link>      (<link linkend="GtkWindow">GtkWindow</link> *window,
                                                         <link linkend="GdkEventKey">GdkEventKey</link> *event);
<link linkend="GtkWidget">GtkWidget</link> *         <link linkend="gtk-window-get-focus">gtk_window_get_focus</link>                (<link linkend="GtkWindow">GtkWindow</link> *window);
<link linkend="void">void</link>                <link linkend="gtk-window-set-focus">gtk_window_set_focus</link>                (<link linkend="GtkWindow">GtkWindow</link> *window,
                                                         <link linkend="GtkWidget">GtkWidget</link> *focus);
<link linkend="GtkWidget">GtkWidget</link> *         <link linkend="gtk-window-get-default-widget">gtk_window_get_default_widget</link>       (<link linkend="GtkWindow">GtkWindow</link> *window);
<link linkend="void">void</link>                <link linkend="gtk-window-set-default">gtk_window_set_default</link>              (<link linkend="GtkWindow">GtkWindow</link> *window,
                                                         <link linkend="GtkWidget">GtkWidget</link> *default_widget);
<link linkend="void">void</link>                <link linkend="gtk-window-present">gtk_window_present</link>                  (<link linkend="GtkWindow">GtkWindow</link> *window);
<link linkend="void">void</link>                <link linkend="gtk-window-present-with-time">gtk_window_present_with_time</link>        (<link linkend="GtkWindow">GtkWindow</link> *window,
                                                         <link linkend="guint32">guint32</link> timestamp);
<link linkend="void">void</link>                <link linkend="gtk-window-iconify">gtk_window_iconify</link>                  (<link linkend="GtkWindow">GtkWindow</link> *window);
<link linkend="void">void</link>                <link linkend="gtk-window-deiconify">gtk_window_deiconify</link>                (<link linkend="GtkWindow">GtkWindow</link> *window);
<link linkend="void">void</link>                <link linkend="gtk-window-stick">gtk_window_stick</link>                    (<link linkend="GtkWindow">GtkWindow</link> *window);
<link linkend="void">void</link>                <link linkend="gtk-window-unstick">gtk_window_unstick</link>                  (<link linkend="GtkWindow">GtkWindow</link> *window);
<link linkend="void">void</link>                <link linkend="gtk-window-maximize">gtk_window_maximize</link>                 (<link linkend="GtkWindow">GtkWindow</link> *window);
<link linkend="void">void</link>                <link linkend="gtk-window-unmaximize">gtk_window_unmaximize</link>               (<link linkend="GtkWindow">GtkWindow</link> *window);
<link linkend="void">void</link>                <link linkend="gtk-window-fullscreen">gtk_window_fullscreen</link>               (<link linkend="GtkWindow">GtkWindow</link> *window);
<link linkend="void">void</link>                <link linkend="gtk-window-unfullscreen">gtk_window_unfullscreen</link>             (<link linkend="GtkWindow">GtkWindow</link> *window);
<link linkend="void">void</link>                <link linkend="gtk-window-set-keep-above">gtk_window_set_keep_above</link>           (<link linkend="GtkWindow">GtkWindow</link> *window,
                                                         <link linkend="gboolean">gboolean</link> setting);
<link linkend="void">void</link>                <link linkend="gtk-window-set-keep-below">gtk_window_set_keep_below</link>           (<link linkend="GtkWindow">GtkWindow</link> *window,
                                                         <link linkend="gboolean">gboolean</link> setting);
<link linkend="void">void</link>                <link linkend="gtk-window-begin-resize-drag">gtk_window_begin_resize_drag</link>        (<link linkend="GtkWindow">GtkWindow</link> *window,
                                                         <link linkend="GdkWindowEdge">GdkWindowEdge</link> edge,
                                                         <link linkend="gint">gint</link> button,
                                                         <link linkend="gint">gint</link> root_x,
                                                         <link linkend="gint">gint</link> root_y,
                                                         <link linkend="guint32">guint32</link> timestamp);
<link linkend="void">void</link>                <link linkend="gtk-window-begin-move-drag">gtk_window_begin_move_drag</link>          (<link linkend="GtkWindow">GtkWindow</link> *window,
                                                         <link linkend="gint">gint</link> button,
                                                         <link linkend="gint">gint</link> root_x,
                                                         <link linkend="gint">gint</link> root_y,
                                                         <link linkend="guint32">guint32</link> timestamp);
<link linkend="void">void</link>                <link linkend="gtk-window-set-decorated">gtk_window_set_decorated</link>            (<link linkend="GtkWindow">GtkWindow</link> *window,
                                                         <link linkend="gboolean">gboolean</link> setting);
<link linkend="void">void</link>                <link linkend="gtk-window-set-deletable">gtk_window_set_deletable</link>            (<link linkend="GtkWindow">GtkWindow</link> *window,
                                                         <link linkend="gboolean">gboolean</link> setting);
<link linkend="void">void</link>                <link linkend="gtk-window-set-frame-dimensions">gtk_window_set_frame_dimensions</link>     (<link linkend="GtkWindow">GtkWindow</link> *window,
                                                         <link linkend="gint">gint</link> left,
                                                         <link linkend="gint">gint</link> top,
                                                         <link linkend="gint">gint</link> right,
                                                         <link linkend="gint">gint</link> bottom);
<link linkend="void">void</link>                <link linkend="gtk-window-set-has-frame">gtk_window_set_has_frame</link>            (<link linkend="GtkWindow">GtkWindow</link> *window,
                                                         <link linkend="gboolean">gboolean</link> setting);
<link linkend="void">void</link>                <link linkend="gtk-window-set-mnemonic-modifier">gtk_window_set_mnemonic_modifier</link>    (<link linkend="GtkWindow">GtkWindow</link> *window,
                                                         <link linkend="GdkModifierType">GdkModifierType</link> modifier);
<link linkend="void">void</link>                <link linkend="gtk-window-set-type-hint">gtk_window_set_type_hint</link>            (<link linkend="GtkWindow">GtkWindow</link> *window,
                                                         <link linkend="GdkWindowTypeHint">GdkWindowTypeHint</link> hint);
<link linkend="void">void</link>                <link linkend="gtk-window-set-skip-taskbar-hint">gtk_window_set_skip_taskbar_hint</link>    (<link linkend="GtkWindow">GtkWindow</link> *window,
                                                         <link linkend="gboolean">gboolean</link> setting);
<link linkend="void">void</link>                <link linkend="gtk-window-set-skip-pager-hint">gtk_window_set_skip_pager_hint</link>      (<link linkend="GtkWindow">GtkWindow</link> *window,
                                                         <link linkend="gboolean">gboolean</link> setting);
<link linkend="void">void</link>                <link linkend="gtk-window-set-urgency-hint">gtk_window_set_urgency_hint</link>         (<link linkend="GtkWindow">GtkWindow</link> *window,
                                                         <link linkend="gboolean">gboolean</link> setting);
<link linkend="void">void</link>                <link linkend="gtk-window-set-accept-focus">gtk_window_set_accept_focus</link>         (<link linkend="GtkWindow">GtkWindow</link> *window,
                                                         <link linkend="gboolean">gboolean</link> setting);
<link linkend="void">void</link>                <link linkend="gtk-window-set-focus-on-map">gtk_window_set_focus_on_map</link>         (<link linkend="GtkWindow">GtkWindow</link> *window,
                                                         <link linkend="gboolean">gboolean</link> setting);
<link linkend="void">void</link>                <link linkend="gtk-window-set-startup-id">gtk_window_set_startup_id</link>           (<link linkend="GtkWindow">GtkWindow</link> *window,
                                                         const <link linkend="gchar">gchar</link> *startup_id);
<link linkend="void">void</link>                <link linkend="gtk-window-set-role">gtk_window_set_role</link>                 (<link linkend="GtkWindow">GtkWindow</link> *window,
                                                         const <link linkend="gchar">gchar</link> *role);
<link linkend="gboolean">gboolean</link>            <link linkend="gtk-window-get-decorated">gtk_window_get_decorated</link>            (<link linkend="GtkWindow">GtkWindow</link> *window);
<link linkend="gboolean">gboolean</link>            <link linkend="gtk-window-get-deletable">gtk_window_get_deletable</link>            (<link linkend="GtkWindow">GtkWindow</link> *window);
<link linkend="GList">GList</link>*              <link linkend="gtk-window-get-default-icon-list">gtk_window_get_default_icon_list</link>    (void);
<link linkend="gchar">gchar</link> *             <link linkend="gtk-window-get-default-icon-name">gtk_window_get_default_icon_name</link>    (void);
<link linkend="void">void</link>                <link linkend="gtk-window-get-default-size">gtk_window_get_default_size</link>         (<link linkend="GtkWindow">GtkWindow</link> *window,
                                                         <link linkend="gint">gint</link> *width,
                                                         <link linkend="gint">gint</link> *height);
<link linkend="gboolean">gboolean</link>            <link linkend="gtk-window-get-destroy-with-parent">gtk_window_get_destroy_with_parent</link>  (<link linkend="GtkWindow">GtkWindow</link> *window);
<link linkend="void">void</link>                <link linkend="gtk-window-get-frame-dimensions">gtk_window_get_frame_dimensions</link>     (<link linkend="GtkWindow">GtkWindow</link> *window,
                                                         <link linkend="gint">gint</link> *left,
                                                         <link linkend="gint">gint</link> *top,
                                                         <link linkend="gint">gint</link> *right,
                                                         <link linkend="gint">gint</link> *bottom);
<link linkend="gboolean">gboolean</link>            <link linkend="gtk-window-get-has-frame">gtk_window_get_has_frame</link>            (<link linkend="GtkWindow">GtkWindow</link> *window);
<link linkend="GdkPixbuf">GdkPixbuf</link>*          <link linkend="gtk-window-get-icon">gtk_window_get_icon</link>                 (<link linkend="GtkWindow">GtkWindow</link> *window);
<link linkend="GList">GList</link>*              <link linkend="gtk-window-get-icon-list">gtk_window_get_icon_list</link>            (<link linkend="GtkWindow">GtkWindow</link> *window);
<link linkend="gchar">gchar</link> *             <link linkend="gtk-window-get-icon-name">gtk_window_get_icon_name</link>            (<link linkend="GtkWindow">GtkWindow</link> *window);
<link linkend="GdkModifierType">GdkModifierType</link>     <link linkend="gtk-window-get-mnemonic-modifier">gtk_window_get_mnemonic_modifier</link>    (<link linkend="GtkWindow">GtkWindow</link> *window);
<link linkend="gboolean">gboolean</link>            <link linkend="gtk-window-get-modal">gtk_window_get_modal</link>                (<link linkend="GtkWindow">GtkWindow</link> *window);
<link linkend="void">void</link>                <link linkend="gtk-window-get-position">gtk_window_get_position</link>             (<link linkend="GtkWindow">GtkWindow</link> *window,
                                                         <link linkend="gint">gint</link> *root_x,
                                                         <link linkend="gint">gint</link> *root_y);
const <link linkend="gchar">gchar</link> *       <link linkend="gtk-window-get-role">gtk_window_get_role</link>                 (<link linkend="GtkWindow">GtkWindow</link> *window);
<link linkend="void">void</link>                <link linkend="gtk-window-get-size">gtk_window_get_size</link>                 (<link linkend="GtkWindow">GtkWindow</link> *window,
                                                         <link linkend="gint">gint</link> *width,
                                                         <link linkend="gint">gint</link> *height);
const <link linkend="gchar">gchar</link> *       <link linkend="gtk-window-get-title">gtk_window_get_title</link>                (<link linkend="GtkWindow">GtkWindow</link> *window);
<link linkend="GtkWindow">GtkWindow</link> *         <link linkend="gtk-window-get-transient-for">gtk_window_get_transient_for</link>        (<link linkend="GtkWindow">GtkWindow</link> *window);
<link linkend="GdkWindowTypeHint">GdkWindowTypeHint</link>   <link linkend="gtk-window-get-type-hint">gtk_window_get_type_hint</link>            (<link linkend="GtkWindow">GtkWindow</link> *window);
<link linkend="gboolean">gboolean</link>            <link linkend="gtk-window-get-skip-taskbar-hint">gtk_window_get_skip_taskbar_hint</link>    (<link linkend="GtkWindow">GtkWindow</link> *window);
<link linkend="gboolean">gboolean</link>            <link linkend="gtk-window-get-skip-pager-hint">gtk_window_get_skip_pager_hint</link>      (<link linkend="GtkWindow">GtkWindow</link> *window);
<link linkend="gboolean">gboolean</link>            <link linkend="gtk-window-get-urgency-hint">gtk_window_get_urgency_hint</link>         (<link linkend="GtkWindow">GtkWindow</link> *window);
<link linkend="gboolean">gboolean</link>            <link linkend="gtk-window-get-accept-focus">gtk_window_get_accept_focus</link>         (<link linkend="GtkWindow">GtkWindow</link> *window);
<link linkend="gboolean">gboolean</link>            <link linkend="gtk-window-get-focus-on-map">gtk_window_get_focus_on_map</link>         (<link linkend="GtkWindow">GtkWindow</link> *window);
<link linkend="GtkWindowGroup">GtkWindowGroup</link> *    <link linkend="gtk-window-get-group">gtk_window_get_group</link>                (<link linkend="GtkWindow">GtkWindow</link> *window);
<link linkend="void">void</link>                <link linkend="gtk-window-move">gtk_window_move</link>                     (<link linkend="GtkWindow">GtkWindow</link> *window,
                                                         <link linkend="gint">gint</link> x,
                                                         <link linkend="gint">gint</link> y);
<link linkend="gboolean">gboolean</link>            <link linkend="gtk-window-parse-geometry">gtk_window_parse_geometry</link>           (<link linkend="GtkWindow">GtkWindow</link> *window,
                                                         const <link linkend="gchar">gchar</link> *geometry);
<link linkend="void">void</link>                <link linkend="gtk-window-reshow-with-initial-size">gtk_window_reshow_with_initial_size</link> (<link linkend="GtkWindow">GtkWindow</link> *window);
<link linkend="void">void</link>                <link linkend="gtk-window-resize">gtk_window_resize</link>                   (<link linkend="GtkWindow">GtkWindow</link> *window,
                                                         <link linkend="gint">gint</link> width,
                                                         <link linkend="gint">gint</link> height);
<link linkend="void">void</link>                <link linkend="gtk-window-set-default-icon-list">gtk_window_set_default_icon_list</link>    (<link linkend="GList">GList</link> *list);
<link linkend="void">void</link>                <link linkend="gtk-window-set-default-icon">gtk_window_set_default_icon</link>         (<link linkend="GdkPixbuf">GdkPixbuf</link> *icon);
<link linkend="gboolean">gboolean</link>            <link linkend="gtk-window-set-default-icon-from-file">gtk_window_set_default_icon_from_file</link>
                                                        (const <link linkend="gchar">gchar</link> *filename,
                                                         <link linkend="GError">GError</link> **err);
<link linkend="void">void</link>                <link linkend="gtk-window-set-default-icon-name">gtk_window_set_default_icon_name</link>    (const <link linkend="gchar">gchar</link> *name);
<link linkend="void">void</link>                <link linkend="gtk-window-set-icon">gtk_window_set_icon</link>                 (<link linkend="GtkWindow">GtkWindow</link> *window,
                                                         <link linkend="GdkPixbuf">GdkPixbuf</link> *icon);
<link linkend="void">void</link>                <link linkend="gtk-window-set-icon-list">gtk_window_set_icon_list</link>            (<link linkend="GtkWindow">GtkWindow</link> *window,
                                                         <link linkend="GList">GList</link> *list);
<link linkend="gboolean">gboolean</link>            <link linkend="gtk-window-set-icon-from-file">gtk_window_set_icon_from_file</link>       (<link linkend="GtkWindow">GtkWindow</link> *window,
                                                         const <link linkend="gchar">gchar</link> *filename,
                                                         <link linkend="GError">GError</link> **err);
<link linkend="void">void</link>                <link linkend="gtk-window-set-icon-name">gtk_window_set_icon_name</link>            (<link linkend="GtkWindow">GtkWindow</link> *window,
                                                         const <link linkend="gchar">gchar</link> *name);
<link linkend="void">void</link>                <link linkend="gtk-window-set-auto-startup-notification">gtk_window_set_auto_startup_notification</link>
                                                        (<link linkend="gboolean">gboolean</link> setting);
<link linkend="gdouble">gdouble</link>             <link linkend="gtk-window-get-opacity">gtk_window_get_opacity</link>              (<link linkend="GtkWindow">GtkWindow</link> *window);
<link linkend="void">void</link>                <link linkend="gtk-window-set-opacity">gtk_window_set_opacity</link>              (<link linkend="GtkWindow">GtkWindow</link> *window,
                                                         <link linkend="gdouble">gdouble</link> opacity);
</synopsis>
</refsynopsisdiv>

<refsect1 id="GtkWindow.object-hierarchy" role="object_hierarchy">
<title role="object_hierarchy.title">Object Hierarchy</title>
<synopsis>
  <link linkend="GObject">GObject</link>
   +----<link linkend="GInitiallyUnowned">GInitiallyUnowned</link>
         +----<link linkend="GtkObject">GtkObject</link>
               +----<link linkend="GtkWidget">GtkWidget</link>
                     +----<link linkend="GtkContainer">GtkContainer</link>
                           +----<link linkend="GtkBin">GtkBin</link>
                                 +----GtkWindow
                                       +----<link linkend="GtkDialog">GtkDialog</link>
                                       +----<link linkend="GtkAssistant">GtkAssistant</link>
                                       +----<link linkend="GtkPlug">GtkPlug</link>
</synopsis>
</refsect1>



<refsect1 id="GtkWindow.implemented-interfaces" role="impl_interfaces">
<title role="impl_interfaces.title">Implemented Interfaces</title>
<para>
GtkWindow implements
 <link linkend="AtkImplementorIface">AtkImplementorIface</link> and  <link linkend="GtkBuildable">GtkBuildable</link>.</para>
</refsect1>


<refsect1 id="GtkWindow.properties" role="properties">
<title role="properties.title">Properties</title>
<synopsis>
  &quot;<link linkend="GtkWindow--accept-focus">accept-focus</link>&quot;             <link linkend="gboolean">gboolean</link>              : Read / Write
  &quot;<link linkend="GtkWindow--allow-grow">allow-grow</link>&quot;               <link linkend="gboolean">gboolean</link>              : Read / Write
  &quot;<link linkend="GtkWindow--allow-shrink">allow-shrink</link>&quot;             <link linkend="gboolean">gboolean</link>              : Read / Write
  &quot;<link linkend="GtkWindow--decorated">decorated</link>&quot;                <link linkend="gboolean">gboolean</link>              : Read / Write
  &quot;<link linkend="GtkWindow--default-height">default-height</link>&quot;           <link linkend="gint">gint</link>                  : Read / Write
  &quot;<link linkend="GtkWindow--default-width">default-width</link>&quot;            <link linkend="gint">gint</link>                  : Read / Write
  &quot;<link linkend="GtkWindow--deletable">deletable</link>&quot;                <link linkend="gboolean">gboolean</link>              : Read / Write
  &quot;<link linkend="GtkWindow--destroy-with-parent">destroy-with-parent</link>&quot;      <link linkend="gboolean">gboolean</link>              : Read / Write
  &quot;<link linkend="GtkWindow--focus-on-map">focus-on-map</link>&quot;             <link linkend="gboolean">gboolean</link>              : Read / Write
  &quot;<link linkend="GtkWindow--gravity">gravity</link>&quot;                  <link linkend="GdkGravity">GdkGravity</link>            : Read / Write
  &quot;<link linkend="GtkWindow--has-toplevel-focus">has-toplevel-focus</link>&quot;       <link linkend="gboolean">gboolean</link>              : Read
  &quot;<link linkend="GtkWindow--icon">icon</link>&quot;                     <link linkend="GdkPixbuf">GdkPixbuf</link>*            : Read / Write
  &quot;<link linkend="GtkWindow--icon-name">icon-name</link>&quot;                <link linkend="gchar">gchar</link>*                : Read / Write
  &quot;<link linkend="GtkWindow--is-active">is-active</link>&quot;                <link linkend="gboolean">gboolean</link>              : Read
  &quot;<link linkend="GtkWindow--modal">modal</link>&quot;                    <link linkend="gboolean">gboolean</link>              : Read / Write
  &quot;<link linkend="GtkWindow--opacity">opacity</link>&quot;                  <link linkend="gdouble">gdouble</link>               : Read / Write
  &quot;<link linkend="GtkWindow--resizable">resizable</link>&quot;                <link linkend="gboolean">gboolean</link>              : Read / Write
  &quot;<link linkend="GtkWindow--role">role</link>&quot;                     <link linkend="gchar">gchar</link>*                : Read / Write
  &quot;<link linkend="GtkWindow--screen">screen</link>&quot;                   <link linkend="GdkScreen">GdkScreen</link>*            : Read / Write
  &quot;<link linkend="GtkWindow--skip-pager-hint">skip-pager-hint</link>&quot;          <link linkend="gboolean">gboolean</link>              : Read / Write
  &quot;<link linkend="GtkWindow--skip-taskbar-hint">skip-taskbar-hint</link>&quot;        <link linkend="gboolean">gboolean</link>              : Read / Write
  &quot;<link linkend="GtkWindow--startup-id">startup-id</link>&quot;               <link linkend="gchar">gchar</link>*                : Write
  &quot;<link linkend="GtkWindow--title">title</link>&quot;                    <link linkend="gchar">gchar</link>*                : Read / Write
  &quot;<link linkend="GtkWindow--transient-for">transient-for</link>&quot;            <link linkend="GtkWindow">GtkWindow</link>*            : Read / Write / Construct
  &quot;<link linkend="GtkWindow--type">type</link>&quot;                     <link linkend="GtkWindowType">GtkWindowType</link>         : Read / Write / Construct Only
  &quot;<link linkend="GtkWindow--type-hint">type-hint</link>&quot;                <link linkend="GdkWindowTypeHint">GdkWindowTypeHint</link>     : Read / Write
  &quot;<link linkend="GtkWindow--urgency-hint">urgency-hint</link>&quot;             <link linkend="gboolean">gboolean</link>              : Read / Write
  &quot;<link linkend="GtkWindow--window-position">window-position</link>&quot;          <link linkend="GtkWindowPosition">GtkWindowPosition</link>     : Read / Write
</synopsis>
</refsect1>

<refsect1 id="GtkWindow.signals" role="signal_proto">
<title role="signal_proto.title">Signals</title>
<synopsis>
  &quot;<link linkend="GtkWindow-activate-default">activate-default</link>&quot;                               : Run Last / Action
  &quot;<link linkend="GtkWindow-activate-focus">activate-focus</link>&quot;                                 : Run Last / Action
  &quot;<link linkend="GtkWindow-frame-event">frame-event</link>&quot;                                    : Run Last
  &quot;<link linkend="GtkWindow-keys-changed">keys-changed</link>&quot;                                   : Run First
  &quot;<link linkend="GtkWindow-set-focus">set-focus</link>&quot;                                      : Run Last
</synopsis>
</refsect1>


<refsect1 id="GtkWindow.description" role="desc">
<title role="desc.title">Description</title>
<para>
</para>
<refsect2 id="GtkWindow-BUILDER-UI">
<title>GtkWindow as GtkBuildable</title>
<para>
The GtkWindow implementation of the GtkBuildable interface supports a
custom &lt;accel-groups&gt; element, which supports any number of &lt;group&gt;
elements representing the GtkAccelGroup objects you want to add to your
window (synonymous with <link linkend="gtk-window-add-accel-group"><function>gtk_window_add_accel_group()</function></link>.
</para>
<example>
<title>A UI definition fragment with accel groups</title>
<programlisting><![CDATA[
<object class="GtkWindow">
  <accel-groups>
    <group name="accelgroup1"/>
  </accel-groups>
</object>
...
<object class="GtkAccelGroup" id="accelgroup1"/>
]]></programlisting>
</example>
</refsect2>
</refsect1>

<refsect1 id="GtkWindow.details" role="details">
<title role="details.title">Details</title>
<refsect2 id="GtkWindow-struct" role="struct">
<title>GtkWindow</title>
<indexterm zone="GtkWindow-struct"><primary sortas="Window">GtkWindow</primary></indexterm><programlisting>typedef struct _GtkWindow GtkWindow;</programlisting>
<para>
</para></refsect2>
<refsect2 id="gtk-window-new" role="function">
<title>gtk_window_new ()</title>
<indexterm zone="gtk-window-new"><primary sortas="window_new">gtk_window_new</primary></indexterm><programlisting><link linkend="GtkWidget">GtkWidget</link>*          gtk_window_new                      (<link linkend="GtkWindowType">GtkWindowType</link> type);</programlisting>
<para>
Creates a new <link linkend="GtkWindow"><type>GtkWindow</type></link>, which is a toplevel window that can
contain other widgets. Nearly always, the type of the window should
be <link linkend="GTK-WINDOW-TOPLEVEL--CAPS"><type>GTK_WINDOW_TOPLEVEL</type></link>. If you're implementing something like a
popup menu from scratch (which is a bad idea, just use <link linkend="GtkMenu"><type>GtkMenu</type></link>),
you might use <link linkend="GTK-WINDOW-POPUP--CAPS"><type>GTK_WINDOW_POPUP</type></link>. <link linkend="GTK-WINDOW-POPUP--CAPS"><type>GTK_WINDOW_POPUP</type></link> is not for
dialogs, though in some other toolkits dialogs are called "popups".
In GTK+, <link linkend="GTK-WINDOW-POPUP--CAPS"><type>GTK_WINDOW_POPUP</type></link> means a pop-up menu or pop-up tooltip.
On X11, popup windows are not controlled by the <link
linkend="gtk-X11-arch">window manager</link>.
</para>
<para>
If you simply want an undecorated window (no window borders), use
<link linkend="gtk-window-set-decorated"><function>gtk_window_set_decorated()</function></link>, don't use <link linkend="GTK-WINDOW-POPUP--CAPS"><type>GTK_WINDOW_POPUP</type></link>.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>type</parameter>&#160;:</term>
<listitem><simpara> type of window
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara> a new <link linkend="GtkWindow"><type>GtkWindow</type></link>.
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="gtk-window-set-title" role="function">
<title>gtk_window_set_title ()</title>
<indexterm zone="gtk-window-set-title"><primary sortas="window_set_title">gtk_window_set_title</primary></indexterm><programlisting><link linkend="void">void</link>                gtk_window_set_title                (<link linkend="GtkWindow">GtkWindow</link> *window,
                                                         const <link linkend="gchar">gchar</link> *title);</programlisting>
<para>
Sets the title of the <link linkend="GtkWindow"><type>GtkWindow</type></link>. The title of a window will be
displayed in its title bar; on the X Window System, the title bar
is rendered by the <link linkend="gtk-X11-arch">window
manager</link>, so exactly how the title appears to users may vary
according to a user's exact configuration. The title should help a
user distinguish this window from other windows they may have
open. A good title might include the application name and current
document filename, for example.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>window</parameter>&#160;:</term>
<listitem><simpara> a <link linkend="GtkWindow"><type>GtkWindow</type></link>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>title</parameter>&#160;:</term>
<listitem><simpara> title of the window
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="gtk-window-set-wmclass" role="function">
<title>gtk_window_set_wmclass ()</title>
<indexterm zone="gtk-window-set-wmclass"><primary sortas="window_set_wmclass">gtk_window_set_wmclass</primary></indexterm><programlisting><link linkend="void">void</link>                gtk_window_set_wmclass              (<link linkend="GtkWindow">GtkWindow</link> *window,
                                                         const <link linkend="gchar">gchar</link> *wmclass_name,
                                                         const <link linkend="gchar">gchar</link> *wmclass_class);</programlisting>
<para>
Don't use this function. It sets the X Window System "class" and
"name" hints for a window.  According to the ICCCM, you should
always set these to the same value for all windows in an
application, and GTK+ sets them to that value by default, so calling
this function is sort of pointless. However, you may want to call
<link linkend="gtk-window-set-role"><function>gtk_window_set_role()</function></link> on each window in your application, for the
benefit of the session manager. Setting the role allows the window
manager to restore window positions when loading a saved session.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>window</parameter>&#160;:</term>
<listitem><simpara> a <link linkend="GtkWindow"><type>GtkWindow</type></link>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>wmclass_name</parameter>&#160;:</term>
<listitem><simpara> window name hint
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>wmclass_class</parameter>&#160;:</term>
<listitem><simpara> window class hint
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="gtk-window-set-policy" role="function" condition="deprecated:Use gtk_window_set_resizable() instead.">
<title>gtk_window_set_policy ()</title>
<indexterm zone="gtk-window-set-policy" role="deprecated"><primary sortas="window_set_policy">gtk_window_set_policy</primary></indexterm><programlisting><link linkend="void">void</link>                gtk_window_set_policy               (<link linkend="GtkWindow">GtkWindow</link> *window,
                                                         <link linkend="gint">gint</link> allow_shrink,
                                                         <link linkend="gint">gint</link> allow_grow,
                                                         <link linkend="gint">gint</link> auto_shrink);</programlisting>
<warning><para><literal>gtk_window_set_policy</literal> is deprecated and should not be used in newly-written code. Use <link linkend="gtk-window-set-resizable"><function>gtk_window_set_resizable()</function></link> instead.</para></warning>
<para>
Changes how a toplevel window deals with its size request and user resize
attempts. There are really only two reasonable ways to call this function:
<orderedlist>
<listitem>
<para>
<literal>gtk_window_set_policy (GTK_WINDOW (window), FALSE, TRUE, FALSE)</literal>
means that the window is user-resizable.
</para>
</listitem>
<listitem>
<para>
<literal>gtk_window_set_policy (GTK_WINDOW (window), FALSE, FALSE, TRUE)</literal>
means that the window's size is program-controlled, and should simply match
the current size request of the window's children.
</para>
</listitem>
</orderedlist>
The first policy is the default, that is, by default windows are designed to
be resized by users.
</para>
<para>
The basic ugly truth of this function is that it should be simply:
<literal>
 void gtk_window_set_resizable (GtkWindow* window, gboolean setting);
</literal>
...which is why GTK+ 2.0 introduces <link linkend="gtk-window-set-resizable"><function>gtk_window_set_resizable()</function></link>, which you
should use instead of <link linkend="gtk-window-set-policy"><function>gtk_window_set_policy()</function></link>.
</para>
<para>
If set to <link linkend="TRUE--CAPS"><literal>TRUE</literal></link>, the <parameter>allow_grow</parameter> parameter allows the user to expand the window
beyond the size request of its child widgets. If <parameter>allow_grow</parameter> is <link linkend="TRUE--CAPS"><literal>TRUE</literal></link>, be sure to
check that your child widgets work properly as the window is resized.
</para>
<para>
A toplevel window will always change size to ensure its child widgets receive
their requested size. This means that if you add child widgets, the toplevel
window will expand to contain them. However, normally the toplevel will not
shrink to fit the size request of its children if it's too large; the
<parameter>auto_shrink</parameter> parameter causes the window to shrink when child widgets have too
much space. <parameter>auto_shrink</parameter> is normally used with the second of the two window
policies mentioned above.  That is, set <parameter>auto_shrink</parameter> to <link linkend="TRUE--CAPS"><literal>TRUE</literal></link> if you want the
window to have a fixed, always-optimal size determined by your program.
</para>
<para>
Note that <parameter>auto_shrink</parameter> doesn't do anything if <parameter>allow_shrink</parameter> and <parameter>allow_grow</parameter> are
both set to <link linkend="FALSE--CAPS"><literal>FALSE</literal></link>.
</para>
<para>
Neither of the two suggested window policies set the <parameter>allow_shrink</parameter> parameter to
<link linkend="TRUE--CAPS"><literal>TRUE</literal></link>.  If <parameter>allow_shrink</parameter> is <link linkend="TRUE--CAPS"><literal>TRUE</literal></link>, the user can shrink the window so that its
children do not receive their full size request; this is basically a bad thing,
because most widgets will look wrong if this happens. Furthermore GTK+ has a
tendency to re-expand the window if size is recalculated for any reason. The
upshot is that <parameter>allow_shrink</parameter> should always be set to <link linkend="FALSE--CAPS"><literal>FALSE</literal></link>.
</para>
<para>
Sometimes when you think you want to use <parameter>allow_shrink</parameter>, the real problem is that
some specific child widget is requesting too much space, so the user can't
shrink the window sufficiently. Perhaps you are calling <link linkend="gtk-widget-set-size-request"><function>gtk_widget_set_size_request()</function></link>
on a child widget, and forcing its size request to be too large. Instead of
setting the child's usize, consider using <link linkend="gtk-window-set-default-size"><function>gtk_window_set_default_size()</function></link> so that
the child gets a larger allocation than it requests.
</para><variablelist role="params">
<varlistentry><term><parameter>window</parameter>&#160;:</term>
<listitem><simpara>the window
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>allow_shrink</parameter>&#160;:</term>
<listitem><simpara>whether the user can shrink the window below its size request
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>allow_grow</parameter>&#160;:</term>
<listitem><simpara>whether the user can grow the window larger than its size request
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>auto_shrink</parameter>&#160;:</term>
<listitem><simpara>whether the window automatically snaps back to its size request 
              if it's larger
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="gtk-window-set-resizable" role="function">
<title>gtk_window_set_resizable ()</title>
<indexterm zone="gtk-window-set-resizable"><primary sortas="window_set_resizable">gtk_window_set_resizable</primary></indexterm><programlisting><link linkend="void">void</link>                gtk_window_set_resizable            (<link linkend="GtkWindow">GtkWindow</link> *window,
                                                         <link linkend="gboolean">gboolean</link> resizable);</programlisting>
<para>
Sets whether the user can resize a window. Windows are user resizable
by default.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>window</parameter>&#160;:</term>
<listitem><simpara> a <link linkend="GtkWindow"><type>GtkWindow</type></link>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>resizable</parameter>&#160;:</term>
<listitem><simpara> <link linkend="TRUE--CAPS"><literal>TRUE</literal></link> if the user can resize this window
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="gtk-window-get-resizable" role="function">
<title>gtk_window_get_resizable ()</title>
<indexterm zone="gtk-window-get-resizable"><primary sortas="window_get_resizable">gtk_window_get_resizable</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link>            gtk_window_get_resizable            (<link linkend="GtkWindow">GtkWindow</link> *window);</programlisting>
<para>
Gets the value set by <link linkend="gtk-window-set-resizable"><function>gtk_window_set_resizable()</function></link>.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>window</parameter>&#160;:</term>
<listitem><simpara> a <link linkend="GtkWindow"><type>GtkWindow</type></link>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara> <link linkend="TRUE--CAPS"><literal>TRUE</literal></link> if the user can resize the window
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="gtk-window-add-accel-group" role="function">
<title>gtk_window_add_accel_group ()</title>
<indexterm zone="gtk-window-add-accel-group"><primary sortas="window_add_accel_group">gtk_window_add_accel_group</primary></indexterm><programlisting><link linkend="void">void</link>                gtk_window_add_accel_group          (<link linkend="GtkWindow">GtkWindow</link> *window,
                                                         <link linkend="GtkAccelGroup">GtkAccelGroup</link> *accel_group);</programlisting>
<para>
Associate <parameter>accel_group</parameter> with <parameter>window</parameter>, such that calling
<link linkend="gtk-accel-groups-activate"><function>gtk_accel_groups_activate()</function></link> on <parameter>window</parameter> will activate accelerators
in <parameter>accel_group</parameter>.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>window</parameter>&#160;:</term>
<listitem><simpara> window to attach accelerator group to
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>accel_group</parameter>&#160;:</term>
<listitem><simpara> a <link linkend="GtkAccelGroup"><type>GtkAccelGroup</type></link>
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="gtk-window-remove-accel-group" role="function">
<title>gtk_window_remove_accel_group ()</title>
<indexterm zone="gtk-window-remove-accel-group"><primary sortas="window_remove_accel_group">gtk_window_remove_accel_group</primary></indexterm><programlisting><link linkend="void">void</link>                gtk_window_remove_accel_group       (<link linkend="GtkWindow">GtkWindow</link> *window,
                                                         <link linkend="GtkAccelGroup">GtkAccelGroup</link> *accel_group);</programlisting>
<para>
Reverses the effects of <link linkend="gtk-window-add-accel-group"><function>gtk_window_add_accel_group()</function></link>.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>window</parameter>&#160;:</term>
<listitem><simpara> a <link linkend="GtkWindow"><type>GtkWindow</type></link>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>accel_group</parameter>&#160;:</term>
<listitem><simpara> a <link linkend="GtkAccelGroup"><type>GtkAccelGroup</type></link>
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="gtk-window-position" role="macro" condition="deprecated:Use gtk_window_set_position() instead.">
<title>gtk_window_position</title>
<indexterm zone="gtk-window-position" role="deprecated"><primary sortas="window_position">gtk_window_position</primary></indexterm><programlisting>#define	gtk_window_position			gtk_window_set_position
</programlisting>
<warning><para><literal>gtk_window_position</literal> is deprecated and should not be used in newly-written code. Use <link linkend="gtk-window-set-position"><function>gtk_window_set_position()</function></link> instead.</para></warning>
<para>
Deprecated alias for <link linkend="gtk-window-set-position"><function>gtk_window_set_position()</function></link>.
</para></refsect2>
<refsect2 id="gtk-window-activate-focus" role="function">
<title>gtk_window_activate_focus ()</title>
<indexterm zone="gtk-window-activate-focus"><primary sortas="window_activate_focus">gtk_window_activate_focus</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link>            gtk_window_activate_focus           (<link linkend="GtkWindow">GtkWindow</link> *window);</programlisting>
<para>
Activates the current focused widget within the window.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>window</parameter>&#160;:</term>
<listitem><simpara> a <link linkend="GtkWindow"><type>GtkWindow</type></link>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara> <link linkend="TRUE--CAPS"><literal>TRUE</literal></link> if a widget got activated.
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="gtk-window-activate-default" role="function">
<title>gtk_window_activate_default ()</title>
<indexterm zone="gtk-window-activate-default"><primary sortas="window_activate_default">gtk_window_activate_default</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link>            gtk_window_activate_default         (<link linkend="GtkWindow">GtkWindow</link> *window);</programlisting>
<para>
Activates the default widget for the window, unless the current 
focused widget has been configured to receive the default action 
(see <link linkend="GTK-RECEIVES-DEFAULT--CAPS"><type>GTK_RECEIVES_DEFAULT</type></link> in <link linkend="GtkWidgetFlags"><type>GtkWidgetFlags</type></link>), in which case the
focused widget is activated.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>window</parameter>&#160;:</term>
<listitem><simpara> a <link linkend="GtkWindow"><type>GtkWindow</type></link>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara> <link linkend="TRUE--CAPS"><literal>TRUE</literal></link> if a widget got activated.
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="gtk-window-set-modal" role="function">
<title>gtk_window_set_modal ()</title>
<indexterm zone="gtk-window-set-modal"><primary sortas="window_set_modal">gtk_window_set_modal</primary></indexterm><programlisting><link linkend="void">void</link>                gtk_window_set_modal                (<link linkend="GtkWindow">GtkWindow</link> *window,
                                                         <link linkend="gboolean">gboolean</link> modal);</programlisting>
<para>
Sets a window modal or non-modal. Modal windows prevent interaction
with other windows in the same application. To keep modal dialogs
on top of main application windows, use
<link linkend="gtk-window-set-transient-for"><function>gtk_window_set_transient_for()</function></link> to make the dialog transient for the
parent; most <link linkend="gtk-X11-arch">window managers</link>
will then disallow lowering the dialog below the parent.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>window</parameter>&#160;:</term>
<listitem><simpara> a <link linkend="GtkWindow"><type>GtkWindow</type></link>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>modal</parameter>&#160;:</term>
<listitem><simpara> whether the window is modal
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="gtk-window-set-default-size" role="function">
<title>gtk_window_set_default_size ()</title>
<indexterm zone="gtk-window-set-default-size"><primary sortas="window_set_default_size">gtk_window_set_default_size</primary></indexterm><programlisting><link linkend="void">void</link>                gtk_window_set_default_size         (<link linkend="GtkWindow">GtkWindow</link> *window,
                                                         <link linkend="gint">gint</link> width,
                                                         <link linkend="gint">gint</link> height);</programlisting>
<para>
Sets the default size of a window. If the window's "natural" size
(its size request) is larger than the default, the default will be
ignored. More generally, if the default size does not obey the
geometry hints for the window (<link linkend="gtk-window-set-geometry-hints"><function>gtk_window_set_geometry_hints()</function></link> can
be used to set these explicitly), the default size will be clamped
to the nearest permitted size.
</para>
<para>
Unlike <link linkend="gtk-widget-set-size-request"><function>gtk_widget_set_size_request()</function></link>, which sets a size request for
a widget and thus would keep users from shrinking the window, this
function only sets the initial size, just as if the user had
resized the window themselves. Users can still shrink the window
again as they normally would. Setting a default size of -1 means to
use the "natural" default size (the size request of the window).
</para>
<para>
For more control over a window's initial size and how resizing works,
investigate <link linkend="gtk-window-set-geometry-hints"><function>gtk_window_set_geometry_hints()</function></link>.
</para>
<para>
For some uses, <link linkend="gtk-window-resize"><function>gtk_window_resize()</function></link> is a more appropriate function.
<link linkend="gtk-window-resize"><function>gtk_window_resize()</function></link> changes the current size of the window, rather
than the size to be used on initial display. <link linkend="gtk-window-resize"><function>gtk_window_resize()</function></link> always
affects the window itself, not the geometry widget.
</para>
<para>
The default size of a window only affects the first time a window is
shown; if a window is hidden and re-shown, it will remember the size
it had prior to hiding, rather than using the default size.
</para>
<para>
Windows can't actually be 0x0 in size, they must be at least 1x1, but
passing 0 for <parameter>width</parameter> and <parameter>height</parameter> is OK, resulting in a 1x1 default size.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>window</parameter>&#160;:</term>
<listitem><simpara> a <link linkend="GtkWindow"><type>GtkWindow</type></link>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>width</parameter>&#160;:</term>
<listitem><simpara> width in pixels, or -1 to unset the default width
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>height</parameter>&#160;:</term>
<listitem><simpara> height in pixels, or -1 to unset the default height
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="gtk-window-set-geometry-hints" role="function">
<title>gtk_window_set_geometry_hints ()</title>
<indexterm zone="gtk-window-set-geometry-hints"><primary sortas="window_set_geometry_hints">gtk_window_set_geometry_hints</primary></indexterm><programlisting><link linkend="void">void</link>                gtk_window_set_geometry_hints       (<link linkend="GtkWindow">GtkWindow</link> *window,
                                                         <link linkend="GtkWidget">GtkWidget</link> *geometry_widget,
                                                         <link linkend="GdkGeometry">GdkGeometry</link> *geometry,
                                                         <link linkend="GdkWindowHints">GdkWindowHints</link> geom_mask);</programlisting>
<para>
This function sets up hints about how a window can be resized by
the user.  You can set a minimum and maximum size; allowed resize
increments (e.g. for xterm, you can only resize by the size of a
character); aspect ratios; and more. See the <link linkend="GdkGeometry"><type>GdkGeometry</type></link> struct.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>window</parameter>&#160;:</term>
<listitem><simpara> a <link linkend="GtkWindow"><type>GtkWindow</type></link>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>geometry_widget</parameter>&#160;:</term>
<listitem><simpara> widget the geometry hints will be applied to
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>geometry</parameter>&#160;:</term>
<listitem><simpara> struct containing geometry information
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>geom_mask</parameter>&#160;:</term>
<listitem><simpara> mask indicating which struct fields should be paid attention to
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="gtk-window-set-gravity" role="function">
<title>gtk_window_set_gravity ()</title>
<indexterm zone="gtk-window-set-gravity"><primary sortas="window_set_gravity">gtk_window_set_gravity</primary></indexterm><programlisting><link linkend="void">void</link>                gtk_window_set_gravity              (<link linkend="GtkWindow">GtkWindow</link> *window,
                                                         <link linkend="GdkGravity">GdkGravity</link> gravity);</programlisting>
<para>
Window gravity defines the meaning of coordinates passed to
<link linkend="gtk-window-move"><function>gtk_window_move()</function></link>. See <link linkend="gtk-window-move"><function>gtk_window_move()</function></link> and <link linkend="GdkGravity"><type>GdkGravity</type></link> for
more details.
</para>
<para>
The default window gravity is <link linkend="GDK-GRAVITY-NORTH-WEST--CAPS"><type>GDK_GRAVITY_NORTH_WEST</type></link> which will
typically "do what you mean."</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>window</parameter>&#160;:</term>
<listitem><simpara> a <link linkend="GtkWindow"><type>GtkWindow</type></link>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>gravity</parameter>&#160;:</term>
<listitem><simpara> window gravity
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="gtk-window-get-gravity" role="function">
<title>gtk_window_get_gravity ()</title>
<indexterm zone="gtk-window-get-gravity"><primary sortas="window_get_gravity">gtk_window_get_gravity</primary></indexterm><programlisting><link linkend="GdkGravity">GdkGravity</link>          gtk_window_get_gravity              (<link linkend="GtkWindow">GtkWindow</link> *window);</programlisting>
<para>
Gets the value set by <link linkend="gtk-window-set-gravity"><function>gtk_window_set_gravity()</function></link>.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>window</parameter>&#160;:</term>
<listitem><simpara> a <link linkend="GtkWindow"><type>GtkWindow</type></link>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara> window gravity
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="gtk-window-set-position" role="function">
<title>gtk_window_set_position ()</title>
<indexterm zone="gtk-window-set-position"><primary sortas="window_set_position">gtk_window_set_position</primary></indexterm><programlisting><link linkend="void">void</link>                gtk_window_set_position             (<link linkend="GtkWindow">GtkWindow</link> *window,
                                                         <link linkend="GtkWindowPosition">GtkWindowPosition</link> position);</programlisting>
<para>
Sets a position constraint for this window. If the old or new
constraint is <link linkend="GTK-WIN-POS-CENTER-ALWAYS--CAPS"><literal>GTK_WIN_POS_CENTER_ALWAYS</literal></link>, this will also cause
the window to be repositioned to satisfy the new constraint.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>window</parameter>&#160;:</term>
<listitem><simpara> a <link linkend="GtkWindow"><type>GtkWindow</type></link>.
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>position</parameter>&#160;:</term>
<listitem><simpara> a position constraint.
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="gtk-window-set-transient-for" role="function">
<title>gtk_window_set_transient_for ()</title>
<indexterm zone="gtk-window-set-transient-for"><primary sortas="window_set_transient_for">gtk_window_set_transient_for</primary></indexterm><programlisting><link linkend="void">void</link>                gtk_window_set_transient_for        (<link linkend="GtkWindow">GtkWindow</link> *window,
                                                         <link linkend="GtkWindow">GtkWindow</link> *parent);</programlisting>
<para>
Dialog windows should be set transient for the main application
window they were spawned from. This allows <link
linkend="gtk-X11-arch">window managers</link> to e.g. keep the
dialog on top of the main window, or center the dialog over the
main window. <link linkend="gtk-dialog-new-with-buttons"><function>gtk_dialog_new_with_buttons()</function></link> and other convenience
functions in GTK+ will sometimes call
<link linkend="gtk-window-set-transient-for"><function>gtk_window_set_transient_for()</function></link> on your behalf.
</para>
<para>
On Windows, this function puts the child window on top of the parent, 
much as the window manager would have done on X.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>window</parameter>&#160;:</term>
<listitem><simpara> a <link linkend="GtkWindow"><type>GtkWindow</type></link>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>parent</parameter>&#160;:</term>
<listitem><simpara> parent window
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="gtk-window-set-destroy-with-parent" role="function">
<title>gtk_window_set_destroy_with_parent ()</title>
<indexterm zone="gtk-window-set-destroy-with-parent"><primary sortas="window_set_destroy_with_parent">gtk_window_set_destroy_with_parent</primary></indexterm><programlisting><link linkend="void">void</link>                gtk_window_set_destroy_with_parent  (<link linkend="GtkWindow">GtkWindow</link> *window,
                                                         <link linkend="gboolean">gboolean</link> setting);</programlisting>
<para>
If <parameter>setting</parameter> is <link linkend="TRUE--CAPS"><literal>TRUE</literal></link>, then destroying the transient parent of <parameter>window</parameter>
will also destroy <parameter>window</parameter> itself. This is useful for dialogs that
shouldn't persist beyond the lifetime of the main window they're
associated with, for example.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>window</parameter>&#160;:</term>
<listitem><simpara> a <link linkend="GtkWindow"><type>GtkWindow</type></link>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>setting</parameter>&#160;:</term>
<listitem><simpara> whether to destroy <parameter>window</parameter> with its transient parent
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="gtk-window-set-screen" role="function" condition="since:2.2">
<title>gtk_window_set_screen ()</title>
<indexterm zone="gtk-window-set-screen" role="2.2"><primary sortas="window_set_screen">gtk_window_set_screen</primary></indexterm><programlisting><link linkend="void">void</link>                gtk_window_set_screen               (<link linkend="GtkWindow">GtkWindow</link> *window,
                                                         <link linkend="GdkScreen">GdkScreen</link> *screen);</programlisting>
<para>
Sets the <link linkend="GdkScreen"><type>GdkScreen</type></link> where the <parameter>window</parameter> is displayed; if
the window is already mapped, it will be unmapped, and
then remapped on the new screen.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>window</parameter>&#160;:</term>
<listitem><simpara> a <link linkend="GtkWindow"><type>GtkWindow</type></link>.
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>screen</parameter>&#160;:</term>
<listitem><simpara> a <link linkend="GdkScreen"><type>GdkScreen</type></link>.
</simpara></listitem></varlistentry>
</variablelist><para role="since">Since 2.2</para></refsect2>
<refsect2 id="gtk-window-get-screen" role="function" condition="since:2.2">
<title>gtk_window_get_screen ()</title>
<indexterm zone="gtk-window-get-screen" role="2.2"><primary sortas="window_get_screen">gtk_window_get_screen</primary></indexterm><programlisting><link linkend="GdkScreen">GdkScreen</link>*          gtk_window_get_screen               (<link linkend="GtkWindow">GtkWindow</link> *window);</programlisting>
<para>
Returns the <link linkend="GdkScreen"><type>GdkScreen</type></link> associated with <parameter>window</parameter>.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>window</parameter>&#160;:</term>
<listitem><simpara> a <link linkend="GtkWindow"><type>GtkWindow</type></link>.
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara> a <link linkend="GdkScreen"><type>GdkScreen</type></link>.

</simpara></listitem></varlistentry>
</variablelist><para role="since">Since 2.2</para></refsect2>
<refsect2 id="gtk-window-is-active" role="function" condition="since:2.4">
<title>gtk_window_is_active ()</title>
<indexterm zone="gtk-window-is-active" role="2.4"><primary sortas="window_is_active">gtk_window_is_active</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link>            gtk_window_is_active                (<link linkend="GtkWindow">GtkWindow</link> *window);</programlisting>
<para>
Returns whether the window is part of the current active toplevel.
(That is, the toplevel window receiving keystrokes.)
The return value is <link linkend="TRUE--CAPS"><literal>TRUE</literal></link> if the window is active toplevel
itself, but also if it is, say, a <link linkend="GtkPlug"><type>GtkPlug</type></link> embedded in the active toplevel.
You might use this function if you wanted to draw a widget
differently in an active window from a widget in an inactive window.
See <link linkend="gtk-window-has-toplevel-focus"><function>gtk_window_has_toplevel_focus()</function></link></para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>window</parameter>&#160;:</term>
<listitem><simpara> a <link linkend="GtkWindow"><type>GtkWindow</type></link>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara> <link linkend="TRUE--CAPS"><literal>TRUE</literal></link> if the window part of the current active window.

</simpara></listitem></varlistentry>
</variablelist><para role="since">Since 2.4</para></refsect2>
<refsect2 id="gtk-window-has-toplevel-focus" role="function" condition="since:2.4">
<title>gtk_window_has_toplevel_focus ()</title>
<indexterm zone="gtk-window-has-toplevel-focus" role="2.4"><primary sortas="window_has_toplevel_focus">gtk_window_has_toplevel_focus</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link>            gtk_window_has_toplevel_focus       (<link linkend="GtkWindow">GtkWindow</link> *window);</programlisting>
<para>
Returns whether the input focus is within this GtkWindow.
For real toplevel windows, this is identical to <link linkend="gtk-window-is-active"><function>gtk_window_is_active()</function></link>,
but for embedded windows, like <link linkend="GtkPlug"><type>GtkPlug</type></link>, the results will differ.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>window</parameter>&#160;:</term>
<listitem><simpara> a <link linkend="GtkWindow"><type>GtkWindow</type></link>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara> <link linkend="TRUE--CAPS"><literal>TRUE</literal></link> if the input focus is within this GtkWindow

</simpara></listitem></varlistentry>
</variablelist><para role="since">Since 2.4</para></refsect2>
<refsect2 id="gtk-window-list-toplevels" role="function">
<title>gtk_window_list_toplevels ()</title>
<indexterm zone="gtk-window-list-toplevels"><primary sortas="window_list_toplevels">gtk_window_list_toplevels</primary></indexterm><programlisting><link linkend="GList">GList</link>*              gtk_window_list_toplevels           (void);</programlisting>
<para>
Returns a list of all existing toplevel windows. The widgets
in the list are not individually referenced. If you want
to iterate through the list and perform actions involving
callbacks that might destroy the widgets, you <emphasis>must</emphasis> call
<literal>g_list_foreach (result, (GFunc)g_object_ref, NULL)</literal> first, and
then unref all the widgets afterwards.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara> list of toplevel widgets
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="gtk-window-add-mnemonic" role="function">
<title>gtk_window_add_mnemonic ()</title>
<indexterm zone="gtk-window-add-mnemonic"><primary sortas="window_add_mnemonic">gtk_window_add_mnemonic</primary></indexterm><programlisting><link linkend="void">void</link>                gtk_window_add_mnemonic             (<link linkend="GtkWindow">GtkWindow</link> *window,
                                                         <link linkend="guint">guint</link> keyval,
                                                         <link linkend="GtkWidget">GtkWidget</link> *target);</programlisting>
<para>
Adds a mnemonic to this window.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>window</parameter>&#160;:</term>
<listitem><simpara> a <link linkend="GtkWindow"><type>GtkWindow</type></link>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>keyval</parameter>&#160;:</term>
<listitem><simpara> the mnemonic
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>target</parameter>&#160;:</term>
<listitem><simpara> the widget that gets activated by the mnemonic
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="gtk-window-remove-mnemonic" role="function">
<title>gtk_window_remove_mnemonic ()</title>
<indexterm zone="gtk-window-remove-mnemonic"><primary sortas="window_remove_mnemonic">gtk_window_remove_mnemonic</primary></indexterm><programlisting><link linkend="void">void</link>                gtk_window_remove_mnemonic          (<link linkend="GtkWindow">GtkWindow</link> *window,
                                                         <link linkend="guint">guint</link> keyval,
                                                         <link linkend="GtkWidget">GtkWidget</link> *target);</programlisting>
<para>
Removes a mnemonic from this window.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>window</parameter>&#160;:</term>
<listitem><simpara> a <link linkend="GtkWindow"><type>GtkWindow</type></link>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>keyval</parameter>&#160;:</term>
<listitem><simpara> the mnemonic
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>target</parameter>&#160;:</term>
<listitem><simpara> the widget that gets activated by the mnemonic
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="gtk-window-mnemonic-activate" role="function">
<title>gtk_window_mnemonic_activate ()</title>
<indexterm zone="gtk-window-mnemonic-activate"><primary sortas="window_mnemonic_activate">gtk_window_mnemonic_activate</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link>            gtk_window_mnemonic_activate        (<link linkend="GtkWindow">GtkWindow</link> *window,
                                                         <link linkend="guint">guint</link> keyval,
                                                         <link linkend="GdkModifierType">GdkModifierType</link> modifier);</programlisting>
<para>
Activates the targets associated with the mnemonic.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>window</parameter>&#160;:</term>
<listitem><simpara> a <link linkend="GtkWindow"><type>GtkWindow</type></link>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>keyval</parameter>&#160;:</term>
<listitem><simpara> the mnemonic
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>modifier</parameter>&#160;:</term>
<listitem><simpara> the modifiers 
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara> <link linkend="TRUE--CAPS"><literal>TRUE</literal></link> if the activation is done. 
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="gtk-window-activate-key" role="function">
<title>gtk_window_activate_key ()</title>
<indexterm zone="gtk-window-activate-key"><primary sortas="window_activate_key">gtk_window_activate_key</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link>            gtk_window_activate_key             (<link linkend="GtkWindow">GtkWindow</link> *window,
                                                         <link linkend="GdkEventKey">GdkEventKey</link> *event);</programlisting>
<para>
Activates mnemonics and accelerators for this <link linkend="GtkWindow"><type>GtkWindow</type></link>. This is normally
called by the default ::key_press_event handler for toplevel windows,
however in some cases it may be useful to call this directly when
overriding the standard key handling for a toplevel window.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>window</parameter>&#160;:</term>
<listitem><simpara>  a <link linkend="GtkWindow"><type>GtkWindow</type></link>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>event</parameter>&#160;:</term>
<listitem><simpara>   a <link linkend="GdkEventKey"><type>GdkEventKey</type></link>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara> <link linkend="TRUE--CAPS"><literal>TRUE</literal></link> if a mnemonic or accelerator was found and activated.
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="gtk-window-propagate-key-event" role="function">
<title>gtk_window_propagate_key_event ()</title>
<indexterm zone="gtk-window-propagate-key-event"><primary sortas="window_propagate_key_event">gtk_window_propagate_key_event</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link>            gtk_window_propagate_key_event      (<link linkend="GtkWindow">GtkWindow</link> *window,
                                                         <link linkend="GdkEventKey">GdkEventKey</link> *event);</programlisting>
<para>
Propagate a key press or release event to the focus widget and
up the focus container chain until a widget handles <parameter>event</parameter>.
This is normally called by the default ::key_press_event and
::key_release_event handlers for toplevel windows,
however in some cases it may be useful to call this directly when
overriding the standard key handling for a toplevel window.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>window</parameter>&#160;:</term>
<listitem><simpara>  a <link linkend="GtkWindow"><type>GtkWindow</type></link>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>event</parameter>&#160;:</term>
<listitem><simpara>   a <link linkend="GdkEventKey"><type>GdkEventKey</type></link>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara> <link linkend="TRUE--CAPS"><literal>TRUE</literal></link> if a widget in the focus chain handled the event.
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="gtk-window-get-focus" role="function">
<title>gtk_window_get_focus ()</title>
<indexterm zone="gtk-window-get-focus"><primary sortas="window_get_focus">gtk_window_get_focus</primary></indexterm><programlisting><link linkend="GtkWidget">GtkWidget</link> *         gtk_window_get_focus                (<link linkend="GtkWindow">GtkWindow</link> *window);</programlisting>
<para>
Retrieves the current focused widget within the window.
Note that this is the widget that would have the focus
if the toplevel window focused; if the toplevel window
is not focused then  <literal>GTK_WIDGET_HAS_FOCUS (widget)</literal> will
not be <link linkend="TRUE--CAPS"><literal>TRUE</literal></link> for the widget.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>window</parameter>&#160;:</term>
<listitem><simpara> a <link linkend="GtkWindow"><type>GtkWindow</type></link>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara> the currently focused widget, or <link linkend="NULL--CAPS"><literal>NULL</literal></link> if there is none.
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="gtk-window-set-focus" role="function">
<title>gtk_window_set_focus ()</title>
<indexterm zone="gtk-window-set-focus"><primary sortas="window_set_focus">gtk_window_set_focus</primary></indexterm><programlisting><link linkend="void">void</link>                gtk_window_set_focus                (<link linkend="GtkWindow">GtkWindow</link> *window,
                                                         <link linkend="GtkWidget">GtkWidget</link> *focus);</programlisting>
<para>
If <parameter>focus</parameter> is not the current focus widget, and is focusable, sets
it as the focus widget for the window. If <parameter>focus</parameter> is <link linkend="NULL--CAPS"><literal>NULL</literal></link>, unsets
the focus widget for this window. To set the focus to a particular
widget in the toplevel, it is usually more convenient to use
<link linkend="gtk-widget-grab-focus"><function>gtk_widget_grab_focus()</function></link> instead of this function.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>window</parameter>&#160;:</term>
<listitem><simpara> a <link linkend="GtkWindow"><type>GtkWindow</type></link>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>focus</parameter>&#160;:</term>
<listitem><simpara> widget to be the new focus widget, or <link linkend="NULL--CAPS"><literal>NULL</literal></link> to unset
  any focus widget for the toplevel window.
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="gtk-window-get-default-widget" role="function" condition="since:2.14">
<title>gtk_window_get_default_widget ()</title>
<indexterm zone="gtk-window-get-default-widget" role="2.14"><primary sortas="window_get_default_widget">gtk_window_get_default_widget</primary></indexterm><programlisting><link linkend="GtkWidget">GtkWidget</link> *         gtk_window_get_default_widget       (<link linkend="GtkWindow">GtkWindow</link> *window);</programlisting>
<para>
Returns the default widget for <parameter>window</parameter>. See <link linkend="gtk-window-set-default"><function>gtk_window_set_default()</function></link>
for more details.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>window</parameter>&#160;:</term>
<listitem><simpara> a <link linkend="GtkWindow"><type>GtkWindow</type></link>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara> the default widget, or <link linkend="NULL--CAPS"><literal>NULL</literal></link> if there is none.

</simpara></listitem></varlistentry>
</variablelist><para role="since">Since 2.14</para></refsect2>
<refsect2 id="gtk-window-set-default" role="function">
<title>gtk_window_set_default ()</title>
<indexterm zone="gtk-window-set-default"><primary sortas="window_set_default">gtk_window_set_default</primary></indexterm><programlisting><link linkend="void">void</link>                gtk_window_set_default              (<link linkend="GtkWindow">GtkWindow</link> *window,
                                                         <link linkend="GtkWidget">GtkWidget</link> *default_widget);</programlisting>
<para>
The default widget is the widget that's activated when the user
presses Enter in a dialog (for example). This function sets or
unsets the default widget for a <link linkend="GtkWindow"><type>GtkWindow</type></link> about. When setting
(rather than unsetting) the default widget it's generally easier to
call <link linkend="gtk-widget-grab-focus"><function>gtk_widget_grab_focus()</function></link> on the widget. Before making a widget
the default widget, you must set the <link linkend="GTK-CAN-DEFAULT--CAPS"><type>GTK_CAN_DEFAULT</type></link> flag on the
widget you'd like to make the default using <link linkend="GTK-WIDGET-SET-FLAGS--CAPS"><function>GTK_WIDGET_SET_FLAGS()</function></link>.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>window</parameter>&#160;:</term>
<listitem><simpara> a <link linkend="GtkWindow"><type>GtkWindow</type></link>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>default_widget</parameter>&#160;:</term>
<listitem><simpara> widget to be the default, or <link linkend="NULL--CAPS"><literal>NULL</literal></link> to unset the
                 default widget for the toplevel.
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="gtk-window-present" role="function">
<title>gtk_window_present ()</title>
<indexterm zone="gtk-window-present"><primary sortas="window_present">gtk_window_present</primary></indexterm><programlisting><link linkend="void">void</link>                gtk_window_present                  (<link linkend="GtkWindow">GtkWindow</link> *window);</programlisting>
<para>
Presents a window to the user. This may mean raising the window
in the stacking order, deiconifying it, moving it to the current
desktop, and/or giving it the keyboard focus, possibly dependent
on the user's platform, window manager, and preferences.
</para>
<para>
If <parameter>window</parameter> is hidden, this function calls <link linkend="gtk-widget-show"><function>gtk_widget_show()</function></link>
as well.
</para>
<para>
This function should be used when the user tries to open a window
that's already open. Say for example the preferences dialog is
currently open, and the user chooses Preferences from the menu
a second time; use <link linkend="gtk-window-present"><function>gtk_window_present()</function></link> to move the already-open dialog
where the user can see it.
</para>
<para>
If you are calling this function in response to a user interaction,
it is preferable to use <link linkend="gtk-window-present-with-time"><function>gtk_window_present_with_time()</function></link>.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>window</parameter>&#160;:</term>
<listitem><simpara> a <link linkend="GtkWindow"><type>GtkWindow</type></link>
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="gtk-window-present-with-time" role="function" condition="since:2.8">
<title>gtk_window_present_with_time ()</title>
<indexterm zone="gtk-window-present-with-time" role="2.8"><primary sortas="window_present_with_time">gtk_window_present_with_time</primary></indexterm><programlisting><link linkend="void">void</link>                gtk_window_present_with_time        (<link linkend="GtkWindow">GtkWindow</link> *window,
                                                         <link linkend="guint32">guint32</link> timestamp);</programlisting>
<para>
Presents a window to the user in response to a user interaction.
If you need to present a window without a timestamp, use 
<link linkend="gtk-window-present"><function>gtk_window_present()</function></link>. See <link linkend="gtk-window-present"><function>gtk_window_present()</function></link> for details.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>window</parameter>&#160;:</term>
<listitem><simpara> a <link linkend="GtkWindow"><type>GtkWindow</type></link>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>timestamp</parameter>&#160;:</term>
<listitem><simpara> the timestamp of the user interaction (typically a 
  button or key press event) which triggered this call
</simpara></listitem></varlistentry>
</variablelist><para role="since">Since 2.8</para></refsect2>
<refsect2 id="gtk-window-iconify" role="function">
<title>gtk_window_iconify ()</title>
<indexterm zone="gtk-window-iconify"><primary sortas="window_iconify">gtk_window_iconify</primary></indexterm><programlisting><link linkend="void">void</link>                gtk_window_iconify                  (<link linkend="GtkWindow">GtkWindow</link> *window);</programlisting>
<para>
Asks to iconify (i.e. minimize) the specified <parameter>window</parameter>. Note that
you shouldn't assume the window is definitely iconified afterward,
because other entities (e.g. the user or <link
linkend="gtk-X11-arch">window manager</link>) could deiconify it
again, or there may not be a window manager in which case
iconification isn't possible, etc. But normally the window will end
up iconified. Just don't write code that crashes if not.
</para>
<para>
It's permitted to call this function before showing a window,
in which case the window will be iconified before it ever appears
onscreen.
</para>
<para>
You can track iconification via the "window-state-event" signal
on <link linkend="GtkWidget"><type>GtkWidget</type></link>.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>window</parameter>&#160;:</term>
<listitem><simpara> a <link linkend="GtkWindow"><type>GtkWindow</type></link>
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="gtk-window-deiconify" role="function">
<title>gtk_window_deiconify ()</title>
<indexterm zone="gtk-window-deiconify"><primary sortas="window_deiconify">gtk_window_deiconify</primary></indexterm><programlisting><link linkend="void">void</link>                gtk_window_deiconify                (<link linkend="GtkWindow">GtkWindow</link> *window);</programlisting>
<para>
Asks to deiconify (i.e. unminimize) the specified <parameter>window</parameter>. Note
that you shouldn't assume the window is definitely deiconified
afterward, because other entities (e.g. the user or <link
linkend="gtk-X11-arch">window manager</link>) could iconify it
again before your code which assumes deiconification gets to run.
</para>
<para>
You can track iconification via the "window-state-event" signal
on <link linkend="GtkWidget"><type>GtkWidget</type></link>.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>window</parameter>&#160;:</term>
<listitem><simpara> a <link linkend="GtkWindow"><type>GtkWindow</type></link>
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="gtk-window-stick" role="function">
<title>gtk_window_stick ()</title>
<indexterm zone="gtk-window-stick"><primary sortas="window_stick">gtk_window_stick</primary></indexterm><programlisting><link linkend="void">void</link>                gtk_window_stick                    (<link linkend="GtkWindow">GtkWindow</link> *window);</programlisting>
<para>
Asks to stick <parameter>window</parameter>, which means that it will appear on all user
desktops. Note that you shouldn't assume the window is definitely
stuck afterward, because other entities (e.g. the user or <link
linkend="gtk-X11-arch">window manager</link>) could unstick it
again, and some window managers do not support sticking
windows. But normally the window will end up stuck. Just don't
write code that crashes if not.
</para>
<para>
It's permitted to call this function before showing a window.
</para>
<para>
You can track stickiness via the "window-state-event" signal
on <link linkend="GtkWidget"><type>GtkWidget</type></link>.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>window</parameter>&#160;:</term>
<listitem><simpara> a <link linkend="GtkWindow"><type>GtkWindow</type></link>
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="gtk-window-unstick" role="function">
<title>gtk_window_unstick ()</title>
<indexterm zone="gtk-window-unstick"><primary sortas="window_unstick">gtk_window_unstick</primary></indexterm><programlisting><link linkend="void">void</link>                gtk_window_unstick                  (<link linkend="GtkWindow">GtkWindow</link> *window);</programlisting>
<para>
Asks to unstick <parameter>window</parameter>, which means that it will appear on only
one of the user's desktops. Note that you shouldn't assume the
window is definitely unstuck afterward, because other entities
(e.g. the user or <link linkend="gtk-X11-arch">window
manager</link>) could stick it again. But normally the window will
end up stuck. Just don't write code that crashes if not.
</para>
<para>
You can track stickiness via the "window-state-event" signal
on <link linkend="GtkWidget"><type>GtkWidget</type></link>.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>window</parameter>&#160;:</term>
<listitem><simpara> a <link linkend="GtkWindow"><type>GtkWindow</type></link>
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="gtk-window-maximize" role="function">
<title>gtk_window_maximize ()</title>
<indexterm zone="gtk-window-maximize"><primary sortas="window_maximize">gtk_window_maximize</primary></indexterm><programlisting><link linkend="void">void</link>                gtk_window_maximize                 (<link linkend="GtkWindow">GtkWindow</link> *window);</programlisting>
<para>
Asks to maximize <parameter>window</parameter>, so that it becomes full-screen. Note that
you shouldn't assume the window is definitely maximized afterward,
because other entities (e.g. the user or <link
linkend="gtk-X11-arch">window manager</link>) could unmaximize it
again, and not all window managers support maximization. But
normally the window will end up maximized. Just don't write code
that crashes if not.
</para>
<para>
It's permitted to call this function before showing a window,
in which case the window will be maximized when it appears onscreen
initially.
</para>
<para>
You can track maximization via the "window-state-event" signal
on <link linkend="GtkWidget"><type>GtkWidget</type></link>.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>window</parameter>&#160;:</term>
<listitem><simpara> a <link linkend="GtkWindow"><type>GtkWindow</type></link>
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="gtk-window-unmaximize" role="function">
<title>gtk_window_unmaximize ()</title>
<indexterm zone="gtk-window-unmaximize"><primary sortas="window_unmaximize">gtk_window_unmaximize</primary></indexterm><programlisting><link linkend="void">void</link>                gtk_window_unmaximize               (<link linkend="GtkWindow">GtkWindow</link> *window);</programlisting>
<para>
Asks to unmaximize <parameter>window</parameter>. Note that you shouldn't assume the
window is definitely unmaximized afterward, because other entities
(e.g. the user or <link linkend="gtk-X11-arch">window
manager</link>) could maximize it again, and not all window
managers honor requests to unmaximize. But normally the window will
end up unmaximized. Just don't write code that crashes if not.
</para>
<para>
You can track maximization via the "window-state-event" signal
on <link linkend="GtkWidget"><type>GtkWidget</type></link>.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>window</parameter>&#160;:</term>
<listitem><simpara> a <link linkend="GtkWindow"><type>GtkWindow</type></link>
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="gtk-window-fullscreen" role="function" condition="since:2.2">
<title>gtk_window_fullscreen ()</title>
<indexterm zone="gtk-window-fullscreen" role="2.2"><primary sortas="window_fullscreen">gtk_window_fullscreen</primary></indexterm><programlisting><link linkend="void">void</link>                gtk_window_fullscreen               (<link linkend="GtkWindow">GtkWindow</link> *window);</programlisting>
<para>
Asks to place <parameter>window</parameter> in the fullscreen state. Note that you
shouldn't assume the window is definitely full screen afterward,
because other entities (e.g. the user or <link
linkend="gtk-X11-arch">window manager</link>) could unfullscreen it
again, and not all window managers honor requests to fullscreen
windows. But normally the window will end up fullscreen. Just
don't write code that crashes if not.
</para>
<para>
You can track the fullscreen state via the "window-state-event" signal
on <link linkend="GtkWidget"><type>GtkWidget</type></link>.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>window</parameter>&#160;:</term>
<listitem><simpara> a <link linkend="GtkWindow"><type>GtkWindow</type></link>
</simpara></listitem></varlistentry>
</variablelist><para role="since">Since 2.2</para></refsect2>
<refsect2 id="gtk-window-unfullscreen" role="function" condition="since:2.2">
<title>gtk_window_unfullscreen ()</title>
<indexterm zone="gtk-window-unfullscreen" role="2.2"><primary sortas="window_unfullscreen">gtk_window_unfullscreen</primary></indexterm><programlisting><link linkend="void">void</link>                gtk_window_unfullscreen             (<link linkend="GtkWindow">GtkWindow</link> *window);</programlisting>
<para>
Asks to toggle off the fullscreen state for <parameter>window</parameter>. Note that you
shouldn't assume the window is definitely not full screen
afterward, because other entities (e.g. the user or <link
linkend="gtk-X11-arch">window manager</link>) could fullscreen it
again, and not all window managers honor requests to unfullscreen
windows. But normally the window will end up restored to its normal
state. Just don't write code that crashes if not.
</para>
<para>
You can track the fullscreen state via the "window-state-event" signal
on <link linkend="GtkWidget"><type>GtkWidget</type></link>.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>window</parameter>&#160;:</term>
<listitem><simpara> a <link linkend="GtkWindow"><type>GtkWindow</type></link>
</simpara></listitem></varlistentry>
</variablelist><para role="since">Since 2.2</para></refsect2>
<refsect2 id="gtk-window-set-keep-above" role="function" condition="since:2.4">
<title>gtk_window_set_keep_above ()</title>
<indexterm zone="gtk-window-set-keep-above" role="2.4"><primary sortas="window_set_keep_above">gtk_window_set_keep_above</primary></indexterm><programlisting><link linkend="void">void</link>                gtk_window_set_keep_above           (<link linkend="GtkWindow">GtkWindow</link> *window,
                                                         <link linkend="gboolean">gboolean</link> setting);</programlisting>
<para>
Asks to keep <parameter>window</parameter> above, so that it stays on top. Note that
you shouldn't assume the window is definitely above afterward,
because other entities (e.g. the user or <link
linkend="gtk-X11-arch">window manager</link>) could not keep it above,
and not all window managers support keeping windows above. But
normally the window will end kept above. Just don't write code
that crashes if not.
</para>
<para>
It's permitted to call this function before showing a window,
in which case the window will be kept above when it appears onscreen
initially.
</para>
<para>
You can track the above state via the "window-state-event" signal
on <link linkend="GtkWidget"><type>GtkWidget</type></link>.
</para>
<para>
Note that, according to the <ulink 
url="http://www.freedesktop.org/Standards/wm-spec">Extended Window 
Manager Hints</ulink> specification, the above state is mainly meant 
for user preferences and should not be used by applications e.g. for 
drawing attention to their dialogs.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>window</parameter>&#160;:</term>
<listitem><simpara> a <link linkend="GtkWindow"><type>GtkWindow</type></link>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>setting</parameter>&#160;:</term>
<listitem><simpara> whether to keep <parameter>window</parameter> above other windows
</simpara></listitem></varlistentry>
</variablelist><para role="since">Since 2.4</para></refsect2>
<refsect2 id="gtk-window-set-keep-below" role="function" condition="since:2.4">
<title>gtk_window_set_keep_below ()</title>
<indexterm zone="gtk-window-set-keep-below" role="2.4"><primary sortas="window_set_keep_below">gtk_window_set_keep_below</primary></indexterm><programlisting><link linkend="void">void</link>                gtk_window_set_keep_below           (<link linkend="GtkWindow">GtkWindow</link> *window,
                                                         <link linkend="gboolean">gboolean</link> setting);</programlisting>
<para>
Asks to keep <parameter>window</parameter> below, so that it stays in bottom. Note that
you shouldn't assume the window is definitely below afterward,
because other entities (e.g. the user or <link
linkend="gtk-X11-arch">window manager</link>) could not keep it below,
and not all window managers support putting windows below. But
normally the window will be kept below. Just don't write code
that crashes if not.
</para>
<para>
It's permitted to call this function before showing a window,
in which case the window will be kept below when it appears onscreen
initially.
</para>
<para>
You can track the below state via the "window-state-event" signal
on <link linkend="GtkWidget"><type>GtkWidget</type></link>.
</para>
<para>
Note that, according to the <ulink 
url="http://www.freedesktop.org/Standards/wm-spec">Extended Window 
Manager Hints</ulink> specification, the above state is mainly meant 
for user preferences and should not be used by applications e.g. for 
drawing attention to their dialogs.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>window</parameter>&#160;:</term>
<listitem><simpara> a <link linkend="GtkWindow"><type>GtkWindow</type></link>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>setting</parameter>&#160;:</term>
<listitem><simpara> whether to keep <parameter>window</parameter> below other windows
</simpara></listitem></varlistentry>
</variablelist><para role="since">Since 2.4</para></refsect2>
<refsect2 id="gtk-window-begin-resize-drag" role="function">
<title>gtk_window_begin_resize_drag ()</title>
<indexterm zone="gtk-window-begin-resize-drag"><primary sortas="window_begin_resize_drag">gtk_window_begin_resize_drag</primary></indexterm><programlisting><link linkend="void">void</link>                gtk_window_begin_resize_drag        (<link linkend="GtkWindow">GtkWindow</link> *window,
                                                         <link linkend="GdkWindowEdge">GdkWindowEdge</link> edge,
                                                         <link linkend="gint">gint</link> button,
                                                         <link linkend="gint">gint</link> root_x,
                                                         <link linkend="gint">gint</link> root_y,
                                                         <link linkend="guint32">guint32</link> timestamp);</programlisting>
<para>
Starts resizing a window. This function is used if an application
has window resizing controls. When GDK can support it, the resize
will be done using the standard mechanism for the <link
linkend="gtk-X11-arch">window manager</link> or windowing
system. Otherwise, GDK will try to emulate window resizing,
potentially not all that well, depending on the windowing system.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>window</parameter>&#160;:</term>
<listitem><simpara> a <link linkend="GtkWindow"><type>GtkWindow</type></link>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>edge</parameter>&#160;:</term>
<listitem><simpara> position of the resize control
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>button</parameter>&#160;:</term>
<listitem><simpara> mouse button that initiated the drag
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>root_x</parameter>&#160;:</term>
<listitem><simpara> X position where the user clicked to initiate the drag, in root window coordinates
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>root_y</parameter>&#160;:</term>
<listitem><simpara> Y position where the user clicked to initiate the drag
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>timestamp</parameter>&#160;:</term>
<listitem><simpara> timestamp from the click event that initiated the drag
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="gtk-window-begin-move-drag" role="function">
<title>gtk_window_begin_move_drag ()</title>
<indexterm zone="gtk-window-begin-move-drag"><primary sortas="window_begin_move_drag">gtk_window_begin_move_drag</primary></indexterm><programlisting><link linkend="void">void</link>                gtk_window_begin_move_drag          (<link linkend="GtkWindow">GtkWindow</link> *window,
                                                         <link linkend="gint">gint</link> button,
                                                         <link linkend="gint">gint</link> root_x,
                                                         <link linkend="gint">gint</link> root_y,
                                                         <link linkend="guint32">guint32</link> timestamp);</programlisting>
<para>
Starts moving a window. This function is used if an application has
window movement grips. When GDK can support it, the window movement
will be done using the standard mechanism for the <link
linkend="gtk-X11-arch">window manager</link> or windowing
system. Otherwise, GDK will try to emulate window movement,
potentially not all that well, depending on the windowing system.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>window</parameter>&#160;:</term>
<listitem><simpara> a <link linkend="GtkWindow"><type>GtkWindow</type></link>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>button</parameter>&#160;:</term>
<listitem><simpara> mouse button that initiated the drag
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>root_x</parameter>&#160;:</term>
<listitem><simpara> X position where the user clicked to initiate the drag, in root window coordinates
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>root_y</parameter>&#160;:</term>
<listitem><simpara> Y position where the user clicked to initiate the drag
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>timestamp</parameter>&#160;:</term>
<listitem><simpara> timestamp from the click event that initiated the drag
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="gtk-window-set-decorated" role="function">
<title>gtk_window_set_decorated ()</title>
<indexterm zone="gtk-window-set-decorated"><primary sortas="window_set_decorated">gtk_window_set_decorated</primary></indexterm><programlisting><link linkend="void">void</link>                gtk_window_set_decorated            (<link linkend="GtkWindow">GtkWindow</link> *window,
                                                         <link linkend="gboolean">gboolean</link> setting);</programlisting>
<para>
By default, windows are decorated with a title bar, resize
controls, etc.  Some <link linkend="gtk-X11-arch">window
managers</link> allow GTK+ to disable these decorations, creating a
borderless window. If you set the decorated property to <link linkend="FALSE--CAPS"><literal>FALSE</literal></link>
using this function, GTK+ will do its best to convince the window
manager not to decorate the window. Depending on the system, this
function may not have any effect when called on a window that is
already visible, so you should call it before calling <link linkend="gtk-window-show"><function>gtk_window_show()</function></link>.
</para>
<para>
On Windows, this function always works, since there's no window manager
policy involved.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>window</parameter>&#160;:</term>
<listitem><simpara> a <link linkend="GtkWindow"><type>GtkWindow</type></link>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>setting</parameter>&#160;:</term>
<listitem><simpara> <link linkend="TRUE--CAPS"><literal>TRUE</literal></link> to decorate the window
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="gtk-window-set-deletable" role="function" condition="since:2.10">
<title>gtk_window_set_deletable ()</title>
<indexterm zone="gtk-window-set-deletable" role="2.10"><primary sortas="window_set_deletable">gtk_window_set_deletable</primary></indexterm><programlisting><link linkend="void">void</link>                gtk_window_set_deletable            (<link linkend="GtkWindow">GtkWindow</link> *window,
                                                         <link linkend="gboolean">gboolean</link> setting);</programlisting>
<para>
By default, windows have a close button in the window frame. Some 
<link linkend="gtk-X11-arch">window managers</link> allow GTK+ to 
disable this button. If you set the deletable property to <link linkend="FALSE--CAPS"><literal>FALSE</literal></link>
using this function, GTK+ will do its best to convince the window
manager not to show a close button. Depending on the system, this
function may not have any effect when called on a window that is
already visible, so you should call it before calling <link linkend="gtk-window-show"><function>gtk_window_show()</function></link>.
</para>
<para>
On Windows, this function always works, since there's no window manager
policy involved.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>window</parameter>&#160;:</term>
<listitem><simpara> a <link linkend="GtkWindow"><type>GtkWindow</type></link>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>setting</parameter>&#160;:</term>
<listitem><simpara> <link linkend="TRUE--CAPS"><literal>TRUE</literal></link> to decorate the window as deletable
</simpara></listitem></varlistentry>
</variablelist><para role="since">Since 2.10</para></refsect2>
<refsect2 id="gtk-window-set-frame-dimensions" role="function">
<title>gtk_window_set_frame_dimensions ()</title>
<indexterm zone="gtk-window-set-frame-dimensions"><primary sortas="window_set_frame_dimensions">gtk_window_set_frame_dimensions</primary></indexterm><programlisting><link linkend="void">void</link>                gtk_window_set_frame_dimensions     (<link linkend="GtkWindow">GtkWindow</link> *window,
                                                         <link linkend="gint">gint</link> left,
                                                         <link linkend="gint">gint</link> top,
                                                         <link linkend="gint">gint</link> right,
                                                         <link linkend="gint">gint</link> bottom);</programlisting>
<para>
(Note: this is a special-purpose function intended for the framebuffer
 port; see <link linkend="gtk-window-set-has-frame"><function>gtk_window_set_has_frame()</function></link>. It will have no effect on the
 window border drawn by the window manager, which is the normal
 case when using the X Window system.)
</para>
<para>
For windows with frames (see <link linkend="gtk-window-set-has-frame"><function>gtk_window_set_has_frame()</function></link>) this function
can be used to change the size of the frame border.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>window</parameter>&#160;:</term>
<listitem><simpara> a <link linkend="GtkWindow"><type>GtkWindow</type></link> that has a frame
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>left</parameter>&#160;:</term>
<listitem><simpara> The width of the left border
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>top</parameter>&#160;:</term>
<listitem><simpara> The height of the top border
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>right</parameter>&#160;:</term>
<listitem><simpara> The width of the right border
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>bottom</parameter>&#160;:</term>
<listitem><simpara> The height of the bottom border
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="gtk-window-set-has-frame" role="function">
<title>gtk_window_set_has_frame ()</title>
<indexterm zone="gtk-window-set-has-frame"><primary sortas="window_set_has_frame">gtk_window_set_has_frame</primary></indexterm><programlisting><link linkend="void">void</link>                gtk_window_set_has_frame            (<link linkend="GtkWindow">GtkWindow</link> *window,
                                                         <link linkend="gboolean">gboolean</link> setting);</programlisting>
<para>
(Note: this is a special-purpose function for the framebuffer port,
 that causes GTK+ to draw its own window border. For most applications,
 you want <link linkend="gtk-window-set-decorated"><function>gtk_window_set_decorated()</function></link> instead, which tells the window
 manager whether to draw the window border.)
</para>
<para>
If this function is called on a window with setting of <link linkend="TRUE--CAPS"><literal>TRUE</literal></link>, before
it is realized or showed, it will have a "frame" window around
<parameter>window->window</parameter>, accessible in <parameter>window->frame</parameter>. Using the signal 
frame_event you can receive all events targeted at the frame.
</para>
<para>
This function is used by the linux-fb port to implement managed
windows, but it could conceivably be used by X-programs that
want to do their own window decorations.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>window</parameter>&#160;:</term>
<listitem><simpara> a <link linkend="GtkWindow"><type>GtkWindow</type></link>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>setting</parameter>&#160;:</term>
<listitem><simpara> a boolean
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="gtk-window-set-mnemonic-modifier" role="function">
<title>gtk_window_set_mnemonic_modifier ()</title>
<indexterm zone="gtk-window-set-mnemonic-modifier"><primary sortas="window_set_mnemonic_modifier">gtk_window_set_mnemonic_modifier</primary></indexterm><programlisting><link linkend="void">void</link>                gtk_window_set_mnemonic_modifier    (<link linkend="GtkWindow">GtkWindow</link> *window,
                                                         <link linkend="GdkModifierType">GdkModifierType</link> modifier);</programlisting>
<para>
Sets the mnemonic modifier for this window.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>window</parameter>&#160;:</term>
<listitem><simpara> a <link linkend="GtkWindow"><type>GtkWindow</type></link>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>modifier</parameter>&#160;:</term>
<listitem><simpara> the modifier mask used to activate
              mnemonics on this window.
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="gtk-window-set-type-hint" role="function">
<title>gtk_window_set_type_hint ()</title>
<indexterm zone="gtk-window-set-type-hint"><primary sortas="window_set_type_hint">gtk_window_set_type_hint</primary></indexterm><programlisting><link linkend="void">void</link>                gtk_window_set_type_hint            (<link linkend="GtkWindow">GtkWindow</link> *window,
                                                         <link linkend="GdkWindowTypeHint">GdkWindowTypeHint</link> hint);</programlisting>
<para>
By setting the type hint for the window, you allow the window
manager to decorate and handle the window in a way which is
suitable to the function of the window in your application.
</para>
<para>
This function should be called before the window becomes visible.
</para>
<para>
<link linkend="gtk-dialog-new-with-buttons"><function>gtk_dialog_new_with_buttons()</function></link> and other convenience functions in GTK+
will sometimes call <link linkend="gtk-window-set-type-hint"><function>gtk_window_set_type_hint()</function></link> on your behalf.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>window</parameter>&#160;:</term>
<listitem><simpara> a <link linkend="GtkWindow"><type>GtkWindow</type></link>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>hint</parameter>&#160;:</term>
<listitem><simpara> the window type
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="gtk-window-set-skip-taskbar-hint" role="function" condition="since:2.2">
<title>gtk_window_set_skip_taskbar_hint ()</title>
<indexterm zone="gtk-window-set-skip-taskbar-hint" role="2.2"><primary sortas="window_set_skip_taskbar_hint">gtk_window_set_skip_taskbar_hint</primary></indexterm><programlisting><link linkend="void">void</link>                gtk_window_set_skip_taskbar_hint    (<link linkend="GtkWindow">GtkWindow</link> *window,
                                                         <link linkend="gboolean">gboolean</link> setting);</programlisting>
<para>
Windows may set a hint asking the desktop environment not to display
the window in the task bar. This function sets this hint.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>window</parameter>&#160;:</term>
<listitem><simpara> a <link linkend="GtkWindow"><type>GtkWindow</type></link> 
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>setting</parameter>&#160;:</term>
<listitem><simpara> <link linkend="TRUE--CAPS"><literal>TRUE</literal></link> to keep this window from appearing in the task bar
</simpara></listitem></varlistentry>
</variablelist><para role="since">Since 2.2</para></refsect2>
<refsect2 id="gtk-window-set-skip-pager-hint" role="function" condition="since:2.2">
<title>gtk_window_set_skip_pager_hint ()</title>
<indexterm zone="gtk-window-set-skip-pager-hint" role="2.2"><primary sortas="window_set_skip_pager_hint">gtk_window_set_skip_pager_hint</primary></indexterm><programlisting><link linkend="void">void</link>                gtk_window_set_skip_pager_hint      (<link linkend="GtkWindow">GtkWindow</link> *window,
                                                         <link linkend="gboolean">gboolean</link> setting);</programlisting>
<para>
Windows may set a hint asking the desktop environment not to display
the window in the pager. This function sets this hint.
(A "pager" is any desktop navigation tool such as a workspace
switcher that displays a thumbnail representation of the windows
on the screen.)</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>window</parameter>&#160;:</term>
<listitem><simpara> a <link linkend="GtkWindow"><type>GtkWindow</type></link> 
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>setting</parameter>&#160;:</term>
<listitem><simpara> <link linkend="TRUE--CAPS"><literal>TRUE</literal></link> to keep this window from appearing in the pager
</simpara></listitem></varlistentry>
</variablelist><para role="since">Since 2.2</para></refsect2>
<refsect2 id="gtk-window-set-urgency-hint" role="function" condition="since:2.8">
<title>gtk_window_set_urgency_hint ()</title>
<indexterm zone="gtk-window-set-urgency-hint" role="2.8"><primary sortas="window_set_urgency_hint">gtk_window_set_urgency_hint</primary></indexterm><programlisting><link linkend="void">void</link>                gtk_window_set_urgency_hint         (<link linkend="GtkWindow">GtkWindow</link> *window,
                                                         <link linkend="gboolean">gboolean</link> setting);</programlisting>
<para>
Windows may set a hint asking the desktop environment to draw
the users attention to the window. This function sets this hint.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>window</parameter>&#160;:</term>
<listitem><simpara> a <link linkend="GtkWindow"><type>GtkWindow</type></link> 
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>setting</parameter>&#160;:</term>
<listitem><simpara> <link linkend="TRUE--CAPS"><literal>TRUE</literal></link> to mark this window as urgent
</simpara></listitem></varlistentry>
</variablelist><para role="since">Since 2.8</para></refsect2>
<refsect2 id="gtk-window-set-accept-focus" role="function" condition="since:2.4">
<title>gtk_window_set_accept_focus ()</title>
<indexterm zone="gtk-window-set-accept-focus" role="2.4"><primary sortas="window_set_accept_focus">gtk_window_set_accept_focus</primary></indexterm><programlisting><link linkend="void">void</link>                gtk_window_set_accept_focus         (<link linkend="GtkWindow">GtkWindow</link> *window,
                                                         <link linkend="gboolean">gboolean</link> setting);</programlisting>
<para>
Windows may set a hint asking the desktop environment not to receive
the input focus. This function sets this hint.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>window</parameter>&#160;:</term>
<listitem><simpara> a <link linkend="GtkWindow"><type>GtkWindow</type></link> 
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>setting</parameter>&#160;:</term>
<listitem><simpara> <link linkend="TRUE--CAPS"><literal>TRUE</literal></link> to let this window receive input focus
</simpara></listitem></varlistentry>
</variablelist><para role="since">Since 2.4</para></refsect2>
<refsect2 id="gtk-window-set-focus-on-map" role="function" condition="since:2.6">
<title>gtk_window_set_focus_on_map ()</title>
<indexterm zone="gtk-window-set-focus-on-map" role="2.6"><primary sortas="window_set_focus_on_map">gtk_window_set_focus_on_map</primary></indexterm><programlisting><link linkend="void">void</link>                gtk_window_set_focus_on_map         (<link linkend="GtkWindow">GtkWindow</link> *window,
                                                         <link linkend="gboolean">gboolean</link> setting);</programlisting>
<para>
Windows may set a hint asking the desktop environment not to receive
the input focus when the window is mapped.  This function sets this
hint.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>window</parameter>&#160;:</term>
<listitem><simpara> a <link linkend="GtkWindow"><type>GtkWindow</type></link> 
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>setting</parameter>&#160;:</term>
<listitem><simpara> <link linkend="TRUE--CAPS"><literal>TRUE</literal></link> to let this window receive input focus on map
</simpara></listitem></varlistentry>
</variablelist><para role="since">Since 2.6</para></refsect2>
<refsect2 id="gtk-window-set-startup-id" role="function" condition="since:2.12">
<title>gtk_window_set_startup_id ()</title>
<indexterm zone="gtk-window-set-startup-id" role="2.12"><primary sortas="window_set_startup_id">gtk_window_set_startup_id</primary></indexterm><programlisting><link linkend="void">void</link>                gtk_window_set_startup_id           (<link linkend="GtkWindow">GtkWindow</link> *window,
                                                         const <link linkend="gchar">gchar</link> *startup_id);</programlisting>
<para>
Startup notification identifiers are used by desktop environment to 
track application startup, to provide user feedback and other 
features. This function changes the corresponding property on the
underlying GdkWindow. Normally, startup identifier is managed 
automatically and you should only use this function in special cases
like transferring focus from other processes. You should use this
function before calling <link linkend="gtk-window-present"><function>gtk_window_present()</function></link> or any equivalent
function generating a window map event.
</para>
<para>
This function is only useful on X11, not with other GTK+ targets.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>window</parameter>&#160;:</term>
<listitem><simpara> a <link linkend="GtkWindow"><type>GtkWindow</type></link>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>startup_id</parameter>&#160;:</term>
<listitem><simpara> a string with startup-notification identifier
</simpara></listitem></varlistentry>
</variablelist><para role="since">Since 2.12</para></refsect2>
<refsect2 id="gtk-window-set-role" role="function">
<title>gtk_window_set_role ()</title>
<indexterm zone="gtk-window-set-role"><primary sortas="window_set_role">gtk_window_set_role</primary></indexterm><programlisting><link linkend="void">void</link>                gtk_window_set_role                 (<link linkend="GtkWindow">GtkWindow</link> *window,
                                                         const <link linkend="gchar">gchar</link> *role);</programlisting>
<para>
This function is only useful on X11, not with other GTK+ targets.
</para>
<para>
In combination with the window title, the window role allows a
<link linkend="gtk-X11-arch">window manager</link> to identify "the
same" window when an application is restarted. So for example you
might set the "toolbox" role on your app's toolbox window, so that
when the user restarts their session, the window manager can put
the toolbox back in the same place.
</para>
<para>
If a window already has a unique title, you don't need to set the
role, since the WM can use the title to identify the window when
restoring the session.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>window</parameter>&#160;:</term>
<listitem><simpara> a <link linkend="GtkWindow"><type>GtkWindow</type></link>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>role</parameter>&#160;:</term>
<listitem><simpara> unique identifier for the window to be used when restoring a session
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="gtk-window-get-decorated" role="function">
<title>gtk_window_get_decorated ()</title>
<indexterm zone="gtk-window-get-decorated"><primary sortas="window_get_decorated">gtk_window_get_decorated</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link>            gtk_window_get_decorated            (<link linkend="GtkWindow">GtkWindow</link> *window);</programlisting>
<para>
Returns whether the window has been set to have decorations
such as a title bar via <link linkend="gtk-window-set-decorated"><function>gtk_window_set_decorated()</function></link>.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>window</parameter>&#160;:</term>
<listitem><simpara> a <link linkend="GtkWindow"><type>GtkWindow</type></link>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara> <link linkend="TRUE--CAPS"><literal>TRUE</literal></link> if the window has been set to have decorations
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="gtk-window-get-deletable" role="function" condition="since:2.10">
<title>gtk_window_get_deletable ()</title>
<indexterm zone="gtk-window-get-deletable" role="2.10"><primary sortas="window_get_deletable">gtk_window_get_deletable</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link>            gtk_window_get_deletable            (<link linkend="GtkWindow">GtkWindow</link> *window);</programlisting>
<para>
Returns whether the window has been set to have a close button
via <link linkend="gtk-window-set-deletable"><function>gtk_window_set_deletable()</function></link>.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>window</parameter>&#160;:</term>
<listitem><simpara> a <link linkend="GtkWindow"><type>GtkWindow</type></link>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara> <link linkend="TRUE--CAPS"><literal>TRUE</literal></link> if the window has been set to have a close button

</simpara></listitem></varlistentry>
</variablelist><para role="since">Since 2.10</para></refsect2>
<refsect2 id="gtk-window-get-default-icon-list" role="function">
<title>gtk_window_get_default_icon_list ()</title>
<indexterm zone="gtk-window-get-default-icon-list"><primary sortas="window_get_default_icon_list">gtk_window_get_default_icon_list</primary></indexterm><programlisting><link linkend="GList">GList</link>*              gtk_window_get_default_icon_list    (void);</programlisting>
<para>
Gets the value set by <link linkend="gtk-window-set-default-icon-list"><function>gtk_window_set_default_icon_list()</function></link>.
The list is a copy and should be freed with <link linkend="g-list-free"><function>g_list_free()</function></link>,
but the pixbufs in the list have not had their reference count
incremented.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara> copy of default icon list 
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="gtk-window-get-default-icon-name" role="function" condition="since:2.16">
<title>gtk_window_get_default_icon_name ()</title>
<indexterm zone="gtk-window-get-default-icon-name" role="2.16"><primary sortas="window_get_default_icon_name">gtk_window_get_default_icon_name</primary></indexterm><programlisting><link linkend="gchar">gchar</link> *             gtk_window_get_default_icon_name    (void);</programlisting>
<para>
Returns the fallback icon name for windows that has been set
with <link linkend="gtk-window-set-default-icon-name"><function>gtk_window_set_default_icon_name()</function></link>. The returned
string is owned by GTK+ and should not be modified. It
is only valid until the next call to
<link linkend="gtk-window-set-default-icon-name"><function>gtk_window_set_default_icon_name()</function></link>.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara> the fallback icon name for windows

</simpara></listitem></varlistentry>
</variablelist><para role="since">Since 2.16</para></refsect2>
<refsect2 id="gtk-window-get-default-size" role="function">
<title>gtk_window_get_default_size ()</title>
<indexterm zone="gtk-window-get-default-size"><primary sortas="window_get_default_size">gtk_window_get_default_size</primary></indexterm><programlisting><link linkend="void">void</link>                gtk_window_get_default_size         (<link linkend="GtkWindow">GtkWindow</link> *window,
                                                         <link linkend="gint">gint</link> *width,
                                                         <link linkend="gint">gint</link> *height);</programlisting>
<para>
Gets the default size of the window. A value of -1 for the width or
height indicates that a default size has not been explicitly set
for that dimension, so the "natural" size of the window will be
used.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>window</parameter>&#160;:</term>
<listitem><simpara> a <link linkend="GtkWindow"><type>GtkWindow</type></link>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>width</parameter>&#160;:</term>
<listitem><simpara> location to store the default width, or <link linkend="NULL--CAPS"><literal>NULL</literal></link>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>height</parameter>&#160;:</term>
<listitem><simpara> location to store the default height, or <link linkend="NULL--CAPS"><literal>NULL</literal></link>
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="gtk-window-get-destroy-with-parent" role="function">
<title>gtk_window_get_destroy_with_parent ()</title>
<indexterm zone="gtk-window-get-destroy-with-parent"><primary sortas="window_get_destroy_with_parent">gtk_window_get_destroy_with_parent</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link>            gtk_window_get_destroy_with_parent  (<link linkend="GtkWindow">GtkWindow</link> *window);</programlisting>
<para>
Returns whether the window will be destroyed with its transient parent. See
<link linkend="gtk-window-set-destroy-with-parent"><function>gtk_window_set_destroy_with_parent()</function></link>.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>window</parameter>&#160;:</term>
<listitem><simpara> a <link linkend="GtkWindow"><type>GtkWindow</type></link>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara> <link linkend="TRUE--CAPS"><literal>TRUE</literal></link> if the window will be destroyed with its transient parent.
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="gtk-window-get-frame-dimensions" role="function">
<title>gtk_window_get_frame_dimensions ()</title>
<indexterm zone="gtk-window-get-frame-dimensions"><primary sortas="window_get_frame_dimensions">gtk_window_get_frame_dimensions</primary></indexterm><programlisting><link linkend="void">void</link>                gtk_window_get_frame_dimensions     (<link linkend="GtkWindow">GtkWindow</link> *window,
                                                         <link linkend="gint">gint</link> *left,
                                                         <link linkend="gint">gint</link> *top,
                                                         <link linkend="gint">gint</link> *right,
                                                         <link linkend="gint">gint</link> *bottom);</programlisting>
<para>
(Note: this is a special-purpose function intended for the
 framebuffer port; see <link linkend="gtk-window-set-has-frame"><function>gtk_window_set_has_frame()</function></link>. It will not
 return the size of the window border drawn by the <link
 linkend="gtk-X11-arch">window manager</link>, which is the normal
 case when using a windowing system.  See
 <link linkend="gdk-window-get-frame-extents"><function>gdk_window_get_frame_extents()</function></link> to get the standard window border
 extents.)
</para>
<para>
Retrieves the dimensions of the frame window for this toplevel.
See <link linkend="gtk-window-set-has-frame"><function>gtk_window_set_has_frame()</function></link>, <link linkend="gtk-window-set-frame-dimensions"><function>gtk_window_set_frame_dimensions()</function></link>.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>window</parameter>&#160;:</term>
<listitem><simpara> a <link linkend="GtkWindow"><type>GtkWindow</type></link>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>left</parameter>&#160;:</term>
<listitem><simpara> location to store the width of the frame at the left, or <link linkend="NULL--CAPS"><literal>NULL</literal></link>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>top</parameter>&#160;:</term>
<listitem><simpara> location to store the height of the frame at the top, or <link linkend="NULL--CAPS"><literal>NULL</literal></link>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>right</parameter>&#160;:</term>
<listitem><simpara> location to store the width of the frame at the returns, or <link linkend="NULL--CAPS"><literal>NULL</literal></link>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>bottom</parameter>&#160;:</term>
<listitem><simpara> location to store the height of the frame at the bottom, or <link linkend="NULL--CAPS"><literal>NULL</literal></link>
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="gtk-window-get-has-frame" role="function">
<title>gtk_window_get_has_frame ()</title>
<indexterm zone="gtk-window-get-has-frame"><primary sortas="window_get_has_frame">gtk_window_get_has_frame</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link>            gtk_window_get_has_frame            (<link linkend="GtkWindow">GtkWindow</link> *window);</programlisting>
<para>
Accessor for whether the window has a frame window exterior to
<parameter>window->window</parameter>. Gets the value set by <link linkend="gtk-window-set-has-frame"><function>gtk_window_set_has_frame()</function></link>.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>window</parameter>&#160;:</term>
<listitem><simpara> a <link linkend="GtkWindow"><type>GtkWindow</type></link>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara> <link linkend="TRUE--CAPS"><literal>TRUE</literal></link> if a frame has been added to the window
  via <link linkend="gtk-window-set-has-frame"><function>gtk_window_set_has_frame()</function></link>.
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="gtk-window-get-icon" role="function">
<title>gtk_window_get_icon ()</title>
<indexterm zone="gtk-window-get-icon"><primary sortas="window_get_icon">gtk_window_get_icon</primary></indexterm><programlisting><link linkend="GdkPixbuf">GdkPixbuf</link>*          gtk_window_get_icon                 (<link linkend="GtkWindow">GtkWindow</link> *window);</programlisting>
<para>
Gets the value set by <link linkend="gtk-window-set-icon"><function>gtk_window_set_icon()</function></link> (or if you've
called <link linkend="gtk-window-set-icon-list"><function>gtk_window_set_icon_list()</function></link>, gets the first icon in
the icon list).</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>window</parameter>&#160;:</term>
<listitem><simpara> a <link linkend="GtkWindow"><type>GtkWindow</type></link>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara> icon for window
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="gtk-window-get-icon-list" role="function">
<title>gtk_window_get_icon_list ()</title>
<indexterm zone="gtk-window-get-icon-list"><primary sortas="window_get_icon_list">gtk_window_get_icon_list</primary></indexterm><programlisting><link linkend="GList">GList</link>*              gtk_window_get_icon_list            (<link linkend="GtkWindow">GtkWindow</link> *window);</programlisting>
<para>
Retrieves the list of icons set by <link linkend="gtk-window-set-icon-list"><function>gtk_window_set_icon_list()</function></link>.
The list is copied, but the reference count on each
member won't be incremented.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>window</parameter>&#160;:</term>
<listitem><simpara> a <link linkend="GtkWindow"><type>GtkWindow</type></link>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara> copy of window's icon list
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="gtk-window-get-icon-name" role="function" condition="since:2.6">
<title>gtk_window_get_icon_name ()</title>
<indexterm zone="gtk-window-get-icon-name" role="2.6"><primary sortas="window_get_icon_name">gtk_window_get_icon_name</primary></indexterm><programlisting><link linkend="gchar">gchar</link> *             gtk_window_get_icon_name            (<link linkend="GtkWindow">GtkWindow</link> *window);</programlisting>
<para>
Returns the name of the themed icon for the window,
see <link linkend="gtk-window-set-icon-name"><function>gtk_window_set_icon_name()</function></link>.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>window</parameter>&#160;:</term>
<listitem><simpara> a <link linkend="GtkWindow"><type>GtkWindow</type></link>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara> the icon name or <link linkend="NULL--CAPS"><literal>NULL</literal></link> if the window has 
no themed icon

</simpara></listitem></varlistentry>
</variablelist><para role="since">Since 2.6</para></refsect2>
<refsect2 id="gtk-window-get-mnemonic-modifier" role="function">
<title>gtk_window_get_mnemonic_modifier ()</title>
<indexterm zone="gtk-window-get-mnemonic-modifier"><primary sortas="window_get_mnemonic_modifier">gtk_window_get_mnemonic_modifier</primary></indexterm><programlisting><link linkend="GdkModifierType">GdkModifierType</link>     gtk_window_get_mnemonic_modifier    (<link linkend="GtkWindow">GtkWindow</link> *window);</programlisting>
<para>
Returns the mnemonic modifier for this window. See
<link linkend="gtk-window-set-mnemonic-modifier"><function>gtk_window_set_mnemonic_modifier()</function></link>.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>window</parameter>&#160;:</term>
<listitem><simpara> a <link linkend="GtkWindow"><type>GtkWindow</type></link>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara> the modifier mask used to activate
              mnemonics on this window.
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="gtk-window-get-modal" role="function">
<title>gtk_window_get_modal ()</title>
<indexterm zone="gtk-window-get-modal"><primary sortas="window_get_modal">gtk_window_get_modal</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link>            gtk_window_get_modal                (<link linkend="GtkWindow">GtkWindow</link> *window);</programlisting>
<para>
Returns whether the window is modal. See <link linkend="gtk-window-set-modal"><function>gtk_window_set_modal()</function></link>.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>window</parameter>&#160;:</term>
<listitem><simpara> a <link linkend="GtkWindow"><type>GtkWindow</type></link>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara> <link linkend="TRUE--CAPS"><literal>TRUE</literal></link> if the window is set to be modal and
              establishes a grab when shown
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="gtk-window-get-position" role="function">
<title>gtk_window_get_position ()</title>
<indexterm zone="gtk-window-get-position"><primary sortas="window_get_position">gtk_window_get_position</primary></indexterm><programlisting><link linkend="void">void</link>                gtk_window_get_position             (<link linkend="GtkWindow">GtkWindow</link> *window,
                                                         <link linkend="gint">gint</link> *root_x,
                                                         <link linkend="gint">gint</link> *root_y);</programlisting>
<para>
This function returns the position you need to pass to
<link linkend="gtk-window-move"><function>gtk_window_move()</function></link> to keep <parameter>window</parameter> in its current position.  This
means that the meaning of the returned value varies with window
gravity. See <link linkend="gtk-window-move"><function>gtk_window_move()</function></link> for more details.
</para>
<para>
If you haven't changed the window gravity, its gravity will be
<link linkend="GDK-GRAVITY-NORTH-WEST--CAPS"><type>GDK_GRAVITY_NORTH_WEST</type></link>. This means that <link linkend="gtk-window-get-position"><function>gtk_window_get_position()</function></link>
gets the position of the top-left corner of the window manager
frame for the window. <link linkend="gtk-window-move"><function>gtk_window_move()</function></link> sets the position of this
same top-left corner.
</para>
<para>
<link linkend="gtk-window-get-position"><function>gtk_window_get_position()</function></link> is not 100% reliable because the X Window System
does not specify a way to obtain the geometry of the
decorations placed on a window by the window manager.
Thus GTK+ is using a "best guess" that works with most
window managers.
</para>
<para>
Moreover, nearly all window managers are historically broken with
respect to their handling of window gravity. So moving a window to
its current position as returned by <link linkend="gtk-window-get-position"><function>gtk_window_get_position()</function></link> tends
to result in moving the window slightly. Window managers are
slowly getting better over time.
</para>
<para>
If a window has gravity <link linkend="GDK-GRAVITY-STATIC--CAPS"><type>GDK_GRAVITY_STATIC</type></link> the window manager
frame is not relevant, and thus <link linkend="gtk-window-get-position"><function>gtk_window_get_position()</function></link> will
always produce accurate results. However you can't use static
gravity to do things like place a window in a corner of the screen,
because static gravity ignores the window manager decorations.
</para>
<para>
If you are saving and restoring your application's window
positions, you should know that it's impossible for applications to
do this without getting it somewhat wrong because applications do
not have sufficient knowledge of window manager state. The Correct
Mechanism is to support the session management protocol (see the
"GnomeClient" object in the GNOME libraries for example) and allow
the window manager to save your window sizes and positions.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>window</parameter>&#160;:</term>
<listitem><simpara> a <link linkend="GtkWindow"><type>GtkWindow</type></link>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>root_x</parameter>&#160;:</term>
<listitem><simpara> return location for X coordinate of gravity-determined reference point
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>root_y</parameter>&#160;:</term>
<listitem><simpara> return location for Y coordinate of gravity-determined reference point
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="gtk-window-get-role" role="function">
<title>gtk_window_get_role ()</title>
<indexterm zone="gtk-window-get-role"><primary sortas="window_get_role">gtk_window_get_role</primary></indexterm><programlisting>const <link linkend="gchar">gchar</link> *       gtk_window_get_role                 (<link linkend="GtkWindow">GtkWindow</link> *window);</programlisting>
<para>
Returns the role of the window. See <link linkend="gtk-window-set-role"><function>gtk_window_set_role()</function></link> for
further explanation.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>window</parameter>&#160;:</term>
<listitem><simpara> a <link linkend="GtkWindow"><type>GtkWindow</type></link>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara> the role of the window if set, or <link linkend="NULL--CAPS"><literal>NULL</literal></link>. The
  returned is owned by the widget and must not be modified
  or freed.
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="gtk-window-get-size" role="function">
<title>gtk_window_get_size ()</title>
<indexterm zone="gtk-window-get-size"><primary sortas="window_get_size">gtk_window_get_size</primary></indexterm><programlisting><link linkend="void">void</link>                gtk_window_get_size                 (<link linkend="GtkWindow">GtkWindow</link> *window,
                                                         <link linkend="gint">gint</link> *width,
                                                         <link linkend="gint">gint</link> *height);</programlisting>
<para>
Obtains the current size of <parameter>window</parameter>. If <parameter>window</parameter> is not onscreen,
it returns the size GTK+ will suggest to the <link
linkend="gtk-X11-arch">window manager</link> for the initial window
size (but this is not reliably the same as the size the window
manager will actually select). The size obtained by
<link linkend="gtk-window-get-size"><function>gtk_window_get_size()</function></link> is the last size received in a
<link linkend="GdkEventConfigure"><type>GdkEventConfigure</type></link>, that is, GTK+ uses its locally-stored size,
rather than querying the X server for the size. As a result, if you
call <link linkend="gtk-window-resize"><function>gtk_window_resize()</function></link> then immediately call
<link linkend="gtk-window-get-size"><function>gtk_window_get_size()</function></link>, the size won't have taken effect yet. After
the window manager processes the resize request, GTK+ receives
notification that the size has changed via a configure event, and
the size of the window gets updated.
</para>
<para>
Note 1: Nearly any use of this function creates a race condition,
because the size of the window may change between the time that you
get the size and the time that you perform some action assuming
that size is the current size. To avoid race conditions, connect to
"configure-event" on the window and adjust your size-dependent
state to match the size delivered in the <link linkend="GdkEventConfigure"><type>GdkEventConfigure</type></link>.
</para>
<para>
Note 2: The returned size does <emphasis>not</emphasis> include the
size of the window manager decorations (aka the window frame or
border). Those are not drawn by GTK+ and GTK+ has no reliable
method of determining their size.
</para>
<para>
Note 3: If you are getting a window size in order to position
the window onscreen, there may be a better way. The preferred
way is to simply set the window's semantic type with
<link linkend="gtk-window-set-type-hint"><function>gtk_window_set_type_hint()</function></link>, which allows the window manager to
e.g. center dialogs. Also, if you set the transient parent of
dialogs with <link linkend="gtk-window-set-transient-for"><function>gtk_window_set_transient_for()</function></link> window managers
will often center the dialog over its parent window. It's
much preferred to let the window manager handle these
things rather than doing it yourself, because all apps will
behave consistently and according to user prefs if the window
manager handles it. Also, the window manager can take the size
of the window decorations/border into account, while your
application cannot.
</para>
<para>
In any case, if you insist on application-specified window
positioning, there's <emphasis>still</emphasis> a better way than
doing it yourself - <link linkend="gtk-window-set-position"><function>gtk_window_set_position()</function></link> will frequently
handle the details for you.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>window</parameter>&#160;:</term>
<listitem><simpara> a <link linkend="GtkWindow"><type>GtkWindow</type></link>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>width</parameter>&#160;:</term>
<listitem><simpara> return location for width, or <link linkend="NULL--CAPS"><literal>NULL</literal></link>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>height</parameter>&#160;:</term>
<listitem><simpara> return location for height, or <link linkend="NULL--CAPS"><literal>NULL</literal></link>
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="gtk-window-get-title" role="function">
<title>gtk_window_get_title ()</title>
<indexterm zone="gtk-window-get-title"><primary sortas="window_get_title">gtk_window_get_title</primary></indexterm><programlisting>const <link linkend="gchar">gchar</link> *       gtk_window_get_title                (<link linkend="GtkWindow">GtkWindow</link> *window);</programlisting>
<para>
Retrieves the title of the window. See <link linkend="gtk-window-set-title"><function>gtk_window_set_title()</function></link>.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>window</parameter>&#160;:</term>
<listitem><simpara> a <link linkend="GtkWindow"><type>GtkWindow</type></link>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara> the title of the window, or <link linkend="NULL--CAPS"><literal>NULL</literal></link> if none has
   been set explicitely. The returned string is owned by the widget
   and must not be modified or freed.
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="gtk-window-get-transient-for" role="function">
<title>gtk_window_get_transient_for ()</title>
<indexterm zone="gtk-window-get-transient-for"><primary sortas="window_get_transient_for">gtk_window_get_transient_for</primary></indexterm><programlisting><link linkend="GtkWindow">GtkWindow</link> *         gtk_window_get_transient_for        (<link linkend="GtkWindow">GtkWindow</link> *window);</programlisting>
<para>
Fetches the transient parent for this window. See
<link linkend="gtk-window-set-transient-for"><function>gtk_window_set_transient_for()</function></link>.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>window</parameter>&#160;:</term>
<listitem><simpara> a <link linkend="GtkWindow"><type>GtkWindow</type></link>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara> the transient parent for this window, or <link linkend="NULL--CAPS"><literal>NULL</literal></link>
   if no transient parent has been set.
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="gtk-window-get-type-hint" role="function">
<title>gtk_window_get_type_hint ()</title>
<indexterm zone="gtk-window-get-type-hint"><primary sortas="window_get_type_hint">gtk_window_get_type_hint</primary></indexterm><programlisting><link linkend="GdkWindowTypeHint">GdkWindowTypeHint</link>   gtk_window_get_type_hint            (<link linkend="GtkWindow">GtkWindow</link> *window);</programlisting>
<para>
Gets the type hint for this window. See <link linkend="gtk-window-set-type-hint"><function>gtk_window_set_type_hint()</function></link>.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>window</parameter>&#160;:</term>
<listitem><simpara> a <link linkend="GtkWindow"><type>GtkWindow</type></link>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara> the type hint for <parameter>window</parameter>.
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="gtk-window-get-skip-taskbar-hint" role="function" condition="since:2.2">
<title>gtk_window_get_skip_taskbar_hint ()</title>
<indexterm zone="gtk-window-get-skip-taskbar-hint" role="2.2"><primary sortas="window_get_skip_taskbar_hint">gtk_window_get_skip_taskbar_hint</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link>            gtk_window_get_skip_taskbar_hint    (<link linkend="GtkWindow">GtkWindow</link> *window);</programlisting>
<para>
Gets the value set by <link linkend="gtk-window-set-skip-taskbar-hint"><function>gtk_window_set_skip_taskbar_hint()</function></link></para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>window</parameter>&#160;:</term>
<listitem><simpara> a <link linkend="GtkWindow"><type>GtkWindow</type></link>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara> <link linkend="TRUE--CAPS"><literal>TRUE</literal></link> if window shouldn't be in taskbar

</simpara></listitem></varlistentry>
</variablelist><para role="since">Since 2.2</para></refsect2>
<refsect2 id="gtk-window-get-skip-pager-hint" role="function" condition="since:2.2">
<title>gtk_window_get_skip_pager_hint ()</title>
<indexterm zone="gtk-window-get-skip-pager-hint" role="2.2"><primary sortas="window_get_skip_pager_hint">gtk_window_get_skip_pager_hint</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link>            gtk_window_get_skip_pager_hint      (<link linkend="GtkWindow">GtkWindow</link> *window);</programlisting>
<para>
Gets the value set by <link linkend="gtk-window-set-skip-pager-hint"><function>gtk_window_set_skip_pager_hint()</function></link>.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>window</parameter>&#160;:</term>
<listitem><simpara> a <link linkend="GtkWindow"><type>GtkWindow</type></link>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara> <link linkend="TRUE--CAPS"><literal>TRUE</literal></link> if window shouldn't be in pager

</simpara></listitem></varlistentry>
</variablelist><para role="since">Since 2.2</para></refsect2>
<refsect2 id="gtk-window-get-urgency-hint" role="function" condition="since:2.8">
<title>gtk_window_get_urgency_hint ()</title>
<indexterm zone="gtk-window-get-urgency-hint" role="2.8"><primary sortas="window_get_urgency_hint">gtk_window_get_urgency_hint</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link>            gtk_window_get_urgency_hint         (<link linkend="GtkWindow">GtkWindow</link> *window);</programlisting>
<para>
Gets the value set by <link linkend="gtk-window-set-urgency-hint"><function>gtk_window_set_urgency_hint()</function></link></para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>window</parameter>&#160;:</term>
<listitem><simpara> a <link linkend="GtkWindow"><type>GtkWindow</type></link>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara> <link linkend="TRUE--CAPS"><literal>TRUE</literal></link> if window is urgent

</simpara></listitem></varlistentry>
</variablelist><para role="since">Since 2.8</para></refsect2>
<refsect2 id="gtk-window-get-accept-focus" role="function" condition="since:2.4">
<title>gtk_window_get_accept_focus ()</title>
<indexterm zone="gtk-window-get-accept-focus" role="2.4"><primary sortas="window_get_accept_focus">gtk_window_get_accept_focus</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link>            gtk_window_get_accept_focus         (<link linkend="GtkWindow">GtkWindow</link> *window);</programlisting>
<para>
Gets the value set by <link linkend="gtk-window-set-accept-focus"><function>gtk_window_set_accept_focus()</function></link>.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>window</parameter>&#160;:</term>
<listitem><simpara> a <link linkend="GtkWindow"><type>GtkWindow</type></link>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara> <link linkend="TRUE--CAPS"><literal>TRUE</literal></link> if window should receive the input focus

</simpara></listitem></varlistentry>
</variablelist><para role="since">Since 2.4</para></refsect2>
<refsect2 id="gtk-window-get-focus-on-map" role="function" condition="since:2.6">
<title>gtk_window_get_focus_on_map ()</title>
<indexterm zone="gtk-window-get-focus-on-map" role="2.6"><primary sortas="window_get_focus_on_map">gtk_window_get_focus_on_map</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link>            gtk_window_get_focus_on_map         (<link linkend="GtkWindow">GtkWindow</link> *window);</programlisting>
<para>
Gets the value set by <link linkend="gtk-window-set-focus-on-map"><function>gtk_window_set_focus_on_map()</function></link>.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>window</parameter>&#160;:</term>
<listitem><simpara> a <link linkend="GtkWindow"><type>GtkWindow</type></link>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara> <link linkend="TRUE--CAPS"><literal>TRUE</literal></link> if window should receive the input focus when
mapped.

</simpara></listitem></varlistentry>
</variablelist><para role="since">Since 2.6</para></refsect2>
<refsect2 id="gtk-window-get-group" role="function" condition="since:2.10">
<title>gtk_window_get_group ()</title>
<indexterm zone="gtk-window-get-group" role="2.10"><primary sortas="window_get_group">gtk_window_get_group</primary></indexterm><programlisting><link linkend="GtkWindowGroup">GtkWindowGroup</link> *    gtk_window_get_group                (<link linkend="GtkWindow">GtkWindow</link> *window);</programlisting>
<para>
Returns the group for <parameter>window</parameter> or the default group, if
<parameter>window</parameter> is <link linkend="NULL--CAPS"><literal>NULL</literal></link> or if <parameter>window</parameter> does not have an explicit
window group.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>window</parameter>&#160;:</term>
<listitem><simpara> a <link linkend="GtkWindow"><type>GtkWindow</type></link>, or <link linkend="NULL--CAPS"><literal>NULL</literal></link>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara> the <link linkend="GtkWindowGroup"><type>GtkWindowGroup</type></link> for a window or the default group

</simpara></listitem></varlistentry>
</variablelist><para role="since">Since 2.10</para></refsect2>
<refsect2 id="gtk-window-move" role="function">
<title>gtk_window_move ()</title>
<indexterm zone="gtk-window-move"><primary sortas="window_move">gtk_window_move</primary></indexterm><programlisting><link linkend="void">void</link>                gtk_window_move                     (<link linkend="GtkWindow">GtkWindow</link> *window,
                                                         <link linkend="gint">gint</link> x,
                                                         <link linkend="gint">gint</link> y);</programlisting>
<para>
Asks the <link linkend="gtk-X11-arch">window manager</link> to move
<parameter>window</parameter> to the given position.  Window managers are free to ignore
this; most window managers ignore requests for initial window
positions (instead using a user-defined placement algorithm) and
honor requests after the window has already been shown.
</para>
<para>
Note: the position is the position of the gravity-determined
reference point for the window. The gravity determines two things:
first, the location of the reference point in root window
coordinates; and second, which point on the window is positioned at
the reference point.
</para>
<para>
By default the gravity is <link linkend="GDK-GRAVITY-NORTH-WEST--CAPS"><type>GDK_GRAVITY_NORTH_WEST</type></link>, so the reference
point is simply the <parameter>x</parameter>, <parameter>y</parameter> supplied to <link linkend="gtk-window-move"><function>gtk_window_move()</function></link>. The
top-left corner of the window decorations (aka window frame or
border) will be placed at <parameter>x</parameter>, <parameter>y</parameter>.  Therefore, to position a window
at the top left of the screen, you want to use the default gravity
(which is <link linkend="GDK-GRAVITY-NORTH-WEST--CAPS"><type>GDK_GRAVITY_NORTH_WEST</type></link>) and move the window to 0,0.
</para>
<para>
To position a window at the bottom right corner of the screen, you
would set <link linkend="GDK-GRAVITY-SOUTH-EAST--CAPS"><type>GDK_GRAVITY_SOUTH_EAST</type></link>, which means that the reference
point is at <parameter>x</parameter> + the window width and <parameter>y</parameter> + the window height, and
the bottom-right corner of the window border will be placed at that
reference point. So, to place a window in the bottom right corner
you would first set gravity to south east, then write:
<literal>gtk_window_move (window, <link linkend="gdk-screen-width"><function>gdk_screen_width()</function></link> - window_width,
<link linkend="gdk-screen-height"><function>gdk_screen_height()</function></link> - window_height)</literal> (note that this
example does not take multi-head scenarios into account).
</para>
<para>
The Extended Window Manager Hints specification at <ulink 
url="http://www.freedesktop.org/Standards/wm-spec">
http://www.freedesktop.org/Standards/wm-spec</ulink> has a 
nice table of gravities in the "implementation notes" section.
</para>
<para>
The <link linkend="gtk-window-get-position"><function>gtk_window_get_position()</function></link> documentation may also be relevant.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>window</parameter>&#160;:</term>
<listitem><simpara> a <link linkend="GtkWindow"><type>GtkWindow</type></link>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>x</parameter>&#160;:</term>
<listitem><simpara> X coordinate to move window to
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>y</parameter>&#160;:</term>
<listitem><simpara> Y coordinate to move window to
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="gtk-window-parse-geometry" role="function">
<title>gtk_window_parse_geometry ()</title>
<indexterm zone="gtk-window-parse-geometry"><primary sortas="window_parse_geometry">gtk_window_parse_geometry</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link>            gtk_window_parse_geometry           (<link linkend="GtkWindow">GtkWindow</link> *window,
                                                         const <link linkend="gchar">gchar</link> *geometry);</programlisting>
<para>
Parses a standard X Window System geometry string - see the
manual page for X (type 'man X') for details on this.
<link linkend="gtk-window-parse-geometry"><function>gtk_window_parse_geometry()</function></link> does work on all GTK+ ports
including Win32 but is primarily intended for an X environment.
</para>
<para>
If either a size or a position can be extracted from the
geometry string, <link linkend="gtk-window-parse-geometry"><function>gtk_window_parse_geometry()</function></link> returns <link linkend="TRUE--CAPS"><literal>TRUE</literal></link>
and calls <link linkend="gtk-window-set-default-size"><function>gtk_window_set_default_size()</function></link> and/or <link linkend="gtk-window-move"><function>gtk_window_move()</function></link>
to resize/move the window.
</para>
<para>
If <link linkend="gtk-window-parse-geometry"><function>gtk_window_parse_geometry()</function></link> returns <link linkend="TRUE--CAPS"><literal>TRUE</literal></link>, it will also
set the <link linkend="GDK-HINT-USER-POS--CAPS"><type>GDK_HINT_USER_POS</type></link> and/or <link linkend="GDK-HINT-USER-SIZE--CAPS"><type>GDK_HINT_USER_SIZE</type></link> hints
indicating to the window manager that the size/position of
the window was user-specified. This causes most window
managers to honor the geometry.
</para>
<para>
Note that for <link linkend="gtk-window-parse-geometry"><function>gtk_window_parse_geometry()</function></link> to work as expected, it has
to be called when the window has its "final" size, i.e. after calling
<link linkend="gtk-widget-show-all"><function>gtk_widget_show_all()</function></link> on the contents and <link linkend="gtk-window-set-geometry-hints"><function>gtk_window_set_geometry_hints()</function></link>
on the window.
<informalexample><programlisting>
#include &lt;gtk/gtk.h&gt;
   
static void
fill_with_content (GtkWidget *vbox)
{
  /&ast; fill with content... &ast;/
}
   
int
main (int argc, char *argv[])
{
  GtkWidget *window, *vbox;
  GdkGeometry size_hints = {
    100, 50, 0, 0, 100, 50, 10, 10, 0.0, 0.0, GDK_GRAVITY_NORTH_WEST  
  };
   
  gtk_init (&amp;argc, &amp;argv);
  
  window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
  vbox = gtk_vbox_new (FALSE, 0);
  
  gtk_container_add (GTK_CONTAINER (window), vbox);
  fill_with_content (vbox);
  gtk_widget_show_all (vbox);
  
  gtk_window_set_geometry_hints (GTK_WINDOW (window),
	  			    window,
				    &amp;size_hints,
				    GDK_HINT_MIN_SIZE | 
				    GDK_HINT_BASE_SIZE | 
				    GDK_HINT_RESIZE_INC);
  
  if (argc &gt; 1)
    {
      if (!gtk_window_parse_geometry (GTK_WINDOW (window), argv[1]))
        fprintf (stderr, "Failed to parse '%s'\n", argv[1]);
    }
   
  gtk_widget_show_all (window);
  gtk_main ();
   
  return 0;
}
</programlisting></informalexample></para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>window</parameter>&#160;:</term>
<listitem><simpara> a <link linkend="GtkWindow"><type>GtkWindow</type></link>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>geometry</parameter>&#160;:</term>
<listitem><simpara> geometry string
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara> <link linkend="TRUE--CAPS"><literal>TRUE</literal></link> if string was parsed successfully
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="gtk-window-reshow-with-initial-size" role="function">
<title>gtk_window_reshow_with_initial_size ()</title>
<indexterm zone="gtk-window-reshow-with-initial-size"><primary sortas="window_reshow_with_initial_size">gtk_window_reshow_with_initial_size</primary></indexterm><programlisting><link linkend="void">void</link>                gtk_window_reshow_with_initial_size (<link linkend="GtkWindow">GtkWindow</link> *window);</programlisting>
<para>
Hides <parameter>window</parameter>, then reshows it, resetting the
default size and position of the window. Used
by GUI builders only.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>window</parameter>&#160;:</term>
<listitem><simpara> a <link linkend="GtkWindow"><type>GtkWindow</type></link>
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="gtk-window-resize" role="function">
<title>gtk_window_resize ()</title>
<indexterm zone="gtk-window-resize"><primary sortas="window_resize">gtk_window_resize</primary></indexterm><programlisting><link linkend="void">void</link>                gtk_window_resize                   (<link linkend="GtkWindow">GtkWindow</link> *window,
                                                         <link linkend="gint">gint</link> width,
                                                         <link linkend="gint">gint</link> height);</programlisting>
<para>
Resizes the window as if the user had done so, obeying geometry
constraints. The default geometry constraint is that windows may
not be smaller than their size request; to override this
constraint, call <link linkend="gtk-widget-set-size-request"><function>gtk_widget_set_size_request()</function></link> to set the window's
request to a smaller value.
</para>
<para>
If <link linkend="gtk-window-resize"><function>gtk_window_resize()</function></link> is called before showing a window for the
first time, it overrides any default size set with
<link linkend="gtk-window-set-default-size"><function>gtk_window_set_default_size()</function></link>.
</para>
<para>
Windows may not be resized smaller than 1 by 1 pixels.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>window</parameter>&#160;:</term>
<listitem><simpara> a <link linkend="GtkWindow"><type>GtkWindow</type></link>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>width</parameter>&#160;:</term>
<listitem><simpara> width in pixels to resize the window to
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>height</parameter>&#160;:</term>
<listitem><simpara> height in pixels to resize the window to
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="gtk-window-set-default-icon-list" role="function">
<title>gtk_window_set_default_icon_list ()</title>
<indexterm zone="gtk-window-set-default-icon-list"><primary sortas="window_set_default_icon_list">gtk_window_set_default_icon_list</primary></indexterm><programlisting><link linkend="void">void</link>                gtk_window_set_default_icon_list    (<link linkend="GList">GList</link> *list);</programlisting>
<para>
Sets an icon list to be used as fallback for windows that haven't
had <link linkend="gtk-window-set-icon-list"><function>gtk_window_set_icon_list()</function></link> called on them to set up a
window-specific icon list. This function allows you to set up the
icon for all windows in your app at once.
</para>
<para>
See <link linkend="gtk-window-set-icon-list"><function>gtk_window_set_icon_list()</function></link> for more details.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>list</parameter>&#160;:</term>
<listitem><simpara> a list of <link linkend="GdkPixbuf"><type>GdkPixbuf</type></link>
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="gtk-window-set-default-icon" role="function" condition="since:2.4">
<title>gtk_window_set_default_icon ()</title>
<indexterm zone="gtk-window-set-default-icon" role="2.4"><primary sortas="window_set_default_icon">gtk_window_set_default_icon</primary></indexterm><programlisting><link linkend="void">void</link>                gtk_window_set_default_icon         (<link linkend="GdkPixbuf">GdkPixbuf</link> *icon);</programlisting>
<para>
Sets an icon to be used as fallback for windows that haven't
had <link linkend="gtk-window-set-icon"><function>gtk_window_set_icon()</function></link> called on them from a pixbuf.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>icon</parameter>&#160;:</term>
<listitem><simpara> the icon
</simpara></listitem></varlistentry>
</variablelist><para role="since">Since 2.4</para></refsect2>
<refsect2 id="gtk-window-set-default-icon-from-file" role="function" condition="since:2.2">
<title>gtk_window_set_default_icon_from_file ()</title>
<indexterm zone="gtk-window-set-default-icon-from-file" role="2.2"><primary sortas="window_set_default_icon_from_file">gtk_window_set_default_icon_from_file</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link>            gtk_window_set_default_icon_from_file
                                                        (const <link linkend="gchar">gchar</link> *filename,
                                                         <link linkend="GError">GError</link> **err);</programlisting>
<para>
Sets an icon to be used as fallback for windows that haven't
had <link linkend="gtk-window-set-icon-list"><function>gtk_window_set_icon_list()</function></link> called on them from a file
on disk. Warns on failure if <parameter>err</parameter> is <link linkend="NULL--CAPS"><literal>NULL</literal></link>.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>filename</parameter>&#160;:</term>
<listitem><simpara> location of icon file
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>err</parameter>&#160;:</term>
<listitem><simpara> location to store error, or <link linkend="NULL--CAPS"><literal>NULL</literal></link>.
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara> <link linkend="TRUE--CAPS"><literal>TRUE</literal></link> if setting the icon succeeded.

</simpara></listitem></varlistentry>
</variablelist><para role="since">Since 2.2</para></refsect2>
<refsect2 id="gtk-window-set-default-icon-name" role="function" condition="since:2.6">
<title>gtk_window_set_default_icon_name ()</title>
<indexterm zone="gtk-window-set-default-icon-name" role="2.6"><primary sortas="window_set_default_icon_name">gtk_window_set_default_icon_name</primary></indexterm><programlisting><link linkend="void">void</link>                gtk_window_set_default_icon_name    (const <link linkend="gchar">gchar</link> *name);</programlisting>
<para>
Sets an icon to be used as fallback for windows that haven't
had <link linkend="gtk-window-set-icon-list"><function>gtk_window_set_icon_list()</function></link> called on them from a named
themed icon, see <link linkend="gtk-window-set-icon-name"><function>gtk_window_set_icon_name()</function></link>.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>name</parameter>&#160;:</term>
<listitem><simpara> the name of the themed icon
</simpara></listitem></varlistentry>
</variablelist><para role="since">Since 2.6</para></refsect2>
<refsect2 id="gtk-window-set-icon" role="function">
<title>gtk_window_set_icon ()</title>
<indexterm zone="gtk-window-set-icon"><primary sortas="window_set_icon">gtk_window_set_icon</primary></indexterm><programlisting><link linkend="void">void</link>                gtk_window_set_icon                 (<link linkend="GtkWindow">GtkWindow</link> *window,
                                                         <link linkend="GdkPixbuf">GdkPixbuf</link> *icon);</programlisting>
<para>
Sets up the icon representing a <link linkend="GtkWindow"><type>GtkWindow</type></link>. This icon is used when
the window is minimized (also known as iconified).  Some window
managers or desktop environments may also place it in the window
frame, or display it in other contexts.
</para>
<para>
The icon should be provided in whatever size it was naturally
drawn; that is, don't scale the image before passing it to
GTK+. Scaling is postponed until the last minute, when the desired
final size is known, to allow best quality.
</para>
<para>
If you have your icon hand-drawn in multiple sizes, use
<link linkend="gtk-window-set-icon-list"><function>gtk_window_set_icon_list()</function></link>. Then the best size will be used.
</para>
<para>
This function is equivalent to calling <link linkend="gtk-window-set-icon-list"><function>gtk_window_set_icon_list()</function></link>
with a 1-element list.
</para>
<para>
See also <link linkend="gtk-window-set-default-icon-list"><function>gtk_window_set_default_icon_list()</function></link> to set the icon
for all windows in your application in one go.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>window</parameter>&#160;:</term>
<listitem><simpara> a <link linkend="GtkWindow"><type>GtkWindow</type></link>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>icon</parameter>&#160;:</term>
<listitem><simpara> icon image, or <link linkend="NULL--CAPS"><literal>NULL</literal></link>
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="gtk-window-set-icon-list" role="function">
<title>gtk_window_set_icon_list ()</title>
<indexterm zone="gtk-window-set-icon-list"><primary sortas="window_set_icon_list">gtk_window_set_icon_list</primary></indexterm><programlisting><link linkend="void">void</link>                gtk_window_set_icon_list            (<link linkend="GtkWindow">GtkWindow</link> *window,
                                                         <link linkend="GList">GList</link> *list);</programlisting>
<para>
Sets up the icon representing a <link linkend="GtkWindow"><type>GtkWindow</type></link>. The icon is used when
the window is minimized (also known as iconified).  Some window
managers or desktop environments may also place it in the window
frame, or display it in other contexts.
</para>
<para>
<link linkend="gtk-window-set-icon-list"><function>gtk_window_set_icon_list()</function></link> allows you to pass in the same icon in
several hand-drawn sizes. The list should contain the natural sizes
your icon is available in; that is, don't scale the image before
passing it to GTK+. Scaling is postponed until the last minute,
when the desired final size is known, to allow best quality.
</para>
<para>
By passing several sizes, you may improve the final image quality
of the icon, by reducing or eliminating automatic image scaling.
</para>
<para>
Recommended sizes to provide: 16x16, 32x32, 48x48 at minimum, and
larger images (64x64, 128x128) if you have them.
</para>
<para>
See also <link linkend="gtk-window-set-default-icon-list"><function>gtk_window_set_default_icon_list()</function></link> to set the icon
for all windows in your application in one go.
</para>
<para>
Note that transient windows (those who have been set transient for another
window using <link linkend="gtk-window-set-transient-for"><function>gtk_window_set_transient_for()</function></link>) will inherit their
icon from their transient parent. So there's no need to explicitly
set the icon on transient windows.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>window</parameter>&#160;:</term>
<listitem><simpara> a <link linkend="GtkWindow"><type>GtkWindow</type></link>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>list</parameter>&#160;:</term>
<listitem><simpara> list of <link linkend="GdkPixbuf"><type>GdkPixbuf</type></link>
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="gtk-window-set-icon-from-file" role="function" condition="since:2.2">
<title>gtk_window_set_icon_from_file ()</title>
<indexterm zone="gtk-window-set-icon-from-file" role="2.2"><primary sortas="window_set_icon_from_file">gtk_window_set_icon_from_file</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link>            gtk_window_set_icon_from_file       (<link linkend="GtkWindow">GtkWindow</link> *window,
                                                         const <link linkend="gchar">gchar</link> *filename,
                                                         <link linkend="GError">GError</link> **err);</programlisting>
<para>
Sets the icon for <parameter>window</parameter>.  
Warns on failure if <parameter>err</parameter> is <link linkend="NULL--CAPS"><literal>NULL</literal></link>.
</para>
<para>
This function is equivalent to calling <link linkend="gtk-window-set-icon"><function>gtk_window_set_icon()</function></link>
with a pixbuf created by loading the image from <parameter>filename</parameter>.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>window</parameter>&#160;:</term>
<listitem><simpara> a <link linkend="GtkWindow"><type>GtkWindow</type></link>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>filename</parameter>&#160;:</term>
<listitem><simpara> location of icon file
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>err</parameter>&#160;:</term>
<listitem><simpara> location to store error, or <link linkend="NULL--CAPS"><literal>NULL</literal></link>.
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara> <link linkend="TRUE--CAPS"><literal>TRUE</literal></link> if setting the icon succeeded.

</simpara></listitem></varlistentry>
</variablelist><para role="since">Since 2.2</para></refsect2>
<refsect2 id="gtk-window-set-icon-name" role="function" condition="since:2.6">
<title>gtk_window_set_icon_name ()</title>
<indexterm zone="gtk-window-set-icon-name" role="2.6"><primary sortas="window_set_icon_name">gtk_window_set_icon_name</primary></indexterm><programlisting><link linkend="void">void</link>                gtk_window_set_icon_name            (<link linkend="GtkWindow">GtkWindow</link> *window,
                                                         const <link linkend="gchar">gchar</link> *name);</programlisting>
<para>
Sets the icon for the window from a named themed icon. See
the docs for <link linkend="GtkIconTheme"><type>GtkIconTheme</type></link> for more details. 
</para>
<para>
Note that this has nothing to do with the WM_ICON_NAME 
property which is mentioned in the ICCCM.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>window</parameter>&#160;:</term>
<listitem><simpara> a <link linkend="GtkWindow"><type>GtkWindow</type></link>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>name</parameter>&#160;:</term>
<listitem><simpara> the name of the themed icon
</simpara></listitem></varlistentry>
</variablelist><para role="since">Since 2.6</para></refsect2>
<refsect2 id="gtk-window-set-auto-startup-notification" role="function" condition="since:2.2">
<title>gtk_window_set_auto_startup_notification ()</title>
<indexterm zone="gtk-window-set-auto-startup-notification" role="2.2"><primary sortas="window_set_auto_startup_notification">gtk_window_set_auto_startup_notification</primary></indexterm><programlisting><link linkend="void">void</link>                gtk_window_set_auto_startup_notification
                                                        (<link linkend="gboolean">gboolean</link> setting);</programlisting>
<para>
By default, after showing the first <link linkend="GtkWindow"><type>GtkWindow</type></link>, GTK+ calls 
<link linkend="gdk-notify-startup-complete"><function>gdk_notify_startup_complete()</function></link>.  Call this function to disable 
the automatic startup notification. You might do this if your 
first window is a splash screen, and you want to delay notification 
until after your real main window has been shown, for example.
</para>
<para>
In that example, you would disable startup notification
temporarily, show your splash screen, then re-enable it so that
showing the main window would automatically result in notification.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>setting</parameter>&#160;:</term>
<listitem><simpara> <link linkend="TRUE--CAPS"><literal>TRUE</literal></link> to automatically do startup notification
</simpara></listitem></varlistentry>
</variablelist><para role="since">Since 2.2</para></refsect2>
<refsect2 id="gtk-window-get-opacity" role="function" condition="since:2.12">
<title>gtk_window_get_opacity ()</title>
<indexterm zone="gtk-window-get-opacity" role="2.12"><primary sortas="window_get_opacity">gtk_window_get_opacity</primary></indexterm><programlisting><link linkend="gdouble">gdouble</link>             gtk_window_get_opacity              (<link linkend="GtkWindow">GtkWindow</link> *window);</programlisting>
<para>
Fetches the requested opacity for this window. See
<link linkend="gtk-window-set-opacity"><function>gtk_window_set_opacity()</function></link>.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>window</parameter>&#160;:</term>
<listitem><simpara> a <link linkend="GtkWindow"><type>GtkWindow</type></link>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara> the requested opacity for this window.

</simpara></listitem></varlistentry>
</variablelist><para role="since">Since 2.12</para></refsect2>
<refsect2 id="gtk-window-set-opacity" role="function" condition="since:2.12">
<title>gtk_window_set_opacity ()</title>
<indexterm zone="gtk-window-set-opacity" role="2.12"><primary sortas="window_set_opacity">gtk_window_set_opacity</primary></indexterm><programlisting><link linkend="void">void</link>                gtk_window_set_opacity              (<link linkend="GtkWindow">GtkWindow</link> *window,
                                                         <link linkend="gdouble">gdouble</link> opacity);</programlisting>
<para>
Request the windowing system to make <parameter>window</parameter> partially transparent,
with opacity 0 being fully transparent and 1 fully opaque. (Values
of the opacity parameter are clamped to the [0,1] range.) On X11
this has any effect only on X screens with a compositing manager
running. See <link linkend="gtk-widget-is-composited"><function>gtk_widget_is_composited()</function></link>. On Windows it should work
always.
</para>
<para>
Note that setting a window's opacity after the window has been
shown causes it to flicker once on Windows.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>window</parameter>&#160;:</term>
<listitem><simpara> a <link linkend="GtkWindow"><type>GtkWindow</type></link>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>opacity</parameter>&#160;:</term>
<listitem><simpara> desired opacity, between 0 and 1
</simpara></listitem></varlistentry>
</variablelist><para role="since">Since 2.12</para></refsect2>

</refsect1>
<refsect1 id="GtkWindow.property-details" role="property_details">
<title role="property_details.title">Property Details</title>
<refsect2 id="GtkWindow--accept-focus" role="property"><title>The <literal>&quot;accept-focus&quot;</literal> property</title>
<indexterm zone="GtkWindow--accept-focus"><primary sortas="Window:accept-focus">GtkWindow:accept-focus</primary></indexterm><programlisting>  &quot;accept-focus&quot;             <link linkend="gboolean">gboolean</link>              : Read / Write</programlisting>
<para>TRUE if the window should receive the input focus.</para><para>Default value: TRUE</para>
</refsect2>
<refsect2 id="GtkWindow--allow-grow" role="property"><title>The <literal>&quot;allow-grow&quot;</literal> property</title>
<indexterm zone="GtkWindow--allow-grow"><primary sortas="Window:allow-grow">GtkWindow:allow-grow</primary></indexterm><programlisting>  &quot;allow-grow&quot;               <link linkend="gboolean">gboolean</link>              : Read / Write</programlisting>
<para>If TRUE, users can expand the window beyond its minimum size.</para><para>Default value: TRUE</para>
</refsect2>
<refsect2 id="GtkWindow--allow-shrink" role="property"><title>The <literal>&quot;allow-shrink&quot;</literal> property</title>
<indexterm zone="GtkWindow--allow-shrink"><primary sortas="Window:allow-shrink">GtkWindow:allow-shrink</primary></indexterm><programlisting>  &quot;allow-shrink&quot;             <link linkend="gboolean">gboolean</link>              : Read / Write</programlisting>
<para>If TRUE, the window has no mimimum size. Setting this to TRUE is 99% of the time a bad idea.</para><para>Default value: FALSE</para>
</refsect2>
<refsect2 id="GtkWindow--decorated" role="property"><title>The <literal>&quot;decorated&quot;</literal> property</title>
<indexterm zone="GtkWindow--decorated" role="2.4"><primary sortas="Window:decorated">GtkWindow:decorated</primary></indexterm><programlisting>  &quot;decorated&quot;                <link linkend="gboolean">gboolean</link>              : Read / Write</programlisting>
<para>
Whether the window should be decorated by the window manager.</para>
<para>
</para><para>Default value: TRUE</para>
<para>Since 2.4</para>
</refsect2>
<refsect2 id="GtkWindow--default-height" role="property"><title>The <literal>&quot;default-height&quot;</literal> property</title>
<indexterm zone="GtkWindow--default-height"><primary sortas="Window:default-height">GtkWindow:default-height</primary></indexterm><programlisting>  &quot;default-height&quot;           <link linkend="gint">gint</link>                  : Read / Write</programlisting>
<para>The default height of the window, used when initially showing the window.</para><para>Allowed values: &gt;= G_MAXULONG</para>
<para>Default value: -1</para>
</refsect2>
<refsect2 id="GtkWindow--default-width" role="property"><title>The <literal>&quot;default-width&quot;</literal> property</title>
<indexterm zone="GtkWindow--default-width"><primary sortas="Window:default-width">GtkWindow:default-width</primary></indexterm><programlisting>  &quot;default-width&quot;            <link linkend="gint">gint</link>                  : Read / Write</programlisting>
<para>The default width of the window, used when initially showing the window.</para><para>Allowed values: &gt;= G_MAXULONG</para>
<para>Default value: -1</para>
</refsect2>
<refsect2 id="GtkWindow--deletable" role="property"><title>The <literal>&quot;deletable&quot;</literal> property</title>
<indexterm zone="GtkWindow--deletable" role="2.10"><primary sortas="Window:deletable">GtkWindow:deletable</primary></indexterm><programlisting>  &quot;deletable&quot;                <link linkend="gboolean">gboolean</link>              : Read / Write</programlisting>
<para>
Whether the window frame should have a close button.</para>
<para>
</para><para>Default value: TRUE</para>
<para>Since 2.10</para>
</refsect2>
<refsect2 id="GtkWindow--destroy-with-parent" role="property"><title>The <literal>&quot;destroy-with-parent&quot;</literal> property</title>
<indexterm zone="GtkWindow--destroy-with-parent"><primary sortas="Window:destroy-with-parent">GtkWindow:destroy-with-parent</primary></indexterm><programlisting>  &quot;destroy-with-parent&quot;      <link linkend="gboolean">gboolean</link>              : Read / Write</programlisting>
<para>If this window should be destroyed when the parent is destroyed.</para><para>Default value: FALSE</para>
</refsect2>
<refsect2 id="GtkWindow--focus-on-map" role="property"><title>The <literal>&quot;focus-on-map&quot;</literal> property</title>
<indexterm zone="GtkWindow--focus-on-map"><primary sortas="Window:focus-on-map">GtkWindow:focus-on-map</primary></indexterm><programlisting>  &quot;focus-on-map&quot;             <link linkend="gboolean">gboolean</link>              : Read / Write</programlisting>
<para>TRUE if the window should receive the input focus when mapped.</para><para>Default value: TRUE</para>
</refsect2>
<refsect2 id="GtkWindow--gravity" role="property"><title>The <literal>&quot;gravity&quot;</literal> property</title>
<indexterm zone="GtkWindow--gravity" role="2.4"><primary sortas="Window:gravity">GtkWindow:gravity</primary></indexterm><programlisting>  &quot;gravity&quot;                  <link linkend="GdkGravity">GdkGravity</link>            : Read / Write</programlisting>
<para>
The window gravity of the window. See <link linkend="gtk-window-move"><function>gtk_window_move()</function></link> and <link linkend="GdkGravity"><type>GdkGravity</type></link> for
more details about window gravity.</para>
<para>
</para><para>Default value: GDK_GRAVITY_NORTH_WEST</para>
<para>Since 2.4</para>
</refsect2>
<refsect2 id="GtkWindow--has-toplevel-focus" role="property"><title>The <literal>&quot;has-toplevel-focus&quot;</literal> property</title>
<indexterm zone="GtkWindow--has-toplevel-focus"><primary sortas="Window:has-toplevel-focus">GtkWindow:has-toplevel-focus</primary></indexterm><programlisting>  &quot;has-toplevel-focus&quot;       <link linkend="gboolean">gboolean</link>              : Read</programlisting>
<para>Whether the input focus is within this GtkWindow.</para><para>Default value: FALSE</para>
</refsect2>
<refsect2 id="GtkWindow--icon" role="property"><title>The <literal>&quot;icon&quot;</literal> property</title>
<indexterm zone="GtkWindow--icon"><primary sortas="Window:icon">GtkWindow:icon</primary></indexterm><programlisting>  &quot;icon&quot;                     <link linkend="GdkPixbuf">GdkPixbuf</link>*            : Read / Write</programlisting>
<para>Icon for this window.</para></refsect2>
<refsect2 id="GtkWindow--icon-name" role="property"><title>The <literal>&quot;icon-name&quot;</literal> property</title>
<indexterm zone="GtkWindow--icon-name" role="2.6"><primary sortas="Window:icon-name">GtkWindow:icon-name</primary></indexterm><programlisting>  &quot;icon-name&quot;                <link linkend="gchar">gchar</link>*                : Read / Write</programlisting>
<para>
The :icon-name property specifies the name of the themed icon to
use as the window icon. See <link linkend="GtkIconTheme"><type>GtkIconTheme</type></link> for more details.</para>
<para>
</para><para>Default value: NULL</para>
<para>Since 2.6</para>
</refsect2>
<refsect2 id="GtkWindow--is-active" role="property"><title>The <literal>&quot;is-active&quot;</literal> property</title>
<indexterm zone="GtkWindow--is-active"><primary sortas="Window:is-active">GtkWindow:is-active</primary></indexterm><programlisting>  &quot;is-active&quot;                <link linkend="gboolean">gboolean</link>              : Read</programlisting>
<para>Whether the toplevel is the current active window.</para><para>Default value: FALSE</para>
</refsect2>
<refsect2 id="GtkWindow--modal" role="property"><title>The <literal>&quot;modal&quot;</literal> property</title>
<indexterm zone="GtkWindow--modal"><primary sortas="Window:modal">GtkWindow:modal</primary></indexterm><programlisting>  &quot;modal&quot;                    <link linkend="gboolean">gboolean</link>              : Read / Write</programlisting>
<para>If TRUE, the window is modal (other windows are not usable while this one is up).</para><para>Default value: FALSE</para>
</refsect2>
<refsect2 id="GtkWindow--opacity" role="property"><title>The <literal>&quot;opacity&quot;</literal> property</title>
<indexterm zone="GtkWindow--opacity" role="2.12"><primary sortas="Window:opacity">GtkWindow:opacity</primary></indexterm><programlisting>  &quot;opacity&quot;                  <link linkend="gdouble">gdouble</link>               : Read / Write</programlisting>
<para>
The requested opacity of the window. See <link linkend="gtk-window-set-opacity"><function>gtk_window_set_opacity()</function></link> for
more details about window opacity.</para>
<para>
</para><para>Allowed values: [0,1]</para>
<para>Default value: 1</para>
<para>Since 2.12</para>
</refsect2>
<refsect2 id="GtkWindow--resizable" role="property"><title>The <literal>&quot;resizable&quot;</literal> property</title>
<indexterm zone="GtkWindow--resizable"><primary sortas="Window:resizable">GtkWindow:resizable</primary></indexterm><programlisting>  &quot;resizable&quot;                <link linkend="gboolean">gboolean</link>              : Read / Write</programlisting>
<para>If TRUE, users can resize the window.</para><para>Default value: TRUE</para>
</refsect2>
<refsect2 id="GtkWindow--role" role="property"><title>The <literal>&quot;role&quot;</literal> property</title>
<indexterm zone="GtkWindow--role"><primary sortas="Window:role">GtkWindow:role</primary></indexterm><programlisting>  &quot;role&quot;                     <link linkend="gchar">gchar</link>*                : Read / Write</programlisting>
<para>Unique identifier for the window to be used when restoring a session.</para><para>Default value: NULL</para>
</refsect2>
<refsect2 id="GtkWindow--screen" role="property"><title>The <literal>&quot;screen&quot;</literal> property</title>
<indexterm zone="GtkWindow--screen"><primary sortas="Window:screen">GtkWindow:screen</primary></indexterm><programlisting>  &quot;screen&quot;                   <link linkend="GdkScreen">GdkScreen</link>*            : Read / Write</programlisting>
<para>The screen where this window will be displayed.</para></refsect2>
<refsect2 id="GtkWindow--skip-pager-hint" role="property"><title>The <literal>&quot;skip-pager-hint&quot;</literal> property</title>
<indexterm zone="GtkWindow--skip-pager-hint"><primary sortas="Window:skip-pager-hint">GtkWindow:skip-pager-hint</primary></indexterm><programlisting>  &quot;skip-pager-hint&quot;          <link linkend="gboolean">gboolean</link>              : Read / Write</programlisting>
<para>TRUE if the window should not be in the pager.</para><para>Default value: FALSE</para>
</refsect2>
<refsect2 id="GtkWindow--skip-taskbar-hint" role="property"><title>The <literal>&quot;skip-taskbar-hint&quot;</literal> property</title>
<indexterm zone="GtkWindow--skip-taskbar-hint"><primary sortas="Window:skip-taskbar-hint">GtkWindow:skip-taskbar-hint</primary></indexterm><programlisting>  &quot;skip-taskbar-hint&quot;        <link linkend="gboolean">gboolean</link>              : Read / Write</programlisting>
<para>TRUE if the window should not be in the task bar.</para><para>Default value: FALSE</para>
</refsect2>
<refsect2 id="GtkWindow--startup-id" role="property"><title>The <literal>&quot;startup-id&quot;</literal> property</title>
<indexterm zone="GtkWindow--startup-id" role="2.12"><primary sortas="Window:startup-id">GtkWindow:startup-id</primary></indexterm><programlisting>  &quot;startup-id&quot;               <link linkend="gchar">gchar</link>*                : Write</programlisting>
<para>
The :startup-id is a write-only property for setting window's
startup notification identifier. See <link linkend="gtk-window-set-startup-id"><function>gtk_window_set_startup_id()</function></link>
for more details.</para>
<para>
</para><para>Default value: NULL</para>
<para>Since 2.12</para>
</refsect2>
<refsect2 id="GtkWindow--title" role="property"><title>The <literal>&quot;title&quot;</literal> property</title>
<indexterm zone="GtkWindow--title"><primary sortas="Window:title">GtkWindow:title</primary></indexterm><programlisting>  &quot;title&quot;                    <link linkend="gchar">gchar</link>*                : Read / Write</programlisting>
<para>The title of the window.</para><para>Default value: NULL</para>
</refsect2>
<refsect2 id="GtkWindow--transient-for" role="property"><title>The <literal>&quot;transient-for&quot;</literal> property</title>
<indexterm zone="GtkWindow--transient-for" role="2.10"><primary sortas="Window:transient-for">GtkWindow:transient-for</primary></indexterm><programlisting>  &quot;transient-for&quot;            <link linkend="GtkWindow">GtkWindow</link>*            : Read / Write / Construct</programlisting>
<para>
The transient parent of the window. See <link linkend="gtk-window-set-transient-for"><function>gtk_window_set_transient_for()</function></link> for
more details about transient windows.</para>
<para>
</para><para>Since 2.10</para>
</refsect2>
<refsect2 id="GtkWindow--type" role="property"><title>The <literal>&quot;type&quot;</literal> property</title>
<indexterm zone="GtkWindow--type"><primary sortas="Window:type">GtkWindow:type</primary></indexterm><programlisting>  &quot;type&quot;                     <link linkend="GtkWindowType">GtkWindowType</link>         : Read / Write / Construct Only</programlisting>
<para>The type of the window.</para><para>Default value: GTK_WINDOW_TOPLEVEL</para>
</refsect2>
<refsect2 id="GtkWindow--type-hint" role="property"><title>The <literal>&quot;type-hint&quot;</literal> property</title>
<indexterm zone="GtkWindow--type-hint"><primary sortas="Window:type-hint">GtkWindow:type-hint</primary></indexterm><programlisting>  &quot;type-hint&quot;                <link linkend="GdkWindowTypeHint">GdkWindowTypeHint</link>     : Read / Write</programlisting>
<para>Hint to help the desktop environment understand what kind of window this is and how to treat it.</para><para>Default value: GDK_WINDOW_TYPE_HINT_NORMAL</para>
</refsect2>
<refsect2 id="GtkWindow--urgency-hint" role="property"><title>The <literal>&quot;urgency-hint&quot;</literal> property</title>
<indexterm zone="GtkWindow--urgency-hint"><primary sortas="Window:urgency-hint">GtkWindow:urgency-hint</primary></indexterm><programlisting>  &quot;urgency-hint&quot;             <link linkend="gboolean">gboolean</link>              : Read / Write</programlisting>
<para>TRUE if the window should be brought to the user's attention.</para><para>Default value: FALSE</para>
</refsect2>
<refsect2 id="GtkWindow--window-position" role="property"><title>The <literal>&quot;window-position&quot;</literal> property</title>
<indexterm zone="GtkWindow--window-position"><primary sortas="Window:window-position">GtkWindow:window-position</primary></indexterm><programlisting>  &quot;window-position&quot;          <link linkend="GtkWindowPosition">GtkWindowPosition</link>     : Read / Write</programlisting>
<para>The initial position of the window.</para><para>Default value: GTK_WIN_POS_NONE</para>
</refsect2>
</refsect1>

<refsect1 id="GtkWindow.signal-details" role="signals">
<title role="signals.title">Signal Details</title>
<refsect2 id="GtkWindow-activate-default" role="signal"><title>The <literal>&quot;activate-default&quot;</literal> signal</title>
<indexterm zone="GtkWindow-activate-default"><primary sortas="Window::activate-default">GtkWindow::activate-default</primary></indexterm><programlisting><link linkend="void">void</link>                user_function                      (<link linkend="GtkWindow">GtkWindow</link> *window,
                                                        <link linkend="gpointer">gpointer</link>   user_data)      : Run Last / Action</programlisting>
<para>
The ::activate-default signal is a
<link linkend="keybinding-signals">keybinding signal</link>
which gets emitted when the user activates the default widget
of <parameter>window</parameter>.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>window</parameter>&#160;:</term>
<listitem><simpara> the window which received the signal
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>user_data</parameter>&#160;:</term>
<listitem><simpara>user data set when the signal handler was connected.</simpara></listitem></varlistentry>
</variablelist></refsect2><refsect2 id="GtkWindow-activate-focus" role="signal"><title>The <literal>&quot;activate-focus&quot;</literal> signal</title>
<indexterm zone="GtkWindow-activate-focus"><primary sortas="Window::activate-focus">GtkWindow::activate-focus</primary></indexterm><programlisting><link linkend="void">void</link>                user_function                      (<link linkend="GtkWindow">GtkWindow</link> *window,
                                                        <link linkend="gpointer">gpointer</link>   user_data)      : Run Last / Action</programlisting>
<para>
The ::activate-default signal is a
<link linkend="keybinding-signals">keybinding signal</link>
which gets emitted when the user activates the currently
focused widget of <parameter>window</parameter>.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>window</parameter>&#160;:</term>
<listitem><simpara> the window which received the signal
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>user_data</parameter>&#160;:</term>
<listitem><simpara>user data set when the signal handler was connected.</simpara></listitem></varlistentry>
</variablelist></refsect2><refsect2 id="GtkWindow-frame-event" role="signal"><title>The <literal>&quot;frame-event&quot;</literal> signal</title>
<indexterm zone="GtkWindow-frame-event"><primary sortas="Window::frame-event">GtkWindow::frame-event</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link>            user_function                      (<link linkend="GtkWindow">GtkWindow</link> *window,
                                                        <link linkend="GdkEvent">GdkEvent</link>  *event,
                                                        <link linkend="gpointer">gpointer</link>   user_data)      : Run Last</programlisting>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>window</parameter>&#160;:</term>
<listitem><simpara>the object which received the signal.
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>event</parameter>&#160;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>user_data</parameter>&#160;:</term>
<listitem><simpara>user data set when the signal handler was connected.</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara>
</simpara></listitem></varlistentry>
</variablelist></refsect2><refsect2 id="GtkWindow-keys-changed" role="signal"><title>The <literal>&quot;keys-changed&quot;</literal> signal</title>
<indexterm zone="GtkWindow-keys-changed"><primary sortas="Window::keys-changed">GtkWindow::keys-changed</primary></indexterm><programlisting><link linkend="void">void</link>                user_function                      (<link linkend="GtkWindow">GtkWindow</link> *window,
                                                        <link linkend="gpointer">gpointer</link>   user_data)      : Run First</programlisting>
<para>
The ::keys-changed signal gets emitted when the set of accelerators
or mnemonics that are associated with <parameter>window</parameter> changes.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>window</parameter>&#160;:</term>
<listitem><simpara> the window which received the signal
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>user_data</parameter>&#160;:</term>
<listitem><simpara>user data set when the signal handler was connected.</simpara></listitem></varlistentry>
</variablelist></refsect2><refsect2 id="GtkWindow-set-focus" role="signal"><title>The <literal>&quot;set-focus&quot;</literal> signal</title>
<indexterm zone="GtkWindow-set-focus"><primary sortas="Window::set-focus">GtkWindow::set-focus</primary></indexterm><programlisting><link linkend="void">void</link>                user_function                      (<link linkend="GtkWindow">GtkWindow</link> *window,
                                                        <link linkend="GtkWidget">GtkWidget</link> *widget,
                                                        <link linkend="gpointer">gpointer</link>   user_data)      : Run Last</programlisting>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>window</parameter>&#160;:</term>
<listitem><simpara>the object which received the signal.
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>widget</parameter>&#160;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>user_data</parameter>&#160;:</term>
<listitem><simpara>user data set when the signal handler was connected.</simpara></listitem></varlistentry>
</variablelist></refsect2>
</refsect1>



</refentry>
