KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17
System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64
User : nobody ( 99)
PHP Version : 5.2.17
Disable Function : NONE
Directory :  /usr/share/gtk-doc/html/gtk/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/share/gtk-doc/html/gtk/GtkWindow.html
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title>GtkWindow</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.69.1">
<link rel="start" href="index.html" title="GTK+ Reference Manual">
<link rel="up" href="WindowWidgets.html" title="Windows">
<link rel="prev" href="GtkMessageDialog.html" title="GtkMessageDialog">
<link rel="next" href="GtkWindowGroup.html" title="GtkWindowGroup">
<meta name="generator" content="GTK-Doc V1.6 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
<link rel="part" href="gtk.html" title="Part&#160;I.&#160;GTK+ Overview">
<link rel="part" href="gtkbase.html" title="Part&#160;II.&#160;GTK+ Core Reference">
<link rel="part" href="gtkobjects.html" title="Part&#160;III.&#160;GTK+ Widgets and Objects">
<link rel="chapter" href="ch01.html" title="Object Hierarchy">
<link rel="chapter" href="ch02.html" title="Widget Gallery">
<link rel="chapter" href="WindowWidgets.html" title="Windows">
<link rel="chapter" href="DisplayWidgets.html" title="Display Widgets">
<link rel="chapter" href="ButtonWidgets.html" title="Buttons and Toggles">
<link rel="chapter" href="NumericEntry.html" title="Numeric/Text Data Entry">
<link rel="chapter" href="TextWidgetObjects.html" title="Multiline Text Editor">
<link rel="chapter" href="TreeWidgetObjects.html" title="Tree, List and Icon Grid Widgets">
<link rel="chapter" href="MenusAndCombos.html" title="Menus, Combo Box, Toolbar">
<link rel="chapter" href="Actions.html" title="Action-based menus and toolbars">
<link rel="chapter" href="SelectorWidgets.html" title="Selectors (File/Font/Color/Input Devices)">
<link rel="chapter" href="LayoutContainers.html" title="Layout Containers">
<link rel="chapter" href="Ornaments.html" title="Ornaments">
<link rel="chapter" href="ScrollingWidgets.html" title="Scrolling">
<link rel="chapter" href="Printing.html" title="Printing">
<link rel="chapter" href="MiscObjects.html" title="Miscellaneous">
<link rel="chapter" href="AbstractObjects.html" title="Abstract Base Classes">
<link rel="chapter" href="PlugSocket.html" title="Cross-process Embedding">
<link rel="chapter" href="SpecialObjects.html" title="Special-purpose features">
<link rel="chapter" href="RecentDocuments.html" title="Recently Used Documents">
<link rel="chapter" href="DeprecatedObjects.html" title="Deprecated">
<link rel="part" href="migrating.html" title="Part&#160;IV.&#160;Migrating from Previous Versions of GTK+">
<link rel="chapter" href="gtk-migrating-checklist.html" title="Migration Checklist">
<link rel="chapter" href="gtk-migrating-GtkFileChooser.html" title="Migrating from GtkFileSelection to GtkFileChooser">
<link rel="chapter" href="gtk-migrating-GtkAction.html" title="Migrating from old menu and toolbar systems to GtkAction">
<link rel="chapter" href="gtk-migrating-GtkComboBox.html" title="Migrating from GtkOptionMenu and GtkCombo to GtkComboBox and 
         GtkComboBoxEntry">
<link rel="chapter" href="gtk-migrating-GtkIconView.html" title="Migrating from GnomeIconList to GtkIconView">
<link rel="chapter" href="gtk-migrating-GtkAboutDialog.html" title="Migrating from GnomeAbout to GtkAboutDialog">
<link rel="chapter" href="gtk-migrating-GtkColorButton.html" title="Migrating from GnomeColorPicker to GtkColorButton">
<link rel="chapter" href="gtk-migrating-GtkAssistant.html" title="Migrating from GnomeDruid to GtkAssistant">
<link rel="chapter" href="gtk-migrating-GtkRecentChooser.html" title="Migrating from EggRecent to GtkRecentChooser">
<link rel="chapter" href="gtk-migrating-GtkLinkButton.html" title="Migrating from GnomeHRef to GtkLinkButton">
<link rel="part" href="pt05.html" title="Part&#160;V.&#160;GTK+ Tools">
<link rel="glossary" href="glossary.html" title="Glossary">
<link rel="index" href="ix01.html" title="Index">
<link rel="index" href="ix02.html" title="Index of deprecated symbols">
<link rel="index" href="ix03.html" title="Index of new symbols in 2.2">
<link rel="index" href="ix04.html" title="Index of new symbols in 2.4">
<link rel="index" href="ix05.html" title="Index of new symbols in 2.6">
<link rel="index" href="ix06.html" title="Index of new symbols in 2.8">
<link rel="index" href="ix07.html" title="Index of new symbols in 2.10">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
<tr valign="middle">
<td><a accesskey="p" href="GtkMessageDialog.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="WindowWidgets.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">GTK+ Reference Manual</th>
<td><a accesskey="n" href="GtkWindowGroup.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts"><nobr><a href="#id2790488" class="shortcut">Top</a>
                  &#160;|&#160;
                  <a href="#id2794171" class="shortcut">Description</a>
                  &#160;|&#160;
                  <a href="#id2793375" class="shortcut">Object Hierarchy</a>
                  &#160;|&#160;
                  <a href="#id2793459" class="shortcut">Implemented Interfaces</a>
                  &#160;|&#160;
                  <a href="#id2793482" class="shortcut">Properties</a>
                  &#160;|&#160;
                  <a href="#id2793938" class="shortcut">Signals</a></nobr></td></tr>
</table>
<div class="refentry" lang="en">
<a name="GtkWindow"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2>
<a name="id2790488"></a><span class="refentrytitle">GtkWindow</span>
</h2>
<p>GtkWindow &#8212; Toplevel which can contain other widgets</p>
</td>
<td valign="top" align="right"><img src="window.png"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<h2>Synopsis</h2>
<pre class="synopsis">

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


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


void        <a href="GtkWindow.html#gtk-decorated-window-init">gtk_decorated_window_init</a>       (<a href="GtkWindow.html" title="GtkWindow">GtkWindow</a> *window);
void        <a href="GtkWindow.html#gtk-decorated-window-calculate-frame-size">gtk_decorated_window_calculate_frame_size</a>
                                            (<a href="GtkWindow.html" title="GtkWindow">GtkWindow</a> *window);
void        <a href="GtkWindow.html#gtk-decorated-window-set-title">gtk_decorated_window_set_title</a>  (<a href="GtkWindow.html" title="GtkWindow">GtkWindow</a> *window,
                                             const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *title);
void        <a href="GtkWindow.html#gtk-decorated-window-move-resize-window">gtk_decorated_window_move_resize_window</a>
                                            (<a href="GtkWindow.html" title="GtkWindow">GtkWindow</a> *window,
                                             <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> x,
                                             <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> y,
                                             <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> width,
                                             <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> height);

</pre>
</div>
<div class="refsect1" lang="en">
<a name="id2793375"></a><h2>Object Hierarchy</h2>
<pre class="synopsis">

  <a
href="../gobject/gobject-The-Base-Object-Type.html#GObject"
>GObject</a>
   +----<a
href="../gobject/gobject-The-Base-Object-Type.html#GInitiallyUnowned"
>GInitiallyUnowned</a>
         +----<a href="GtkObject.html" title="GtkObject">GtkObject</a>
               +----<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>
                     +----<a href="GtkContainer.html" title="GtkContainer">GtkContainer</a>
                           +----<a href="GtkBin.html" title="GtkBin">GtkBin</a>
                                 +----GtkWindow
                                       +----<a href="GtkDialog.html" title="GtkDialog">GtkDialog</a>
                                       +----<a href="GtkAssistant.html" title="GtkAssistant">GtkAssistant</a>
                                       +----<a href="GtkPlug.html" title="GtkPlug">GtkPlug</a>
</pre>
</div>
<div class="refsect1" lang="en">
<a name="id2793459"></a><h2>Implemented Interfaces</h2>
<p>
GtkWindow implements
 AtkImplementorIface.</p>
</div>
<div class="refsect1" lang="en">
<a name="id2793482"></a><h2>Properties</h2>
<pre class="synopsis">

  "<a href="GtkWindow.html#GtkWindow--accept-focus">accept-focus</a>"         <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>              : Read / Write
  "<a href="GtkWindow.html#GtkWindow--allow-grow">allow-grow</a>"           <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>              : Read / Write
  "<a href="GtkWindow.html#GtkWindow--allow-shrink">allow-shrink</a>"         <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>              : Read / Write
  "<a href="GtkWindow.html#GtkWindow--decorated">decorated</a>"            <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>              : Read / Write
  "<a href="GtkWindow.html#GtkWindow--default-height">default-height</a>"       <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a>                  : Read / Write
  "<a href="GtkWindow.html#GtkWindow--default-width">default-width</a>"        <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a>                  : Read / Write
  "<a href="GtkWindow.html#GtkWindow--deletable">deletable</a>"            <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>              : Read / Write
  "<a href="GtkWindow.html#GtkWindow--destroy-with-parent">destroy-with-parent</a>"  <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>              : Read / Write
  "<a href="GtkWindow.html#GtkWindow--focus-on-map">focus-on-map</a>"         <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>              : Read / Write
  "<a href="GtkWindow.html#GtkWindow--gravity">gravity</a>"              <a
href="../gdk/gdk-Windows.html#GdkGravity"
>GdkGravity</a>            : Read / Write
  "<a href="GtkWindow.html#GtkWindow--has-toplevel-focus">has-toplevel-focus</a>"   <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>              : Read
  "<a href="GtkWindow.html#GtkWindow--icon">icon</a>"                 <a
href="../gdk-pixbuf/gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"
>GdkPixbuf</a>             : Read / Write
  "<a href="GtkWindow.html#GtkWindow--icon-name">icon-name</a>"            <a
href="../gobject/gobject-Standard-Parameter-and-Value-Types.html#gchararray"
>gchararray</a>            : Read / Write
  "<a href="GtkWindow.html#GtkWindow--is-active">is-active</a>"            <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>              : Read
  "<a href="GtkWindow.html#GtkWindow--modal">modal</a>"                <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>              : Read / Write
  "<a href="GtkWindow.html#GtkWindow--resizable">resizable</a>"            <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>              : Read / Write
  "<a href="GtkWindow.html#GtkWindow--role">role</a>"                 <a
href="../gobject/gobject-Standard-Parameter-and-Value-Types.html#gchararray"
>gchararray</a>            : Read / Write
  "<a href="GtkWindow.html#GtkWindow--screen">screen</a>"               <a
href="../gdk/GdkScreen.html"
>GdkScreen</a>             : Read / Write
  "<a href="GtkWindow.html#GtkWindow--skip-pager-hint">skip-pager-hint</a>"      <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>              : Read / Write
  "<a href="GtkWindow.html#GtkWindow--skip-taskbar-hint">skip-taskbar-hint</a>"    <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>              : Read / Write
  "<a href="GtkWindow.html#GtkWindow--title">title</a>"                <a
href="../gobject/gobject-Standard-Parameter-and-Value-Types.html#gchararray"
>gchararray</a>            : Read / Write
  "<a href="GtkWindow.html#GtkWindow--transient-for">transient-for</a>"        <a href="GtkWindow.html" title="GtkWindow">GtkWindow</a>             : Read / Write / Construct
  "<a href="GtkWindow.html#GtkWindow--type">type</a>"                 <a href="gtk-Standard-Enumerations.html#GtkWindowType">GtkWindowType</a>         : Read / Write / Construct Only
  "<a href="GtkWindow.html#GtkWindow--type-hint">type-hint</a>"            <a
href="../gdk/gdk-Windows.html#GdkWindowTypeHint"
>GdkWindowTypeHint</a>     : Read / Write
  "<a href="GtkWindow.html#GtkWindow--urgency-hint">urgency-hint</a>"         <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>              : Read / Write
  "<a href="GtkWindow.html#GtkWindow--window-position">window-position</a>"      <a href="gtk-Standard-Enumerations.html#GtkWindowPosition">GtkWindowPosition</a>     : Read / Write
</pre>
</div>
<div class="refsect1" lang="en">
<a name="id2793938"></a><h2>Signals</h2>
<pre class="synopsis">

"<a href="GtkWindow.html#GtkWindow-activate-default">activate-default</a>"
            void        user_function      (<a href="GtkWindow.html" title="GtkWindow">GtkWindow</a> *window,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>   user_data)      : Run last / Action
"<a href="GtkWindow.html#GtkWindow-activate-focus">activate-focus</a>"
            void        user_function      (<a href="GtkWindow.html" title="GtkWindow">GtkWindow</a> *window,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>   user_data)      : Run last / Action
"<a href="GtkWindow.html#GtkWindow-frame-event">frame-event</a>"
            <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    user_function      (<a href="GtkWindow.html" title="GtkWindow">GtkWindow</a> *window,
                                            <a
href="../gdk/gdk-Event-Structures.html#GdkEvent"
>GdkEvent</a>  *event,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>   user_data)      : Run last
"<a href="GtkWindow.html#GtkWindow-keys-changed">keys-changed</a>"
            void        user_function      (<a href="GtkWindow.html" title="GtkWindow">GtkWindow</a> *window,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>   user_data)      : Run first
"<a href="GtkWindow.html#GtkWindow-move-focus">move-focus</a>"
            void        user_function      (<a href="GtkWindow.html" title="GtkWindow">GtkWindow</a>        *window,
                                            <a href="gtk-Standard-Enumerations.html#GtkDirectionType">GtkDirectionType</a> *arg1,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>          user_data)      : Run last / Action
"<a href="GtkWindow.html#GtkWindow-set-focus">set-focus</a>" void        user_function      (<a href="GtkWindow.html" title="GtkWindow">GtkWindow</a> *window,
                                            <a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>   user_data)      : Run last
</pre>
</div>
<div class="refsect1" lang="en">
<a name="id2794171"></a><h2>Description</h2>
<p>

</p>
</div>
<div class="refsect1" lang="en">
<a name="id2794185"></a><h2>Details</h2>
<div class="refsect2" lang="en">
<a name="id2794195"></a><h3>
<a name="GtkWindow-struct"></a>GtkWindow</h3>
<a class="indexterm" name="id2794208"></a><pre class="programlisting">typedef struct _GtkWindow GtkWindow;</pre>
<p>

</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2794223"></a><h3>
<a name="gtk-window-new"></a>gtk_window_new ()</h3>
<a class="indexterm" name="id2794236"></a><pre class="programlisting"><a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>*  gtk_window_new                  (<a href="gtk-Standard-Enumerations.html#GtkWindowType">GtkWindowType</a> type);</pre>
<p>
Creates a new <a href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>, which is a toplevel window that can
contain other widgets. Nearly always, the type of the window should
be <a href="gtk-Standard-Enumerations.html#GTK-WINDOW-TOPLEVEL:CAPS"><span class="type">GTK_WINDOW_TOPLEVEL</span></a>. If you're implementing something like a
popup menu from scratch (which is a bad idea, just use <a href="GtkMenu.html" title="GtkMenu"><span class="type">GtkMenu</span></a>),
you might use <a href="gtk-Standard-Enumerations.html#GTK-WINDOW-POPUP:CAPS"><span class="type">GTK_WINDOW_POPUP</span></a>. <a href="gtk-Standard-Enumerations.html#GTK-WINDOW-POPUP:CAPS"><span class="type">GTK_WINDOW_POPUP</span></a> is not for
dialogs, though in some other toolkits dialogs are called "popups".
In GTK+, <a href="gtk-Standard-Enumerations.html#GTK-WINDOW-POPUP:CAPS"><span class="type">GTK_WINDOW_POPUP</span></a> means a pop-up menu or pop-up tooltip.
On X11, popup windows are not controlled by the <a href="gtk-x11.html#gtk-X11-arch" title="Understanding the X11 architecture">window manager</a>.
</p>
<p>
If you simply want an undecorated window (no window borders), use
<a href="GtkWindow.html#gtk-window-set-decorated"><code class="function">gtk_window_set_decorated()</code></a>, don't use <a href="gtk-Standard-Enumerations.html#GTK-WINDOW-POPUP:CAPS"><span class="type">GTK_WINDOW_POPUP</span></a>.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>type</code></em>&#160;:</span></td>
<td> type of window
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> a new <a href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2794393"></a><h3>
<a name="gtk-window-set-title"></a>gtk_window_set_title ()</h3>
<a class="indexterm" name="id2794406"></a><pre class="programlisting">void        gtk_window_set_title            (<a href="GtkWindow.html" title="GtkWindow">GtkWindow</a> *window,
                                             const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *title);</pre>
<p>
Sets the title of the <a href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>. The title of a window will be
displayed in its title bar; on the X Window System, the title bar
is rendered by the <a href="gtk-x11.html#gtk-X11-arch" title="Understanding the X11 architecture">window
manager</a>, 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.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>window</code></em>&#160;:</span></td>
<td> a <a href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>title</code></em>&#160;:</span></td>
<td> title of the window
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2794507"></a><h3>
<a name="gtk-window-set-wmclass"></a>gtk_window_set_wmclass ()</h3>
<a class="indexterm" name="id2794520"></a><pre class="programlisting">void        gtk_window_set_wmclass          (<a href="GtkWindow.html" title="GtkWindow">GtkWindow</a> *window,
                                             const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *wmclass_name,
                                             const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *wmclass_class);</pre>
<p>
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
<a href="GtkWindow.html#gtk-window-set-role"><code class="function">gtk_window_set_role()</code></a> 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.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>window</code></em>&#160;:</span></td>
<td> a <a href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>wmclass_name</code></em>&#160;:</span></td>
<td> window name hint
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>wmclass_class</code></em>&#160;:</span></td>
<td> window class hint
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2794640"></a><h3>
<a name="gtk-window-set-policy"></a>gtk_window_set_policy ()</h3>
<a class="indexterm" name="id2794656"></a><pre class="programlisting">void        gtk_window_set_policy           (<a href="GtkWindow.html" title="GtkWindow">GtkWindow</a> *window,
                                             <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> allow_shrink,
                                             <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> allow_grow,
                                             <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> auto_shrink);</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">gtk_window_set_policy</code> is deprecated and should not be used in newly-written code. Use <a href="GtkWindow.html#gtk-window-set-resizable"><code class="function">gtk_window_set_resizable()</code></a> instead.</p>
</div>
<p>
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:
</p>
<div class="orderedlist"><ol type="1">
<li><p>
<code class="literal">gtk_window_set_policy (GTK_WINDOW (window), FALSE, TRUE, FALSE)</code> 
means that the window is user-resizable.
</p></li>
<li><p>
<code class="literal">gtk_window_set_policy (GTK_WINDOW (window), FALSE, FALSE, TRUE)</code> 
means that the window's size is program-controlled, and should simply match 
the current size request of the window's children.
</p></li>
</ol></div>
<p>
The first policy is the default, that is, by default windows are designed to 
be resized by users.
</p>
<p>
The basic ugly truth of this function is that it should be simply:
<code class="literal">
 void gtk_window_set_resizable (GtkWindow* window, gboolean setting);
</code>
...which is why GTK+ 2.0 introduces <a href="GtkWindow.html#gtk-window-set-resizable"><code class="function">gtk_window_set_resizable()</code></a>, which you 
should use instead of <a href="GtkWindow.html#gtk-window-set-policy"><code class="function">gtk_window_set_policy()</code></a>.
</p>
<p>
If set to <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a>, the <em class="parameter"><code>allow_grow</code></em> parameter allows the user to expand the window
beyond the size request of its child widgets. If <em class="parameter"><code>allow_grow</code></em> is <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a>, be sure to
check that your child widgets work properly as the window is resized.
</p>
<p>
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
<em class="parameter"><code>auto_shrink</code></em> parameter causes the window to shrink when child widgets have too
much space. <em class="parameter"><code>auto_shrink</code></em> is normally used with the second of the two window
policies mentioned above.  That is, set <em class="parameter"><code>auto_shrink</code></em> to <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> if you want the
window to have a fixed, always-optimal size determined by your program.
</p>
<p>
Note that <em class="parameter"><code>auto_shrink</code></em> doesn't do anything if <em class="parameter"><code>allow_shrink</code></em> and <em class="parameter"><code>allow_grow</code></em> are
both set to <a
href="../glib/glib-Standard-Macros.html#FALSE:CAPS"
><code class="literal">FALSE</code></a>.
</p>
<p>
Neither of the two suggested window policies set the <em class="parameter"><code>allow_shrink</code></em> parameter to
<a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a>.  If <em class="parameter"><code>allow_shrink</code></em> is <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a>, 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 <em class="parameter"><code>allow_shrink</code></em> should always be set to <a
href="../glib/glib-Standard-Macros.html#FALSE:CAPS"
><code class="literal">FALSE</code></a>.
</p>
<p>
Sometimes when you think you want to use <em class="parameter"><code>allow_shrink</code></em>, 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 <a href="GtkWidget.html#gtk-widget-set-size-request"><code class="function">gtk_widget_set_size_request()</code></a>
on a child widget, and forcing its size request to be too large. Instead of
setting the child's usize, consider using <a href="GtkWindow.html#gtk-window-set-default-size"><code class="function">gtk_window_set_default_size()</code></a> so that
the child gets a larger allocation than it requests.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>window</code></em>&#160;:</span></td>
<td>the window
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>allow_shrink</code></em>&#160;:</span></td>
<td>whether the user can shrink the window below its size request
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>allow_grow</code></em>&#160;:</span></td>
<td>whether the user can grow the window larger than its size request
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>auto_shrink</code></em>&#160;:</span></td>
<td>whether the window automatically snaps back to its size request 
              if it's larger
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2795079"></a><h3>
<a name="gtk-window-set-resizable"></a>gtk_window_set_resizable ()</h3>
<a class="indexterm" name="id2795092"></a><pre class="programlisting">void        gtk_window_set_resizable        (<a href="GtkWindow.html" title="GtkWindow">GtkWindow</a> *window,
                                             <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> resizable);</pre>
<p>
Sets whether the user can resize a window. Windows are user resizable
by default.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>window</code></em>&#160;:</span></td>
<td> a <a href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>resizable</code></em>&#160;:</span></td>
<td> <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> if the user can resize this window
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2795183"></a><h3>
<a name="gtk-window-get-resizable"></a>gtk_window_get_resizable ()</h3>
<a class="indexterm" name="id2795196"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    gtk_window_get_resizable        (<a href="GtkWindow.html" title="GtkWindow">GtkWindow</a> *window);</pre>
<p>
Gets the value set by <a href="GtkWindow.html#gtk-window-set-resizable"><code class="function">gtk_window_set_resizable()</code></a>.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>window</code></em>&#160;:</span></td>
<td> a <a href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> if the user can resize the window
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2795285"></a><h3>
<a name="gtk-window-add-accel-group"></a>gtk_window_add_accel_group ()</h3>
<a class="indexterm" name="id2795299"></a><pre class="programlisting">void        gtk_window_add_accel_group      (<a href="GtkWindow.html" title="GtkWindow">GtkWindow</a> *window,
                                             <a href="gtk-Keyboard-Accelerators.html#GtkAccelGroup">GtkAccelGroup</a> *accel_group);</pre>
<p>
Associate <em class="parameter"><code>accel_group</code></em> with <em class="parameter"><code>window</code></em>, such that calling
<a href="gtk-Keyboard-Accelerators.html#gtk-accel-groups-activate"><code class="function">gtk_accel_groups_activate()</code></a> on <em class="parameter"><code>window</code></em> will activate accelerators
in <em class="parameter"><code>accel_group</code></em>.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>window</code></em>&#160;:</span></td>
<td> window to attach accelerator group to
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>accel_group</code></em>&#160;:</span></td>
<td> a <a href="gtk-Keyboard-Accelerators.html#GtkAccelGroup"><span class="type">GtkAccelGroup</span></a>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2795414"></a><h3>
<a name="gtk-window-remove-accel-group"></a>gtk_window_remove_accel_group ()</h3>
<a class="indexterm" name="id2795428"></a><pre class="programlisting">void        gtk_window_remove_accel_group   (<a href="GtkWindow.html" title="GtkWindow">GtkWindow</a> *window,
                                             <a href="gtk-Keyboard-Accelerators.html#GtkAccelGroup">GtkAccelGroup</a> *accel_group);</pre>
<p>
Reverses the effects of <a href="GtkWindow.html#gtk-window-add-accel-group"><code class="function">gtk_window_add_accel_group()</code></a>.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>window</code></em>&#160;:</span></td>
<td> a <a href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>accel_group</code></em>&#160;:</span></td>
<td> a <a href="gtk-Keyboard-Accelerators.html#GtkAccelGroup"><span class="type">GtkAccelGroup</span></a>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2795527"></a><h3>
<a name="gtk-window-position"></a>gtk_window_position</h3>
<a class="indexterm" name="id2795541"></a><pre class="programlisting">#define	gtk_window_position			gtk_window_set_position
</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">gtk_window_position</code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
Deprecated alias for <a href="GtkWindow.html#gtk-window-set-position"><code class="function">gtk_window_set_position()</code></a>.
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2795581"></a><h3>
<a name="gtk-window-activate-focus"></a>gtk_window_activate_focus ()</h3>
<a class="indexterm" name="id2795595"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    gtk_window_activate_focus       (<a href="GtkWindow.html" title="GtkWindow">GtkWindow</a> *window);</pre>
<p>
Activates the current focused widget within the window.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>window</code></em>&#160;:</span></td>
<td> a <a href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> if a widget got activated.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2795673"></a><h3>
<a name="gtk-window-activate-default"></a>gtk_window_activate_default ()</h3>
<a class="indexterm" name="id2795687"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    gtk_window_activate_default     (<a href="GtkWindow.html" title="GtkWindow">GtkWindow</a> *window);</pre>
<p>
Activates the default widget for the window, unless the current 
focused widget has been configured to receive the default action 
(see <a href="GtkWidget.html#GTK-RECEIVES-DEFAULT:CAPS"><span class="type">GTK_RECEIVES_DEFAULT</span></a> in <a href="GtkWidget.html#GtkWidgetFlags"><span class="type">GtkWidgetFlags</span></a>), in which case the
focused widget is activated.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>window</code></em>&#160;:</span></td>
<td> a <a href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> if a widget got activated.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2795788"></a><h3>
<a name="gtk-window-set-modal"></a>gtk_window_set_modal ()</h3>
<a class="indexterm" name="id2795801"></a><pre class="programlisting">void        gtk_window_set_modal            (<a href="GtkWindow.html" title="GtkWindow">GtkWindow</a> *window,
                                             <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> modal);</pre>
<p>
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
<a href="GtkWindow.html#gtk-window-set-transient-for"><code class="function">gtk_window_set_transient_for()</code></a> to make the dialog transient for the
parent; most <a href="gtk-x11.html#gtk-X11-arch" title="Understanding the X11 architecture">window managers</a>
will then disallow lowering the dialog below the parent.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>window</code></em>&#160;:</span></td>
<td> a <a href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>modal</code></em>&#160;:</span></td>
<td> whether the window is modal
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2795903"></a><h3>
<a name="gtk-window-set-default-size"></a>gtk_window_set_default_size ()</h3>
<a class="indexterm" name="id2795917"></a><pre class="programlisting">void        gtk_window_set_default_size     (<a href="GtkWindow.html" title="GtkWindow">GtkWindow</a> *window,
                                             <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> width,
                                             <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> height);</pre>
<p>
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 (<a href="GtkWindow.html#gtk-window-set-geometry-hints"><code class="function">gtk_window_set_geometry_hints()</code></a> can
be used to set these explicitly), the default size will be clamped
to the nearest permitted size.
</p>
<p>
Unlike <a href="GtkWidget.html#gtk-widget-set-size-request"><code class="function">gtk_widget_set_size_request()</code></a>, 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).
</p>
<p>
For more control over a window's initial size and how resizing works,
investigate <a href="GtkWindow.html#gtk-window-set-geometry-hints"><code class="function">gtk_window_set_geometry_hints()</code></a>.
</p>
<p>
For some uses, <a href="GtkWindow.html#gtk-window-resize"><code class="function">gtk_window_resize()</code></a> is a more appropriate function.
<a href="GtkWindow.html#gtk-window-resize"><code class="function">gtk_window_resize()</code></a> changes the current size of the window, rather
than the size to be used on initial display. <a href="GtkWindow.html#gtk-window-resize"><code class="function">gtk_window_resize()</code></a> always
affects the window itself, not the geometry widget.
</p>
<p>
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.
</p>
<p>
Windows can't actually be 0x0 in size, they must be at least 1x1, but
passing 0 for <em class="parameter"><code>width</code></em> and <em class="parameter"><code>height</code></em> is OK, resulting in a 1x1 default size.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>window</code></em>&#160;:</span></td>
<td> a <a href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>width</code></em>&#160;:</span></td>
<td> width in pixels, or -1 to unset the default width
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>height</code></em>&#160;:</span></td>
<td> height in pixels, or -1 to unset the default height
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2796134"></a><h3>
<a name="gtk-window-set-geometry-hints"></a>gtk_window_set_geometry_hints ()</h3>
<a class="indexterm" name="id2796148"></a><pre class="programlisting">void        gtk_window_set_geometry_hints   (<a href="GtkWindow.html" title="GtkWindow">GtkWindow</a> *window,
                                             <a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *geometry_widget,
                                             <a
href="../gdk/gdk-Windows.html#GdkGeometry"
>GdkGeometry</a> *geometry,
                                             <a
href="../gdk/gdk-Windows.html#GdkWindowHints"
>GdkWindowHints</a> geom_mask);</pre>
<p>
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 <a
href="../gdk/gdk-Windows.html#GdkGeometry"
><span class="type">GdkGeometry</span></a> struct.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>window</code></em>&#160;:</span></td>
<td> a <a href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>geometry_widget</code></em>&#160;:</span></td>
<td> widget the geometry hints will be applied to
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>geometry</code></em>&#160;:</span></td>
<td> struct containing geometry information
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>geom_mask</code></em>&#160;:</span></td>
<td> mask indicating which struct fields should be paid attention to
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2796284"></a><h3>
<a name="gtk-window-set-gravity"></a>gtk_window_set_gravity ()</h3>
<a class="indexterm" name="id2796297"></a><pre class="programlisting">void        gtk_window_set_gravity          (<a href="GtkWindow.html" title="GtkWindow">GtkWindow</a> *window,
                                             <a
href="../gdk/gdk-Windows.html#GdkGravity"
>GdkGravity</a> gravity);</pre>
<p>
Window gravity defines the meaning of coordinates passed to
<a href="GtkWindow.html#gtk-window-move"><code class="function">gtk_window_move()</code></a>. See <a href="GtkWindow.html#gtk-window-move"><code class="function">gtk_window_move()</code></a> and <a
href="../gdk/gdk-Windows.html#GdkGravity"
><span class="type">GdkGravity</span></a> for
more details.
</p>
<p>
The default window gravity is <a
href="../gdk/gdk-Windows.html#GDK-GRAVITY-NORTH-WEST:CAPS"
><span class="type">GDK_GRAVITY_NORTH_WEST</span></a> which will
typically "do what you mean."</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>window</code></em>&#160;:</span></td>
<td> a <a href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>gravity</code></em>&#160;:</span></td>
<td> window gravity
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2796421"></a><h3>
<a name="gtk-window-get-gravity"></a>gtk_window_get_gravity ()</h3>
<a class="indexterm" name="id2796434"></a><pre class="programlisting"><a
href="../gdk/gdk-Windows.html#GdkGravity"
>GdkGravity</a>  gtk_window_get_gravity          (<a href="GtkWindow.html" title="GtkWindow">GtkWindow</a> *window);</pre>
<p>
Gets the value set by <a href="GtkWindow.html#gtk-window-set-gravity"><code class="function">gtk_window_set_gravity()</code></a>.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>window</code></em>&#160;:</span></td>
<td> a <a href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> window gravity
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2796513"></a><h3>
<a name="gtk-window-set-position"></a>gtk_window_set_position ()</h3>
<a class="indexterm" name="id2796526"></a><pre class="programlisting">void        gtk_window_set_position         (<a href="GtkWindow.html" title="GtkWindow">GtkWindow</a> *window,
                                             <a href="gtk-Standard-Enumerations.html#GtkWindowPosition">GtkWindowPosition</a> position);</pre>
<p>
Sets a position constraint for this window. If the old or new
constraint is <a href="gtk-Standard-Enumerations.html#GTK-WIN-POS-CENTER-ALWAYS:CAPS"><code class="literal">GTK_WIN_POS_CENTER_ALWAYS</code></a>, this will also cause
the window to be repositioned to satisfy the new constraint.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>window</code></em>&#160;:</span></td>
<td> a <a href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>position</code></em>&#160;:</span></td>
<td> a position constraint.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2796620"></a><h3>
<a name="gtk-window-set-transient-for"></a>gtk_window_set_transient_for ()</h3>
<a class="indexterm" name="id2796633"></a><pre class="programlisting">void        gtk_window_set_transient_for    (<a href="GtkWindow.html" title="GtkWindow">GtkWindow</a> *window,
                                             <a href="GtkWindow.html" title="GtkWindow">GtkWindow</a> *parent);</pre>
<p>
Dialog windows should be set transient for the main application
window they were spawned from. This allows <a href="gtk-x11.html#gtk-X11-arch" title="Understanding the X11 architecture">window managers</a> to e.g. keep the
dialog on top of the main window, or center the dialog over the
main window. <a href="GtkDialog.html#gtk-dialog-new-with-buttons"><code class="function">gtk_dialog_new_with_buttons()</code></a> and other convenience
functions in GTK+ will sometimes call
<a href="GtkWindow.html#gtk-window-set-transient-for"><code class="function">gtk_window_set_transient_for()</code></a> on your behalf.
</p>
<p>
On Windows, this function will and put the child window
on top of the parent, much as the window manager would have
done on X.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>window</code></em>&#160;:</span></td>
<td> a <a href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>parent</code></em>&#160;:</span></td>
<td> parent window
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2796753"></a><h3>
<a name="gtk-window-set-destroy-with-parent"></a>gtk_window_set_destroy_with_parent ()</h3>
<a class="indexterm" name="id2796767"></a><pre class="programlisting">void        gtk_window_set_destroy_with_parent
                                            (<a href="GtkWindow.html" title="GtkWindow">GtkWindow</a> *window,
                                             <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> setting);</pre>
<p>
If <em class="parameter"><code>setting</code></em> is <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a>, then destroying the transient parent of <em class="parameter"><code>window</code></em>
will also destroy <em class="parameter"><code>window</code></em> itself. This is useful for dialogs that
shouldn't persist beyond the lifetime of the main window they're
associated with, for example.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>window</code></em>&#160;:</span></td>
<td> a <a href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>setting</code></em>&#160;:</span></td>
<td> whether to destroy <em class="parameter"><code>window</code></em> with its transient parent
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2796883"></a><h3>
<a name="gtk-window-set-screen"></a>gtk_window_set_screen ()</h3>
<a class="indexterm" name="id2796899"></a><pre class="programlisting">void        gtk_window_set_screen           (<a href="GtkWindow.html" title="GtkWindow">GtkWindow</a> *window,
                                             <a
href="../gdk/GdkScreen.html"
>GdkScreen</a> *screen);</pre>
<p>
Sets the <a
href="../gdk/GdkScreen.html"
><span class="type">GdkScreen</span></a> where the <em class="parameter"><code>window</code></em> is displayed; if
the window is already mapped, it will be unmapped, and
then remapped on the new screen.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>window</code></em>&#160;:</span></td>
<td> a <a href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>screen</code></em>&#160;:</span></td>
<td> a <a
href="../gdk/GdkScreen.html"
><span class="type">GdkScreen</span></a>.
</td>
</tr>
</tbody>
</table></div>
<p>Since  2.2
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2797005"></a><h3>
<a name="gtk-window-get-screen"></a>gtk_window_get_screen ()</h3>
<a class="indexterm" name="id2797020"></a><pre class="programlisting"><a
href="../gdk/GdkScreen.html"
>GdkScreen</a>*  gtk_window_get_screen           (<a href="GtkWindow.html" title="GtkWindow">GtkWindow</a> *window);</pre>
<p>
Returns the <a
href="../gdk/GdkScreen.html"
><span class="type">GdkScreen</span></a> associated with <em class="parameter"><code>window</code></em>.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>window</code></em>&#160;:</span></td>
<td> a <a href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>.
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> a <a
href="../gdk/GdkScreen.html"
><span class="type">GdkScreen</span></a>.

</td>
</tr>
</tbody>
</table></div>
<p>Since  2.2
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2797114"></a><h3>
<a name="gtk-window-is-active"></a>gtk_window_is_active ()</h3>
<a class="indexterm" name="id2797130"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    gtk_window_is_active            (<a href="GtkWindow.html" title="GtkWindow">GtkWindow</a> *window);</pre>
<p>
Returns whether the window is part of the current active toplevel.
(That is, the toplevel window receiving keystrokes.)
The return value is <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> if the window is active toplevel
itself, but also if it is, say, a <a href="GtkPlug.html" title="GtkPlug"><span class="type">GtkPlug</span></a> 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 <a href="GtkWindow.html#gtk-window-has-toplevel-focus"><code class="function">gtk_window_has_toplevel_focus()</code></a></p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>window</code></em>&#160;:</span></td>
<td> a <a href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> if the window part of the current active window.

</td>
</tr>
</tbody>
</table></div>
<p>Since  2.4
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2797247"></a><h3>
<a name="gtk-window-has-toplevel-focus"></a>gtk_window_has_toplevel_focus ()</h3>
<a class="indexterm" name="id2797263"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    gtk_window_has_toplevel_focus   (<a href="GtkWindow.html" title="GtkWindow">GtkWindow</a> *window);</pre>
<p>
Returns whether the input focus is within this GtkWindow.
For real toplevel windows, this is identical to <a href="GtkWindow.html#gtk-window-is-active"><code class="function">gtk_window_is_active()</code></a>,
but for embedded windows, like <a href="GtkPlug.html" title="GtkPlug"><span class="type">GtkPlug</span></a>, the results will differ.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>window</code></em>&#160;:</span></td>
<td> a <a href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> if the input focus is within this GtkWindow

</td>
</tr>
</tbody>
</table></div>
<p>Since  2.4
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2797367"></a><h3>
<a name="gtk-window-list-toplevels"></a>gtk_window_list_toplevels ()</h3>
<a class="indexterm" name="id2797381"></a><pre class="programlisting"><a
href="../glib/glib-Doubly-Linked-Lists.html#GList"
>GList</a>*      gtk_window_list_toplevels       (void);</pre>
<p>
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 <span class="emphasis"><em>must</em></span> call
<code class="literal">g_list_foreach (result, (GFunc)g_object_ref, NULL)</code> first, and
then unref all the widgets afterwards.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> list of toplevel widgets
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2797435"></a><h3>
<a name="gtk-window-add-mnemonic"></a>gtk_window_add_mnemonic ()</h3>
<a class="indexterm" name="id2797448"></a><pre class="programlisting">void        gtk_window_add_mnemonic         (<a href="GtkWindow.html" title="GtkWindow">GtkWindow</a> *window,
                                             <a
href="../glib/glib-Basic-Types.html#guint"
>guint</a> keyval,
                                             <a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *target);</pre>
<p>
Adds a mnemonic to this window.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>window</code></em>&#160;:</span></td>
<td> a <a href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>keyval</code></em>&#160;:</span></td>
<td> the mnemonic
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>target</code></em>&#160;:</span></td>
<td> the widget that gets activated by the mnemonic
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2797549"></a><h3>
<a name="gtk-window-remove-mnemonic"></a>gtk_window_remove_mnemonic ()</h3>
<a class="indexterm" name="id2797563"></a><pre class="programlisting">void        gtk_window_remove_mnemonic      (<a href="GtkWindow.html" title="GtkWindow">GtkWindow</a> *window,
                                             <a
href="../glib/glib-Basic-Types.html#guint"
>guint</a> keyval,
                                             <a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *target);</pre>
<p>
Removes a mnemonic from this window.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>window</code></em>&#160;:</span></td>
<td> a <a href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>keyval</code></em>&#160;:</span></td>
<td> the mnemonic
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>target</code></em>&#160;:</span></td>
<td> the widget that gets activated by the mnemonic
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2797664"></a><h3>
<a name="gtk-window-mnemonic-activate"></a>gtk_window_mnemonic_activate ()</h3>
<a class="indexterm" name="id2797678"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    gtk_window_mnemonic_activate    (<a href="GtkWindow.html" title="GtkWindow">GtkWindow</a> *window,
                                             <a
href="../glib/glib-Basic-Types.html#guint"
>guint</a> keyval,
                                             <a
href="../gdk/gdk-Windows.html#GdkModifierType"
>GdkModifierType</a> modifier);</pre>
<p>
Activates the targets associated with the mnemonic.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>window</code></em>&#160;:</span></td>
<td> a <a href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>keyval</code></em>&#160;:</span></td>
<td> the mnemonic
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>modifier</code></em>&#160;:</span></td>
<td> the modifiers 
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> if the activation is done. 
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2797801"></a><h3>
<a name="gtk-window-activate-key"></a>gtk_window_activate_key ()</h3>
<a class="indexterm" name="id2797814"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    gtk_window_activate_key         (<a href="GtkWindow.html" title="GtkWindow">GtkWindow</a> *window,
                                             <a
href="../gdk/gdk-Event-Structures.html#GdkEventKey"
>GdkEventKey</a> *event);</pre>
<p>
Activates mnemonics and accelerators for this <a href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>. 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.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>window</code></em>&#160;:</span></td>
<td>  a <a href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>event</code></em>&#160;:</span></td>
<td>   a <a
href="../gdk/gdk-Event-Structures.html#GdkEventKey"
><span class="type">GdkEventKey</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> if a mnemonic or accelerator was found and activated.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2797934"></a><h3>
<a name="gtk-window-propagate-key-event"></a>gtk_window_propagate_key_event ()</h3>
<a class="indexterm" name="id2797948"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    gtk_window_propagate_key_event  (<a href="GtkWindow.html" title="GtkWindow">GtkWindow</a> *window,
                                             <a
href="../gdk/gdk-Event-Structures.html#GdkEventKey"
>GdkEventKey</a> *event);</pre>
<p>
Propagate a key press or release event to the focus widget and
up the focus container chain until a widget handles <em class="parameter"><code>event</code></em>.
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.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>window</code></em>&#160;:</span></td>
<td>  a <a href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>event</code></em>&#160;:</span></td>
<td>   a <a
href="../gdk/gdk-Event-Structures.html#GdkEventKey"
><span class="type">GdkEventKey</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> if a widget in the focus chain handled the event.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2798067"></a><h3>
<a name="gtk-window-get-focus"></a>gtk_window_get_focus ()</h3>
<a class="indexterm" name="id2798081"></a><pre class="programlisting"><a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>*  gtk_window_get_focus            (<a href="GtkWindow.html" title="GtkWindow">GtkWindow</a> *window);</pre>
<p>
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  <code class="literal">GTK_WIDGET_HAS_FOCUS (widget)</code> will
not be <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> for the widget.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>window</code></em>&#160;:</span></td>
<td> a <a href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> the currently focused widget, or <a
href="../glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a> if there is none.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2798179"></a><h3>
<a name="gtk-window-set-focus"></a>gtk_window_set_focus ()</h3>
<a class="indexterm" name="id2798192"></a><pre class="programlisting">void        gtk_window_set_focus            (<a href="GtkWindow.html" title="GtkWindow">GtkWindow</a> *window,
                                             <a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *focus);</pre>
<p>
If <em class="parameter"><code>focus</code></em> is not the current focus widget, and is focusable, sets
it as the focus widget for the window. If <em class="parameter"><code>focus</code></em> is <a
href="../glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a>, 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
<a href="GtkWidget.html#gtk-widget-grab-focus"><code class="function">gtk_widget_grab_focus()</code></a> instead of this function.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>window</code></em>&#160;:</span></td>
<td> a <a href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>focus</code></em>&#160;:</span></td>
<td> widget to be the new focus widget, or <a
href="../glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a> to unset
  any focus widget for the toplevel window.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2798321"></a><h3>
<a name="gtk-window-set-default"></a>gtk_window_set_default ()</h3>
<a class="indexterm" name="id2798334"></a><pre class="programlisting">void        gtk_window_set_default          (<a href="GtkWindow.html" title="GtkWindow">GtkWindow</a> *window,
                                             <a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *default_widget);</pre>
<p>
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 <a href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> about. When setting
(rather than unsetting) the default widget it's generally easier to
call <a href="GtkWidget.html#gtk-widget-grab-focus"><code class="function">gtk_widget_grab_focus()</code></a> on the widget. Before making a widget
the default widget, you must set the <a href="GtkWidget.html#GTK-CAN-DEFAULT:CAPS"><span class="type">GTK_CAN_DEFAULT</span></a> flag on the
widget you'd like to make the default using <a href="GtkWidget.html#GTK-WIDGET-SET-FLAGS:CAPS"><code class="function">GTK_WIDGET_SET_FLAGS()</code></a>.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>window</code></em>&#160;:</span></td>
<td> a <a href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>default_widget</code></em>&#160;:</span></td>
<td> widget to be the default, or <a
href="../glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a> to unset the
                 default widget for the toplevel.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2798472"></a><h3>
<a name="gtk-window-present"></a>gtk_window_present ()</h3>
<a class="indexterm" name="id2798485"></a><pre class="programlisting">void        gtk_window_present              (<a href="GtkWindow.html" title="GtkWindow">GtkWindow</a> *window);</pre>
<p>
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.
</p>
<p>
If <em class="parameter"><code>window</code></em> is hidden, this function calls <a href="GtkWidget.html#gtk-widget-show"><code class="function">gtk_widget_show()</code></a>
as well.
</p>
<p>
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 <a href="GtkWindow.html#gtk-window-present"><code class="function">gtk_window_present()</code></a> to move the already-open dialog
where the user can see it.
</p>
<p>
If you are calling this function in response to a user interaction,
it is preferable to use <a href="GtkWindow.html#gtk-window-present-with-time"><code class="function">gtk_window_present_with_time()</code></a>.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td>
<span class="term"><em class="parameter"><code>window</code></em>&#160;:</span></td>
<td> a <a href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2798601"></a><h3>
<a name="gtk-window-present-with-time"></a>gtk_window_present_with_time ()</h3>
<a class="indexterm" name="id2798617"></a><pre class="programlisting">void        gtk_window_present_with_time    (<a href="GtkWindow.html" title="GtkWindow">GtkWindow</a> *window,
                                             <a
href="../glib/glib-Basic-Types.html#guint32"
>guint32</a> timestamp);</pre>
<p>
Presents a window to the user in response to a user interaction.
If you need to present a window without a timestamp, use 
<a href="GtkWindow.html#gtk-window-present"><code class="function">gtk_window_present()</code></a>. See <a href="GtkWindow.html#gtk-window-present"><code class="function">gtk_window_present()</code></a> for details.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>window</code></em>&#160;:</span></td>
<td> a <a href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>timestamp</code></em>&#160;:</span></td>
<td> the timestamp of the user interaction (typically a 
  button or key press event) which triggered this call
</td>
</tr>
</tbody>
</table></div>
<p>Since  2.8
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2798726"></a><h3>
<a name="gtk-window-iconify"></a>gtk_window_iconify ()</h3>
<a class="indexterm" name="id2798740"></a><pre class="programlisting">void        gtk_window_iconify              (<a href="GtkWindow.html" title="GtkWindow">GtkWindow</a> *window);</pre>
<p>
Asks to iconify (i.e. minimize) the specified <em class="parameter"><code>window</code></em>. Note that
you shouldn't assume the window is definitely iconified afterward,
because other entities (e.g. the user or <a href="gtk-x11.html#gtk-X11-arch" title="Understanding the X11 architecture">window manager</a>) 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.
</p>
<p>
It's permitted to call this function before showing a window,
in which case the window will be iconified before it ever appears
onscreen.
</p>
<p>
You can track iconification via the "window_state_event" signal
on <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td>
<span class="term"><em class="parameter"><code>window</code></em>&#160;:</span></td>
<td> a <a href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2798833"></a><h3>
<a name="gtk-window-deiconify"></a>gtk_window_deiconify ()</h3>
<a class="indexterm" name="id2798847"></a><pre class="programlisting">void        gtk_window_deiconify            (<a href="GtkWindow.html" title="GtkWindow">GtkWindow</a> *window);</pre>
<p>
Asks to deiconify (i.e. unminimize) the specified <em class="parameter"><code>window</code></em>. Note
that you shouldn't assume the window is definitely deiconified
afterward, because other entities (e.g. the user or <a href="gtk-x11.html#gtk-X11-arch" title="Understanding the X11 architecture">window manager</a>) could iconify it
again before your code which assumes deiconification gets to run.
</p>
<p>
You can track iconification via the "window_state_event" signal
on <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td>
<span class="term"><em class="parameter"><code>window</code></em>&#160;:</span></td>
<td> a <a href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2798933"></a><h3>
<a name="gtk-window-stick"></a>gtk_window_stick ()</h3>
<a class="indexterm" name="id2798946"></a><pre class="programlisting">void        gtk_window_stick                (<a href="GtkWindow.html" title="GtkWindow">GtkWindow</a> *window);</pre>
<p>
Asks to stick <em class="parameter"><code>window</code></em>, 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 <a href="gtk-x11.html#gtk-X11-arch" title="Understanding the X11 architecture">window manager</a>) 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.
</p>
<p>
It's permitted to call this function before showing a window.
</p>
<p>
You can track stickiness via the "window_state_event" signal
on <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td>
<span class="term"><em class="parameter"><code>window</code></em>&#160;:</span></td>
<td> a <a href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2799039"></a><h3>
<a name="gtk-window-unstick"></a>gtk_window_unstick ()</h3>
<a class="indexterm" name="id2799052"></a><pre class="programlisting">void        gtk_window_unstick              (<a href="GtkWindow.html" title="GtkWindow">GtkWindow</a> *window);</pre>
<p>
Asks to unstick <em class="parameter"><code>window</code></em>, 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 <a href="gtk-x11.html#gtk-X11-arch" title="Understanding the X11 architecture">window
manager</a>) could stick it again. But normally the window will
end up stuck. Just don't write code that crashes if not.
</p>
<p>
You can track stickiness via the "window_state_event" signal
on <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td>
<span class="term"><em class="parameter"><code>window</code></em>&#160;:</span></td>
<td> a <a href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2799139"></a><h3>
<a name="gtk-window-maximize"></a>gtk_window_maximize ()</h3>
<a class="indexterm" name="id2799152"></a><pre class="programlisting">void        gtk_window_maximize             (<a href="GtkWindow.html" title="GtkWindow">GtkWindow</a> *window);</pre>
<p>
Asks to maximize <em class="parameter"><code>window</code></em>, 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 <a href="gtk-x11.html#gtk-X11-arch" title="Understanding the X11 architecture">window manager</a>) 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.
</p>
<p>
It's permitted to call this function before showing a window,
in which case the window will be maximized when it appears onscreen
initially.
</p>
<p>
You can track maximization via the "window_state_event" signal
on <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td>
<span class="term"><em class="parameter"><code>window</code></em>&#160;:</span></td>
<td> a <a href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2799246"></a><h3>
<a name="gtk-window-unmaximize"></a>gtk_window_unmaximize ()</h3>
<a class="indexterm" name="id2799259"></a><pre class="programlisting">void        gtk_window_unmaximize           (<a href="GtkWindow.html" title="GtkWindow">GtkWindow</a> *window);</pre>
<p>
Asks to unmaximize <em class="parameter"><code>window</code></em>. Note that you shouldn't assume the
window is definitely unmaximized afterward, because other entities
(e.g. the user or <a href="gtk-x11.html#gtk-X11-arch" title="Understanding the X11 architecture">window
manager</a>) 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.
</p>
<p>
You can track maximization via the "window_state_event" signal
on <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td>
<span class="term"><em class="parameter"><code>window</code></em>&#160;:</span></td>
<td> a <a href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2799346"></a><h3>
<a name="gtk-window-fullscreen"></a>gtk_window_fullscreen ()</h3>
<a class="indexterm" name="id2799362"></a><pre class="programlisting">void        gtk_window_fullscreen           (<a href="GtkWindow.html" title="GtkWindow">GtkWindow</a> *window);</pre>
<p>
Asks to place <em class="parameter"><code>window</code></em> 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 <a href="gtk-x11.html#gtk-X11-arch" title="Understanding the X11 architecture">window manager</a>) 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.
</p>
<p>
You can track the fullscreen state via the "window_state_event" signal
on <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td>
<span class="term"><em class="parameter"><code>window</code></em>&#160;:</span></td>
<td> a <a href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
</td>
</tr></tbody>
</table></div>
<p>Since  2.2
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2799455"></a><h3>
<a name="gtk-window-unfullscreen"></a>gtk_window_unfullscreen ()</h3>
<a class="indexterm" name="id2799470"></a><pre class="programlisting">void        gtk_window_unfullscreen         (<a href="GtkWindow.html" title="GtkWindow">GtkWindow</a> *window);</pre>
<p>
Asks to toggle off the fullscreen state for <em class="parameter"><code>window</code></em>. Note that you
shouldn't assume the window is definitely not full screen
afterward, because other entities (e.g. the user or <a href="gtk-x11.html#gtk-X11-arch" title="Understanding the X11 architecture">window manager</a>) 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.
</p>
<p>
You can track the fullscreen state via the "window_state_event" signal
on <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td>
<span class="term"><em class="parameter"><code>window</code></em>&#160;:</span></td>
<td> a <a href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
</td>
</tr></tbody>
</table></div>
<p>Since  2.2
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2799564"></a><h3>
<a name="gtk-window-set-keep-above"></a>gtk_window_set_keep_above ()</h3>
<a class="indexterm" name="id2799580"></a><pre class="programlisting">void        gtk_window_set_keep_above       (<a href="GtkWindow.html" title="GtkWindow">GtkWindow</a> *window,
                                             <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> setting);</pre>
<p>
Asks to keep <em class="parameter"><code>window</code></em> 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 <a href="gtk-x11.html#gtk-X11-arch" title="Understanding the X11 architecture">window manager</a>) 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.
</p>
<p>
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.
</p>
<p>
You can track the above state via the "window_state_event" signal
on <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>.
</p>
<p>
Note that, according to the <a href="http://www.freedesktop.org/Standards/wm-spec" target="_top">Extended Window 
Manager Hints</a> 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.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>window</code></em>&#160;:</span></td>
<td> a <a href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>setting</code></em>&#160;:</span></td>
<td> whether to keep <em class="parameter"><code>window</code></em> above other windows
</td>
</tr>
</tbody>
</table></div>
<p>Since  2.4
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2799719"></a><h3>
<a name="gtk-window-set-keep-below"></a>gtk_window_set_keep_below ()</h3>
<a class="indexterm" name="id2799735"></a><pre class="programlisting">void        gtk_window_set_keep_below       (<a href="GtkWindow.html" title="GtkWindow">GtkWindow</a> *window,
                                             <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> setting);</pre>
<p>
Asks to keep <em class="parameter"><code>window</code></em> 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 <a href="gtk-x11.html#gtk-X11-arch" title="Understanding the X11 architecture">window manager</a>) 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.
</p>
<p>
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.
</p>
<p>
You can track the below state via the "window_state_event" signal
on <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>.
</p>
<p>
Note that, according to the <a href="http://www.freedesktop.org/Standards/wm-spec" target="_top">Extended Window 
Manager Hints</a> 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.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>window</code></em>&#160;:</span></td>
<td> a <a href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>setting</code></em>&#160;:</span></td>
<td> whether to keep <em class="parameter"><code>window</code></em> below other windows
</td>
</tr>
</tbody>
</table></div>
<p>Since  2.4
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2799874"></a><h3>
<a name="gtk-window-begin-resize-drag"></a>gtk_window_begin_resize_drag ()</h3>
<a class="indexterm" name="id2799888"></a><pre class="programlisting">void        gtk_window_begin_resize_drag    (<a href="GtkWindow.html" title="GtkWindow">GtkWindow</a> *window,
                                             <a
href="../gdk/gdk-Windows.html#GdkWindowEdge"
>GdkWindowEdge</a> edge,
                                             <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> button,
                                             <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> root_x,
                                             <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> root_y,
                                             <a
href="../glib/glib-Basic-Types.html#guint32"
>guint32</a> timestamp);</pre>
<p>
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 <a href="gtk-x11.html#gtk-X11-arch" title="Understanding the X11 architecture">window manager</a> or windowing
system. Otherwise, GDK will try to emulate window resizing,
potentially not all that well, depending on the windowing system.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>window</code></em>&#160;:</span></td>
<td> a <a href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>edge</code></em>&#160;:</span></td>
<td> position of the resize control
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>button</code></em>&#160;:</span></td>
<td> mouse button that initiated the drag
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>root_x</code></em>&#160;:</span></td>
<td> X position where the user clicked to initiate the drag, in root window coordinates
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>root_y</code></em>&#160;:</span></td>
<td> Y position where the user clicked to initiate the drag
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>timestamp</code></em>&#160;:</span></td>
<td> timestamp from the click event that initiated the drag
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2800069"></a><h3>
<a name="gtk-window-begin-move-drag"></a>gtk_window_begin_move_drag ()</h3>
<a class="indexterm" name="id2800083"></a><pre class="programlisting">void        gtk_window_begin_move_drag      (<a href="GtkWindow.html" title="GtkWindow">GtkWindow</a> *window,
                                             <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> button,
                                             <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> root_x,
                                             <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> root_y,
                                             <a
href="../glib/glib-Basic-Types.html#guint32"
>guint32</a> timestamp);</pre>
<p>
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 <a href="gtk-x11.html#gtk-X11-arch" title="Understanding the X11 architecture">window manager</a> or windowing
system. Otherwise, GDK will try to emulate window movement,
potentially not all that well, depending on the windowing system.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>window</code></em>&#160;:</span></td>
<td> a <a href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>button</code></em>&#160;:</span></td>
<td> mouse button that initiated the drag
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>root_x</code></em>&#160;:</span></td>
<td> X position where the user clicked to initiate the drag, in root window coordinates
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>root_y</code></em>&#160;:</span></td>
<td> Y position where the user clicked to initiate the drag
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>timestamp</code></em>&#160;:</span></td>
<td> timestamp from the click event that initiated the drag
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2800242"></a><h3>
<a name="gtk-window-set-decorated"></a>gtk_window_set_decorated ()</h3>
<a class="indexterm" name="id2800255"></a><pre class="programlisting">void        gtk_window_set_decorated        (<a href="GtkWindow.html" title="GtkWindow">GtkWindow</a> *window,
                                             <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> setting);</pre>
<p>
By default, windows are decorated with a title bar, resize
controls, etc.  Some <a href="gtk-x11.html#gtk-X11-arch" title="Understanding the X11 architecture">window
managers</a> allow GTK+ to disable these decorations, creating a
borderless window. If you set the decorated property to <a
href="../glib/glib-Standard-Macros.html#FALSE:CAPS"
><code class="literal">FALSE</code></a>
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 <code class="function">gtk_window_show()</code>.
</p>
<p>
On Windows, this function always works, since there's no window manager
policy involved.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>window</code></em>&#160;:</span></td>
<td> a <a href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>setting</code></em>&#160;:</span></td>
<td> <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> to decorate the window
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2800385"></a><h3>
<a name="gtk-window-set-deletable"></a>gtk_window_set_deletable ()</h3>
<a class="indexterm" name="id2800401"></a><pre class="programlisting">void        gtk_window_set_deletable        (<a href="GtkWindow.html" title="GtkWindow">GtkWindow</a> *window,
                                             <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> setting);</pre>
<p>
By default, windows have a close button in the window frame. Some 
<a href="gtk-x11.html#gtk-X11-arch" title="Understanding the X11 architecture">window managers</a> allow GTK+ to 
disable this button. If you set the deletable property to <a
href="../glib/glib-Standard-Macros.html#FALSE:CAPS"
><code class="literal">FALSE</code></a>
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 <code class="function">gtk_window_show()</code>.
</p>
<p>
On Windows, this function always works, since there's no window manager
policy involved.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>window</code></em>&#160;:</span></td>
<td> a <a href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>setting</code></em>&#160;:</span></td>
<td> <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> to decorate the window as deletable
</td>
</tr>
</tbody>
</table></div>
<p>Since  2.10
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2800534"></a><h3>
<a name="gtk-window-set-frame-dimensions"></a>gtk_window_set_frame_dimensions ()</h3>
<a class="indexterm" name="id2800548"></a><pre class="programlisting">void        gtk_window_set_frame_dimensions (<a href="GtkWindow.html" title="GtkWindow">GtkWindow</a> *window,
                                             <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> left,
                                             <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> top,
                                             <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> right,
                                             <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> bottom);</pre>
<p>
(Note: this is a special-purpose function intended for the framebuffer
 port; see <a href="GtkWindow.html#gtk-window-set-has-frame"><code class="function">gtk_window_set_has_frame()</code></a>. 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.)
</p>
<p>
For windows with frames (see <a href="GtkWindow.html#gtk-window-set-has-frame"><code class="function">gtk_window_set_has_frame()</code></a>) this function
can be used to change the size of the frame border.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>window</code></em>&#160;:</span></td>
<td> a <a href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> that has a frame
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>left</code></em>&#160;:</span></td>
<td> The width of the left border
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>top</code></em>&#160;:</span></td>
<td> The height of the top border
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>right</code></em>&#160;:</span></td>
<td> The width of the right border
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>bottom</code></em>&#160;:</span></td>
<td> The height of the bottom border
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2800723"></a><h3>
<a name="gtk-window-set-has-frame"></a>gtk_window_set_has_frame ()</h3>
<a class="indexterm" name="id2800736"></a><pre class="programlisting">void        gtk_window_set_has_frame        (<a href="GtkWindow.html" title="GtkWindow">GtkWindow</a> *window,
                                             <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> setting);</pre>
<p>
(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 <a href="GtkWindow.html#gtk-window-set-decorated"><code class="function">gtk_window_set_decorated()</code></a> instead, which tells the window
 manager whether to draw the window border.)
</p>
<p>
If this function is called on a window with setting of <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a>, before
it is realized or showed, it will have a "frame" window around
<em class="parameter"><code>window-&gt;window</code></em>, accessible in <em class="parameter"><code>window-&gt;frame</code></em>. Using the signal 
frame_event you can receive all events targeted at the frame.
</p>
<p>
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.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>window</code></em>&#160;:</span></td>
<td> a <a href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>setting</code></em>&#160;:</span></td>
<td> a boolean
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2800865"></a><h3>
<a name="gtk-window-set-mnemonic-modifier"></a>gtk_window_set_mnemonic_modifier ()</h3>
<a class="indexterm" name="id2800878"></a><pre class="programlisting">void        gtk_window_set_mnemonic_modifier
                                            (<a href="GtkWindow.html" title="GtkWindow">GtkWindow</a> *window,
                                             <a
href="../gdk/gdk-Windows.html#GdkModifierType"
>GdkModifierType</a> modifier);</pre>
<p>
Sets the mnemonic modifier for this window.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>window</code></em>&#160;:</span></td>
<td> a <a href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>modifier</code></em>&#160;:</span></td>
<td> the modifier mask used to activate
              mnemonics on this window.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2800960"></a><h3>
<a name="gtk-window-set-role"></a>gtk_window_set_role ()</h3>
<a class="indexterm" name="id2800974"></a><pre class="programlisting">void        gtk_window_set_role             (<a href="GtkWindow.html" title="GtkWindow">GtkWindow</a> *window,
                                             const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *role);</pre>
<p>
This function is only useful on X11, not with other GTK+ targets.
</p>
<p>
In combination with the window title, the window role allows a
<a href="gtk-x11.html#gtk-X11-arch" title="Understanding the X11 architecture">window manager</a> 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.
</p>
<p>
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.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>window</code></em>&#160;:</span></td>
<td> a <a href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>role</code></em>&#160;:</span></td>
<td> unique identifier for the window to be used when restoring a session
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2801076"></a><h3>
<a name="gtk-window-set-type-hint"></a>gtk_window_set_type_hint ()</h3>
<a class="indexterm" name="id2801089"></a><pre class="programlisting">void        gtk_window_set_type_hint        (<a href="GtkWindow.html" title="GtkWindow">GtkWindow</a> *window,
                                             <a
href="../gdk/gdk-Windows.html#GdkWindowTypeHint"
>GdkWindowTypeHint</a> hint);</pre>
<p>
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.
</p>
<p>
This function should be called before the window becomes visible.
</p>
<p>
<a href="GtkDialog.html#gtk-dialog-new-with-buttons"><code class="function">gtk_dialog_new_with_buttons()</code></a> and other convenience functions in GTK+
will sometimes call <a href="GtkWindow.html#gtk-window-set-type-hint"><code class="function">gtk_window_set_type_hint()</code></a> on your behalf.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>window</code></em>&#160;:</span></td>
<td> a <a href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>hint</code></em>&#160;:</span></td>
<td> the window type
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2801202"></a><h3>
<a name="gtk-window-set-skip-taskbar-hint"></a>gtk_window_set_skip_taskbar_hint ()</h3>
<a class="indexterm" name="id2801218"></a><pre class="programlisting">void        gtk_window_set_skip_taskbar_hint
                                            (<a href="GtkWindow.html" title="GtkWindow">GtkWindow</a> *window,
                                             <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> setting);</pre>
<p>
Windows may set a hint asking the desktop environment not to display
the window in the task bar. This function sets this hint.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>window</code></em>&#160;:</span></td>
<td> a <a href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> 
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>setting</code></em>&#160;:</span></td>
<td> <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> to keep this window from appearing in the task bar
</td>
</tr>
</tbody>
</table></div>
<p>Since  2.2
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2801315"></a><h3>
<a name="gtk-window-set-skip-pager-hint"></a>gtk_window_set_skip_pager_hint ()</h3>
<a class="indexterm" name="id2801331"></a><pre class="programlisting">void        gtk_window_set_skip_pager_hint  (<a href="GtkWindow.html" title="GtkWindow">GtkWindow</a> *window,
                                             <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> setting);</pre>
<p>
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.)</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>window</code></em>&#160;:</span></td>
<td> a <a href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> 
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>setting</code></em>&#160;:</span></td>
<td> <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> to keep this window from appearing in the pager
</td>
</tr>
</tbody>
</table></div>
<p>Since  2.2
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2801429"></a><h3>
<a name="gtk-window-set-urgency-hint"></a>gtk_window_set_urgency_hint ()</h3>
<a class="indexterm" name="id2801445"></a><pre class="programlisting">void        gtk_window_set_urgency_hint     (<a href="GtkWindow.html" title="GtkWindow">GtkWindow</a> *window,
                                             <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> setting);</pre>
<p>
Windows may set a hint asking the desktop environment to draw
the users attention to the window. This function sets this hint.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>window</code></em>&#160;:</span></td>
<td> a <a href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> 
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>setting</code></em>&#160;:</span></td>
<td> <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> to mark this window as urgent
</td>
</tr>
</tbody>
</table></div>
<p>Since  2.8
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2801540"></a><h3>
<a name="gtk-window-set-accept-focus"></a>gtk_window_set_accept_focus ()</h3>
<a class="indexterm" name="id2801556"></a><pre class="programlisting">void        gtk_window_set_accept_focus     (<a href="GtkWindow.html" title="GtkWindow">GtkWindow</a> *window,
                                             <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> setting);</pre>
<p>
Windows may set a hint asking the desktop environment not to receive
the input focus. This function sets this hint.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>window</code></em>&#160;:</span></td>
<td> a <a href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> 
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>setting</code></em>&#160;:</span></td>
<td> <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> to let this window receive input focus
</td>
</tr>
</tbody>
</table></div>
<p>Since  2.4
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2801651"></a><h3>
<a name="gtk-window-set-focus-on-map"></a>gtk_window_set_focus_on_map ()</h3>
<a class="indexterm" name="id2801668"></a><pre class="programlisting">void        gtk_window_set_focus_on_map     (<a href="GtkWindow.html" title="GtkWindow">GtkWindow</a> *window,
                                             <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> setting);</pre>
<p>
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.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>window</code></em>&#160;:</span></td>
<td> a <a href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> 
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>setting</code></em>&#160;:</span></td>
<td> <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> to let this window receive input focus on map
</td>
</tr>
</tbody>
</table></div>
<p>Since  2.6
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2801763"></a><h3>
<a name="gtk-window-get-decorated"></a>gtk_window_get_decorated ()</h3>
<a class="indexterm" name="id2801776"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    gtk_window_get_decorated        (<a href="GtkWindow.html" title="GtkWindow">GtkWindow</a> *window);</pre>
<p>
Returns whether the window has been set to have decorations
such as a title bar via <a href="GtkWindow.html#gtk-window-set-decorated"><code class="function">gtk_window_set_decorated()</code></a>.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>window</code></em>&#160;:</span></td>
<td> a <a href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> if the window has been set to have decorations
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2801867"></a><h3>
<a name="gtk-window-get-deletable"></a>gtk_window_get_deletable ()</h3>
<a class="indexterm" name="id2801882"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    gtk_window_get_deletable        (<a href="GtkWindow.html" title="GtkWindow">GtkWindow</a> *window);</pre>
<p>
Returns whether the window has been set to have a close button
via <a href="GtkWindow.html#gtk-window-set-deletable"><code class="function">gtk_window_set_deletable()</code></a>.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>window</code></em>&#160;:</span></td>
<td> a <a href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> if the window has been set to have a close button

</td>
</tr>
</tbody>
</table></div>
<p>Since  2.10
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2801978"></a><h3>
<a name="gtk-window-get-default-icon-list"></a>gtk_window_get_default_icon_list ()</h3>
<a class="indexterm" name="id2801991"></a><pre class="programlisting"><a
href="../glib/glib-Doubly-Linked-Lists.html#GList"
>GList</a>*      gtk_window_get_default_icon_list
                                            (void);</pre>
<p>
Gets the value set by <a href="GtkWindow.html#gtk-window-set-default-icon-list"><code class="function">gtk_window_set_default_icon_list()</code></a>.
The list is a copy and should be freed with <a
href="../glib/glib-Doubly-Linked-Lists.html#g-list-free"
><code class="function">g_list_free()</code></a>,
but the pixbufs in the list have not had their reference count
incremented.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> copy of default icon list 
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2802056"></a><h3>
<a name="gtk-window-get-default-size"></a>gtk_window_get_default_size ()</h3>
<a class="indexterm" name="id2802070"></a><pre class="programlisting">void        gtk_window_get_default_size     (<a href="GtkWindow.html" title="GtkWindow">GtkWindow</a> *window,
                                             <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> *width,
                                             <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> *height);</pre>
<p>
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.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>window</code></em>&#160;:</span></td>
<td> a <a href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>width</code></em>&#160;:</span></td>
<td> location to store the default width, or <a
href="../glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>height</code></em>&#160;:</span></td>
<td> location to store the default height, or <a
href="../glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2802194"></a><h3>
<a name="gtk-window-get-destroy-with-parent"></a>gtk_window_get_destroy_with_parent ()</h3>
<a class="indexterm" name="id2802208"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    gtk_window_get_destroy_with_parent
                                            (<a href="GtkWindow.html" title="GtkWindow">GtkWindow</a> *window);</pre>
<p>
Returns whether the window will be destroyed with its transient parent. See
<a href="GtkWindow.html#gtk-window-set-destroy-with-parent"><code class="function">gtk_window_set_destroy_with_parent()</code></a>.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>window</code></em>&#160;:</span></td>
<td> a <a href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> if the window will be destroyed with its transient parent.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2802300"></a><h3>
<a name="gtk-window-get-frame-dimensions"></a>gtk_window_get_frame_dimensions ()</h3>
<a class="indexterm" name="id2802314"></a><pre class="programlisting">void        gtk_window_get_frame_dimensions (<a href="GtkWindow.html" title="GtkWindow">GtkWindow</a> *window,
                                             <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> *left,
                                             <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> *top,
                                             <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> *right,
                                             <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> *bottom);</pre>
<p>
(Note: this is a special-purpose function intended for the
 framebuffer port; see <a href="GtkWindow.html#gtk-window-set-has-frame"><code class="function">gtk_window_set_has_frame()</code></a>. It will not
 return the size of the window border drawn by the <a href="gtk-x11.html#gtk-X11-arch" title="Understanding the X11 architecture">window manager</a>, which is the normal
 case when using a windowing system.  See
 <a
href="../gdk/gdk-Windows.html#gdk-window-get-frame-extents"
><code class="function">gdk_window_get_frame_extents()</code></a> to get the standard window border
 extents.)
</p>
<p>
Retrieves the dimensions of the frame window for this toplevel.
See <a href="GtkWindow.html#gtk-window-set-has-frame"><code class="function">gtk_window_set_has_frame()</code></a>, <a href="GtkWindow.html#gtk-window-set-frame-dimensions"><code class="function">gtk_window_set_frame_dimensions()</code></a>.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>window</code></em>&#160;:</span></td>
<td> a <a href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>left</code></em>&#160;:</span></td>
<td> location to store the width of the frame at the left, or <a
href="../glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>top</code></em>&#160;:</span></td>
<td> location to store the height of the frame at the top, or <a
href="../glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>right</code></em>&#160;:</span></td>
<td> location to store the width of the frame at the returns, or <a
href="../glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>bottom</code></em>&#160;:</span></td>
<td> location to store the height of the frame at the bottom, or <a
href="../glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2802561"></a><h3>
<a name="gtk-window-get-has-frame"></a>gtk_window_get_has_frame ()</h3>
<a class="indexterm" name="id2802574"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    gtk_window_get_has_frame        (<a href="GtkWindow.html" title="GtkWindow">GtkWindow</a> *window);</pre>
<p>
Accessor for whether the window has a frame window exterior to
<em class="parameter"><code>window-&gt;window</code></em>. Gets the value set by <a href="GtkWindow.html#gtk-window-set-has-frame"><code class="function">gtk_window_set_has_frame()</code></a>.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>window</code></em>&#160;:</span></td>
<td> a <a href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> if a frame has been added to the window
  via <a href="GtkWindow.html#gtk-window-set-has-frame"><code class="function">gtk_window_set_has_frame()</code></a>.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2802682"></a><h3>
<a name="gtk-window-get-icon"></a>gtk_window_get_icon ()</h3>
<a class="indexterm" name="id2802695"></a><pre class="programlisting"><a
href="../gdk-pixbuf/gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"
>GdkPixbuf</a>*  gtk_window_get_icon             (<a href="GtkWindow.html" title="GtkWindow">GtkWindow</a> *window);</pre>
<p>
Gets the value set by <a href="GtkWindow.html#gtk-window-set-icon"><code class="function">gtk_window_set_icon()</code></a> (or if you've
called <a href="GtkWindow.html#gtk-window-set-icon-list"><code class="function">gtk_window_set_icon_list()</code></a>, gets the first icon in
the icon list).</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>window</code></em>&#160;:</span></td>
<td> a <a href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> icon for window
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2802785"></a><h3>
<a name="gtk-window-get-icon-list"></a>gtk_window_get_icon_list ()</h3>
<a class="indexterm" name="id2802798"></a><pre class="programlisting"><a
href="../glib/glib-Doubly-Linked-Lists.html#GList"
>GList</a>*      gtk_window_get_icon_list        (<a href="GtkWindow.html" title="GtkWindow">GtkWindow</a> *window);</pre>
<p>
Retrieves the list of icons set by <a href="GtkWindow.html#gtk-window-set-icon-list"><code class="function">gtk_window_set_icon_list()</code></a>.
The list is copied, but the reference count on each
member won't be incremented.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>window</code></em>&#160;:</span></td>
<td> a <a href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> copy of window's icon list
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2802879"></a><h3>
<a name="gtk-window-get-icon-name"></a>gtk_window_get_icon_name ()</h3>
<a class="indexterm" name="id2802895"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a>*      gtk_window_get_icon_name        (<a href="GtkWindow.html" title="GtkWindow">GtkWindow</a> *window);</pre>
<p>
Returns the name of the themed icon for the window,
see <a href="GtkWindow.html#gtk-window-set-icon-name"><code class="function">gtk_window_set_icon_name()</code></a>.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>window</code></em>&#160;:</span></td>
<td> a <a href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> the icon name or <a
href="../glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a> if the window has 
no themed icon

</td>
</tr>
</tbody>
</table></div>
<p>Since  2.6
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2802989"></a><h3>
<a name="gtk-window-get-mnemonic-modifier"></a>gtk_window_get_mnemonic_modifier ()</h3>
<a class="indexterm" name="id2803003"></a><pre class="programlisting"><a
href="../gdk/gdk-Windows.html#GdkModifierType"
>GdkModifierType</a> gtk_window_get_mnemonic_modifier
                                            (<a href="GtkWindow.html" title="GtkWindow">GtkWindow</a> *window);</pre>
<p>
Returns the mnemonic modifier for this window. See
<a href="GtkWindow.html#gtk-window-set-mnemonic-modifier"><code class="function">gtk_window_set_mnemonic_modifier()</code></a>.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>window</code></em>&#160;:</span></td>
<td> a <a href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> the modifier mask used to activate
              mnemonics on this window.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2803085"></a><h3>
<a name="gtk-window-get-modal"></a>gtk_window_get_modal ()</h3>
<a class="indexterm" name="id2803098"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    gtk_window_get_modal            (<a href="GtkWindow.html" title="GtkWindow">GtkWindow</a> *window);</pre>
<p>
Returns whether the window is modal. See <a href="GtkWindow.html#gtk-window-set-modal"><code class="function">gtk_window_set_modal()</code></a>.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>window</code></em>&#160;:</span></td>
<td> a <a href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> if the window is set to be modal and
              establishes a grab when shown
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2803189"></a><h3>
<a name="gtk-window-get-position"></a>gtk_window_get_position ()</h3>
<a class="indexterm" name="id2803202"></a><pre class="programlisting">void        gtk_window_get_position         (<a href="GtkWindow.html" title="GtkWindow">GtkWindow</a> *window,
                                             <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> *root_x,
                                             <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> *root_y);</pre>
<p>
This function returns the position you need to pass to
<a href="GtkWindow.html#gtk-window-move"><code class="function">gtk_window_move()</code></a> to keep <em class="parameter"><code>window</code></em> in its current position.  This
means that the meaning of the returned value varies with window
gravity. See <a href="GtkWindow.html#gtk-window-move"><code class="function">gtk_window_move()</code></a> for more details.
</p>
<p>
If you haven't changed the window gravity, its gravity will be
<a
href="../gdk/gdk-Windows.html#GDK-GRAVITY-NORTH-WEST:CAPS"
><span class="type">GDK_GRAVITY_NORTH_WEST</span></a>. This means that <a href="GtkWindow.html#gtk-window-get-position"><code class="function">gtk_window_get_position()</code></a>
gets the position of the top-left corner of the window manager
frame for the window. <a href="GtkWindow.html#gtk-window-move"><code class="function">gtk_window_move()</code></a> sets the position of this
same top-left corner.
</p>
<p>
<a href="GtkWindow.html#gtk-window-get-position"><code class="function">gtk_window_get_position()</code></a> 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.
</p>
<p>
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 <a href="GtkWindow.html#gtk-window-get-position"><code class="function">gtk_window_get_position()</code></a> tends
to result in moving the window slightly. Window managers are
slowly getting better over time.
</p>
<p>
If a window has gravity <a
href="../gdk/gdk-Windows.html#GDK-GRAVITY-STATIC:CAPS"
><span class="type">GDK_GRAVITY_STATIC</span></a> the window manager
frame is not relevant, and thus <a href="GtkWindow.html#gtk-window-get-position"><code class="function">gtk_window_get_position()</code></a> 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.
</p>
<p>
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.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>window</code></em>&#160;:</span></td>
<td> a <a href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>root_x</code></em>&#160;:</span></td>
<td> return location for X coordinate of gravity-determined reference p\oint
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>root_y</code></em>&#160;:</span></td>
<td> return location for Y coordinate of gravity-determined reference p\oint
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2803448"></a><h3>
<a name="gtk-window-get-role"></a>gtk_window_get_role ()</h3>
<a class="indexterm" name="id2803461"></a><pre class="programlisting">const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a>* gtk_window_get_role            (<a href="GtkWindow.html" title="GtkWindow">GtkWindow</a> *window);</pre>
<p>
Returns the role of the window. See <a href="GtkWindow.html#gtk-window-set-role"><code class="function">gtk_window_set_role()</code></a> for
further explanation.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>window</code></em>&#160;:</span></td>
<td> a <a href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> the role of the window if set, or <a
href="../glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a>. The
  returned is owned by the widget and must not be modified
  or freed.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2803553"></a><h3>
<a name="gtk-window-get-size"></a>gtk_window_get_size ()</h3>
<a class="indexterm" name="id2803566"></a><pre class="programlisting">void        gtk_window_get_size             (<a href="GtkWindow.html" title="GtkWindow">GtkWindow</a> *window,
                                             <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> *width,
                                             <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> *height);</pre>
<p>
Obtains the current size of <em class="parameter"><code>window</code></em>. If <em class="parameter"><code>window</code></em> is not onscreen,
it returns the size GTK+ will suggest to the <a href="gtk-x11.html#gtk-X11-arch" title="Understanding the X11 architecture">window manager</a> 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
<a href="GtkWindow.html#gtk-window-get-size"><code class="function">gtk_window_get_size()</code></a> is the last size received in a
<a
href="../gdk/gdk-Event-Structures.html#GdkEventConfigure"
><span class="type">GdkEventConfigure</span></a>, that is, GTK+ uses its locally-stored size,
rather than querying the X server for the size. As a result, if you
call <a href="GtkWindow.html#gtk-window-resize"><code class="function">gtk_window_resize()</code></a> then immediately call
<a href="GtkWindow.html#gtk-window-get-size"><code class="function">gtk_window_get_size()</code></a>, 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.
</p>
<p>
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 <a
href="../gdk/gdk-Event-Structures.html#GdkEventConfigure"
><span class="type">GdkEventConfigure</span></a>.
</p>
<p>
Note 2: The returned size does <span class="emphasis"><em>not</em></span> 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.
</p>
<p>
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
<a href="GtkWindow.html#gtk-window-set-type-hint"><code class="function">gtk_window_set_type_hint()</code></a>, which allows the window manager to
e.g. center dialogs. Also, if you set the transient parent of
dialogs with <a href="GtkWindow.html#gtk-window-set-transient-for"><code class="function">gtk_window_set_transient_for()</code></a> 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.
</p>
<p>
In any case, if you insist on application-specified window
positioning, there's <span class="emphasis"><em>still</em></span> a better way than
doing it yourself - <a href="GtkWindow.html#gtk-window-set-position"><code class="function">gtk_window_set_position()</code></a> will frequently
handle the details for you.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>window</code></em>&#160;:</span></td>
<td> a <a href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>width</code></em>&#160;:</span></td>
<td> return location for width, or <a
href="../glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>height</code></em>&#160;:</span></td>
<td> return location for height, or <a
href="../glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2803843"></a><h3>
<a name="gtk-window-get-title"></a>gtk_window_get_title ()</h3>
<a class="indexterm" name="id2803856"></a><pre class="programlisting">const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a>* gtk_window_get_title           (<a href="GtkWindow.html" title="GtkWindow">GtkWindow</a> *window);</pre>
<p>
Retrieves the title of the window. See <a href="GtkWindow.html#gtk-window-set-title"><code class="function">gtk_window_set_title()</code></a>.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>window</code></em>&#160;:</span></td>
<td> a <a href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> the title of the window, or <a
href="../glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a> if none has
   been set explicitely. The returned string is owned by the widget
   and must not be modified or freed.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2803949"></a><h3>
<a name="gtk-window-get-transient-for"></a>gtk_window_get_transient_for ()</h3>
<a class="indexterm" name="id2803963"></a><pre class="programlisting"><a href="GtkWindow.html" title="GtkWindow">GtkWindow</a>*  gtk_window_get_transient_for    (<a href="GtkWindow.html" title="GtkWindow">GtkWindow</a> *window);</pre>
<p>
Fetches the transient parent for this window. See
<a href="GtkWindow.html#gtk-window-set-transient-for"><code class="function">gtk_window_set_transient_for()</code></a>.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>window</code></em>&#160;:</span></td>
<td> a <a href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> the transient parent for this window, or <a
href="../glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a>
   if no transient parent has been set.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2804054"></a><h3>
<a name="gtk-window-get-type-hint"></a>gtk_window_get_type_hint ()</h3>
<a class="indexterm" name="id2804067"></a><pre class="programlisting"><a
href="../gdk/gdk-Windows.html#GdkWindowTypeHint"
>GdkWindowTypeHint</a> gtk_window_get_type_hint  (<a href="GtkWindow.html" title="GtkWindow">GtkWindow</a> *window);</pre>
<p>
Gets the type hint for this window. See <a href="GtkWindow.html#gtk-window-set-type-hint"><code class="function">gtk_window_set_type_hint()</code></a>.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>window</code></em>&#160;:</span></td>
<td> a <a href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> the type hint for <em class="parameter"><code>window</code></em>.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2804152"></a><h3>
<a name="gtk-window-get-skip-taskbar-hint"></a>gtk_window_get_skip_taskbar_hint ()</h3>
<a class="indexterm" name="id2804168"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    gtk_window_get_skip_taskbar_hint
                                            (<a href="GtkWindow.html" title="GtkWindow">GtkWindow</a> *window);</pre>
<p>
Gets the value set by <a href="GtkWindow.html#gtk-window-set-skip-taskbar-hint"><code class="function">gtk_window_set_skip_taskbar_hint()</code></a></p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>window</code></em>&#160;:</span></td>
<td> a <a href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> if window shouldn't be in taskbar

</td>
</tr>
</tbody>
</table></div>
<p>Since  2.2
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2804262"></a><h3>
<a name="gtk-window-get-skip-pager-hint"></a>gtk_window_get_skip_pager_hint ()</h3>
<a class="indexterm" name="id2804278"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    gtk_window_get_skip_pager_hint  (<a href="GtkWindow.html" title="GtkWindow">GtkWindow</a> *window);</pre>
<p>
Gets the value set by <a href="GtkWindow.html#gtk-window-set-skip-pager-hint"><code class="function">gtk_window_set_skip_pager_hint()</code></a>.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>window</code></em>&#160;:</span></td>
<td> a <a href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> if window shouldn't be in pager

</td>
</tr>
</tbody>
</table></div>
<p>Since  2.2
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2804372"></a><h3>
<a name="gtk-window-get-urgency-hint"></a>gtk_window_get_urgency_hint ()</h3>
<a class="indexterm" name="id2804388"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    gtk_window_get_urgency_hint     (<a href="GtkWindow.html" title="GtkWindow">GtkWindow</a> *window);</pre>
<p>
Gets the value set by <a href="GtkWindow.html#gtk-window-set-urgency-hint"><code class="function">gtk_window_set_urgency_hint()</code></a></p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>window</code></em>&#160;:</span></td>
<td> a <a href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> if window is urgent

</td>
</tr>
</tbody>
</table></div>
<p>Since  2.8
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2804480"></a><h3>
<a name="gtk-window-get-accept-focus"></a>gtk_window_get_accept_focus ()</h3>
<a class="indexterm" name="id2804496"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    gtk_window_get_accept_focus     (<a href="GtkWindow.html" title="GtkWindow">GtkWindow</a> *window);</pre>
<p>
Gets the value set by <a href="GtkWindow.html#gtk-window-set-accept-focus"><code class="function">gtk_window_set_accept_focus()</code></a>.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>window</code></em>&#160;:</span></td>
<td> a <a href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> if window should receive the input focus

</td>
</tr>
</tbody>
</table></div>
<p>Since  2.4
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2804590"></a><h3>
<a name="gtk-window-get-focus-on-map"></a>gtk_window_get_focus_on_map ()</h3>
<a class="indexterm" name="id2804606"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    gtk_window_get_focus_on_map     (<a href="GtkWindow.html" title="GtkWindow">GtkWindow</a> *window);</pre>
<p>
Gets the value set by <a href="GtkWindow.html#gtk-window-set-focus-on-map"><code class="function">gtk_window_set_focus_on_map()</code></a>.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>window</code></em>&#160;:</span></td>
<td> a <a href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> if window should receive the input focus when
mapped.

</td>
</tr>
</tbody>
</table></div>
<p>Since  2.6
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2804700"></a><h3>
<a name="gtk-window-get-group"></a>gtk_window_get_group ()</h3>
<a class="indexterm" name="id2804715"></a><pre class="programlisting"><a href="GtkWindowGroup.html" title="GtkWindowGroup">GtkWindowGroup</a>* gtk_window_get_group        (<a href="GtkWindow.html" title="GtkWindow">GtkWindow</a> *window);</pre>
<p>
Returns the group for <em class="parameter"><code>window</code></em> or the default group, if
<em class="parameter"><code>window</code></em> is <a
href="../glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a> or if <em class="parameter"><code>window</code></em> does not have an explicit
window group.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>window</code></em>&#160;:</span></td>
<td> a <a href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>, or <a
href="../glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a>
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> the <a href="GtkWindowGroup.html" title="GtkWindowGroup"><span class="type">GtkWindowGroup</span></a> for a window or the default group

</td>
</tr>
</tbody>
</table></div>
<p>Since  2.10
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2804836"></a><h3>
<a name="gtk-window-move"></a>gtk_window_move ()</h3>
<a class="indexterm" name="id2804849"></a><pre class="programlisting">void        gtk_window_move                 (<a href="GtkWindow.html" title="GtkWindow">GtkWindow</a> *window,
                                             <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> x,
                                             <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> y);</pre>
<p>
Asks the <a href="gtk-x11.html#gtk-X11-arch" title="Understanding the X11 architecture">window manager</a> to move
<em class="parameter"><code>window</code></em> 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.
</p>
<p>
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.
</p>
<p>
By default the gravity is <a
href="../gdk/gdk-Windows.html#GDK-GRAVITY-NORTH-WEST:CAPS"
><span class="type">GDK_GRAVITY_NORTH_WEST</span></a>, so the reference
point is simply the <em class="parameter"><code>x</code></em>, <em class="parameter"><code>y</code></em> supplied to <a href="GtkWindow.html#gtk-window-move"><code class="function">gtk_window_move()</code></a>. The
top-left corner of the window decorations (aka window frame or
border) will be placed at <em class="parameter"><code>x</code></em>, <em class="parameter"><code>y</code></em>.  Therefore, to position a window
at the top left of the screen, you want to use the default gravity
(which is <a
href="../gdk/gdk-Windows.html#GDK-GRAVITY-NORTH-WEST:CAPS"
><span class="type">GDK_GRAVITY_NORTH_WEST</span></a>) and move the window to 0,0.
</p>
<p>
To position a window at the bottom right corner of the screen, you
would set <a
href="../gdk/gdk-Windows.html#GDK-GRAVITY-SOUTH-EAST:CAPS"
><span class="type">GDK_GRAVITY_SOUTH_EAST</span></a>, which means that the reference
point is at <em class="parameter"><code>x</code></em> + the window width and <em class="parameter"><code>y</code></em> + 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:
<code class="literal">gtk_window_move (window, <a
href="../gdk/gdk-General.html#gdk-screen-width"
><code class="function">gdk_screen_width()</code></a> - window_width,
<a
href="../gdk/gdk-General.html#gdk-screen-height"
><code class="function">gdk_screen_height()</code></a> - window_height)</code> (note that this
example does not take multi-head scenarios into account).
</p>
<p>
The Extended Window Manager Hints specification at <a href="http://www.freedesktop.org/Standards/wm-spec" target="_top">
http://www.freedesktop.org/Standards/wm-spec</a> has a 
nice table of gravities in the "implementation notes" section.
</p>
<p>
The <a href="GtkWindow.html#gtk-window-get-position"><code class="function">gtk_window_get_position()</code></a> documentation may also be relevant.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>window</code></em>&#160;:</span></td>
<td> a <a href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>x</code></em>&#160;:</span></td>
<td> X coordinate to move window to
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>y</code></em>&#160;:</span></td>
<td> Y coordinate to move window to
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2805122"></a><h3>
<a name="gtk-window-parse-geometry"></a>gtk_window_parse_geometry ()</h3>
<a class="indexterm" name="id2805136"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    gtk_window_parse_geometry       (<a href="GtkWindow.html" title="GtkWindow">GtkWindow</a> *window,
                                             const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *geometry);</pre>
<p>
Parses a standard X Window System geometry string - see the
manual page for X (type 'man X') for details on this.
<a href="GtkWindow.html#gtk-window-parse-geometry"><code class="function">gtk_window_parse_geometry()</code></a> does work on all GTK+ ports
including Win32 but is primarily intended for an X environment.
</p>
<p>
If either a size or a position can be extracted from the
geometry string, <a href="GtkWindow.html#gtk-window-parse-geometry"><code class="function">gtk_window_parse_geometry()</code></a> returns <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a>
and calls <a href="GtkWindow.html#gtk-window-set-default-size"><code class="function">gtk_window_set_default_size()</code></a> and/or <a href="GtkWindow.html#gtk-window-move"><code class="function">gtk_window_move()</code></a>
to resize/move the window.
</p>
<p>
If <a href="GtkWindow.html#gtk-window-parse-geometry"><code class="function">gtk_window_parse_geometry()</code></a> returns <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a>, it will also
set the <a
href="../gdk/gdk-Windows.html#GDK-HINT-USER-POS:CAPS"
><span class="type">GDK_HINT_USER_POS</span></a> and/or <a
href="../gdk/gdk-Windows.html#GDK-HINT-USER-SIZE:CAPS"
><span class="type">GDK_HINT_USER_SIZE</span></a> 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.
</p>
<p>
Note that for <a href="GtkWindow.html#gtk-window-parse-geometry"><code class="function">gtk_window_parse_geometry()</code></a> to work as expected, it has
to be called when the window has its "final" size, i.e. after calling
<a href="GtkWidget.html#gtk-widget-show-all"><code class="function">gtk_widget_show_all()</code></a> on the contents and <a href="GtkWindow.html#gtk-window-set-geometry-hints"><code class="function">gtk_window_set_geometry_hints()</code></a>
on the window.
</p>
<p>
</p>
<div class="informalexample"><pre class="programlisting">
<span class="type">include</span> &lt;gtk/gtk.h&gt;
   
static void
fill_with_content (GtkWidget *vbox)
{
  /* fill with content... */
}
   
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);
  <a href="gtk-General.html#gtk-main"><code class="function">gtk_main()</code></a>;
   
  return 0;
}
</pre></div>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>window</code></em>&#160;:</span></td>
<td> a <a href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>geometry</code></em>&#160;:</span></td>
<td> geometry string
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> if string was parsed successfully
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2805434"></a><h3>
<a name="gtk-window-reshow-with-initial-size"></a>gtk_window_reshow_with_initial_size ()</h3>
<a class="indexterm" name="id2805449"></a><pre class="programlisting">void        gtk_window_reshow_with_initial_size
                                            (<a href="GtkWindow.html" title="GtkWindow">GtkWindow</a> *window);</pre>
<p>
Hides <em class="parameter"><code>window</code></em>, then reshows it, resetting the
default size and position of the window. Used
by GUI builders only.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td>
<span class="term"><em class="parameter"><code>window</code></em>&#160;:</span></td>
<td> a <a href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2805514"></a><h3>
<a name="gtk-window-resize"></a>gtk_window_resize ()</h3>
<a class="indexterm" name="id2805527"></a><pre class="programlisting">void        gtk_window_resize               (<a href="GtkWindow.html" title="GtkWindow">GtkWindow</a> *window,
                                             <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> width,
                                             <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> height);</pre>
<p>
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 <a href="GtkWidget.html#gtk-widget-set-size-request"><code class="function">gtk_widget_set_size_request()</code></a> to set the window's
request to a smaller value.
</p>
<p>
If <a href="GtkWindow.html#gtk-window-resize"><code class="function">gtk_window_resize()</code></a> is called before showing a window for the
first time, it overrides any default size set with
<a href="GtkWindow.html#gtk-window-set-default-size"><code class="function">gtk_window_set_default_size()</code></a>.
</p>
<p>
Windows may not be resized smaller than 1 by 1 pixels.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>window</code></em>&#160;:</span></td>
<td> a <a href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>width</code></em>&#160;:</span></td>
<td> width in pixels to resize the window to
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>height</code></em>&#160;:</span></td>
<td> height in pixels to resize the window to
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2805675"></a><h3>
<a name="gtk-window-set-default-icon-list"></a>gtk_window_set_default_icon_list ()</h3>
<a class="indexterm" name="id2805688"></a><pre class="programlisting">void        gtk_window_set_default_icon_list
                                            (<a
href="../glib/glib-Doubly-Linked-Lists.html#GList"
>GList</a> *list);</pre>
<p>
Sets an icon list to be used as fallback for windows that haven't
had <a href="GtkWindow.html#gtk-window-set-icon-list"><code class="function">gtk_window_set_icon_list()</code></a> 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.
</p>
<p>
See <a href="GtkWindow.html#gtk-window-set-icon-list"><code class="function">gtk_window_set_icon_list()</code></a> for more details.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td>
<span class="term"><em class="parameter"><code>list</code></em>&#160;:</span></td>
<td> a list of <a
href="../gdk-pixbuf/gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"
><span class="type">GdkPixbuf</span></a>
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2805775"></a><h3>
<a name="gtk-window-set-default-icon"></a>gtk_window_set_default_icon ()</h3>
<a class="indexterm" name="id2805791"></a><pre class="programlisting">void        gtk_window_set_default_icon     (<a
href="../gdk-pixbuf/gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"
>GdkPixbuf</a> *icon);</pre>
<p>
Sets an icon to be used as fallback for windows that haven't
had <a href="GtkWindow.html#gtk-window-set-icon"><code class="function">gtk_window_set_icon()</code></a> called on them from a pixbuf.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td>
<span class="term"><em class="parameter"><code>icon</code></em>&#160;:</span></td>
<td> the icon
</td>
</tr></tbody>
</table></div>
<p>Since  2.4
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2805858"></a><h3>
<a name="gtk-window-set-default-icon-from-file"></a>gtk_window_set_default_icon_from_file ()</h3>
<a class="indexterm" name="id2805874"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    gtk_window_set_default_icon_from_file
                                            (const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *filename,
                                             <a
href="../glib/glib-Error-Reporting.html#GError"
>GError</a> **err);</pre>
<p>
Sets an icon to be used as fallback for windows that haven't
had <a href="GtkWindow.html#gtk-window-set-icon-list"><code class="function">gtk_window_set_icon_list()</code></a> called on them from a file
on disk. Warns on failure if <em class="parameter"><code>err</code></em> is <a
href="../glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a>.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>filename</code></em>&#160;:</span></td>
<td> location of icon file
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>err</code></em>&#160;:</span></td>
<td> location to store error, or <a
href="../glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a>.
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> if setting the icon succeeded.

</td>
</tr>
</tbody>
</table></div>
<p>Since  2.2
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2806010"></a><h3>
<a name="gtk-window-set-default-icon-name"></a>gtk_window_set_default_icon_name ()</h3>
<a class="indexterm" name="id2806026"></a><pre class="programlisting">void        gtk_window_set_default_icon_name
                                            (const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *name);</pre>
<p>
Sets an icon to be used as fallback for windows that haven't
had <a href="GtkWindow.html#gtk-window-set-icon-list"><code class="function">gtk_window_set_icon_list()</code></a> called on them from a named
themed icon, see <a href="GtkWindow.html#gtk-window-set-icon-name"><code class="function">gtk_window_set_icon_name()</code></a>.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td>
<span class="term"><em class="parameter"><code>name</code></em>&#160;:</span></td>
<td> the name of the themed icon
</td>
</tr></tbody>
</table></div>
<p>Since  2.6
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2806106"></a><h3>
<a name="gtk-window-set-icon"></a>gtk_window_set_icon ()</h3>
<a class="indexterm" name="id2806119"></a><pre class="programlisting">void        gtk_window_set_icon             (<a href="GtkWindow.html" title="GtkWindow">GtkWindow</a> *window,
                                             <a
href="../gdk-pixbuf/gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"
>GdkPixbuf</a> *icon);</pre>
<p>
Sets up the icon representing a <a href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>. 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.
</p>
<p>
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.
</p>
<p>
If you have your icon hand-drawn in multiple sizes, use
<a href="GtkWindow.html#gtk-window-set-icon-list"><code class="function">gtk_window_set_icon_list()</code></a>. Then the best size will be used.
</p>
<p>
This function is equivalent to calling <a href="GtkWindow.html#gtk-window-set-icon-list"><code class="function">gtk_window_set_icon_list()</code></a>
with a 1-element list.
</p>
<p>
See also <a href="GtkWindow.html#gtk-window-set-default-icon-list"><code class="function">gtk_window_set_default_icon_list()</code></a> to set the icon
for all windows in your application in one go.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>window</code></em>&#160;:</span></td>
<td> a <a href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>icon</code></em>&#160;:</span></td>
<td> icon image, or <a
href="../glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2806273"></a><h3>
<a name="gtk-window-set-icon-list"></a>gtk_window_set_icon_list ()</h3>
<a class="indexterm" name="id2806286"></a><pre class="programlisting">void        gtk_window_set_icon_list        (<a href="GtkWindow.html" title="GtkWindow">GtkWindow</a> *window,
                                             <a
href="../glib/glib-Doubly-Linked-Lists.html#GList"
>GList</a> *list);</pre>
<p>
Sets up the icon representing a <a href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>. 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.
</p>
<p>
<a href="GtkWindow.html#gtk-window-set-icon-list"><code class="function">gtk_window_set_icon_list()</code></a> 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.
</p>
<p>
By passing several sizes, you may improve the final image quality
of the icon, by reducing or eliminating automatic image scaling.
</p>
<p>
Recommended sizes to provide: 16x16, 32x32, 48x48 at minimum, and
larger images (64x64, 128x128) if you have them.
</p>
<p>
See also <a href="GtkWindow.html#gtk-window-set-default-icon-list"><code class="function">gtk_window_set_default_icon_list()</code></a> to set the icon
for all windows in your application in one go.
</p>
<p>
Note that transient windows (those who have been set transient for another
window using <a href="GtkWindow.html#gtk-window-set-transient-for"><code class="function">gtk_window_set_transient_for()</code></a>) will inherit their
icon from their transient parent. So there's no need to explicitly
set the icon on transient windows.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>window</code></em>&#160;:</span></td>
<td> a <a href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>list</code></em>&#160;:</span></td>
<td> list of <a
href="../gdk-pixbuf/gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"
><span class="type">GdkPixbuf</span></a>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2806448"></a><h3>
<a name="gtk-window-set-icon-from-file"></a>gtk_window_set_icon_from_file ()</h3>
<a class="indexterm" name="id2806464"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    gtk_window_set_icon_from_file   (<a href="GtkWindow.html" title="GtkWindow">GtkWindow</a> *window,
                                             const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *filename,
                                             <a
href="../glib/glib-Error-Reporting.html#GError"
>GError</a> **err);</pre>
<p>
Sets the icon for <em class="parameter"><code>window</code></em>.  
Warns on failure if <em class="parameter"><code>err</code></em> is <a
href="../glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a>.
</p>
<p>
This function is equivalent to calling <a href="GtkWindow.html#gtk-window-set-icon"><code class="function">gtk_window_set_icon()</code></a>
with a pixbuf created by loading the image from <em class="parameter"><code>filename</code></em>.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>window</code></em>&#160;:</span></td>
<td> a <a href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>filename</code></em>&#160;:</span></td>
<td> location of icon file
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>err</code></em>&#160;:</span></td>
<td> location to store error, or <a
href="../glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a>.
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> if setting the icon succeeded.

</td>
</tr>
</tbody>
</table></div>
<p>Since  2.2
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2806643"></a><h3>
<a name="gtk-window-set-icon-name"></a>gtk_window_set_icon_name ()</h3>
<a class="indexterm" name="id2806659"></a><pre class="programlisting">void        gtk_window_set_icon_name        (<a href="GtkWindow.html" title="GtkWindow">GtkWindow</a> *window,
                                             const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *name);</pre>
<p>
Sets the icon for the window from a named themed icon. See
the docs for <a href="GtkIconTheme.html" title="GtkIconTheme"><span class="type">GtkIconTheme</span></a> for more details. 
</p>
<p>
Note that this has nothing to do with the WM_ICON_NAME 
property which is mentioned in the ICCCM.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>window</code></em>&#160;:</span></td>
<td> a <a href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>name</code></em>&#160;:</span></td>
<td> the name of the themed icon
</td>
</tr>
</tbody>
</table></div>
<p>Since  2.6
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2806757"></a><h3>
<a name="gtk-window-set-auto-startup-notification"></a>gtk_window_set_auto_startup_notification ()</h3>
<a class="indexterm" name="id2806774"></a><pre class="programlisting">void        gtk_window_set_auto_startup_notification
                                            (<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> setting);</pre>
<p>
By default, after showing the first <a href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>, GTK+ calls 
<a
href="../gdk/gdk-General.html#gdk-notify-startup-complete"
><code class="function">gdk_notify_startup_complete()</code></a>.  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.
</p>
<p>
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.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td>
<span class="term"><em class="parameter"><code>setting</code></em>&#160;:</span></td>
<td> <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> to automatically do startup notification
</td>
</tr></tbody>
</table></div>
<p>Since  2.2
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2806871"></a><h3>
<a name="gtk-decorated-window-init"></a>gtk_decorated_window_init ()</h3>
<a class="indexterm" name="id2806885"></a><pre class="programlisting">void        gtk_decorated_window_init       (<a href="GtkWindow.html" title="GtkWindow">GtkWindow</a> *window);</pre>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td>
<span class="term"><em class="parameter"><code>window</code></em>&#160;:</span></td>
<td>


</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2806930"></a><h3>
<a name="gtk-decorated-window-calculate-frame-size"></a>gtk_decorated_window_calculate_frame_size ()</h3>
<a class="indexterm" name="id2806945"></a><pre class="programlisting">void        gtk_decorated_window_calculate_frame_size
                                            (<a href="GtkWindow.html" title="GtkWindow">GtkWindow</a> *window);</pre>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td>
<span class="term"><em class="parameter"><code>window</code></em>&#160;:</span></td>
<td>


</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2806992"></a><h3>
<a name="gtk-decorated-window-set-title"></a>gtk_decorated_window_set_title ()</h3>
<a class="indexterm" name="id2807005"></a><pre class="programlisting">void        gtk_decorated_window_set_title  (<a href="GtkWindow.html" title="GtkWindow">GtkWindow</a> *window,
                                             const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *title);</pre>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>window</code></em>&#160;:</span></td>
<td>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>title</code></em>&#160;:</span></td>
<td>


</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2807073"></a><h3>
<a name="gtk-decorated-window-move-resize-window"></a>gtk_decorated_window_move_resize_window ()</h3>
<a class="indexterm" name="id2807087"></a><pre class="programlisting">void        gtk_decorated_window_move_resize_window
                                            (<a href="GtkWindow.html" title="GtkWindow">GtkWindow</a> *window,
                                             <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> x,
                                             <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> y,
                                             <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> width,
                                             <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> height);</pre>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>window</code></em>&#160;:</span></td>
<td>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>x</code></em>&#160;:</span></td>
<td>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>y</code></em>&#160;:</span></td>
<td>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>width</code></em>&#160;:</span></td>
<td>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>height</code></em>&#160;:</span></td>
<td>


</td>
</tr>
</tbody>
</table></div>
</div>
</div>
<div class="refsect1" lang="en">
<a name="id2807219"></a><h2>Property Details</h2>
<div class="refsect2" lang="en">
<a name="id2807230"></a><h3>
<a name="GtkWindow--accept-focus"></a>The "<code class="literal">accept-focus</code>" property</h3>
<a class="indexterm" name="id2807246"></a><pre class="programlisting">  "accept-focus"         <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>              : Read / Write</pre>
<p>TRUE if the window should receive the input focus.</p>
<p>Default value: TRUE</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2807273"></a><h3>
<a name="GtkWindow--allow-grow"></a>The "<code class="literal">allow-grow</code>" property</h3>
<a class="indexterm" name="id2807290"></a><pre class="programlisting">  "allow-grow"           <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>              : Read / Write</pre>
<p>If TRUE, users can expand the window beyond its minimum size.</p>
<p>Default value: TRUE</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2807317"></a><h3>
<a name="GtkWindow--allow-shrink"></a>The "<code class="literal">allow-shrink</code>" property</h3>
<a class="indexterm" name="id2807334"></a><pre class="programlisting">  "allow-shrink"         <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>              : Read / Write</pre>
<p>If TRUE, the window has no mimimum size. Setting this to TRUE is 99% of the time a bad idea.</p>
<p>Default value: FALSE</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2807362"></a><h3>
<a name="GtkWindow--decorated"></a>The "<code class="literal">decorated</code>" property</h3>
<a class="indexterm" name="id2807378"></a><pre class="programlisting">  "decorated"            <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>              : Read / Write</pre>
<p>
Whether the window should be decorated by the window manager.</p>
<p>

</p>
<p>Default value: TRUE</p>
<p>Since  2.4
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2807414"></a><h3>
<a name="GtkWindow--default-height"></a>The "<code class="literal">default-height</code>" property</h3>
<a class="indexterm" name="id2807430"></a><pre class="programlisting">  "default-height"       <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a>                  : Read / Write</pre>
<p>The default height of the window, used when initially showing the window.</p>
<p>Allowed values: &gt;= -1</p>
<p>Default value: -1</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2807462"></a><h3>
<a name="GtkWindow--default-width"></a>The "<code class="literal">default-width</code>" property</h3>
<a class="indexterm" name="id2807478"></a><pre class="programlisting">  "default-width"        <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a>                  : Read / Write</pre>
<p>The default width of the window, used when initially showing the window.</p>
<p>Allowed values: &gt;= -1</p>
<p>Default value: -1</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2807509"></a><h3>
<a name="GtkWindow--deletable"></a>The "<code class="literal">deletable</code>" property</h3>
<a class="indexterm" name="id2807526"></a><pre class="programlisting">  "deletable"            <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>              : Read / Write</pre>
<p>
Whether the window frame should have a close button.</p>
<p>

</p>
<p>Default value: TRUE</p>
<p>Since  2.10
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2807562"></a><h3>
<a name="GtkWindow--destroy-with-parent"></a>The "<code class="literal">destroy-with-parent</code>" property</h3>
<a class="indexterm" name="id2807579"></a><pre class="programlisting">  "destroy-with-parent"  <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>              : Read / Write</pre>
<p>If this window should be destroyed when the parent is destroyed.</p>
<p>Default value: FALSE</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2807606"></a><h3>
<a name="GtkWindow--focus-on-map"></a>The "<code class="literal">focus-on-map</code>" property</h3>
<a class="indexterm" name="id2807623"></a><pre class="programlisting">  "focus-on-map"         <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>              : Read / Write</pre>
<p>TRUE if the window should receive the input focus when mapped.</p>
<p>Default value: TRUE</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2807650"></a><h3>
<a name="GtkWindow--gravity"></a>The "<code class="literal">gravity</code>" property</h3>
<a class="indexterm" name="id2807666"></a><pre class="programlisting">  "gravity"              <a
href="../gdk/gdk-Windows.html#GdkGravity"
>GdkGravity</a>            : Read / Write</pre>
<p>
The window gravity of the window. See <a href="GtkWindow.html#gtk-window-move"><code class="function">gtk_window_move()</code></a> and <a
href="../gdk/gdk-Windows.html#GdkGravity"
><span class="type">GdkGravity</span></a> for
more details about window gravity.</p>
<p>

</p>
<p>Default value: GDK_GRAVITY_NORTH_WEST</p>
<p>Since  2.4
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2807721"></a><h3>
<a name="GtkWindow--has-toplevel-focus"></a>The "<code class="literal">has-toplevel-focus</code>" property</h3>
<a class="indexterm" name="id2807738"></a><pre class="programlisting">  "has-toplevel-focus"   <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>              : Read</pre>
<p>Whether the input focus is within this GtkWindow.</p>
<p>Default value: FALSE</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2807765"></a><h3>
<a name="GtkWindow--icon"></a>The "<code class="literal">icon</code>" property</h3>
<a class="indexterm" name="id2807781"></a><pre class="programlisting">  "icon"                 <a
href="../gdk-pixbuf/gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"
>GdkPixbuf</a>             : Read / Write</pre>
<p>Icon for this window.</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2807804"></a><h3>
<a name="GtkWindow--icon-name"></a>The "<code class="literal">icon-name</code>" property</h3>
<a class="indexterm" name="id2807821"></a><pre class="programlisting">  "icon-name"            <a
href="../gobject/gobject-Standard-Parameter-and-Value-Types.html#gchararray"
>gchararray</a>            : Read / Write</pre>
<p>
The :icon-name property specifies the name of the themed icon to
use as the window icon. See <a href="GtkIconTheme.html" title="GtkIconTheme"><span class="type">GtkIconTheme</span></a> for more details.</p>
<p>

</p>
<p>Default value: NULL</p>
<p>Since  2.6
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2807865"></a><h3>
<a name="GtkWindow--is-active"></a>The "<code class="literal">is-active</code>" property</h3>
<a class="indexterm" name="id2807882"></a><pre class="programlisting">  "is-active"            <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>              : Read</pre>
<p>Whether the toplevel is the current active window.</p>
<p>Default value: FALSE</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2807909"></a><h3>
<a name="GtkWindow--modal"></a>The "<code class="literal">modal</code>" property</h3>
<a class="indexterm" name="id2807925"></a><pre class="programlisting">  "modal"                <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>              : Read / Write</pre>
<p>If TRUE, the window is modal (other windows are not usable while this one is up).</p>
<p>Default value: FALSE</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2807952"></a><h3>
<a name="GtkWindow--resizable"></a>The "<code class="literal">resizable</code>" property</h3>
<a class="indexterm" name="id2807969"></a><pre class="programlisting">  "resizable"            <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>              : Read / Write</pre>
<p>If TRUE, users can resize the window.</p>
<p>Default value: TRUE</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2807996"></a><h3>
<a name="GtkWindow--role"></a>The "<code class="literal">role</code>" property</h3>
<a class="indexterm" name="id2808011"></a><pre class="programlisting">  "role"                 <a
href="../gobject/gobject-Standard-Parameter-and-Value-Types.html#gchararray"
>gchararray</a>            : Read / Write</pre>
<p>Unique identifier for the window to be used when restoring a session.</p>
<p>Default value: NULL</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2808039"></a><h3>
<a name="GtkWindow--screen"></a>The "<code class="literal">screen</code>" property</h3>
<a class="indexterm" name="id2808055"></a><pre class="programlisting">  "screen"               <a
href="../gdk/GdkScreen.html"
>GdkScreen</a>             : Read / Write</pre>
<p>The screen where this window will be displayed.</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2808078"></a><h3>
<a name="GtkWindow--skip-pager-hint"></a>The "<code class="literal">skip-pager-hint</code>" property</h3>
<a class="indexterm" name="id2808095"></a><pre class="programlisting">  "skip-pager-hint"      <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>              : Read / Write</pre>
<p>TRUE if the window should not be in the pager.</p>
<p>Default value: FALSE</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2808122"></a><h3>
<a name="GtkWindow--skip-taskbar-hint"></a>The "<code class="literal">skip-taskbar-hint</code>" property</h3>
<a class="indexterm" name="id2808139"></a><pre class="programlisting">  "skip-taskbar-hint"    <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>              : Read / Write</pre>
<p>TRUE if the window should not be in the task bar.</p>
<p>Default value: FALSE</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2808166"></a><h3>
<a name="GtkWindow--title"></a>The "<code class="literal">title</code>" property</h3>
<a class="indexterm" name="id2808182"></a><pre class="programlisting">  "title"                <a
href="../gobject/gobject-Standard-Parameter-and-Value-Types.html#gchararray"
>gchararray</a>            : Read / Write</pre>
<p>The title of the window.</p>
<p>Default value: NULL</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2808208"></a><h3>
<a name="GtkWindow--transient-for"></a>The "<code class="literal">transient-for</code>" property</h3>
<a class="indexterm" name="id2808225"></a><pre class="programlisting">  "transient-for"        <a href="GtkWindow.html" title="GtkWindow">GtkWindow</a>             : Read / Write / Construct</pre>
<p>
The transient parent of the window. See <a href="GtkWindow.html#gtk-window-set-transient-for"><code class="function">gtk_window_set_transient_for()</code></a> for
more details about transient windows.</p>
<p>

</p>
<p>Since  2.10
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2808269"></a><h3>
<a name="GtkWindow--type"></a>The "<code class="literal">type</code>" property</h3>
<a class="indexterm" name="id2808286"></a><pre class="programlisting">  "type"                 <a href="gtk-Standard-Enumerations.html#GtkWindowType">GtkWindowType</a>         : Read / Write / Construct Only</pre>
<p>The type of the window.</p>
<p>Default value: GTK_WINDOW_TOPLEVEL</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2808313"></a><h3>
<a name="GtkWindow--type-hint"></a>The "<code class="literal">type-hint</code>" property</h3>
<a class="indexterm" name="id2808330"></a><pre class="programlisting">  "type-hint"            <a
href="../gdk/gdk-Windows.html#GdkWindowTypeHint"
>GdkWindowTypeHint</a>     : Read / Write</pre>
<p>Hint to help the desktop environment understand what kind of window this is and how to treat it.</p>
<p>Default value: GDK_WINDOW_TYPE_HINT_NORMAL</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2808358"></a><h3>
<a name="GtkWindow--urgency-hint"></a>The "<code class="literal">urgency-hint</code>" property</h3>
<a class="indexterm" name="id2512283"></a><pre class="programlisting">  "urgency-hint"         <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>              : Read / Write</pre>
<p>TRUE if the window should be brought to the user's attention.</p>
<p>Default value: FALSE</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2512310"></a><h3>
<a name="GtkWindow--window-position"></a>The "<code class="literal">window-position</code>" property</h3>
<a class="indexterm" name="id2512324"></a><pre class="programlisting">  "window-position"      <a href="gtk-Standard-Enumerations.html#GtkWindowPosition">GtkWindowPosition</a>     : Read / Write</pre>
<p>The initial position of the window.</p>
<p>Default value: GTK_WIN_POS_NONE</p>
</div>
</div>
<div class="refsect1" lang="en">
<a name="id2512352"></a><h2>Signal Details</h2>
<div class="refsect2" lang="en">
<a name="id2512363"></a><h3>
<a name="GtkWindow-activate-default"></a>The "activate-default" signal</h3>
<a class="indexterm" name="id2512371"></a><pre class="programlisting">void        user_function                  (<a href="GtkWindow.html" title="GtkWindow">GtkWindow</a> *window,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>   user_data)      : Run last / Action</pre>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>window</code></em>&#160;:</span></td>
<td>the object which received the signal.

</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>user_data</code></em>&#160;:</span></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2809247"></a><h3>
<a name="GtkWindow-activate-focus"></a>The "activate-focus" signal</h3>
<a class="indexterm" name="id2809256"></a><pre class="programlisting">void        user_function                  (<a href="GtkWindow.html" title="GtkWindow">GtkWindow</a> *window,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>   user_data)      : Run last / Action</pre>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>window</code></em>&#160;:</span></td>
<td>the object which received the signal.

</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>user_data</code></em>&#160;:</span></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2809323"></a><h3>
<a name="GtkWindow-frame-event"></a>The "frame-event" signal</h3>
<a class="indexterm" name="id2809331"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    user_function                  (<a href="GtkWindow.html" title="GtkWindow">GtkWindow</a> *window,
                                            <a
href="../gdk/gdk-Event-Structures.html#GdkEvent"
>GdkEvent</a>  *event,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>   user_data)      : Run last</pre>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>window</code></em>&#160;:</span></td>
<td>the object which received the signal.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>event</code></em>&#160;:</span></td>
<td>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>user_data</code></em>&#160;:</span></td>
<td>user data set when the signal handler was connected.</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td>

</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2809420"></a><h3>
<a name="GtkWindow-keys-changed"></a>The "keys-changed" signal</h3>
<a class="indexterm" name="id2809429"></a><pre class="programlisting">void        user_function                  (<a href="GtkWindow.html" title="GtkWindow">GtkWindow</a> *window,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>   user_data)      : Run first</pre>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>window</code></em>&#160;:</span></td>
<td>the object which received the signal.

</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>user_data</code></em>&#160;:</span></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2809490"></a><h3>
<a name="GtkWindow-move-focus"></a>The "move-focus" signal</h3>
<a class="indexterm" name="id2809498"></a><pre class="programlisting">void        user_function                  (<a href="GtkWindow.html" title="GtkWindow">GtkWindow</a>        *window,
                                            <a href="gtk-Standard-Enumerations.html#GtkDirectionType">GtkDirectionType</a> *arg1,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>          user_data)      : Run last / Action</pre>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>window</code></em>&#160;:</span></td>
<td>the object which received the signal.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>arg1</code></em>&#160;:</span></td>
<td>

</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>user_data</code></em>&#160;:</span></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2809578"></a><h3>
<a name="GtkWindow-set-focus"></a>The "set-focus" signal</h3>
<a class="indexterm" name="id2809586"></a><pre class="programlisting">void        user_function                  (<a href="GtkWindow.html" title="GtkWindow">GtkWindow</a> *window,
                                            <a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>   user_data)      : Run last</pre>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>window</code></em>&#160;:</span></td>
<td>the object which received the signal.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td>

</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>user_data</code></em>&#160;:</span></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
</div>
</div>
</body>
</html>

Anon7 - 2021