~inkscape.dev/inkscape-devlibs/devlibs-gtk3

« back to all changes in this revision

Viewing changes to share/gtk-doc/html/gtk2/GtkWindow.html

  • Committer: JazzyNico
  • Date: 2013-01-21 10:11:05 UTC
  • Revision ID: nicoduf@yahoo.fr-20130121101105-i8d8slkq9ng4olx8
Adding gtk2 libraries.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
 
2
<html>
 
3
<head>
 
4
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
 
5
<title>GtkWindow</title>
 
6
<meta name="generator" content="DocBook XSL Stylesheets V1.77.1">
 
7
<link rel="home" href="index.html" title="GTK+ 2 Reference Manual">
 
8
<link rel="up" href="WindowWidgets.html" title="Windows">
 
9
<link rel="prev" href="GtkMessageDialog.html" title="GtkMessageDialog">
 
10
<link rel="next" href="GtkWindowGroup.html" title="GtkWindowGroup">
 
11
<meta name="generator" content="GTK-Doc V1.18 (XML mode)">
 
12
<link rel="stylesheet" href="style.css" type="text/css">
 
13
</head>
 
14
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
 
15
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
 
16
<tr valign="middle">
 
17
<td><a accesskey="p" href="GtkMessageDialog.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
 
18
<td><a accesskey="u" href="WindowWidgets.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
 
19
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
 
20
<th width="100%" align="center">GTK+ 2 Reference Manual</th>
 
21
<td><a accesskey="n" href="GtkWindowGroup.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
 
22
</tr>
 
23
<tr><td colspan="5" class="shortcuts">
 
24
<a href="#GtkWindow.synopsis" class="shortcut">Top</a>
 
25
                   | 
 
26
                  <a href="#GtkWindow.description" class="shortcut">Description</a>
 
27
                   | 
 
28
                  <a href="#GtkWindow.object-hierarchy" class="shortcut">Object Hierarchy</a>
 
29
                   | 
 
30
                  <a href="#GtkWindow.implemented-interfaces" class="shortcut">Implemented Interfaces</a>
 
31
                   | 
 
32
                  <a href="#GtkWindow.properties" class="shortcut">Properties</a>
 
33
                   | 
 
34
                  <a href="#GtkWindow.signals" class="shortcut">Signals</a>
 
35
</td></tr>
 
36
</table>
 
37
<div class="refentry">
 
38
<a name="GtkWindow"></a><div class="titlepage"></div>
 
39
<div class="refnamediv"><table width="100%"><tr>
 
40
<td valign="top">
 
41
<h2><span class="refentrytitle"><a name="GtkWindow.top_of_page"></a>GtkWindow</span></h2>
 
42
<p>GtkWindow — Toplevel which can contain other widgets</p>
 
43
</td>
 
44
<td valign="top" align="right"><img src="window.png"></td>
 
45
</tr></table></div>
 
46
<div class="refsynopsisdiv">
 
47
<a name="GtkWindow.synopsis"></a><h2>Synopsis</h2>
 
48
<pre class="synopsis">
 
49
#include &lt;gtk/gtk.h&gt;
 
50
 
 
51
                    <a class="link" href="GtkWindow.html#GtkWindow-struct" title="GtkWindow">GtkWindow</a>;
 
52
<a class="link" href="GtkWidget.html" title="GtkWidget"><span class="returnvalue">GtkWidget</span></a> *         <a class="link" href="GtkWindow.html#gtk-window-new" title="gtk_window_new ()">gtk_window_new</a>                      (<em class="parameter"><code><a class="link" href="gtk2-Standard-Enumerations.html#GtkWindowType" title="enum GtkWindowType"><span class="type">GtkWindowType</span></a> type</code></em>);
 
53
<span class="returnvalue">void</span>                <a class="link" href="GtkWindow.html#gtk-window-set-title" title="gtk_window_set_title ()">gtk_window_set_title</a>                (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>,
 
54
                                                         <em class="parameter"><code>const <span class="type">gchar</span> *title</code></em>);
 
55
<span class="returnvalue">void</span>                <a class="link" href="GtkWindow.html#gtk-window-set-wmclass" title="gtk_window_set_wmclass ()">gtk_window_set_wmclass</a>              (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>,
 
56
                                                         <em class="parameter"><code>const <span class="type">gchar</span> *wmclass_name</code></em>,
 
57
                                                         <em class="parameter"><code>const <span class="type">gchar</span> *wmclass_class</code></em>);
 
58
<span class="returnvalue">void</span>                <a class="link" href="GtkWindow.html#gtk-window-set-policy" title="gtk_window_set_policy ()">gtk_window_set_policy</a>               (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>,
 
59
                                                         <em class="parameter"><code><span class="type">gint</span> allow_shrink</code></em>,
 
60
                                                         <em class="parameter"><code><span class="type">gint</span> allow_grow</code></em>,
 
61
                                                         <em class="parameter"><code><span class="type">gint</span> auto_shrink</code></em>);
 
62
<span class="returnvalue">void</span>                <a class="link" href="GtkWindow.html#gtk-window-set-resizable" title="gtk_window_set_resizable ()">gtk_window_set_resizable</a>            (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>,
 
63
                                                         <em class="parameter"><code><span class="type">gboolean</span> resizable</code></em>);
 
64
<span class="returnvalue">gboolean</span>            <a class="link" href="GtkWindow.html#gtk-window-get-resizable" title="gtk_window_get_resizable ()">gtk_window_get_resizable</a>            (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>);
 
65
<span class="returnvalue">void</span>                <a class="link" href="GtkWindow.html#gtk-window-add-accel-group" title="gtk_window_add_accel_group ()">gtk_window_add_accel_group</a>          (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>,
 
66
                                                         <em class="parameter"><code><a class="link" href="gtk2-Keyboard-Accelerators.html#GtkAccelGroup"><span class="type">GtkAccelGroup</span></a> *accel_group</code></em>);
 
67
<span class="returnvalue">void</span>                <a class="link" href="GtkWindow.html#gtk-window-remove-accel-group" title="gtk_window_remove_accel_group ()">gtk_window_remove_accel_group</a>       (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>,
 
68
                                                         <em class="parameter"><code><a class="link" href="gtk2-Keyboard-Accelerators.html#GtkAccelGroup"><span class="type">GtkAccelGroup</span></a> *accel_group</code></em>);
 
69
#define             <a class="link" href="GtkWindow.html#gtk-window-position" title="gtk_window_position">gtk_window_position</a>
 
70
<span class="returnvalue">gboolean</span>            <a class="link" href="GtkWindow.html#gtk-window-activate-focus" title="gtk_window_activate_focus ()">gtk_window_activate_focus</a>           (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>);
 
71
<span class="returnvalue">gboolean</span>            <a class="link" href="GtkWindow.html#gtk-window-activate-default" title="gtk_window_activate_default ()">gtk_window_activate_default</a>         (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>);
 
72
<span class="returnvalue">void</span>                <a class="link" href="GtkWindow.html#gtk-window-set-modal" title="gtk_window_set_modal ()">gtk_window_set_modal</a>                (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>,
 
73
                                                         <em class="parameter"><code><span class="type">gboolean</span> modal</code></em>);
 
74
<span class="returnvalue">void</span>                <a class="link" href="GtkWindow.html#gtk-window-set-default-size" title="gtk_window_set_default_size ()">gtk_window_set_default_size</a>         (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>,
 
75
                                                         <em class="parameter"><code><span class="type">gint</span> width</code></em>,
 
76
                                                         <em class="parameter"><code><span class="type">gint</span> height</code></em>);
 
77
<span class="returnvalue">void</span>                <a class="link" href="GtkWindow.html#gtk-window-set-geometry-hints" title="gtk_window_set_geometry_hints ()">gtk_window_set_geometry_hints</a>       (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>,
 
78
                                                         <em class="parameter"><code><a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a> *geometry_widget</code></em>,
 
79
                                                         <em class="parameter"><code><a href="../gdk2/gdk2-Windows.html#GdkGeometry"><span class="type">GdkGeometry</span></a> *geometry</code></em>,
 
80
                                                         <em class="parameter"><code><a href="../gdk2/gdk2-Windows.html#GdkWindowHints"><span class="type">GdkWindowHints</span></a> geom_mask</code></em>);
 
81
<span class="returnvalue">void</span>                <a class="link" href="GtkWindow.html#gtk-window-set-gravity" title="gtk_window_set_gravity ()">gtk_window_set_gravity</a>              (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>,
 
82
                                                         <em class="parameter"><code><a href="../gdk2/gdk2-Windows.html#GdkGravity"><span class="type">GdkGravity</span></a> gravity</code></em>);
 
83
<a href="../gdk2/gdk2-Windows.html#GdkGravity"><span class="returnvalue">GdkGravity</span></a>          <a class="link" href="GtkWindow.html#gtk-window-get-gravity" title="gtk_window_get_gravity ()">gtk_window_get_gravity</a>              (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>);
 
84
<span class="returnvalue">void</span>                <a class="link" href="GtkWindow.html#gtk-window-set-position" title="gtk_window_set_position ()">gtk_window_set_position</a>             (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>,
 
85
                                                         <em class="parameter"><code><a class="link" href="gtk2-Standard-Enumerations.html#GtkWindowPosition" title="enum GtkWindowPosition"><span class="type">GtkWindowPosition</span></a> position</code></em>);
 
86
<span class="returnvalue">void</span>                <a class="link" href="GtkWindow.html#gtk-window-set-transient-for" title="gtk_window_set_transient_for ()">gtk_window_set_transient_for</a>        (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>,
 
87
                                                         <em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *parent</code></em>);
 
88
<span class="returnvalue">void</span>                <a class="link" href="GtkWindow.html#gtk-window-set-destroy-with-parent" title="gtk_window_set_destroy_with_parent ()">gtk_window_set_destroy_with_parent</a>  (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>,
 
89
                                                         <em class="parameter"><code><span class="type">gboolean</span> setting</code></em>);
 
90
<span class="returnvalue">void</span>                <a class="link" href="GtkWindow.html#gtk-window-set-screen" title="gtk_window_set_screen ()">gtk_window_set_screen</a>               (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>,
 
91
                                                         <em class="parameter"><code><a href="../gdk2/GdkScreen.html"><span class="type">GdkScreen</span></a> *screen</code></em>);
 
92
<a href="../gdk2/GdkScreen.html"><span class="returnvalue">GdkScreen</span></a> *         <a class="link" href="GtkWindow.html#gtk-window-get-screen" title="gtk_window_get_screen ()">gtk_window_get_screen</a>               (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>);
 
93
<span class="returnvalue">gboolean</span>            <a class="link" href="GtkWindow.html#gtk-window-is-active" title="gtk_window_is_active ()">gtk_window_is_active</a>                (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>);
 
94
<span class="returnvalue">gboolean</span>            <a class="link" href="GtkWindow.html#gtk-window-has-toplevel-focus" title="gtk_window_has_toplevel_focus ()">gtk_window_has_toplevel_focus</a>       (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>);
 
95
<span class="returnvalue">GList</span> *             <a class="link" href="GtkWindow.html#gtk-window-list-toplevels" title="gtk_window_list_toplevels ()">gtk_window_list_toplevels</a>           (<em class="parameter"><code><span class="type">void</span></code></em>);
 
96
<span class="returnvalue">void</span>                <a class="link" href="GtkWindow.html#gtk-window-add-mnemonic" title="gtk_window_add_mnemonic ()">gtk_window_add_mnemonic</a>             (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>,
 
97
                                                         <em class="parameter"><code><span class="type">guint</span> keyval</code></em>,
 
98
                                                         <em class="parameter"><code><a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a> *target</code></em>);
 
99
<span class="returnvalue">void</span>                <a class="link" href="GtkWindow.html#gtk-window-remove-mnemonic" title="gtk_window_remove_mnemonic ()">gtk_window_remove_mnemonic</a>          (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>,
 
100
                                                         <em class="parameter"><code><span class="type">guint</span> keyval</code></em>,
 
101
                                                         <em class="parameter"><code><a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a> *target</code></em>);
 
102
<span class="returnvalue">gboolean</span>            <a class="link" href="GtkWindow.html#gtk-window-mnemonic-activate" title="gtk_window_mnemonic_activate ()">gtk_window_mnemonic_activate</a>        (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>,
 
103
                                                         <em class="parameter"><code><span class="type">guint</span> keyval</code></em>,
 
104
                                                         <em class="parameter"><code><a href="../gdk2/gdk2-Windows.html#GdkModifierType"><span class="type">GdkModifierType</span></a> modifier</code></em>);
 
105
<span class="returnvalue">gboolean</span>            <a class="link" href="GtkWindow.html#gtk-window-activate-key" title="gtk_window_activate_key ()">gtk_window_activate_key</a>             (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>,
 
106
                                                         <em class="parameter"><code><a href="../gdk2/gdk2-Event-Structures.html#GdkEventKey"><span class="type">GdkEventKey</span></a> *event</code></em>);
 
107
<span class="returnvalue">gboolean</span>            <a class="link" href="GtkWindow.html#gtk-window-propagate-key-event" title="gtk_window_propagate_key_event ()">gtk_window_propagate_key_event</a>      (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>,
 
108
                                                         <em class="parameter"><code><a href="../gdk2/gdk2-Event-Structures.html#GdkEventKey"><span class="type">GdkEventKey</span></a> *event</code></em>);
 
109
<a class="link" href="GtkWidget.html" title="GtkWidget"><span class="returnvalue">GtkWidget</span></a> *         <a class="link" href="GtkWindow.html#gtk-window-get-focus" title="gtk_window_get_focus ()">gtk_window_get_focus</a>                (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>);
 
110
<span class="returnvalue">void</span>                <a class="link" href="GtkWindow.html#gtk-window-set-focus" title="gtk_window_set_focus ()">gtk_window_set_focus</a>                (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>,
 
111
                                                         <em class="parameter"><code><a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a> *focus</code></em>);
 
112
<a class="link" href="GtkWidget.html" title="GtkWidget"><span class="returnvalue">GtkWidget</span></a> *         <a class="link" href="GtkWindow.html#gtk-window-get-default-widget" title="gtk_window_get_default_widget ()">gtk_window_get_default_widget</a>       (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>);
 
113
<span class="returnvalue">void</span>                <a class="link" href="GtkWindow.html#gtk-window-set-default" title="gtk_window_set_default ()">gtk_window_set_default</a>              (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>,
 
114
                                                         <em class="parameter"><code><a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a> *default_widget</code></em>);
 
115
<span class="returnvalue">void</span>                <a class="link" href="GtkWindow.html#gtk-window-present" title="gtk_window_present ()">gtk_window_present</a>                  (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>);
 
116
<span class="returnvalue">void</span>                <a class="link" href="GtkWindow.html#gtk-window-present-with-time" title="gtk_window_present_with_time ()">gtk_window_present_with_time</a>        (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>,
 
117
                                                         <em class="parameter"><code><span class="type">guint32</span> timestamp</code></em>);
 
118
<span class="returnvalue">void</span>                <a class="link" href="GtkWindow.html#gtk-window-iconify" title="gtk_window_iconify ()">gtk_window_iconify</a>                  (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>);
 
119
<span class="returnvalue">void</span>                <a class="link" href="GtkWindow.html#gtk-window-deiconify" title="gtk_window_deiconify ()">gtk_window_deiconify</a>                (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>);
 
120
<span class="returnvalue">void</span>                <a class="link" href="GtkWindow.html#gtk-window-stick" title="gtk_window_stick ()">gtk_window_stick</a>                    (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>);
 
121
<span class="returnvalue">void</span>                <a class="link" href="GtkWindow.html#gtk-window-unstick" title="gtk_window_unstick ()">gtk_window_unstick</a>                  (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>);
 
122
<span class="returnvalue">void</span>                <a class="link" href="GtkWindow.html#gtk-window-maximize" title="gtk_window_maximize ()">gtk_window_maximize</a>                 (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>);
 
123
<span class="returnvalue">void</span>                <a class="link" href="GtkWindow.html#gtk-window-unmaximize" title="gtk_window_unmaximize ()">gtk_window_unmaximize</a>               (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>);
 
124
<span class="returnvalue">void</span>                <a class="link" href="GtkWindow.html#gtk-window-fullscreen" title="gtk_window_fullscreen ()">gtk_window_fullscreen</a>               (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>);
 
125
<span class="returnvalue">void</span>                <a class="link" href="GtkWindow.html#gtk-window-unfullscreen" title="gtk_window_unfullscreen ()">gtk_window_unfullscreen</a>             (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>);
 
126
<span class="returnvalue">void</span>                <a class="link" href="GtkWindow.html#gtk-window-set-keep-above" title="gtk_window_set_keep_above ()">gtk_window_set_keep_above</a>           (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>,
 
127
                                                         <em class="parameter"><code><span class="type">gboolean</span> setting</code></em>);
 
128
<span class="returnvalue">void</span>                <a class="link" href="GtkWindow.html#gtk-window-set-keep-below" title="gtk_window_set_keep_below ()">gtk_window_set_keep_below</a>           (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>,
 
129
                                                         <em class="parameter"><code><span class="type">gboolean</span> setting</code></em>);
 
130
<span class="returnvalue">void</span>                <a class="link" href="GtkWindow.html#gtk-window-begin-resize-drag" title="gtk_window_begin_resize_drag ()">gtk_window_begin_resize_drag</a>        (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>,
 
131
                                                         <em class="parameter"><code><a href="../gdk2/gdk2-Windows.html#GdkWindowEdge"><span class="type">GdkWindowEdge</span></a> edge</code></em>,
 
132
                                                         <em class="parameter"><code><span class="type">gint</span> button</code></em>,
 
133
                                                         <em class="parameter"><code><span class="type">gint</span> root_x</code></em>,
 
134
                                                         <em class="parameter"><code><span class="type">gint</span> root_y</code></em>,
 
135
                                                         <em class="parameter"><code><span class="type">guint32</span> timestamp</code></em>);
 
136
<span class="returnvalue">void</span>                <a class="link" href="GtkWindow.html#gtk-window-begin-move-drag" title="gtk_window_begin_move_drag ()">gtk_window_begin_move_drag</a>          (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>,
 
137
                                                         <em class="parameter"><code><span class="type">gint</span> button</code></em>,
 
138
                                                         <em class="parameter"><code><span class="type">gint</span> root_x</code></em>,
 
139
                                                         <em class="parameter"><code><span class="type">gint</span> root_y</code></em>,
 
140
                                                         <em class="parameter"><code><span class="type">guint32</span> timestamp</code></em>);
 
141
<span class="returnvalue">void</span>                <a class="link" href="GtkWindow.html#gtk-window-set-decorated" title="gtk_window_set_decorated ()">gtk_window_set_decorated</a>            (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>,
 
142
                                                         <em class="parameter"><code><span class="type">gboolean</span> setting</code></em>);
 
143
<span class="returnvalue">void</span>                <a class="link" href="GtkWindow.html#gtk-window-set-deletable" title="gtk_window_set_deletable ()">gtk_window_set_deletable</a>            (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>,
 
144
                                                         <em class="parameter"><code><span class="type">gboolean</span> setting</code></em>);
 
145
<span class="returnvalue">void</span>                <a class="link" href="GtkWindow.html#gtk-window-set-frame-dimensions" title="gtk_window_set_frame_dimensions ()">gtk_window_set_frame_dimensions</a>     (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>,
 
146
                                                         <em class="parameter"><code><span class="type">gint</span> left</code></em>,
 
147
                                                         <em class="parameter"><code><span class="type">gint</span> top</code></em>,
 
148
                                                         <em class="parameter"><code><span class="type">gint</span> right</code></em>,
 
149
                                                         <em class="parameter"><code><span class="type">gint</span> bottom</code></em>);
 
150
<span class="returnvalue">void</span>                <a class="link" href="GtkWindow.html#gtk-window-set-has-frame" title="gtk_window_set_has_frame ()">gtk_window_set_has_frame</a>            (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>,
 
151
                                                         <em class="parameter"><code><span class="type">gboolean</span> setting</code></em>);
 
152
<span class="returnvalue">void</span>                <a class="link" href="GtkWindow.html#gtk-window-set-mnemonic-modifier" title="gtk_window_set_mnemonic_modifier ()">gtk_window_set_mnemonic_modifier</a>    (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>,
 
153
                                                         <em class="parameter"><code><a href="../gdk2/gdk2-Windows.html#GdkModifierType"><span class="type">GdkModifierType</span></a> modifier</code></em>);
 
154
<span class="returnvalue">void</span>                <a class="link" href="GtkWindow.html#gtk-window-set-type-hint" title="gtk_window_set_type_hint ()">gtk_window_set_type_hint</a>            (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>,
 
155
                                                         <em class="parameter"><code><a href="../gdk2/gdk2-Windows.html#GdkWindowTypeHint"><span class="type">GdkWindowTypeHint</span></a> hint</code></em>);
 
156
<span class="returnvalue">void</span>                <a class="link" href="GtkWindow.html#gtk-window-set-skip-taskbar-hint" title="gtk_window_set_skip_taskbar_hint ()">gtk_window_set_skip_taskbar_hint</a>    (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>,
 
157
                                                         <em class="parameter"><code><span class="type">gboolean</span> setting</code></em>);
 
158
<span class="returnvalue">void</span>                <a class="link" href="GtkWindow.html#gtk-window-set-skip-pager-hint" title="gtk_window_set_skip_pager_hint ()">gtk_window_set_skip_pager_hint</a>      (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>,
 
159
                                                         <em class="parameter"><code><span class="type">gboolean</span> setting</code></em>);
 
160
<span class="returnvalue">void</span>                <a class="link" href="GtkWindow.html#gtk-window-set-urgency-hint" title="gtk_window_set_urgency_hint ()">gtk_window_set_urgency_hint</a>         (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>,
 
161
                                                         <em class="parameter"><code><span class="type">gboolean</span> setting</code></em>);
 
162
<span class="returnvalue">void</span>                <a class="link" href="GtkWindow.html#gtk-window-set-accept-focus" title="gtk_window_set_accept_focus ()">gtk_window_set_accept_focus</a>         (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>,
 
163
                                                         <em class="parameter"><code><span class="type">gboolean</span> setting</code></em>);
 
164
<span class="returnvalue">void</span>                <a class="link" href="GtkWindow.html#gtk-window-set-focus-on-map" title="gtk_window_set_focus_on_map ()">gtk_window_set_focus_on_map</a>         (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>,
 
165
                                                         <em class="parameter"><code><span class="type">gboolean</span> setting</code></em>);
 
166
<span class="returnvalue">void</span>                <a class="link" href="GtkWindow.html#gtk-window-set-startup-id" title="gtk_window_set_startup_id ()">gtk_window_set_startup_id</a>           (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>,
 
167
                                                         <em class="parameter"><code>const <span class="type">gchar</span> *startup_id</code></em>);
 
168
<span class="returnvalue">void</span>                <a class="link" href="GtkWindow.html#gtk-window-set-role" title="gtk_window_set_role ()">gtk_window_set_role</a>                 (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>,
 
169
                                                         <em class="parameter"><code>const <span class="type">gchar</span> *role</code></em>);
 
170
<span class="returnvalue">gboolean</span>            <a class="link" href="GtkWindow.html#gtk-window-get-decorated" title="gtk_window_get_decorated ()">gtk_window_get_decorated</a>            (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>);
 
171
<span class="returnvalue">gboolean</span>            <a class="link" href="GtkWindow.html#gtk-window-get-deletable" title="gtk_window_get_deletable ()">gtk_window_get_deletable</a>            (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>);
 
172
<span class="returnvalue">GList</span> *             <a class="link" href="GtkWindow.html#gtk-window-get-default-icon-list" title="gtk_window_get_default_icon_list ()">gtk_window_get_default_icon_list</a>    (<em class="parameter"><code><span class="type">void</span></code></em>);
 
173
const <span class="returnvalue">gchar</span> *       <a class="link" href="GtkWindow.html#gtk-window-get-default-icon-name" title="gtk_window_get_default_icon_name ()">gtk_window_get_default_icon_name</a>    (<em class="parameter"><code><span class="type">void</span></code></em>);
 
174
<span class="returnvalue">void</span>                <a class="link" href="GtkWindow.html#gtk-window-get-default-size" title="gtk_window_get_default_size ()">gtk_window_get_default_size</a>         (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>,
 
175
                                                         <em class="parameter"><code><span class="type">gint</span> *width</code></em>,
 
176
                                                         <em class="parameter"><code><span class="type">gint</span> *height</code></em>);
 
177
<span class="returnvalue">gboolean</span>            <a class="link" href="GtkWindow.html#gtk-window-get-destroy-with-parent" title="gtk_window_get_destroy_with_parent ()">gtk_window_get_destroy_with_parent</a>  (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>);
 
178
<span class="returnvalue">void</span>                <a class="link" href="GtkWindow.html#gtk-window-get-frame-dimensions" title="gtk_window_get_frame_dimensions ()">gtk_window_get_frame_dimensions</a>     (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>,
 
179
                                                         <em class="parameter"><code><span class="type">gint</span> *left</code></em>,
 
180
                                                         <em class="parameter"><code><span class="type">gint</span> *top</code></em>,
 
181
                                                         <em class="parameter"><code><span class="type">gint</span> *right</code></em>,
 
182
                                                         <em class="parameter"><code><span class="type">gint</span> *bottom</code></em>);
 
183
<span class="returnvalue">gboolean</span>            <a class="link" href="GtkWindow.html#gtk-window-get-has-frame" title="gtk_window_get_has_frame ()">gtk_window_get_has_frame</a>            (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>);
 
184
<a href="/usr/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="returnvalue">GdkPixbuf</span></a> *         <a class="link" href="GtkWindow.html#gtk-window-get-icon" title="gtk_window_get_icon ()">gtk_window_get_icon</a>                 (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>);
 
185
<span class="returnvalue">GList</span> *             <a class="link" href="GtkWindow.html#gtk-window-get-icon-list" title="gtk_window_get_icon_list ()">gtk_window_get_icon_list</a>            (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>);
 
186
const <span class="returnvalue">gchar</span> *       <a class="link" href="GtkWindow.html#gtk-window-get-icon-name" title="gtk_window_get_icon_name ()">gtk_window_get_icon_name</a>            (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>);
 
187
<a href="../gdk2/gdk2-Windows.html#GdkModifierType"><span class="returnvalue">GdkModifierType</span></a>     <a class="link" href="GtkWindow.html#gtk-window-get-mnemonic-modifier" title="gtk_window_get_mnemonic_modifier ()">gtk_window_get_mnemonic_modifier</a>    (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>);
 
188
<span class="returnvalue">gboolean</span>            <a class="link" href="GtkWindow.html#gtk-window-get-modal" title="gtk_window_get_modal ()">gtk_window_get_modal</a>                (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>);
 
189
<span class="returnvalue">void</span>                <a class="link" href="GtkWindow.html#gtk-window-get-position" title="gtk_window_get_position ()">gtk_window_get_position</a>             (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>,
 
190
                                                         <em class="parameter"><code><span class="type">gint</span> *root_x</code></em>,
 
191
                                                         <em class="parameter"><code><span class="type">gint</span> *root_y</code></em>);
 
192
const <span class="returnvalue">gchar</span> *       <a class="link" href="GtkWindow.html#gtk-window-get-role" title="gtk_window_get_role ()">gtk_window_get_role</a>                 (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>);
 
193
<span class="returnvalue">void</span>                <a class="link" href="GtkWindow.html#gtk-window-get-size" title="gtk_window_get_size ()">gtk_window_get_size</a>                 (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>,
 
194
                                                         <em class="parameter"><code><span class="type">gint</span> *width</code></em>,
 
195
                                                         <em class="parameter"><code><span class="type">gint</span> *height</code></em>);
 
196
const <span class="returnvalue">gchar</span> *       <a class="link" href="GtkWindow.html#gtk-window-get-title" title="gtk_window_get_title ()">gtk_window_get_title</a>                (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>);
 
197
<a class="link" href="GtkWindow.html" title="GtkWindow"><span class="returnvalue">GtkWindow</span></a> *         <a class="link" href="GtkWindow.html#gtk-window-get-transient-for" title="gtk_window_get_transient_for ()">gtk_window_get_transient_for</a>        (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>);
 
198
<a href="../gdk2/gdk2-Windows.html#GdkWindowTypeHint"><span class="returnvalue">GdkWindowTypeHint</span></a>   <a class="link" href="GtkWindow.html#gtk-window-get-type-hint" title="gtk_window_get_type_hint ()">gtk_window_get_type_hint</a>            (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>);
 
199
<span class="returnvalue">gboolean</span>            <a class="link" href="GtkWindow.html#gtk-window-get-skip-taskbar-hint" title="gtk_window_get_skip_taskbar_hint ()">gtk_window_get_skip_taskbar_hint</a>    (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>);
 
200
<span class="returnvalue">gboolean</span>            <a class="link" href="GtkWindow.html#gtk-window-get-skip-pager-hint" title="gtk_window_get_skip_pager_hint ()">gtk_window_get_skip_pager_hint</a>      (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>);
 
201
<span class="returnvalue">gboolean</span>            <a class="link" href="GtkWindow.html#gtk-window-get-urgency-hint" title="gtk_window_get_urgency_hint ()">gtk_window_get_urgency_hint</a>         (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>);
 
202
<span class="returnvalue">gboolean</span>            <a class="link" href="GtkWindow.html#gtk-window-get-accept-focus" title="gtk_window_get_accept_focus ()">gtk_window_get_accept_focus</a>         (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>);
 
203
<span class="returnvalue">gboolean</span>            <a class="link" href="GtkWindow.html#gtk-window-get-focus-on-map" title="gtk_window_get_focus_on_map ()">gtk_window_get_focus_on_map</a>         (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>);
 
204
<a class="link" href="GtkWindowGroup.html" title="GtkWindowGroup"><span class="returnvalue">GtkWindowGroup</span></a> *    <a class="link" href="GtkWindow.html#gtk-window-get-group" title="gtk_window_get_group ()">gtk_window_get_group</a>                (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>);
 
205
<span class="returnvalue">gboolean</span>            <a class="link" href="GtkWindow.html#gtk-window-has-group" title="gtk_window_has_group ()">gtk_window_has_group</a>                (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>);
 
206
<a class="link" href="gtk2-Standard-Enumerations.html#GtkWindowType" title="enum GtkWindowType"><span class="returnvalue">GtkWindowType</span></a>       <a class="link" href="GtkWindow.html#gtk-window-get-window-type" title="gtk_window_get_window_type ()">gtk_window_get_window_type</a>          (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>);
 
207
<span class="returnvalue">void</span>                <a class="link" href="GtkWindow.html#gtk-window-move" title="gtk_window_move ()">gtk_window_move</a>                     (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>,
 
208
                                                         <em class="parameter"><code><span class="type">gint</span> x</code></em>,
 
209
                                                         <em class="parameter"><code><span class="type">gint</span> y</code></em>);
 
210
<span class="returnvalue">gboolean</span>            <a class="link" href="GtkWindow.html#gtk-window-parse-geometry" title="gtk_window_parse_geometry ()">gtk_window_parse_geometry</a>           (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>,
 
211
                                                         <em class="parameter"><code>const <span class="type">gchar</span> *geometry</code></em>);
 
212
<span class="returnvalue">void</span>                <a class="link" href="GtkWindow.html#gtk-window-reshow-with-initial-size" title="gtk_window_reshow_with_initial_size ()">gtk_window_reshow_with_initial_size</a> (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>);
 
213
<span class="returnvalue">void</span>                <a class="link" href="GtkWindow.html#gtk-window-resize" title="gtk_window_resize ()">gtk_window_resize</a>                   (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>,
 
214
                                                         <em class="parameter"><code><span class="type">gint</span> width</code></em>,
 
215
                                                         <em class="parameter"><code><span class="type">gint</span> height</code></em>);
 
216
<span class="returnvalue">void</span>                <a class="link" href="GtkWindow.html#gtk-window-set-default-icon-list" title="gtk_window_set_default_icon_list ()">gtk_window_set_default_icon_list</a>    (<em class="parameter"><code><span class="type">GList</span> *list</code></em>);
 
217
<span class="returnvalue">void</span>                <a class="link" href="GtkWindow.html#gtk-window-set-default-icon" title="gtk_window_set_default_icon ()">gtk_window_set_default_icon</a>         (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *icon</code></em>);
 
218
#define             <a class="link" href="GtkWindow.html#gtk-window-set-default-icon-from-file" title="gtk_window_set_default_icon_from_file">gtk_window_set_default_icon_from_file</a>
 
219
<span class="returnvalue">void</span>                <a class="link" href="GtkWindow.html#gtk-window-set-default-icon-name" title="gtk_window_set_default_icon_name ()">gtk_window_set_default_icon_name</a>    (<em class="parameter"><code>const <span class="type">gchar</span> *name</code></em>);
 
220
<span class="returnvalue">void</span>                <a class="link" href="GtkWindow.html#gtk-window-set-icon" title="gtk_window_set_icon ()">gtk_window_set_icon</a>                 (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>,
 
221
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *icon</code></em>);
 
222
<span class="returnvalue">void</span>                <a class="link" href="GtkWindow.html#gtk-window-set-icon-list" title="gtk_window_set_icon_list ()">gtk_window_set_icon_list</a>            (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>,
 
223
                                                         <em class="parameter"><code><span class="type">GList</span> *list</code></em>);
 
224
#define             <a class="link" href="GtkWindow.html#gtk-window-set-icon-from-file" title="gtk_window_set_icon_from_file">gtk_window_set_icon_from_file</a>
 
225
<span class="returnvalue">void</span>                <a class="link" href="GtkWindow.html#gtk-window-set-icon-name" title="gtk_window_set_icon_name ()">gtk_window_set_icon_name</a>            (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>,
 
226
                                                         <em class="parameter"><code>const <span class="type">gchar</span> *name</code></em>);
 
227
<span class="returnvalue">void</span>                <a class="link" href="GtkWindow.html#gtk-window-set-auto-startup-notification" title="gtk_window_set_auto_startup_notification ()">gtk_window_set_auto_startup_notification</a>
 
228
                                                        (<em class="parameter"><code><span class="type">gboolean</span> setting</code></em>);
 
229
<span class="returnvalue">gdouble</span>             <a class="link" href="GtkWindow.html#gtk-window-get-opacity" title="gtk_window_get_opacity ()">gtk_window_get_opacity</a>              (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>);
 
230
<span class="returnvalue">void</span>                <a class="link" href="GtkWindow.html#gtk-window-set-opacity" title="gtk_window_set_opacity ()">gtk_window_set_opacity</a>              (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>,
 
231
                                                         <em class="parameter"><code><span class="type">gdouble</span> opacity</code></em>);
 
232
<span class="returnvalue">gboolean</span>            <a class="link" href="GtkWindow.html#gtk-window-get-mnemonics-visible" title="gtk_window_get_mnemonics_visible ()">gtk_window_get_mnemonics_visible</a>    (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>);
 
233
<span class="returnvalue">void</span>                <a class="link" href="GtkWindow.html#gtk-window-set-mnemonics-visible" title="gtk_window_set_mnemonics_visible ()">gtk_window_set_mnemonics_visible</a>    (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>,
 
234
                                                         <em class="parameter"><code><span class="type">gboolean</span> setting</code></em>);
 
235
</pre>
 
236
</div>
 
237
<div class="refsect1">
 
238
<a name="GtkWindow.object-hierarchy"></a><h2>Object Hierarchy</h2>
 
239
<pre class="synopsis">
 
240
  GObject
 
241
   +----GInitiallyUnowned
 
242
         +----<a class="link" href="GtkObject.html" title="GtkObject">GtkObject</a>
 
243
               +----<a class="link" href="GtkWidget.html" title="GtkWidget">GtkWidget</a>
 
244
                     +----<a class="link" href="GtkContainer.html" title="GtkContainer">GtkContainer</a>
 
245
                           +----<a class="link" href="GtkBin.html" title="GtkBin">GtkBin</a>
 
246
                                 +----GtkWindow
 
247
                                       +----<a class="link" href="GtkDialog.html" title="GtkDialog">GtkDialog</a>
 
248
                                       +----<a class="link" href="GtkAssistant.html" title="GtkAssistant">GtkAssistant</a>
 
249
                                       +----<a class="link" href="GtkOffscreenWindow.html" title="GtkOffscreenWindow">GtkOffscreenWindow</a>
 
250
                                       +----<a class="link" href="GtkPlug.html" title="GtkPlug">GtkPlug</a>
 
251
</pre>
 
252
</div>
 
253
<div class="refsect1">
 
254
<a name="GtkWindow.implemented-interfaces"></a><h2>Implemented Interfaces</h2>
 
255
<p>
 
256
GtkWindow implements
 
257
 AtkImplementorIface and  <a class="link" href="GtkBuildable.html" title="GtkBuildable">GtkBuildable</a>.</p>
 
258
</div>
 
259
<div class="refsect1">
 
260
<a name="GtkWindow.properties"></a><h2>Properties</h2>
 
261
<pre class="synopsis">
 
262
  "<a class="link" href="GtkWindow.html#GtkWindow--accept-focus" title='The "accept-focus" property'>accept-focus</a>"             <span class="type">gboolean</span>              : Read / Write
 
263
  "<a class="link" href="GtkWindow.html#GtkWindow--allow-grow" title='The "allow-grow" property'>allow-grow</a>"               <span class="type">gboolean</span>              : Read / Write
 
264
  "<a class="link" href="GtkWindow.html#GtkWindow--allow-shrink" title='The "allow-shrink" property'>allow-shrink</a>"             <span class="type">gboolean</span>              : Read / Write
 
265
  "<a class="link" href="GtkWindow.html#GtkWindow--decorated" title='The "decorated" property'>decorated</a>"                <span class="type">gboolean</span>              : Read / Write
 
266
  "<a class="link" href="GtkWindow.html#GtkWindow--default-height" title='The "default-height" property'>default-height</a>"           <span class="type">gint</span>                  : Read / Write
 
267
  "<a class="link" href="GtkWindow.html#GtkWindow--default-width" title='The "default-width" property'>default-width</a>"            <span class="type">gint</span>                  : Read / Write
 
268
  "<a class="link" href="GtkWindow.html#GtkWindow--deletable" title='The "deletable" property'>deletable</a>"                <span class="type">gboolean</span>              : Read / Write
 
269
  "<a class="link" href="GtkWindow.html#GtkWindow--destroy-with-parent" title='The "destroy-with-parent" property'>destroy-with-parent</a>"      <span class="type">gboolean</span>              : Read / Write
 
270
  "<a class="link" href="GtkWindow.html#GtkWindow--focus-on-map" title='The "focus-on-map" property'>focus-on-map</a>"             <span class="type">gboolean</span>              : Read / Write
 
271
  "<a class="link" href="GtkWindow.html#GtkWindow--gravity" title='The "gravity" property'>gravity</a>"                  <a href="../gdk2/gdk2-Windows.html#GdkGravity"><span class="type">GdkGravity</span></a>            : Read / Write
 
272
  "<a class="link" href="GtkWindow.html#GtkWindow--has-toplevel-focus" title='The "has-toplevel-focus" property'>has-toplevel-focus</a>"       <span class="type">gboolean</span>              : Read
 
273
  "<a class="link" href="GtkWindow.html#GtkWindow--icon" title='The "icon" property'>icon</a>"                     <a href="/usr/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a>*            : Read / Write
 
274
  "<a class="link" href="GtkWindow.html#GtkWindow--icon-name" title='The "icon-name" property'>icon-name</a>"                <span class="type">gchar</span>*                : Read / Write
 
275
  "<a class="link" href="GtkWindow.html#GtkWindow--is-active" title='The "is-active" property'>is-active</a>"                <span class="type">gboolean</span>              : Read
 
276
  "<a class="link" href="GtkWindow.html#GtkWindow--mnemonics-visible" title='The "mnemonics-visible" property'>mnemonics-visible</a>"        <span class="type">gboolean</span>              : Read / Write
 
277
  "<a class="link" href="GtkWindow.html#GtkWindow--modal" title='The "modal" property'>modal</a>"                    <span class="type">gboolean</span>              : Read / Write
 
278
  "<a class="link" href="GtkWindow.html#GtkWindow--opacity" title='The "opacity" property'>opacity</a>"                  <span class="type">gdouble</span>               : Read / Write
 
279
  "<a class="link" href="GtkWindow.html#GtkWindow--resizable" title='The "resizable" property'>resizable</a>"                <span class="type">gboolean</span>              : Read / Write
 
280
  "<a class="link" href="GtkWindow.html#GtkWindow--role" title='The "role" property'>role</a>"                     <span class="type">gchar</span>*                : Read / Write
 
281
  "<a class="link" href="GtkWindow.html#GtkWindow--screen" title='The "screen" property'>screen</a>"                   <a href="../gdk2/GdkScreen.html"><span class="type">GdkScreen</span></a>*            : Read / Write
 
282
  "<a class="link" href="GtkWindow.html#GtkWindow--skip-pager-hint" title='The "skip-pager-hint" property'>skip-pager-hint</a>"          <span class="type">gboolean</span>              : Read / Write
 
283
  "<a class="link" href="GtkWindow.html#GtkWindow--skip-taskbar-hint" title='The "skip-taskbar-hint" property'>skip-taskbar-hint</a>"        <span class="type">gboolean</span>              : Read / Write
 
284
  "<a class="link" href="GtkWindow.html#GtkWindow--startup-id" title='The "startup-id" property'>startup-id</a>"               <span class="type">gchar</span>*                : Write
 
285
  "<a class="link" href="GtkWindow.html#GtkWindow--title" title='The "title" property'>title</a>"                    <span class="type">gchar</span>*                : Read / Write
 
286
  "<a class="link" href="GtkWindow.html#GtkWindow--transient-for" title='The "transient-for" property'>transient-for</a>"            <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>*            : Read / Write / Construct
 
287
  "<a class="link" href="GtkWindow.html#GtkWindow--type" title='The "type" property'>type</a>"                     <a class="link" href="gtk2-Standard-Enumerations.html#GtkWindowType" title="enum GtkWindowType"><span class="type">GtkWindowType</span></a>         : Read / Write / Construct Only
 
288
  "<a class="link" href="GtkWindow.html#GtkWindow--type-hint" title='The "type-hint" property'>type-hint</a>"                <a href="../gdk2/gdk2-Windows.html#GdkWindowTypeHint"><span class="type">GdkWindowTypeHint</span></a>     : Read / Write
 
289
  "<a class="link" href="GtkWindow.html#GtkWindow--urgency-hint" title='The "urgency-hint" property'>urgency-hint</a>"             <span class="type">gboolean</span>              : Read / Write
 
290
  "<a class="link" href="GtkWindow.html#GtkWindow--window-position" title='The "window-position" property'>window-position</a>"          <a class="link" href="gtk2-Standard-Enumerations.html#GtkWindowPosition" title="enum GtkWindowPosition"><span class="type">GtkWindowPosition</span></a>     : Read / Write
 
291
</pre>
 
292
</div>
 
293
<div class="refsect1">
 
294
<a name="GtkWindow.signals"></a><h2>Signals</h2>
 
295
<pre class="synopsis">
 
296
  "<a class="link" href="GtkWindow.html#GtkWindow-activate-default" title='The "activate-default" signal'>activate-default</a>"                               : <code class="literal">Action</code>
 
297
  "<a class="link" href="GtkWindow.html#GtkWindow-activate-focus" title='The "activate-focus" signal'>activate-focus</a>"                                 : <code class="literal">Action</code>
 
298
  "<a class="link" href="GtkWindow.html#GtkWindow-frame-event" title='The "frame-event" signal'>frame-event</a>"                                    : <code class="literal">Run Last</code>
 
299
  "<a class="link" href="GtkWindow.html#GtkWindow-keys-changed" title='The "keys-changed" signal'>keys-changed</a>"                                   : <code class="literal">Run First</code>
 
300
  "<a class="link" href="GtkWindow.html#GtkWindow-set-focus" title='The "set-focus" signal'>set-focus</a>"                                      : <code class="literal">Run Last</code>
 
301
</pre>
 
302
</div>
 
303
<div class="refsect1">
 
304
<a name="GtkWindow.description"></a><h2>Description</h2>
 
305
<p>
 
306
</p>
 
307
<div class="refsect2">
 
308
<a name="GtkWindow-BUILDER-UI"></a><h3>GtkWindow as GtkBuildable</h3>
 
309
<p>
 
310
The GtkWindow implementation of the GtkBuildable interface supports a
 
311
custom &lt;accel-groups&gt; element, which supports any number of &lt;group&gt;
 
312
elements representing the GtkAccelGroup objects you want to add to your
 
313
window (synonymous with <a class="link" href="GtkWindow.html#gtk-window-add-accel-group" title="gtk_window_add_accel_group ()"><code class="function">gtk_window_add_accel_group()</code></a>.
 
314
</p>
 
315
<div class="example">
 
316
<a name="idp33603344"></a><p class="title"><b>Example 10. A UI definition fragment with accel groups</b></p>
 
317
<div class="example-contents">
 
318
  <table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
 
319
    <tbody>
 
320
      <tr>
 
321
        <td class="listing_lines" align="right"><pre>1
 
322
2
 
323
3
 
324
4
 
325
5
 
326
6
 
327
7</pre></td>
 
328
        <td class="listing_code"><pre class="programlisting"><span class="symbol">&lt;</span><span class="usertype">object</span><span class="normal"> class</span><span class="symbol">=</span><span class="string">"GtkWindow"</span><span class="symbol">&gt;</span>
 
329
<span class="normal">  </span><span class="symbol">&lt;</span><span class="normal">accel</span><span class="symbol">-</span><span class="normal">groups</span><span class="symbol">&gt;</span>
 
330
<span class="normal">    </span><span class="symbol">&lt;</span><span class="usertype">group</span><span class="normal"> name</span><span class="symbol">=</span><span class="string">"accelgroup1"</span><span class="symbol">/&gt;</span>
 
331
<span class="normal">  </span><span class="symbol">&lt;/</span><span class="normal">accel</span><span class="symbol">-</span><span class="normal">groups</span><span class="symbol">&gt;</span>
 
332
<span class="symbol">&lt;/</span><span class="normal">object</span><span class="symbol">&gt;</span>
 
333
<span class="symbol">...</span>
 
334
<span class="symbol">&lt;</span><span class="usertype">object</span><span class="normal"> class</span><span class="symbol">=</span><span class="string">"GtkAccelGroup"</span><span class="normal"> id</span><span class="symbol">=</span><span class="string">"accelgroup1"</span><span class="symbol">/&gt;</span></pre></td>
 
335
      </tr>
 
336
    </tbody>
 
337
  </table>
 
338
</div>
 
339
 
 
340
</div>
 
341
<br class="example-break">
 
342
</div>
 
343
</div>
 
344
<div class="refsect1">
 
345
<a name="GtkWindow.details"></a><h2>Details</h2>
 
346
<div class="refsect2">
 
347
<a name="GtkWindow-struct"></a><h3>GtkWindow</h3>
 
348
<pre class="programlisting">typedef struct _GtkWindow GtkWindow;</pre>
 
349
<p>
 
350
</p>
 
351
</div>
 
352
<hr>
 
353
<div class="refsect2">
 
354
<a name="gtk-window-new"></a><h3>gtk_window_new ()</h3>
 
355
<pre class="programlisting"><a class="link" href="GtkWidget.html" title="GtkWidget"><span class="returnvalue">GtkWidget</span></a> *         gtk_window_new                      (<em class="parameter"><code><a class="link" href="gtk2-Standard-Enumerations.html#GtkWindowType" title="enum GtkWindowType"><span class="type">GtkWindowType</span></a> type</code></em>);</pre>
 
356
<p>
 
357
Creates a new <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>, which is a toplevel window that can
 
358
contain other widgets. Nearly always, the type of the window should
 
359
be <a class="link" href="gtk2-Standard-Enumerations.html#GTK-WINDOW-TOPLEVEL:CAPS"><span class="type">GTK_WINDOW_TOPLEVEL</span></a>. If you're implementing something like a
 
360
popup menu from scratch (which is a bad idea, just use <a class="link" href="GtkMenu.html" title="GtkMenu"><span class="type">GtkMenu</span></a>),
 
361
you might use <a class="link" href="gtk2-Standard-Enumerations.html#GTK-WINDOW-POPUP:CAPS"><span class="type">GTK_WINDOW_POPUP</span></a>. <a class="link" href="gtk2-Standard-Enumerations.html#GTK-WINDOW-POPUP:CAPS"><span class="type">GTK_WINDOW_POPUP</span></a> is not for
 
362
dialogs, though in some other toolkits dialogs are called "popups".
 
363
In GTK+, <a class="link" href="gtk2-Standard-Enumerations.html#GTK-WINDOW-POPUP:CAPS"><span class="type">GTK_WINDOW_POPUP</span></a> means a pop-up menu or pop-up tooltip.
 
364
On X11, popup windows are not controlled by the <a class="link" href="gtk-x11.html#gtk-X11-arch" title="Understanding the X11 architecture">window manager</a>.
 
365
</p>
 
366
<p>
 
367
If you simply want an undecorated window (no window borders), use
 
368
<a class="link" href="GtkWindow.html#gtk-window-set-decorated" title="gtk_window_set_decorated ()"><code class="function">gtk_window_set_decorated()</code></a>, don't use <a class="link" href="gtk2-Standard-Enumerations.html#GTK-WINDOW-POPUP:CAPS"><span class="type">GTK_WINDOW_POPUP</span></a>.
 
369
</p>
 
370
<div class="variablelist"><table border="0" class="variablelist">
 
371
<colgroup>
 
372
<col align="left" valign="top">
 
373
<col>
 
374
</colgroup>
 
375
<tbody>
 
376
<tr>
 
377
<td><p><span class="term"><em class="parameter"><code>type</code></em> :</span></p></td>
 
378
<td>type of window</td>
 
379
</tr>
 
380
<tr>
 
381
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
382
<td>a new <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>.</td>
 
383
</tr>
 
384
</tbody>
 
385
</table></div>
 
386
</div>
 
387
<hr>
 
388
<div class="refsect2">
 
389
<a name="gtk-window-set-title"></a><h3>gtk_window_set_title ()</h3>
 
390
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_window_set_title                (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>,
 
391
                                                         <em class="parameter"><code>const <span class="type">gchar</span> *title</code></em>);</pre>
 
392
<p>
 
393
Sets the title of the <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>. The title of a window will be
 
394
displayed in its title bar; on the X Window System, the title bar
 
395
is rendered by the <a class="link" href="gtk-x11.html#gtk-X11-arch" title="Understanding the X11 architecture">window
 
396
manager</a>, so exactly how the title appears to users may vary
 
397
according to a user's exact configuration. The title should help a
 
398
user distinguish this window from other windows they may have
 
399
open. A good title might include the application name and current
 
400
document filename, for example.
 
401
</p>
 
402
<div class="variablelist"><table border="0" class="variablelist">
 
403
<colgroup>
 
404
<col align="left" valign="top">
 
405
<col>
 
406
</colgroup>
 
407
<tbody>
 
408
<tr>
 
409
<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td>
 
410
<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
 
411
</td>
 
412
</tr>
 
413
<tr>
 
414
<td><p><span class="term"><em class="parameter"><code>title</code></em> :</span></p></td>
 
415
<td>title of the window</td>
 
416
</tr>
 
417
</tbody>
 
418
</table></div>
 
419
</div>
 
420
<hr>
 
421
<div class="refsect2">
 
422
<a name="gtk-window-set-wmclass"></a><h3>gtk_window_set_wmclass ()</h3>
 
423
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_window_set_wmclass              (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>,
 
424
                                                         <em class="parameter"><code>const <span class="type">gchar</span> *wmclass_name</code></em>,
 
425
                                                         <em class="parameter"><code>const <span class="type">gchar</span> *wmclass_class</code></em>);</pre>
 
426
<p>
 
427
Don't use this function. It sets the X Window System "class" and
 
428
"name" hints for a window.  According to the ICCCM, you should
 
429
always set these to the same value for all windows in an
 
430
application, and GTK+ sets them to that value by default, so calling
 
431
this function is sort of pointless. However, you may want to call
 
432
<a class="link" href="GtkWindow.html#gtk-window-set-role" title="gtk_window_set_role ()"><code class="function">gtk_window_set_role()</code></a> on each window in your application, for the
 
433
benefit of the session manager. Setting the role allows the window
 
434
manager to restore window positions when loading a saved session.
 
435
</p>
 
436
<div class="variablelist"><table border="0" class="variablelist">
 
437
<colgroup>
 
438
<col align="left" valign="top">
 
439
<col>
 
440
</colgroup>
 
441
<tbody>
 
442
<tr>
 
443
<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td>
 
444
<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
 
445
</td>
 
446
</tr>
 
447
<tr>
 
448
<td><p><span class="term"><em class="parameter"><code>wmclass_name</code></em> :</span></p></td>
 
449
<td>window name hint</td>
 
450
</tr>
 
451
<tr>
 
452
<td><p><span class="term"><em class="parameter"><code>wmclass_class</code></em> :</span></p></td>
 
453
<td>window class hint</td>
 
454
</tr>
 
455
</tbody>
 
456
</table></div>
 
457
</div>
 
458
<hr>
 
459
<div class="refsect2">
 
460
<a name="gtk-window-set-policy"></a><h3>gtk_window_set_policy ()</h3>
 
461
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_window_set_policy               (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>,
 
462
                                                         <em class="parameter"><code><span class="type">gint</span> allow_shrink</code></em>,
 
463
                                                         <em class="parameter"><code><span class="type">gint</span> allow_grow</code></em>,
 
464
                                                         <em class="parameter"><code><span class="type">gint</span> auto_shrink</code></em>);</pre>
 
465
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
 
466
<h3 class="title">Warning</h3>
 
467
<p><code class="literal">gtk_window_set_policy</code> is deprecated and should not be used in newly-written code. Use <a class="link" href="GtkWindow.html#gtk-window-set-resizable" title="gtk_window_set_resizable ()"><code class="function">gtk_window_set_resizable()</code></a> instead.</p>
 
468
</div>
 
469
<p>
 
470
Changes how a toplevel window deals with its size request and user resize
 
471
attempts. There are really only two reasonable ways to call this function:
 
472
</p>
 
473
<div class="orderedlist"><ol class="orderedlist" type="1">
 
474
<li class="listitem"><p>
 
475
<code class="literal">gtk_window_set_policy (GTK_WINDOW (window), FALSE, TRUE, FALSE)</code>
 
476
means that the window is user-resizable.
 
477
</p></li>
 
478
<li class="listitem"><p>
 
479
<code class="literal">gtk_window_set_policy (GTK_WINDOW (window), FALSE, FALSE, TRUE)</code>
 
480
means that the window's size is program-controlled, and should simply match
 
481
the current size request of the window's children.
 
482
</p></li>
 
483
</ol></div>
 
484
<p>
 
485
The first policy is the default, that is, by default windows are designed to
 
486
be resized by users.
 
487
</p>
 
488
<p>
 
489
The basic ugly truth of this function is that it should be simply:
 
490
<code class="literal">
 
491
 void gtk_window_set_resizable (GtkWindow* window, gboolean setting);
 
492
</code>
 
493
...which is why GTK+ 2.0 introduces <a class="link" href="GtkWindow.html#gtk-window-set-resizable" title="gtk_window_set_resizable ()"><code class="function">gtk_window_set_resizable()</code></a>, which you
 
494
should use instead of <a class="link" href="GtkWindow.html#gtk-window-set-policy" title="gtk_window_set_policy ()"><code class="function">gtk_window_set_policy()</code></a>.
 
495
</p>
 
496
<p>
 
497
If set to <code class="literal">TRUE</code>, the <em class="parameter"><code>allow_grow</code></em> parameter allows the user to expand the window
 
498
beyond the size request of its child widgets. If <em class="parameter"><code>allow_grow</code></em> is <code class="literal">TRUE</code>, be sure to
 
499
check that your child widgets work properly as the window is resized.
 
500
</p>
 
501
<p>
 
502
A toplevel window will always change size to ensure its child widgets receive
 
503
their requested size. This means that if you add child widgets, the toplevel
 
504
window will expand to contain them. However, normally the toplevel will not
 
505
shrink to fit the size request of its children if it's too large; the
 
506
<em class="parameter"><code>auto_shrink</code></em> parameter causes the window to shrink when child widgets have too
 
507
much space. <em class="parameter"><code>auto_shrink</code></em> is normally used with the second of the two window
 
508
policies mentioned above.  That is, set <em class="parameter"><code>auto_shrink</code></em> to <code class="literal">TRUE</code> if you want the
 
509
window to have a fixed, always-optimal size determined by your program.
 
510
</p>
 
511
<p>
 
512
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
 
513
both set to <code class="literal">FALSE</code>.
 
514
</p>
 
515
<p>
 
516
Neither of the two suggested window policies set the <em class="parameter"><code>allow_shrink</code></em> parameter to
 
517
<code class="literal">TRUE</code>.  If <em class="parameter"><code>allow_shrink</code></em> is <code class="literal">TRUE</code>, the user can shrink the window so that its
 
518
children do not receive their full size request; this is basically a bad thing,
 
519
because most widgets will look wrong if this happens. Furthermore GTK+ has a
 
520
tendency to re-expand the window if size is recalculated for any reason. The
 
521
upshot is that <em class="parameter"><code>allow_shrink</code></em> should always be set to <code class="literal">FALSE</code>.
 
522
</p>
 
523
<p>
 
524
Sometimes when you think you want to use <em class="parameter"><code>allow_shrink</code></em>, the real problem is that
 
525
some specific child widget is requesting too much space, so the user can't
 
526
shrink the window sufficiently. Perhaps you are calling <a class="link" href="GtkWidget.html#gtk-widget-set-size-request" title="gtk_widget_set_size_request ()"><code class="function">gtk_widget_set_size_request()</code></a>
 
527
on a child widget, and forcing its size request to be too large. Instead of
 
528
setting the child's usize, consider using <a class="link" href="GtkWindow.html#gtk-window-set-default-size" title="gtk_window_set_default_size ()"><code class="function">gtk_window_set_default_size()</code></a> so that
 
529
the child gets a larger allocation than it requests.
 
530
</p>
 
531
<div class="variablelist"><table border="0" class="variablelist">
 
532
<colgroup>
 
533
<col align="left" valign="top">
 
534
<col>
 
535
</colgroup>
 
536
<tbody>
 
537
<tr>
 
538
<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td>
 
539
<td>the window</td>
 
540
</tr>
 
541
<tr>
 
542
<td><p><span class="term"><em class="parameter"><code>allow_shrink</code></em> :</span></p></td>
 
543
<td>whether the user can shrink the window below its size request</td>
 
544
</tr>
 
545
<tr>
 
546
<td><p><span class="term"><em class="parameter"><code>allow_grow</code></em> :</span></p></td>
 
547
<td>whether the user can grow the window larger than its size request</td>
 
548
</tr>
 
549
<tr>
 
550
<td><p><span class="term"><em class="parameter"><code>auto_shrink</code></em> :</span></p></td>
 
551
<td>whether the window automatically snaps back to its size request
 
552
if it's larger</td>
 
553
</tr>
 
554
</tbody>
 
555
</table></div>
 
556
</div>
 
557
<hr>
 
558
<div class="refsect2">
 
559
<a name="gtk-window-set-resizable"></a><h3>gtk_window_set_resizable ()</h3>
 
560
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_window_set_resizable            (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>,
 
561
                                                         <em class="parameter"><code><span class="type">gboolean</span> resizable</code></em>);</pre>
 
562
<p>
 
563
Sets whether the user can resize a window. Windows are user resizable
 
564
by default.
 
565
</p>
 
566
<div class="variablelist"><table border="0" class="variablelist">
 
567
<colgroup>
 
568
<col align="left" valign="top">
 
569
<col>
 
570
</colgroup>
 
571
<tbody>
 
572
<tr>
 
573
<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td>
 
574
<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
 
575
</td>
 
576
</tr>
 
577
<tr>
 
578
<td><p><span class="term"><em class="parameter"><code>resizable</code></em> :</span></p></td>
 
579
<td>
 
580
<code class="literal">TRUE</code> if the user can resize this window</td>
 
581
</tr>
 
582
</tbody>
 
583
</table></div>
 
584
</div>
 
585
<hr>
 
586
<div class="refsect2">
 
587
<a name="gtk-window-get-resizable"></a><h3>gtk_window_get_resizable ()</h3>
 
588
<pre class="programlisting"><span class="returnvalue">gboolean</span>            gtk_window_get_resizable            (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>);</pre>
 
589
<p>
 
590
Gets the value set by <a class="link" href="GtkWindow.html#gtk-window-set-resizable" title="gtk_window_set_resizable ()"><code class="function">gtk_window_set_resizable()</code></a>.
 
591
</p>
 
592
<div class="variablelist"><table border="0" class="variablelist">
 
593
<colgroup>
 
594
<col align="left" valign="top">
 
595
<col>
 
596
</colgroup>
 
597
<tbody>
 
598
<tr>
 
599
<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td>
 
600
<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
 
601
</td>
 
602
</tr>
 
603
<tr>
 
604
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
605
<td>
 
606
<code class="literal">TRUE</code> if the user can resize the window</td>
 
607
</tr>
 
608
</tbody>
 
609
</table></div>
 
610
</div>
 
611
<hr>
 
612
<div class="refsect2">
 
613
<a name="gtk-window-add-accel-group"></a><h3>gtk_window_add_accel_group ()</h3>
 
614
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_window_add_accel_group          (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>,
 
615
                                                         <em class="parameter"><code><a class="link" href="gtk2-Keyboard-Accelerators.html#GtkAccelGroup"><span class="type">GtkAccelGroup</span></a> *accel_group</code></em>);</pre>
 
616
<p>
 
617
Associate <em class="parameter"><code>accel_group</code></em> with <em class="parameter"><code>window</code></em>, such that calling
 
618
<a class="link" href="gtk2-Keyboard-Accelerators.html#gtk-accel-groups-activate" title="gtk_accel_groups_activate ()"><code class="function">gtk_accel_groups_activate()</code></a> on <em class="parameter"><code>window</code></em> will activate accelerators
 
619
in <em class="parameter"><code>accel_group</code></em>.
 
620
</p>
 
621
<div class="variablelist"><table border="0" class="variablelist">
 
622
<colgroup>
 
623
<col align="left" valign="top">
 
624
<col>
 
625
</colgroup>
 
626
<tbody>
 
627
<tr>
 
628
<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td>
 
629
<td>window to attach accelerator group to</td>
 
630
</tr>
 
631
<tr>
 
632
<td><p><span class="term"><em class="parameter"><code>accel_group</code></em> :</span></p></td>
 
633
<td>a <a class="link" href="gtk2-Keyboard-Accelerators.html#GtkAccelGroup"><span class="type">GtkAccelGroup</span></a>
 
634
</td>
 
635
</tr>
 
636
</tbody>
 
637
</table></div>
 
638
</div>
 
639
<hr>
 
640
<div class="refsect2">
 
641
<a name="gtk-window-remove-accel-group"></a><h3>gtk_window_remove_accel_group ()</h3>
 
642
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_window_remove_accel_group       (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>,
 
643
                                                         <em class="parameter"><code><a class="link" href="gtk2-Keyboard-Accelerators.html#GtkAccelGroup"><span class="type">GtkAccelGroup</span></a> *accel_group</code></em>);</pre>
 
644
<p>
 
645
Reverses the effects of <a class="link" href="GtkWindow.html#gtk-window-add-accel-group" title="gtk_window_add_accel_group ()"><code class="function">gtk_window_add_accel_group()</code></a>.
 
646
</p>
 
647
<div class="variablelist"><table border="0" class="variablelist">
 
648
<colgroup>
 
649
<col align="left" valign="top">
 
650
<col>
 
651
</colgroup>
 
652
<tbody>
 
653
<tr>
 
654
<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td>
 
655
<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
 
656
</td>
 
657
</tr>
 
658
<tr>
 
659
<td><p><span class="term"><em class="parameter"><code>accel_group</code></em> :</span></p></td>
 
660
<td>a <a class="link" href="gtk2-Keyboard-Accelerators.html#GtkAccelGroup"><span class="type">GtkAccelGroup</span></a>
 
661
</td>
 
662
</tr>
 
663
</tbody>
 
664
</table></div>
 
665
</div>
 
666
<hr>
 
667
<div class="refsect2">
 
668
<a name="gtk-window-position"></a><h3>gtk_window_position</h3>
 
669
<pre class="programlisting">#define gtk_window_position                 gtk_window_set_position
 
670
</pre>
 
671
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
 
672
<h3 class="title">Warning</h3>
 
673
<p><code class="literal">gtk_window_position</code> is deprecated and should not be used in newly-written code. Use <a class="link" href="GtkWindow.html#gtk-window-set-position" title="gtk_window_set_position ()"><code class="function">gtk_window_set_position()</code></a> instead.</p>
 
674
</div>
 
675
<p>
 
676
Deprecated alias for <a class="link" href="GtkWindow.html#gtk-window-set-position" title="gtk_window_set_position ()"><code class="function">gtk_window_set_position()</code></a>.
 
677
</p>
 
678
</div>
 
679
<hr>
 
680
<div class="refsect2">
 
681
<a name="gtk-window-activate-focus"></a><h3>gtk_window_activate_focus ()</h3>
 
682
<pre class="programlisting"><span class="returnvalue">gboolean</span>            gtk_window_activate_focus           (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>);</pre>
 
683
<p>
 
684
Activates the current focused widget within the window.
 
685
</p>
 
686
<div class="variablelist"><table border="0" class="variablelist">
 
687
<colgroup>
 
688
<col align="left" valign="top">
 
689
<col>
 
690
</colgroup>
 
691
<tbody>
 
692
<tr>
 
693
<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td>
 
694
<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
 
695
</td>
 
696
</tr>
 
697
<tr>
 
698
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
699
<td>
 
700
<code class="literal">TRUE</code> if a widget got activated.</td>
 
701
</tr>
 
702
</tbody>
 
703
</table></div>
 
704
</div>
 
705
<hr>
 
706
<div class="refsect2">
 
707
<a name="gtk-window-activate-default"></a><h3>gtk_window_activate_default ()</h3>
 
708
<pre class="programlisting"><span class="returnvalue">gboolean</span>            gtk_window_activate_default         (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>);</pre>
 
709
<p>
 
710
Activates the default widget for the window, unless the current 
 
711
focused widget has been configured to receive the default action 
 
712
(see <a class="link" href="GtkWidget.html#gtk-widget-set-receives-default" title="gtk_widget_set_receives_default ()"><code class="function">gtk_widget_set_receives_default()</code></a>), in which case the
 
713
focused widget is activated.
 
714
</p>
 
715
<div class="variablelist"><table border="0" class="variablelist">
 
716
<colgroup>
 
717
<col align="left" valign="top">
 
718
<col>
 
719
</colgroup>
 
720
<tbody>
 
721
<tr>
 
722
<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td>
 
723
<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
 
724
</td>
 
725
</tr>
 
726
<tr>
 
727
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
728
<td>
 
729
<code class="literal">TRUE</code> if a widget got activated.</td>
 
730
</tr>
 
731
</tbody>
 
732
</table></div>
 
733
</div>
 
734
<hr>
 
735
<div class="refsect2">
 
736
<a name="gtk-window-set-modal"></a><h3>gtk_window_set_modal ()</h3>
 
737
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_window_set_modal                (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>,
 
738
                                                         <em class="parameter"><code><span class="type">gboolean</span> modal</code></em>);</pre>
 
739
<p>
 
740
Sets a window modal or non-modal. Modal windows prevent interaction
 
741
with other windows in the same application. To keep modal dialogs
 
742
on top of main application windows, use
 
743
<a class="link" href="GtkWindow.html#gtk-window-set-transient-for" title="gtk_window_set_transient_for ()"><code class="function">gtk_window_set_transient_for()</code></a> to make the dialog transient for the
 
744
parent; most <a class="link" href="gtk-x11.html#gtk-X11-arch" title="Understanding the X11 architecture">window managers</a>
 
745
will then disallow lowering the dialog below the parent.
 
746
</p>
 
747
<div class="variablelist"><table border="0" class="variablelist">
 
748
<colgroup>
 
749
<col align="left" valign="top">
 
750
<col>
 
751
</colgroup>
 
752
<tbody>
 
753
<tr>
 
754
<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td>
 
755
<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
 
756
</td>
 
757
</tr>
 
758
<tr>
 
759
<td><p><span class="term"><em class="parameter"><code>modal</code></em> :</span></p></td>
 
760
<td>whether the window is modal</td>
 
761
</tr>
 
762
</tbody>
 
763
</table></div>
 
764
</div>
 
765
<hr>
 
766
<div class="refsect2">
 
767
<a name="gtk-window-set-default-size"></a><h3>gtk_window_set_default_size ()</h3>
 
768
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_window_set_default_size         (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>,
 
769
                                                         <em class="parameter"><code><span class="type">gint</span> width</code></em>,
 
770
                                                         <em class="parameter"><code><span class="type">gint</span> height</code></em>);</pre>
 
771
<p>
 
772
Sets the default size of a window. If the window's "natural" size
 
773
(its size request) is larger than the default, the default will be
 
774
ignored. More generally, if the default size does not obey the
 
775
geometry hints for the window (<a class="link" href="GtkWindow.html#gtk-window-set-geometry-hints" title="gtk_window_set_geometry_hints ()"><code class="function">gtk_window_set_geometry_hints()</code></a> can
 
776
be used to set these explicitly), the default size will be clamped
 
777
to the nearest permitted size.
 
778
</p>
 
779
<p>
 
780
Unlike <a class="link" href="GtkWidget.html#gtk-widget-set-size-request" title="gtk_widget_set_size_request ()"><code class="function">gtk_widget_set_size_request()</code></a>, which sets a size request for
 
781
a widget and thus would keep users from shrinking the window, this
 
782
function only sets the initial size, just as if the user had
 
783
resized the window themselves. Users can still shrink the window
 
784
again as they normally would. Setting a default size of -1 means to
 
785
use the "natural" default size (the size request of the window).
 
786
</p>
 
787
<p>
 
788
For more control over a window's initial size and how resizing works,
 
789
investigate <a class="link" href="GtkWindow.html#gtk-window-set-geometry-hints" title="gtk_window_set_geometry_hints ()"><code class="function">gtk_window_set_geometry_hints()</code></a>.
 
790
</p>
 
791
<p>
 
792
For some uses, <a class="link" href="GtkWindow.html#gtk-window-resize" title="gtk_window_resize ()"><code class="function">gtk_window_resize()</code></a> is a more appropriate function.
 
793
<a class="link" href="GtkWindow.html#gtk-window-resize" title="gtk_window_resize ()"><code class="function">gtk_window_resize()</code></a> changes the current size of the window, rather
 
794
than the size to be used on initial display. <a class="link" href="GtkWindow.html#gtk-window-resize" title="gtk_window_resize ()"><code class="function">gtk_window_resize()</code></a> always
 
795
affects the window itself, not the geometry widget.
 
796
</p>
 
797
<p>
 
798
The default size of a window only affects the first time a window is
 
799
shown; if a window is hidden and re-shown, it will remember the size
 
800
it had prior to hiding, rather than using the default size.
 
801
</p>
 
802
<p>
 
803
Windows can't actually be 0x0 in size, they must be at least 1x1, but
 
804
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.
 
805
</p>
 
806
<div class="variablelist"><table border="0" class="variablelist">
 
807
<colgroup>
 
808
<col align="left" valign="top">
 
809
<col>
 
810
</colgroup>
 
811
<tbody>
 
812
<tr>
 
813
<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td>
 
814
<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
 
815
</td>
 
816
</tr>
 
817
<tr>
 
818
<td><p><span class="term"><em class="parameter"><code>width</code></em> :</span></p></td>
 
819
<td>width in pixels, or -1 to unset the default width</td>
 
820
</tr>
 
821
<tr>
 
822
<td><p><span class="term"><em class="parameter"><code>height</code></em> :</span></p></td>
 
823
<td>height in pixels, or -1 to unset the default height</td>
 
824
</tr>
 
825
</tbody>
 
826
</table></div>
 
827
</div>
 
828
<hr>
 
829
<div class="refsect2">
 
830
<a name="gtk-window-set-geometry-hints"></a><h3>gtk_window_set_geometry_hints ()</h3>
 
831
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_window_set_geometry_hints       (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>,
 
832
                                                         <em class="parameter"><code><a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a> *geometry_widget</code></em>,
 
833
                                                         <em class="parameter"><code><a href="../gdk2/gdk2-Windows.html#GdkGeometry"><span class="type">GdkGeometry</span></a> *geometry</code></em>,
 
834
                                                         <em class="parameter"><code><a href="../gdk2/gdk2-Windows.html#GdkWindowHints"><span class="type">GdkWindowHints</span></a> geom_mask</code></em>);</pre>
 
835
<p>
 
836
This function sets up hints about how a window can be resized by
 
837
the user.  You can set a minimum and maximum size; allowed resize
 
838
increments (e.g. for xterm, you can only resize by the size of a
 
839
character); aspect ratios; and more. See the <a href="../gdk2/gdk2-Windows.html#GdkGeometry"><span class="type">GdkGeometry</span></a> struct.
 
840
</p>
 
841
<div class="variablelist"><table border="0" class="variablelist">
 
842
<colgroup>
 
843
<col align="left" valign="top">
 
844
<col>
 
845
</colgroup>
 
846
<tbody>
 
847
<tr>
 
848
<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td>
 
849
<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
 
850
</td>
 
851
</tr>
 
852
<tr>
 
853
<td><p><span class="term"><em class="parameter"><code>geometry_widget</code></em> :</span></p></td>
 
854
<td>widget the geometry hints will be applied to</td>
 
855
</tr>
 
856
<tr>
 
857
<td><p><span class="term"><em class="parameter"><code>geometry</code></em> :</span></p></td>
 
858
<td>struct containing geometry information</td>
 
859
</tr>
 
860
<tr>
 
861
<td><p><span class="term"><em class="parameter"><code>geom_mask</code></em> :</span></p></td>
 
862
<td>mask indicating which struct fields should be paid attention to</td>
 
863
</tr>
 
864
</tbody>
 
865
</table></div>
 
866
</div>
 
867
<hr>
 
868
<div class="refsect2">
 
869
<a name="gtk-window-set-gravity"></a><h3>gtk_window_set_gravity ()</h3>
 
870
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_window_set_gravity              (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>,
 
871
                                                         <em class="parameter"><code><a href="../gdk2/gdk2-Windows.html#GdkGravity"><span class="type">GdkGravity</span></a> gravity</code></em>);</pre>
 
872
<p>
 
873
Window gravity defines the meaning of coordinates passed to
 
874
<a class="link" href="GtkWindow.html#gtk-window-move" title="gtk_window_move ()"><code class="function">gtk_window_move()</code></a>. See <a class="link" href="GtkWindow.html#gtk-window-move" title="gtk_window_move ()"><code class="function">gtk_window_move()</code></a> and <a href="../gdk2/gdk2-Windows.html#GdkGravity"><span class="type">GdkGravity</span></a> for
 
875
more details.
 
876
</p>
 
877
<p>
 
878
The default window gravity is <a href="../gdk2/gdk2-Windows.html#GDK-GRAVITY-NORTH-WEST:CAPS"><span class="type">GDK_GRAVITY_NORTH_WEST</span></a> which will
 
879
typically "do what you mean."
 
880
</p>
 
881
<div class="variablelist"><table border="0" class="variablelist">
 
882
<colgroup>
 
883
<col align="left" valign="top">
 
884
<col>
 
885
</colgroup>
 
886
<tbody>
 
887
<tr>
 
888
<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td>
 
889
<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
 
890
</td>
 
891
</tr>
 
892
<tr>
 
893
<td><p><span class="term"><em class="parameter"><code>gravity</code></em> :</span></p></td>
 
894
<td>window gravity</td>
 
895
</tr>
 
896
</tbody>
 
897
</table></div>
 
898
</div>
 
899
<hr>
 
900
<div class="refsect2">
 
901
<a name="gtk-window-get-gravity"></a><h3>gtk_window_get_gravity ()</h3>
 
902
<pre class="programlisting"><a href="../gdk2/gdk2-Windows.html#GdkGravity"><span class="returnvalue">GdkGravity</span></a>          gtk_window_get_gravity              (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>);</pre>
 
903
<p>
 
904
Gets the value set by <a class="link" href="GtkWindow.html#gtk-window-set-gravity" title="gtk_window_set_gravity ()"><code class="function">gtk_window_set_gravity()</code></a>.
 
905
</p>
 
906
<div class="variablelist"><table border="0" class="variablelist">
 
907
<colgroup>
 
908
<col align="left" valign="top">
 
909
<col>
 
910
</colgroup>
 
911
<tbody>
 
912
<tr>
 
913
<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td>
 
914
<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
 
915
</td>
 
916
</tr>
 
917
<tr>
 
918
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
919
<td>window gravity. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
 
920
</td>
 
921
</tr>
 
922
</tbody>
 
923
</table></div>
 
924
</div>
 
925
<hr>
 
926
<div class="refsect2">
 
927
<a name="gtk-window-set-position"></a><h3>gtk_window_set_position ()</h3>
 
928
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_window_set_position             (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>,
 
929
                                                         <em class="parameter"><code><a class="link" href="gtk2-Standard-Enumerations.html#GtkWindowPosition" title="enum GtkWindowPosition"><span class="type">GtkWindowPosition</span></a> position</code></em>);</pre>
 
930
<p>
 
931
Sets a position constraint for this window. If the old or new
 
932
constraint is <a class="link" href="gtk2-Standard-Enumerations.html#GTK-WIN-POS-CENTER-ALWAYS:CAPS"><code class="literal">GTK_WIN_POS_CENTER_ALWAYS</code></a>, this will also cause
 
933
the window to be repositioned to satisfy the new constraint.
 
934
</p>
 
935
<div class="variablelist"><table border="0" class="variablelist">
 
936
<colgroup>
 
937
<col align="left" valign="top">
 
938
<col>
 
939
</colgroup>
 
940
<tbody>
 
941
<tr>
 
942
<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td>
 
943
<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>.</td>
 
944
</tr>
 
945
<tr>
 
946
<td><p><span class="term"><em class="parameter"><code>position</code></em> :</span></p></td>
 
947
<td>a position constraint.</td>
 
948
</tr>
 
949
</tbody>
 
950
</table></div>
 
951
</div>
 
952
<hr>
 
953
<div class="refsect2">
 
954
<a name="gtk-window-set-transient-for"></a><h3>gtk_window_set_transient_for ()</h3>
 
955
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_window_set_transient_for        (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>,
 
956
                                                         <em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *parent</code></em>);</pre>
 
957
<p>
 
958
Dialog windows should be set transient for the main application
 
959
window they were spawned from. This allows <a class="link" href="gtk-x11.html#gtk-X11-arch" title="Understanding the X11 architecture">window managers</a> to e.g. keep the
 
960
dialog on top of the main window, or center the dialog over the
 
961
main window. <a class="link" href="GtkDialog.html#gtk-dialog-new-with-buttons" title="gtk_dialog_new_with_buttons ()"><code class="function">gtk_dialog_new_with_buttons()</code></a> and other convenience
 
962
functions in GTK+ will sometimes call
 
963
<a class="link" href="GtkWindow.html#gtk-window-set-transient-for" title="gtk_window_set_transient_for ()"><code class="function">gtk_window_set_transient_for()</code></a> on your behalf.
 
964
</p>
 
965
<p>
 
966
Passing <a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a> for <em class="parameter"><code>parent</code></em> unsets the current transient window.
 
967
</p>
 
968
<p>
 
969
On Windows, this function puts the child window on top of the parent,
 
970
much as the window manager would have done on X.
 
971
</p>
 
972
<div class="variablelist"><table border="0" class="variablelist">
 
973
<colgroup>
 
974
<col align="left" valign="top">
 
975
<col>
 
976
</colgroup>
 
977
<tbody>
 
978
<tr>
 
979
<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td>
 
980
<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
 
981
</td>
 
982
</tr>
 
983
<tr>
 
984
<td><p><span class="term"><em class="parameter"><code>parent</code></em> :</span></p></td>
 
985
<td>parent window, or <a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
 
986
</td>
 
987
</tr>
 
988
</tbody>
 
989
</table></div>
 
990
</div>
 
991
<hr>
 
992
<div class="refsect2">
 
993
<a name="gtk-window-set-destroy-with-parent"></a><h3>gtk_window_set_destroy_with_parent ()</h3>
 
994
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_window_set_destroy_with_parent  (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>,
 
995
                                                         <em class="parameter"><code><span class="type">gboolean</span> setting</code></em>);</pre>
 
996
<p>
 
997
If <em class="parameter"><code>setting</code></em> is <code class="literal">TRUE</code>, then destroying the transient parent of <em class="parameter"><code>window</code></em>
 
998
will also destroy <em class="parameter"><code>window</code></em> itself. This is useful for dialogs that
 
999
shouldn't persist beyond the lifetime of the main window they're
 
1000
associated with, for example.
 
1001
</p>
 
1002
<div class="variablelist"><table border="0" class="variablelist">
 
1003
<colgroup>
 
1004
<col align="left" valign="top">
 
1005
<col>
 
1006
</colgroup>
 
1007
<tbody>
 
1008
<tr>
 
1009
<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td>
 
1010
<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
 
1011
</td>
 
1012
</tr>
 
1013
<tr>
 
1014
<td><p><span class="term"><em class="parameter"><code>setting</code></em> :</span></p></td>
 
1015
<td>whether to destroy <em class="parameter"><code>window</code></em> with its transient parent</td>
 
1016
</tr>
 
1017
</tbody>
 
1018
</table></div>
 
1019
</div>
 
1020
<hr>
 
1021
<div class="refsect2">
 
1022
<a name="gtk-window-set-screen"></a><h3>gtk_window_set_screen ()</h3>
 
1023
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_window_set_screen               (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>,
 
1024
                                                         <em class="parameter"><code><a href="../gdk2/GdkScreen.html"><span class="type">GdkScreen</span></a> *screen</code></em>);</pre>
 
1025
<p>
 
1026
Sets the <a href="../gdk2/GdkScreen.html"><span class="type">GdkScreen</span></a> where the <em class="parameter"><code>window</code></em> is displayed; if
 
1027
the window is already mapped, it will be unmapped, and
 
1028
then remapped on the new screen.
 
1029
</p>
 
1030
<div class="variablelist"><table border="0" class="variablelist">
 
1031
<colgroup>
 
1032
<col align="left" valign="top">
 
1033
<col>
 
1034
</colgroup>
 
1035
<tbody>
 
1036
<tr>
 
1037
<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td>
 
1038
<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>.</td>
 
1039
</tr>
 
1040
<tr>
 
1041
<td><p><span class="term"><em class="parameter"><code>screen</code></em> :</span></p></td>
 
1042
<td>a <a href="../gdk2/GdkScreen.html"><span class="type">GdkScreen</span></a>.</td>
 
1043
</tr>
 
1044
</tbody>
 
1045
</table></div>
 
1046
<p class="since">Since 2.2</p>
 
1047
</div>
 
1048
<hr>
 
1049
<div class="refsect2">
 
1050
<a name="gtk-window-get-screen"></a><h3>gtk_window_get_screen ()</h3>
 
1051
<pre class="programlisting"><a href="../gdk2/GdkScreen.html"><span class="returnvalue">GdkScreen</span></a> *         gtk_window_get_screen               (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>);</pre>
 
1052
<p>
 
1053
Returns the <a href="../gdk2/GdkScreen.html"><span class="type">GdkScreen</span></a> associated with <em class="parameter"><code>window</code></em>.
 
1054
</p>
 
1055
<div class="variablelist"><table border="0" class="variablelist">
 
1056
<colgroup>
 
1057
<col align="left" valign="top">
 
1058
<col>
 
1059
</colgroup>
 
1060
<tbody>
 
1061
<tr>
 
1062
<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td>
 
1063
<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>.</td>
 
1064
</tr>
 
1065
<tr>
 
1066
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
1067
<td>a <a href="../gdk2/GdkScreen.html"><span class="type">GdkScreen</span></a>. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
 
1068
</td>
 
1069
</tr>
 
1070
</tbody>
 
1071
</table></div>
 
1072
<p class="since">Since 2.2</p>
 
1073
</div>
 
1074
<hr>
 
1075
<div class="refsect2">
 
1076
<a name="gtk-window-is-active"></a><h3>gtk_window_is_active ()</h3>
 
1077
<pre class="programlisting"><span class="returnvalue">gboolean</span>            gtk_window_is_active                (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>);</pre>
 
1078
<p>
 
1079
Returns whether the window is part of the current active toplevel.
 
1080
(That is, the toplevel window receiving keystrokes.)
 
1081
The return value is <code class="literal">TRUE</code> if the window is active toplevel
 
1082
itself, but also if it is, say, a <a class="link" href="GtkPlug.html" title="GtkPlug"><span class="type">GtkPlug</span></a> embedded in the active toplevel.
 
1083
You might use this function if you wanted to draw a widget
 
1084
differently in an active window from a widget in an inactive window.
 
1085
See <a class="link" href="GtkWindow.html#gtk-window-has-toplevel-focus" title="gtk_window_has_toplevel_focus ()"><code class="function">gtk_window_has_toplevel_focus()</code></a>
 
1086
</p>
 
1087
<div class="variablelist"><table border="0" class="variablelist">
 
1088
<colgroup>
 
1089
<col align="left" valign="top">
 
1090
<col>
 
1091
</colgroup>
 
1092
<tbody>
 
1093
<tr>
 
1094
<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td>
 
1095
<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
 
1096
</td>
 
1097
</tr>
 
1098
<tr>
 
1099
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
1100
<td>
 
1101
<code class="literal">TRUE</code> if the window part of the current active window.</td>
 
1102
</tr>
 
1103
</tbody>
 
1104
</table></div>
 
1105
<p class="since">Since 2.4</p>
 
1106
</div>
 
1107
<hr>
 
1108
<div class="refsect2">
 
1109
<a name="gtk-window-has-toplevel-focus"></a><h3>gtk_window_has_toplevel_focus ()</h3>
 
1110
<pre class="programlisting"><span class="returnvalue">gboolean</span>            gtk_window_has_toplevel_focus       (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>);</pre>
 
1111
<p>
 
1112
Returns whether the input focus is within this GtkWindow.
 
1113
For real toplevel windows, this is identical to <a class="link" href="GtkWindow.html#gtk-window-is-active" title="gtk_window_is_active ()"><code class="function">gtk_window_is_active()</code></a>,
 
1114
but for embedded windows, like <a class="link" href="GtkPlug.html" title="GtkPlug"><span class="type">GtkPlug</span></a>, the results will differ.
 
1115
</p>
 
1116
<div class="variablelist"><table border="0" class="variablelist">
 
1117
<colgroup>
 
1118
<col align="left" valign="top">
 
1119
<col>
 
1120
</colgroup>
 
1121
<tbody>
 
1122
<tr>
 
1123
<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td>
 
1124
<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
 
1125
</td>
 
1126
</tr>
 
1127
<tr>
 
1128
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
1129
<td>
 
1130
<code class="literal">TRUE</code> if the input focus is within this GtkWindow</td>
 
1131
</tr>
 
1132
</tbody>
 
1133
</table></div>
 
1134
<p class="since">Since 2.4</p>
 
1135
</div>
 
1136
<hr>
 
1137
<div class="refsect2">
 
1138
<a name="gtk-window-list-toplevels"></a><h3>gtk_window_list_toplevels ()</h3>
 
1139
<pre class="programlisting"><span class="returnvalue">GList</span> *             gtk_window_list_toplevels           (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
 
1140
<p>
 
1141
Returns a list of all existing toplevel windows. The widgets
 
1142
in the list are not individually referenced. If you want
 
1143
to iterate through the list and perform actions involving
 
1144
callbacks that might destroy the widgets, you <span class="emphasis"><em>must</em></span> call
 
1145
<code class="literal">g_list_foreach (result, (GFunc)g_object_ref, NULL)</code> first, and
 
1146
then unref all the widgets afterwards.
 
1147
</p>
 
1148
<div class="variablelist"><table border="0" class="variablelist">
 
1149
<colgroup>
 
1150
<col align="left" valign="top">
 
1151
<col>
 
1152
</colgroup>
 
1153
<tbody><tr>
 
1154
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
1155
<td>list of toplevel widgets. <span class="annotation">[<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> GtkWidget][<acronym title="Free data container after the code is done."><span class="acronym">transfer container</span></acronym>]</span>
 
1156
</td>
 
1157
</tr></tbody>
 
1158
</table></div>
 
1159
</div>
 
1160
<hr>
 
1161
<div class="refsect2">
 
1162
<a name="gtk-window-add-mnemonic"></a><h3>gtk_window_add_mnemonic ()</h3>
 
1163
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_window_add_mnemonic             (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>,
 
1164
                                                         <em class="parameter"><code><span class="type">guint</span> keyval</code></em>,
 
1165
                                                         <em class="parameter"><code><a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a> *target</code></em>);</pre>
 
1166
<p>
 
1167
Adds a mnemonic to this window.
 
1168
</p>
 
1169
<div class="variablelist"><table border="0" class="variablelist">
 
1170
<colgroup>
 
1171
<col align="left" valign="top">
 
1172
<col>
 
1173
</colgroup>
 
1174
<tbody>
 
1175
<tr>
 
1176
<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td>
 
1177
<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
 
1178
</td>
 
1179
</tr>
 
1180
<tr>
 
1181
<td><p><span class="term"><em class="parameter"><code>keyval</code></em> :</span></p></td>
 
1182
<td>the mnemonic</td>
 
1183
</tr>
 
1184
<tr>
 
1185
<td><p><span class="term"><em class="parameter"><code>target</code></em> :</span></p></td>
 
1186
<td>the widget that gets activated by the mnemonic</td>
 
1187
</tr>
 
1188
</tbody>
 
1189
</table></div>
 
1190
</div>
 
1191
<hr>
 
1192
<div class="refsect2">
 
1193
<a name="gtk-window-remove-mnemonic"></a><h3>gtk_window_remove_mnemonic ()</h3>
 
1194
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_window_remove_mnemonic          (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>,
 
1195
                                                         <em class="parameter"><code><span class="type">guint</span> keyval</code></em>,
 
1196
                                                         <em class="parameter"><code><a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a> *target</code></em>);</pre>
 
1197
<p>
 
1198
Removes a mnemonic from this window.
 
1199
</p>
 
1200
<div class="variablelist"><table border="0" class="variablelist">
 
1201
<colgroup>
 
1202
<col align="left" valign="top">
 
1203
<col>
 
1204
</colgroup>
 
1205
<tbody>
 
1206
<tr>
 
1207
<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td>
 
1208
<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
 
1209
</td>
 
1210
</tr>
 
1211
<tr>
 
1212
<td><p><span class="term"><em class="parameter"><code>keyval</code></em> :</span></p></td>
 
1213
<td>the mnemonic</td>
 
1214
</tr>
 
1215
<tr>
 
1216
<td><p><span class="term"><em class="parameter"><code>target</code></em> :</span></p></td>
 
1217
<td>the widget that gets activated by the mnemonic</td>
 
1218
</tr>
 
1219
</tbody>
 
1220
</table></div>
 
1221
</div>
 
1222
<hr>
 
1223
<div class="refsect2">
 
1224
<a name="gtk-window-mnemonic-activate"></a><h3>gtk_window_mnemonic_activate ()</h3>
 
1225
<pre class="programlisting"><span class="returnvalue">gboolean</span>            gtk_window_mnemonic_activate        (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>,
 
1226
                                                         <em class="parameter"><code><span class="type">guint</span> keyval</code></em>,
 
1227
                                                         <em class="parameter"><code><a href="../gdk2/gdk2-Windows.html#GdkModifierType"><span class="type">GdkModifierType</span></a> modifier</code></em>);</pre>
 
1228
<p>
 
1229
Activates the targets associated with the mnemonic.
 
1230
</p>
 
1231
<div class="variablelist"><table border="0" class="variablelist">
 
1232
<colgroup>
 
1233
<col align="left" valign="top">
 
1234
<col>
 
1235
</colgroup>
 
1236
<tbody>
 
1237
<tr>
 
1238
<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td>
 
1239
<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
 
1240
</td>
 
1241
</tr>
 
1242
<tr>
 
1243
<td><p><span class="term"><em class="parameter"><code>keyval</code></em> :</span></p></td>
 
1244
<td>the mnemonic</td>
 
1245
</tr>
 
1246
<tr>
 
1247
<td><p><span class="term"><em class="parameter"><code>modifier</code></em> :</span></p></td>
 
1248
<td>the modifiers</td>
 
1249
</tr>
 
1250
<tr>
 
1251
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
1252
<td>
 
1253
<code class="literal">TRUE</code> if the activation is done.</td>
 
1254
</tr>
 
1255
</tbody>
 
1256
</table></div>
 
1257
</div>
 
1258
<hr>
 
1259
<div class="refsect2">
 
1260
<a name="gtk-window-activate-key"></a><h3>gtk_window_activate_key ()</h3>
 
1261
<pre class="programlisting"><span class="returnvalue">gboolean</span>            gtk_window_activate_key             (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>,
 
1262
                                                         <em class="parameter"><code><a href="../gdk2/gdk2-Event-Structures.html#GdkEventKey"><span class="type">GdkEventKey</span></a> *event</code></em>);</pre>
 
1263
<p>
 
1264
Activates mnemonics and accelerators for this <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>. This is normally
 
1265
called by the default ::key_press_event handler for toplevel windows,
 
1266
however in some cases it may be useful to call this directly when
 
1267
overriding the standard key handling for a toplevel window.
 
1268
</p>
 
1269
<div class="variablelist"><table border="0" class="variablelist">
 
1270
<colgroup>
 
1271
<col align="left" valign="top">
 
1272
<col>
 
1273
</colgroup>
 
1274
<tbody>
 
1275
<tr>
 
1276
<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td>
 
1277
<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
 
1278
</td>
 
1279
</tr>
 
1280
<tr>
 
1281
<td><p><span class="term"><em class="parameter"><code>event</code></em> :</span></p></td>
 
1282
<td>a <a href="../gdk2/gdk2-Event-Structures.html#GdkEventKey"><span class="type">GdkEventKey</span></a>
 
1283
</td>
 
1284
</tr>
 
1285
<tr>
 
1286
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
1287
<td>
 
1288
<code class="literal">TRUE</code> if a mnemonic or accelerator was found and activated.</td>
 
1289
</tr>
 
1290
</tbody>
 
1291
</table></div>
 
1292
<p class="since">Since 2.4</p>
 
1293
</div>
 
1294
<hr>
 
1295
<div class="refsect2">
 
1296
<a name="gtk-window-propagate-key-event"></a><h3>gtk_window_propagate_key_event ()</h3>
 
1297
<pre class="programlisting"><span class="returnvalue">gboolean</span>            gtk_window_propagate_key_event      (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>,
 
1298
                                                         <em class="parameter"><code><a href="../gdk2/gdk2-Event-Structures.html#GdkEventKey"><span class="type">GdkEventKey</span></a> *event</code></em>);</pre>
 
1299
<p>
 
1300
Propagate a key press or release event to the focus widget and
 
1301
up the focus container chain until a widget handles <em class="parameter"><code>event</code></em>.
 
1302
This is normally called by the default ::key_press_event and
 
1303
::key_release_event handlers for toplevel windows,
 
1304
however in some cases it may be useful to call this directly when
 
1305
overriding the standard key handling for a toplevel window.
 
1306
</p>
 
1307
<div class="variablelist"><table border="0" class="variablelist">
 
1308
<colgroup>
 
1309
<col align="left" valign="top">
 
1310
<col>
 
1311
</colgroup>
 
1312
<tbody>
 
1313
<tr>
 
1314
<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td>
 
1315
<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
 
1316
</td>
 
1317
</tr>
 
1318
<tr>
 
1319
<td><p><span class="term"><em class="parameter"><code>event</code></em> :</span></p></td>
 
1320
<td>a <a href="../gdk2/gdk2-Event-Structures.html#GdkEventKey"><span class="type">GdkEventKey</span></a>
 
1321
</td>
 
1322
</tr>
 
1323
<tr>
 
1324
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
1325
<td>
 
1326
<code class="literal">TRUE</code> if a widget in the focus chain handled the event.</td>
 
1327
</tr>
 
1328
</tbody>
 
1329
</table></div>
 
1330
<p class="since">Since 2.4</p>
 
1331
</div>
 
1332
<hr>
 
1333
<div class="refsect2">
 
1334
<a name="gtk-window-get-focus"></a><h3>gtk_window_get_focus ()</h3>
 
1335
<pre class="programlisting"><a class="link" href="GtkWidget.html" title="GtkWidget"><span class="returnvalue">GtkWidget</span></a> *         gtk_window_get_focus                (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>);</pre>
 
1336
<p>
 
1337
Retrieves the current focused widget within the window.
 
1338
Note that this is the widget that would have the focus
 
1339
if the toplevel window focused; if the toplevel window
 
1340
is not focused then  <code class="literal">gtk_widget_has_focus (widget)</code> will
 
1341
not be <code class="literal">TRUE</code> for the widget.
 
1342
</p>
 
1343
<div class="variablelist"><table border="0" class="variablelist">
 
1344
<colgroup>
 
1345
<col align="left" valign="top">
 
1346
<col>
 
1347
</colgroup>
 
1348
<tbody>
 
1349
<tr>
 
1350
<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td>
 
1351
<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
 
1352
</td>
 
1353
</tr>
 
1354
<tr>
 
1355
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
1356
<td>the currently focused widget, or <a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a> if there is none. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
 
1357
</td>
 
1358
</tr>
 
1359
</tbody>
 
1360
</table></div>
 
1361
</div>
 
1362
<hr>
 
1363
<div class="refsect2">
 
1364
<a name="gtk-window-set-focus"></a><h3>gtk_window_set_focus ()</h3>
 
1365
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_window_set_focus                (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>,
 
1366
                                                         <em class="parameter"><code><a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a> *focus</code></em>);</pre>
 
1367
<p>
 
1368
If <em class="parameter"><code>focus</code></em> is not the current focus widget, and is focusable, sets
 
1369
it as the focus widget for the window. If <em class="parameter"><code>focus</code></em> is <a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a>, unsets
 
1370
the focus widget for this window. To set the focus to a particular
 
1371
widget in the toplevel, it is usually more convenient to use
 
1372
<a class="link" href="GtkWidget.html#gtk-widget-grab-focus" title="gtk_widget_grab_focus ()"><code class="function">gtk_widget_grab_focus()</code></a> instead of this function.
 
1373
</p>
 
1374
<div class="variablelist"><table border="0" class="variablelist">
 
1375
<colgroup>
 
1376
<col align="left" valign="top">
 
1377
<col>
 
1378
</colgroup>
 
1379
<tbody>
 
1380
<tr>
 
1381
<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td>
 
1382
<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
 
1383
</td>
 
1384
</tr>
 
1385
<tr>
 
1386
<td><p><span class="term"><em class="parameter"><code>focus</code></em> :</span></p></td>
 
1387
<td>widget to be the new focus widget, or <a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a> to unset
 
1388
any focus widget for the toplevel window. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
 
1389
</td>
 
1390
</tr>
 
1391
</tbody>
 
1392
</table></div>
 
1393
</div>
 
1394
<hr>
 
1395
<div class="refsect2">
 
1396
<a name="gtk-window-get-default-widget"></a><h3>gtk_window_get_default_widget ()</h3>
 
1397
<pre class="programlisting"><a class="link" href="GtkWidget.html" title="GtkWidget"><span class="returnvalue">GtkWidget</span></a> *         gtk_window_get_default_widget       (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>);</pre>
 
1398
<p>
 
1399
Returns the default widget for <em class="parameter"><code>window</code></em>. See <a class="link" href="GtkWindow.html#gtk-window-set-default" title="gtk_window_set_default ()"><code class="function">gtk_window_set_default()</code></a>
 
1400
for more details.
 
1401
</p>
 
1402
<div class="variablelist"><table border="0" class="variablelist">
 
1403
<colgroup>
 
1404
<col align="left" valign="top">
 
1405
<col>
 
1406
</colgroup>
 
1407
<tbody>
 
1408
<tr>
 
1409
<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td>
 
1410
<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
 
1411
</td>
 
1412
</tr>
 
1413
<tr>
 
1414
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
1415
<td>the default widget, or <a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a> if there is none. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
 
1416
</td>
 
1417
</tr>
 
1418
</tbody>
 
1419
</table></div>
 
1420
<p class="since">Since 2.14</p>
 
1421
</div>
 
1422
<hr>
 
1423
<div class="refsect2">
 
1424
<a name="gtk-window-set-default"></a><h3>gtk_window_set_default ()</h3>
 
1425
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_window_set_default              (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>,
 
1426
                                                         <em class="parameter"><code><a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a> *default_widget</code></em>);</pre>
 
1427
<p>
 
1428
The default widget is the widget that's activated when the user
 
1429
presses Enter in a dialog (for example). This function sets or
 
1430
unsets the default widget for a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> about. When setting
 
1431
(rather than unsetting) the default widget it's generally easier to
 
1432
call <a class="link" href="GtkWidget.html#gtk-widget-grab-focus" title="gtk_widget_grab_focus ()"><code class="function">gtk_widget_grab_focus()</code></a> on the widget. Before making a widget
 
1433
the default widget, you must set the <a class="link" href="GtkWidget.html#GTK-CAN-DEFAULT:CAPS"><span class="type">GTK_CAN_DEFAULT</span></a> flag on the
 
1434
widget you'd like to make the default using <a class="link" href="GtkWidget.html#GTK-WIDGET-SET-FLAGS:CAPS" title="GTK_WIDGET_SET_FLAGS()"><code class="function">GTK_WIDGET_SET_FLAGS()</code></a>.
 
1435
</p>
 
1436
<div class="variablelist"><table border="0" class="variablelist">
 
1437
<colgroup>
 
1438
<col align="left" valign="top">
 
1439
<col>
 
1440
</colgroup>
 
1441
<tbody>
 
1442
<tr>
 
1443
<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td>
 
1444
<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
 
1445
</td>
 
1446
</tr>
 
1447
<tr>
 
1448
<td><p><span class="term"><em class="parameter"><code>default_widget</code></em> :</span></p></td>
 
1449
<td>widget to be the default, or <a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a> to unset the
 
1450
default widget for the toplevel. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
 
1451
</td>
 
1452
</tr>
 
1453
</tbody>
 
1454
</table></div>
 
1455
</div>
 
1456
<hr>
 
1457
<div class="refsect2">
 
1458
<a name="gtk-window-present"></a><h3>gtk_window_present ()</h3>
 
1459
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_window_present                  (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>);</pre>
 
1460
<p>
 
1461
Presents a window to the user. This may mean raising the window
 
1462
in the stacking order, deiconifying it, moving it to the current
 
1463
desktop, and/or giving it the keyboard focus, possibly dependent
 
1464
on the user's platform, window manager, and preferences.
 
1465
</p>
 
1466
<p>
 
1467
If <em class="parameter"><code>window</code></em> is hidden, this function calls <a class="link" href="GtkWidget.html#gtk-widget-show" title="gtk_widget_show ()"><code class="function">gtk_widget_show()</code></a>
 
1468
as well.
 
1469
</p>
 
1470
<p>
 
1471
This function should be used when the user tries to open a window
 
1472
that's already open. Say for example the preferences dialog is
 
1473
currently open, and the user chooses Preferences from the menu
 
1474
a second time; use <a class="link" href="GtkWindow.html#gtk-window-present" title="gtk_window_present ()"><code class="function">gtk_window_present()</code></a> to move the already-open dialog
 
1475
where the user can see it.
 
1476
</p>
 
1477
<p>
 
1478
If you are calling this function in response to a user interaction,
 
1479
it is preferable to use <a class="link" href="GtkWindow.html#gtk-window-present-with-time" title="gtk_window_present_with_time ()"><code class="function">gtk_window_present_with_time()</code></a>.
 
1480
</p>
 
1481
<div class="variablelist"><table border="0" class="variablelist">
 
1482
<colgroup>
 
1483
<col align="left" valign="top">
 
1484
<col>
 
1485
</colgroup>
 
1486
<tbody><tr>
 
1487
<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td>
 
1488
<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
 
1489
</td>
 
1490
</tr></tbody>
 
1491
</table></div>
 
1492
</div>
 
1493
<hr>
 
1494
<div class="refsect2">
 
1495
<a name="gtk-window-present-with-time"></a><h3>gtk_window_present_with_time ()</h3>
 
1496
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_window_present_with_time        (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>,
 
1497
                                                         <em class="parameter"><code><span class="type">guint32</span> timestamp</code></em>);</pre>
 
1498
<p>
 
1499
Presents a window to the user in response to a user interaction.
 
1500
If you need to present a window without a timestamp, use 
 
1501
<a class="link" href="GtkWindow.html#gtk-window-present" title="gtk_window_present ()"><code class="function">gtk_window_present()</code></a>. See <a class="link" href="GtkWindow.html#gtk-window-present" title="gtk_window_present ()"><code class="function">gtk_window_present()</code></a> for details.
 
1502
</p>
 
1503
<div class="variablelist"><table border="0" class="variablelist">
 
1504
<colgroup>
 
1505
<col align="left" valign="top">
 
1506
<col>
 
1507
</colgroup>
 
1508
<tbody>
 
1509
<tr>
 
1510
<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td>
 
1511
<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
 
1512
</td>
 
1513
</tr>
 
1514
<tr>
 
1515
<td><p><span class="term"><em class="parameter"><code>timestamp</code></em> :</span></p></td>
 
1516
<td>the timestamp of the user interaction (typically a
 
1517
button or key press event) which triggered this call</td>
 
1518
</tr>
 
1519
</tbody>
 
1520
</table></div>
 
1521
<p class="since">Since 2.8</p>
 
1522
</div>
 
1523
<hr>
 
1524
<div class="refsect2">
 
1525
<a name="gtk-window-iconify"></a><h3>gtk_window_iconify ()</h3>
 
1526
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_window_iconify                  (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>);</pre>
 
1527
<p>
 
1528
Asks to iconify (i.e. minimize) the specified <em class="parameter"><code>window</code></em>. Note that
 
1529
you shouldn't assume the window is definitely iconified afterward,
 
1530
because other entities (e.g. the user or <a class="link" href="gtk-x11.html#gtk-X11-arch" title="Understanding the X11 architecture">window manager</a>) could deiconify it
 
1531
again, or there may not be a window manager in which case
 
1532
iconification isn't possible, etc. But normally the window will end
 
1533
up iconified. Just don't write code that crashes if not.
 
1534
</p>
 
1535
<p>
 
1536
It's permitted to call this function before showing a window,
 
1537
in which case the window will be iconified before it ever appears
 
1538
onscreen.
 
1539
</p>
 
1540
<p>
 
1541
You can track iconification via the "window-state-event" signal
 
1542
on <a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>.
 
1543
</p>
 
1544
<div class="variablelist"><table border="0" class="variablelist">
 
1545
<colgroup>
 
1546
<col align="left" valign="top">
 
1547
<col>
 
1548
</colgroup>
 
1549
<tbody><tr>
 
1550
<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td>
 
1551
<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
 
1552
</td>
 
1553
</tr></tbody>
 
1554
</table></div>
 
1555
</div>
 
1556
<hr>
 
1557
<div class="refsect2">
 
1558
<a name="gtk-window-deiconify"></a><h3>gtk_window_deiconify ()</h3>
 
1559
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_window_deiconify                (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>);</pre>
 
1560
<p>
 
1561
Asks to deiconify (i.e. unminimize) the specified <em class="parameter"><code>window</code></em>. Note
 
1562
that you shouldn't assume the window is definitely deiconified
 
1563
afterward, because other entities (e.g. the user or <a class="link" href="gtk-x11.html#gtk-X11-arch" title="Understanding the X11 architecture">window manager</a>) could iconify it
 
1564
again before your code which assumes deiconification gets to run.
 
1565
</p>
 
1566
<p>
 
1567
You can track iconification via the "window-state-event" signal
 
1568
on <a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>.
 
1569
</p>
 
1570
<div class="variablelist"><table border="0" class="variablelist">
 
1571
<colgroup>
 
1572
<col align="left" valign="top">
 
1573
<col>
 
1574
</colgroup>
 
1575
<tbody><tr>
 
1576
<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td>
 
1577
<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
 
1578
</td>
 
1579
</tr></tbody>
 
1580
</table></div>
 
1581
</div>
 
1582
<hr>
 
1583
<div class="refsect2">
 
1584
<a name="gtk-window-stick"></a><h3>gtk_window_stick ()</h3>
 
1585
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_window_stick                    (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>);</pre>
 
1586
<p>
 
1587
Asks to stick <em class="parameter"><code>window</code></em>, which means that it will appear on all user
 
1588
desktops. Note that you shouldn't assume the window is definitely
 
1589
stuck afterward, because other entities (e.g. the user or <a class="link" href="gtk-x11.html#gtk-X11-arch" title="Understanding the X11 architecture">window manager</a>) could unstick it
 
1590
again, and some window managers do not support sticking
 
1591
windows. But normally the window will end up stuck. Just don't
 
1592
write code that crashes if not.
 
1593
</p>
 
1594
<p>
 
1595
It's permitted to call this function before showing a window.
 
1596
</p>
 
1597
<p>
 
1598
You can track stickiness via the "window-state-event" signal
 
1599
on <a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>.
 
1600
</p>
 
1601
<div class="variablelist"><table border="0" class="variablelist">
 
1602
<colgroup>
 
1603
<col align="left" valign="top">
 
1604
<col>
 
1605
</colgroup>
 
1606
<tbody><tr>
 
1607
<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td>
 
1608
<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
 
1609
</td>
 
1610
</tr></tbody>
 
1611
</table></div>
 
1612
</div>
 
1613
<hr>
 
1614
<div class="refsect2">
 
1615
<a name="gtk-window-unstick"></a><h3>gtk_window_unstick ()</h3>
 
1616
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_window_unstick                  (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>);</pre>
 
1617
<p>
 
1618
Asks to unstick <em class="parameter"><code>window</code></em>, which means that it will appear on only
 
1619
one of the user's desktops. Note that you shouldn't assume the
 
1620
window is definitely unstuck afterward, because other entities
 
1621
(e.g. the user or <a class="link" href="gtk-x11.html#gtk-X11-arch" title="Understanding the X11 architecture">window
 
1622
manager</a>) could stick it again. But normally the window will
 
1623
end up stuck. Just don't write code that crashes if not.
 
1624
</p>
 
1625
<p>
 
1626
You can track stickiness via the "window-state-event" signal
 
1627
on <a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>.
 
1628
</p>
 
1629
<div class="variablelist"><table border="0" class="variablelist">
 
1630
<colgroup>
 
1631
<col align="left" valign="top">
 
1632
<col>
 
1633
</colgroup>
 
1634
<tbody><tr>
 
1635
<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td>
 
1636
<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
 
1637
</td>
 
1638
</tr></tbody>
 
1639
</table></div>
 
1640
</div>
 
1641
<hr>
 
1642
<div class="refsect2">
 
1643
<a name="gtk-window-maximize"></a><h3>gtk_window_maximize ()</h3>
 
1644
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_window_maximize                 (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>);</pre>
 
1645
<p>
 
1646
Asks to maximize <em class="parameter"><code>window</code></em>, so that it becomes full-screen. Note that
 
1647
you shouldn't assume the window is definitely maximized afterward,
 
1648
because other entities (e.g. the user or <a class="link" href="gtk-x11.html#gtk-X11-arch" title="Understanding the X11 architecture">window manager</a>) could unmaximize it
 
1649
again, and not all window managers support maximization. But
 
1650
normally the window will end up maximized. Just don't write code
 
1651
that crashes if not.
 
1652
</p>
 
1653
<p>
 
1654
It's permitted to call this function before showing a window,
 
1655
in which case the window will be maximized when it appears onscreen
 
1656
initially.
 
1657
</p>
 
1658
<p>
 
1659
You can track maximization via the "window-state-event" signal
 
1660
on <a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>.
 
1661
</p>
 
1662
<div class="variablelist"><table border="0" class="variablelist">
 
1663
<colgroup>
 
1664
<col align="left" valign="top">
 
1665
<col>
 
1666
</colgroup>
 
1667
<tbody><tr>
 
1668
<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td>
 
1669
<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
 
1670
</td>
 
1671
</tr></tbody>
 
1672
</table></div>
 
1673
</div>
 
1674
<hr>
 
1675
<div class="refsect2">
 
1676
<a name="gtk-window-unmaximize"></a><h3>gtk_window_unmaximize ()</h3>
 
1677
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_window_unmaximize               (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>);</pre>
 
1678
<p>
 
1679
Asks to unmaximize <em class="parameter"><code>window</code></em>. Note that you shouldn't assume the
 
1680
window is definitely unmaximized afterward, because other entities
 
1681
(e.g. the user or <a class="link" href="gtk-x11.html#gtk-X11-arch" title="Understanding the X11 architecture">window
 
1682
manager</a>) could maximize it again, and not all window
 
1683
managers honor requests to unmaximize. But normally the window will
 
1684
end up unmaximized. Just don't write code that crashes if not.
 
1685
</p>
 
1686
<p>
 
1687
You can track maximization via the "window-state-event" signal
 
1688
on <a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>.
 
1689
</p>
 
1690
<div class="variablelist"><table border="0" class="variablelist">
 
1691
<colgroup>
 
1692
<col align="left" valign="top">
 
1693
<col>
 
1694
</colgroup>
 
1695
<tbody><tr>
 
1696
<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td>
 
1697
<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
 
1698
</td>
 
1699
</tr></tbody>
 
1700
</table></div>
 
1701
</div>
 
1702
<hr>
 
1703
<div class="refsect2">
 
1704
<a name="gtk-window-fullscreen"></a><h3>gtk_window_fullscreen ()</h3>
 
1705
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_window_fullscreen               (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>);</pre>
 
1706
<p>
 
1707
Asks to place <em class="parameter"><code>window</code></em> in the fullscreen state. Note that you
 
1708
shouldn't assume the window is definitely full screen afterward,
 
1709
because other entities (e.g. the user or <a class="link" href="gtk-x11.html#gtk-X11-arch" title="Understanding the X11 architecture">window manager</a>) could unfullscreen it
 
1710
again, and not all window managers honor requests to fullscreen
 
1711
windows. But normally the window will end up fullscreen. Just
 
1712
don't write code that crashes if not.
 
1713
</p>
 
1714
<p>
 
1715
You can track the fullscreen state via the "window-state-event" signal
 
1716
on <a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>.
 
1717
</p>
 
1718
<div class="variablelist"><table border="0" class="variablelist">
 
1719
<colgroup>
 
1720
<col align="left" valign="top">
 
1721
<col>
 
1722
</colgroup>
 
1723
<tbody><tr>
 
1724
<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td>
 
1725
<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
 
1726
</td>
 
1727
</tr></tbody>
 
1728
</table></div>
 
1729
<p class="since">Since 2.2</p>
 
1730
</div>
 
1731
<hr>
 
1732
<div class="refsect2">
 
1733
<a name="gtk-window-unfullscreen"></a><h3>gtk_window_unfullscreen ()</h3>
 
1734
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_window_unfullscreen             (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>);</pre>
 
1735
<p>
 
1736
Asks to toggle off the fullscreen state for <em class="parameter"><code>window</code></em>. Note that you
 
1737
shouldn't assume the window is definitely not full screen
 
1738
afterward, because other entities (e.g. the user or <a class="link" href="gtk-x11.html#gtk-X11-arch" title="Understanding the X11 architecture">window manager</a>) could fullscreen it
 
1739
again, and not all window managers honor requests to unfullscreen
 
1740
windows. But normally the window will end up restored to its normal
 
1741
state. Just don't write code that crashes if not.
 
1742
</p>
 
1743
<p>
 
1744
You can track the fullscreen state via the "window-state-event" signal
 
1745
on <a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>.
 
1746
</p>
 
1747
<div class="variablelist"><table border="0" class="variablelist">
 
1748
<colgroup>
 
1749
<col align="left" valign="top">
 
1750
<col>
 
1751
</colgroup>
 
1752
<tbody><tr>
 
1753
<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td>
 
1754
<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
 
1755
</td>
 
1756
</tr></tbody>
 
1757
</table></div>
 
1758
<p class="since">Since 2.2</p>
 
1759
</div>
 
1760
<hr>
 
1761
<div class="refsect2">
 
1762
<a name="gtk-window-set-keep-above"></a><h3>gtk_window_set_keep_above ()</h3>
 
1763
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_window_set_keep_above           (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>,
 
1764
                                                         <em class="parameter"><code><span class="type">gboolean</span> setting</code></em>);</pre>
 
1765
<p>
 
1766
Asks to keep <em class="parameter"><code>window</code></em> above, so that it stays on top. Note that
 
1767
you shouldn't assume the window is definitely above afterward,
 
1768
because other entities (e.g. the user or <a class="link" href="gtk-x11.html#gtk-X11-arch" title="Understanding the X11 architecture">window manager</a>) could not keep it above,
 
1769
and not all window managers support keeping windows above. But
 
1770
normally the window will end kept above. Just don't write code
 
1771
that crashes if not.
 
1772
</p>
 
1773
<p>
 
1774
It's permitted to call this function before showing a window,
 
1775
in which case the window will be kept above when it appears onscreen
 
1776
initially.
 
1777
</p>
 
1778
<p>
 
1779
You can track the above state via the "window-state-event" signal
 
1780
on <a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>.
 
1781
</p>
 
1782
<p>
 
1783
Note that, according to the <a class="ulink" href="http://www.freedesktop.org/Standards/wm-spec" target="_top">Extended Window 
 
1784
Manager Hints</a> specification, the above state is mainly meant 
 
1785
for user preferences and should not be used by applications e.g. for 
 
1786
drawing attention to their dialogs.
 
1787
</p>
 
1788
<div class="variablelist"><table border="0" class="variablelist">
 
1789
<colgroup>
 
1790
<col align="left" valign="top">
 
1791
<col>
 
1792
</colgroup>
 
1793
<tbody>
 
1794
<tr>
 
1795
<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td>
 
1796
<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
 
1797
</td>
 
1798
</tr>
 
1799
<tr>
 
1800
<td><p><span class="term"><em class="parameter"><code>setting</code></em> :</span></p></td>
 
1801
<td>whether to keep <em class="parameter"><code>window</code></em> above other windows</td>
 
1802
</tr>
 
1803
</tbody>
 
1804
</table></div>
 
1805
<p class="since">Since 2.4</p>
 
1806
</div>
 
1807
<hr>
 
1808
<div class="refsect2">
 
1809
<a name="gtk-window-set-keep-below"></a><h3>gtk_window_set_keep_below ()</h3>
 
1810
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_window_set_keep_below           (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>,
 
1811
                                                         <em class="parameter"><code><span class="type">gboolean</span> setting</code></em>);</pre>
 
1812
<p>
 
1813
Asks to keep <em class="parameter"><code>window</code></em> below, so that it stays in bottom. Note that
 
1814
you shouldn't assume the window is definitely below afterward,
 
1815
because other entities (e.g. the user or <a class="link" href="gtk-x11.html#gtk-X11-arch" title="Understanding the X11 architecture">window manager</a>) could not keep it below,
 
1816
and not all window managers support putting windows below. But
 
1817
normally the window will be kept below. Just don't write code
 
1818
that crashes if not.
 
1819
</p>
 
1820
<p>
 
1821
It's permitted to call this function before showing a window,
 
1822
in which case the window will be kept below when it appears onscreen
 
1823
initially.
 
1824
</p>
 
1825
<p>
 
1826
You can track the below state via the "window-state-event" signal
 
1827
on <a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>.
 
1828
</p>
 
1829
<p>
 
1830
Note that, according to the <a class="ulink" href="http://www.freedesktop.org/Standards/wm-spec" target="_top">Extended Window 
 
1831
Manager Hints</a> specification, the above state is mainly meant 
 
1832
for user preferences and should not be used by applications e.g. for 
 
1833
drawing attention to their dialogs.
 
1834
</p>
 
1835
<div class="variablelist"><table border="0" class="variablelist">
 
1836
<colgroup>
 
1837
<col align="left" valign="top">
 
1838
<col>
 
1839
</colgroup>
 
1840
<tbody>
 
1841
<tr>
 
1842
<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td>
 
1843
<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
 
1844
</td>
 
1845
</tr>
 
1846
<tr>
 
1847
<td><p><span class="term"><em class="parameter"><code>setting</code></em> :</span></p></td>
 
1848
<td>whether to keep <em class="parameter"><code>window</code></em> below other windows</td>
 
1849
</tr>
 
1850
</tbody>
 
1851
</table></div>
 
1852
<p class="since">Since 2.4</p>
 
1853
</div>
 
1854
<hr>
 
1855
<div class="refsect2">
 
1856
<a name="gtk-window-begin-resize-drag"></a><h3>gtk_window_begin_resize_drag ()</h3>
 
1857
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_window_begin_resize_drag        (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>,
 
1858
                                                         <em class="parameter"><code><a href="../gdk2/gdk2-Windows.html#GdkWindowEdge"><span class="type">GdkWindowEdge</span></a> edge</code></em>,
 
1859
                                                         <em class="parameter"><code><span class="type">gint</span> button</code></em>,
 
1860
                                                         <em class="parameter"><code><span class="type">gint</span> root_x</code></em>,
 
1861
                                                         <em class="parameter"><code><span class="type">gint</span> root_y</code></em>,
 
1862
                                                         <em class="parameter"><code><span class="type">guint32</span> timestamp</code></em>);</pre>
 
1863
<p>
 
1864
Starts resizing a window. This function is used if an application
 
1865
has window resizing controls. When GDK can support it, the resize
 
1866
will be done using the standard mechanism for the <a class="link" href="gtk-x11.html#gtk-X11-arch" title="Understanding the X11 architecture">window manager</a> or windowing
 
1867
system. Otherwise, GDK will try to emulate window resizing,
 
1868
potentially not all that well, depending on the windowing system.
 
1869
</p>
 
1870
<div class="variablelist"><table border="0" class="variablelist">
 
1871
<colgroup>
 
1872
<col align="left" valign="top">
 
1873
<col>
 
1874
</colgroup>
 
1875
<tbody>
 
1876
<tr>
 
1877
<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td>
 
1878
<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
 
1879
</td>
 
1880
</tr>
 
1881
<tr>
 
1882
<td><p><span class="term"><em class="parameter"><code>edge</code></em> :</span></p></td>
 
1883
<td>position of the resize control</td>
 
1884
</tr>
 
1885
<tr>
 
1886
<td><p><span class="term"><em class="parameter"><code>button</code></em> :</span></p></td>
 
1887
<td>mouse button that initiated the drag</td>
 
1888
</tr>
 
1889
<tr>
 
1890
<td><p><span class="term"><em class="parameter"><code>root_x</code></em> :</span></p></td>
 
1891
<td>X position where the user clicked to initiate the drag, in root window coordinates</td>
 
1892
</tr>
 
1893
<tr>
 
1894
<td><p><span class="term"><em class="parameter"><code>root_y</code></em> :</span></p></td>
 
1895
<td>Y position where the user clicked to initiate the drag</td>
 
1896
</tr>
 
1897
<tr>
 
1898
<td><p><span class="term"><em class="parameter"><code>timestamp</code></em> :</span></p></td>
 
1899
<td>timestamp from the click event that initiated the drag</td>
 
1900
</tr>
 
1901
</tbody>
 
1902
</table></div>
 
1903
</div>
 
1904
<hr>
 
1905
<div class="refsect2">
 
1906
<a name="gtk-window-begin-move-drag"></a><h3>gtk_window_begin_move_drag ()</h3>
 
1907
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_window_begin_move_drag          (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>,
 
1908
                                                         <em class="parameter"><code><span class="type">gint</span> button</code></em>,
 
1909
                                                         <em class="parameter"><code><span class="type">gint</span> root_x</code></em>,
 
1910
                                                         <em class="parameter"><code><span class="type">gint</span> root_y</code></em>,
 
1911
                                                         <em class="parameter"><code><span class="type">guint32</span> timestamp</code></em>);</pre>
 
1912
<p>
 
1913
Starts moving a window. This function is used if an application has
 
1914
window movement grips. When GDK can support it, the window movement
 
1915
will be done using the standard mechanism for the <a class="link" href="gtk-x11.html#gtk-X11-arch" title="Understanding the X11 architecture">window manager</a> or windowing
 
1916
system. Otherwise, GDK will try to emulate window movement,
 
1917
potentially not all that well, depending on the windowing system.
 
1918
</p>
 
1919
<div class="variablelist"><table border="0" class="variablelist">
 
1920
<colgroup>
 
1921
<col align="left" valign="top">
 
1922
<col>
 
1923
</colgroup>
 
1924
<tbody>
 
1925
<tr>
 
1926
<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td>
 
1927
<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
 
1928
</td>
 
1929
</tr>
 
1930
<tr>
 
1931
<td><p><span class="term"><em class="parameter"><code>button</code></em> :</span></p></td>
 
1932
<td>mouse button that initiated the drag</td>
 
1933
</tr>
 
1934
<tr>
 
1935
<td><p><span class="term"><em class="parameter"><code>root_x</code></em> :</span></p></td>
 
1936
<td>X position where the user clicked to initiate the drag, in root window coordinates</td>
 
1937
</tr>
 
1938
<tr>
 
1939
<td><p><span class="term"><em class="parameter"><code>root_y</code></em> :</span></p></td>
 
1940
<td>Y position where the user clicked to initiate the drag</td>
 
1941
</tr>
 
1942
<tr>
 
1943
<td><p><span class="term"><em class="parameter"><code>timestamp</code></em> :</span></p></td>
 
1944
<td>timestamp from the click event that initiated the drag</td>
 
1945
</tr>
 
1946
</tbody>
 
1947
</table></div>
 
1948
</div>
 
1949
<hr>
 
1950
<div class="refsect2">
 
1951
<a name="gtk-window-set-decorated"></a><h3>gtk_window_set_decorated ()</h3>
 
1952
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_window_set_decorated            (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>,
 
1953
                                                         <em class="parameter"><code><span class="type">gboolean</span> setting</code></em>);</pre>
 
1954
<p>
 
1955
By default, windows are decorated with a title bar, resize
 
1956
controls, etc.  Some <a class="link" href="gtk-x11.html#gtk-X11-arch" title="Understanding the X11 architecture">window
 
1957
managers</a> allow GTK+ to disable these decorations, creating a
 
1958
borderless window. If you set the decorated property to <code class="literal">FALSE</code>
 
1959
using this function, GTK+ will do its best to convince the window
 
1960
manager not to decorate the window. Depending on the system, this
 
1961
function may not have any effect when called on a window that is
 
1962
already visible, so you should call it before calling <code class="function">gtk_window_show()</code>.
 
1963
</p>
 
1964
<p>
 
1965
On Windows, this function always works, since there's no window manager
 
1966
policy involved.
 
1967
</p>
 
1968
<div class="variablelist"><table border="0" class="variablelist">
 
1969
<colgroup>
 
1970
<col align="left" valign="top">
 
1971
<col>
 
1972
</colgroup>
 
1973
<tbody>
 
1974
<tr>
 
1975
<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td>
 
1976
<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
 
1977
</td>
 
1978
</tr>
 
1979
<tr>
 
1980
<td><p><span class="term"><em class="parameter"><code>setting</code></em> :</span></p></td>
 
1981
<td>
 
1982
<code class="literal">TRUE</code> to decorate the window</td>
 
1983
</tr>
 
1984
</tbody>
 
1985
</table></div>
 
1986
</div>
 
1987
<hr>
 
1988
<div class="refsect2">
 
1989
<a name="gtk-window-set-deletable"></a><h3>gtk_window_set_deletable ()</h3>
 
1990
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_window_set_deletable            (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>,
 
1991
                                                         <em class="parameter"><code><span class="type">gboolean</span> setting</code></em>);</pre>
 
1992
<p>
 
1993
By default, windows have a close button in the window frame. Some 
 
1994
<a class="link" href="gtk-x11.html#gtk-X11-arch" title="Understanding the X11 architecture">window managers</a> allow GTK+ to 
 
1995
disable this button. If you set the deletable property to <code class="literal">FALSE</code>
 
1996
using this function, GTK+ will do its best to convince the window
 
1997
manager not to show a close button. Depending on the system, this
 
1998
function may not have any effect when called on a window that is
 
1999
already visible, so you should call it before calling <code class="function">gtk_window_show()</code>.
 
2000
</p>
 
2001
<p>
 
2002
On Windows, this function always works, since there's no window manager
 
2003
policy involved.
 
2004
</p>
 
2005
<div class="variablelist"><table border="0" class="variablelist">
 
2006
<colgroup>
 
2007
<col align="left" valign="top">
 
2008
<col>
 
2009
</colgroup>
 
2010
<tbody>
 
2011
<tr>
 
2012
<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td>
 
2013
<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
 
2014
</td>
 
2015
</tr>
 
2016
<tr>
 
2017
<td><p><span class="term"><em class="parameter"><code>setting</code></em> :</span></p></td>
 
2018
<td>
 
2019
<code class="literal">TRUE</code> to decorate the window as deletable</td>
 
2020
</tr>
 
2021
</tbody>
 
2022
</table></div>
 
2023
<p class="since">Since 2.10</p>
 
2024
</div>
 
2025
<hr>
 
2026
<div class="refsect2">
 
2027
<a name="gtk-window-set-frame-dimensions"></a><h3>gtk_window_set_frame_dimensions ()</h3>
 
2028
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_window_set_frame_dimensions     (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>,
 
2029
                                                         <em class="parameter"><code><span class="type">gint</span> left</code></em>,
 
2030
                                                         <em class="parameter"><code><span class="type">gint</span> top</code></em>,
 
2031
                                                         <em class="parameter"><code><span class="type">gint</span> right</code></em>,
 
2032
                                                         <em class="parameter"><code><span class="type">gint</span> bottom</code></em>);</pre>
 
2033
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
 
2034
<h3 class="title">Warning</h3>
 
2035
<p><code class="literal">gtk_window_set_frame_dimensions</code> has been deprecated since version 2.24 and should not be used in newly-written code. This function will be removed in GTK+ 3</p>
 
2036
</div>
 
2037
<p>
 
2038
(Note: this is a special-purpose function intended for the framebuffer
 
2039
 port; see <a class="link" href="GtkWindow.html#gtk-window-set-has-frame" title="gtk_window_set_has_frame ()"><code class="function">gtk_window_set_has_frame()</code></a>. It will have no effect on the
 
2040
 window border drawn by the window manager, which is the normal
 
2041
 case when using the X Window system.)
 
2042
</p>
 
2043
<p>
 
2044
For windows with frames (see <a class="link" href="GtkWindow.html#gtk-window-set-has-frame" title="gtk_window_set_has_frame ()"><code class="function">gtk_window_set_has_frame()</code></a>) this function
 
2045
can be used to change the size of the frame border.
 
2046
</p>
 
2047
<div class="variablelist"><table border="0" class="variablelist">
 
2048
<colgroup>
 
2049
<col align="left" valign="top">
 
2050
<col>
 
2051
</colgroup>
 
2052
<tbody>
 
2053
<tr>
 
2054
<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td>
 
2055
<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> that has a frame</td>
 
2056
</tr>
 
2057
<tr>
 
2058
<td><p><span class="term"><em class="parameter"><code>left</code></em> :</span></p></td>
 
2059
<td>The width of the left border</td>
 
2060
</tr>
 
2061
<tr>
 
2062
<td><p><span class="term"><em class="parameter"><code>top</code></em> :</span></p></td>
 
2063
<td>The height of the top border</td>
 
2064
</tr>
 
2065
<tr>
 
2066
<td><p><span class="term"><em class="parameter"><code>right</code></em> :</span></p></td>
 
2067
<td>The width of the right border</td>
 
2068
</tr>
 
2069
<tr>
 
2070
<td><p><span class="term"><em class="parameter"><code>bottom</code></em> :</span></p></td>
 
2071
<td>The height of the bottom border</td>
 
2072
</tr>
 
2073
</tbody>
 
2074
</table></div>
 
2075
</div>
 
2076
<hr>
 
2077
<div class="refsect2">
 
2078
<a name="gtk-window-set-has-frame"></a><h3>gtk_window_set_has_frame ()</h3>
 
2079
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_window_set_has_frame            (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>,
 
2080
                                                         <em class="parameter"><code><span class="type">gboolean</span> setting</code></em>);</pre>
 
2081
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
 
2082
<h3 class="title">Warning</h3>
 
2083
<p><code class="literal">gtk_window_set_has_frame</code> has been deprecated since version 2.24 and should not be used in newly-written code. This function will be removed in GTK+ 3</p>
 
2084
</div>
 
2085
<p>
 
2086
(Note: this is a special-purpose function for the framebuffer port,
 
2087
 that causes GTK+ to draw its own window border. For most applications,
 
2088
 you want <a class="link" href="GtkWindow.html#gtk-window-set-decorated" title="gtk_window_set_decorated ()"><code class="function">gtk_window_set_decorated()</code></a> instead, which tells the window
 
2089
 manager whether to draw the window border.)
 
2090
</p>
 
2091
<p>
 
2092
If this function is called on a window with setting of <code class="literal">TRUE</code>, before
 
2093
it is realized or showed, it will have a "frame" window around
 
2094
<em class="parameter"><code>window-&gt;window</code></em>, accessible in <em class="parameter"><code>window-&gt;frame</code></em>. Using the signal 
 
2095
frame_event you can receive all events targeted at the frame.
 
2096
</p>
 
2097
<p>
 
2098
This function is used by the linux-fb port to implement managed
 
2099
windows, but it could conceivably be used by X-programs that
 
2100
want to do their own window decorations.
 
2101
</p>
 
2102
<div class="variablelist"><table border="0" class="variablelist">
 
2103
<colgroup>
 
2104
<col align="left" valign="top">
 
2105
<col>
 
2106
</colgroup>
 
2107
<tbody>
 
2108
<tr>
 
2109
<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td>
 
2110
<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
 
2111
</td>
 
2112
</tr>
 
2113
<tr>
 
2114
<td><p><span class="term"><em class="parameter"><code>setting</code></em> :</span></p></td>
 
2115
<td>a boolean</td>
 
2116
</tr>
 
2117
</tbody>
 
2118
</table></div>
 
2119
</div>
 
2120
<hr>
 
2121
<div class="refsect2">
 
2122
<a name="gtk-window-set-mnemonic-modifier"></a><h3>gtk_window_set_mnemonic_modifier ()</h3>
 
2123
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_window_set_mnemonic_modifier    (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>,
 
2124
                                                         <em class="parameter"><code><a href="../gdk2/gdk2-Windows.html#GdkModifierType"><span class="type">GdkModifierType</span></a> modifier</code></em>);</pre>
 
2125
<p>
 
2126
Sets the mnemonic modifier for this window.
 
2127
</p>
 
2128
<div class="variablelist"><table border="0" class="variablelist">
 
2129
<colgroup>
 
2130
<col align="left" valign="top">
 
2131
<col>
 
2132
</colgroup>
 
2133
<tbody>
 
2134
<tr>
 
2135
<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td>
 
2136
<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
 
2137
</td>
 
2138
</tr>
 
2139
<tr>
 
2140
<td><p><span class="term"><em class="parameter"><code>modifier</code></em> :</span></p></td>
 
2141
<td>the modifier mask used to activate
 
2142
mnemonics on this window.</td>
 
2143
</tr>
 
2144
</tbody>
 
2145
</table></div>
 
2146
</div>
 
2147
<hr>
 
2148
<div class="refsect2">
 
2149
<a name="gtk-window-set-type-hint"></a><h3>gtk_window_set_type_hint ()</h3>
 
2150
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_window_set_type_hint            (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>,
 
2151
                                                         <em class="parameter"><code><a href="../gdk2/gdk2-Windows.html#GdkWindowTypeHint"><span class="type">GdkWindowTypeHint</span></a> hint</code></em>);</pre>
 
2152
<p>
 
2153
By setting the type hint for the window, you allow the window
 
2154
manager to decorate and handle the window in a way which is
 
2155
suitable to the function of the window in your application.
 
2156
</p>
 
2157
<p>
 
2158
This function should be called before the window becomes visible.
 
2159
</p>
 
2160
<p>
 
2161
<a class="link" href="GtkDialog.html#gtk-dialog-new-with-buttons" title="gtk_dialog_new_with_buttons ()"><code class="function">gtk_dialog_new_with_buttons()</code></a> and other convenience functions in GTK+
 
2162
will sometimes call <a class="link" href="GtkWindow.html#gtk-window-set-type-hint" title="gtk_window_set_type_hint ()"><code class="function">gtk_window_set_type_hint()</code></a> on your behalf.
 
2163
</p>
 
2164
<div class="variablelist"><table border="0" class="variablelist">
 
2165
<colgroup>
 
2166
<col align="left" valign="top">
 
2167
<col>
 
2168
</colgroup>
 
2169
<tbody>
 
2170
<tr>
 
2171
<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td>
 
2172
<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
 
2173
</td>
 
2174
</tr>
 
2175
<tr>
 
2176
<td><p><span class="term"><em class="parameter"><code>hint</code></em> :</span></p></td>
 
2177
<td>the window type</td>
 
2178
</tr>
 
2179
</tbody>
 
2180
</table></div>
 
2181
</div>
 
2182
<hr>
 
2183
<div class="refsect2">
 
2184
<a name="gtk-window-set-skip-taskbar-hint"></a><h3>gtk_window_set_skip_taskbar_hint ()</h3>
 
2185
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_window_set_skip_taskbar_hint    (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>,
 
2186
                                                         <em class="parameter"><code><span class="type">gboolean</span> setting</code></em>);</pre>
 
2187
<p>
 
2188
Windows may set a hint asking the desktop environment not to display
 
2189
the window in the task bar. This function sets this hint.
 
2190
</p>
 
2191
<div class="variablelist"><table border="0" class="variablelist">
 
2192
<colgroup>
 
2193
<col align="left" valign="top">
 
2194
<col>
 
2195
</colgroup>
 
2196
<tbody>
 
2197
<tr>
 
2198
<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td>
 
2199
<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
 
2200
</td>
 
2201
</tr>
 
2202
<tr>
 
2203
<td><p><span class="term"><em class="parameter"><code>setting</code></em> :</span></p></td>
 
2204
<td>
 
2205
<code class="literal">TRUE</code> to keep this window from appearing in the task bar</td>
 
2206
</tr>
 
2207
</tbody>
 
2208
</table></div>
 
2209
<p class="since">Since 2.2</p>
 
2210
</div>
 
2211
<hr>
 
2212
<div class="refsect2">
 
2213
<a name="gtk-window-set-skip-pager-hint"></a><h3>gtk_window_set_skip_pager_hint ()</h3>
 
2214
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_window_set_skip_pager_hint      (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>,
 
2215
                                                         <em class="parameter"><code><span class="type">gboolean</span> setting</code></em>);</pre>
 
2216
<p>
 
2217
Windows may set a hint asking the desktop environment not to display
 
2218
the window in the pager. This function sets this hint.
 
2219
(A "pager" is any desktop navigation tool such as a workspace
 
2220
switcher that displays a thumbnail representation of the windows
 
2221
on the screen.)
 
2222
</p>
 
2223
<div class="variablelist"><table border="0" class="variablelist">
 
2224
<colgroup>
 
2225
<col align="left" valign="top">
 
2226
<col>
 
2227
</colgroup>
 
2228
<tbody>
 
2229
<tr>
 
2230
<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td>
 
2231
<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
 
2232
</td>
 
2233
</tr>
 
2234
<tr>
 
2235
<td><p><span class="term"><em class="parameter"><code>setting</code></em> :</span></p></td>
 
2236
<td>
 
2237
<code class="literal">TRUE</code> to keep this window from appearing in the pager</td>
 
2238
</tr>
 
2239
</tbody>
 
2240
</table></div>
 
2241
<p class="since">Since 2.2</p>
 
2242
</div>
 
2243
<hr>
 
2244
<div class="refsect2">
 
2245
<a name="gtk-window-set-urgency-hint"></a><h3>gtk_window_set_urgency_hint ()</h3>
 
2246
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_window_set_urgency_hint         (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>,
 
2247
                                                         <em class="parameter"><code><span class="type">gboolean</span> setting</code></em>);</pre>
 
2248
<p>
 
2249
Windows may set a hint asking the desktop environment to draw
 
2250
the users attention to the window. This function sets this hint.
 
2251
</p>
 
2252
<div class="variablelist"><table border="0" class="variablelist">
 
2253
<colgroup>
 
2254
<col align="left" valign="top">
 
2255
<col>
 
2256
</colgroup>
 
2257
<tbody>
 
2258
<tr>
 
2259
<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td>
 
2260
<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
 
2261
</td>
 
2262
</tr>
 
2263
<tr>
 
2264
<td><p><span class="term"><em class="parameter"><code>setting</code></em> :</span></p></td>
 
2265
<td>
 
2266
<code class="literal">TRUE</code> to mark this window as urgent</td>
 
2267
</tr>
 
2268
</tbody>
 
2269
</table></div>
 
2270
<p class="since">Since 2.8</p>
 
2271
</div>
 
2272
<hr>
 
2273
<div class="refsect2">
 
2274
<a name="gtk-window-set-accept-focus"></a><h3>gtk_window_set_accept_focus ()</h3>
 
2275
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_window_set_accept_focus         (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>,
 
2276
                                                         <em class="parameter"><code><span class="type">gboolean</span> setting</code></em>);</pre>
 
2277
<p>
 
2278
Windows may set a hint asking the desktop environment not to receive
 
2279
the input focus. This function sets this hint.
 
2280
</p>
 
2281
<div class="variablelist"><table border="0" class="variablelist">
 
2282
<colgroup>
 
2283
<col align="left" valign="top">
 
2284
<col>
 
2285
</colgroup>
 
2286
<tbody>
 
2287
<tr>
 
2288
<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td>
 
2289
<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
 
2290
</td>
 
2291
</tr>
 
2292
<tr>
 
2293
<td><p><span class="term"><em class="parameter"><code>setting</code></em> :</span></p></td>
 
2294
<td>
 
2295
<code class="literal">TRUE</code> to let this window receive input focus</td>
 
2296
</tr>
 
2297
</tbody>
 
2298
</table></div>
 
2299
<p class="since">Since 2.4</p>
 
2300
</div>
 
2301
<hr>
 
2302
<div class="refsect2">
 
2303
<a name="gtk-window-set-focus-on-map"></a><h3>gtk_window_set_focus_on_map ()</h3>
 
2304
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_window_set_focus_on_map         (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>,
 
2305
                                                         <em class="parameter"><code><span class="type">gboolean</span> setting</code></em>);</pre>
 
2306
<p>
 
2307
Windows may set a hint asking the desktop environment not to receive
 
2308
the input focus when the window is mapped.  This function sets this
 
2309
hint.
 
2310
</p>
 
2311
<div class="variablelist"><table border="0" class="variablelist">
 
2312
<colgroup>
 
2313
<col align="left" valign="top">
 
2314
<col>
 
2315
</colgroup>
 
2316
<tbody>
 
2317
<tr>
 
2318
<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td>
 
2319
<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
 
2320
</td>
 
2321
</tr>
 
2322
<tr>
 
2323
<td><p><span class="term"><em class="parameter"><code>setting</code></em> :</span></p></td>
 
2324
<td>
 
2325
<code class="literal">TRUE</code> to let this window receive input focus on map</td>
 
2326
</tr>
 
2327
</tbody>
 
2328
</table></div>
 
2329
<p class="since">Since 2.6</p>
 
2330
</div>
 
2331
<hr>
 
2332
<div class="refsect2">
 
2333
<a name="gtk-window-set-startup-id"></a><h3>gtk_window_set_startup_id ()</h3>
 
2334
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_window_set_startup_id           (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>,
 
2335
                                                         <em class="parameter"><code>const <span class="type">gchar</span> *startup_id</code></em>);</pre>
 
2336
<p>
 
2337
Startup notification identifiers are used by desktop environment to 
 
2338
track application startup, to provide user feedback and other 
 
2339
features. This function changes the corresponding property on the
 
2340
underlying GdkWindow. Normally, startup identifier is managed 
 
2341
automatically and you should only use this function in special cases
 
2342
like transferring focus from other processes. You should use this
 
2343
function before calling <a class="link" href="GtkWindow.html#gtk-window-present" title="gtk_window_present ()"><code class="function">gtk_window_present()</code></a> or any equivalent
 
2344
function generating a window map event.
 
2345
</p>
 
2346
<p>
 
2347
This function is only useful on X11, not with other GTK+ targets.
 
2348
</p>
 
2349
<div class="variablelist"><table border="0" class="variablelist">
 
2350
<colgroup>
 
2351
<col align="left" valign="top">
 
2352
<col>
 
2353
</colgroup>
 
2354
<tbody>
 
2355
<tr>
 
2356
<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td>
 
2357
<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
 
2358
</td>
 
2359
</tr>
 
2360
<tr>
 
2361
<td><p><span class="term"><em class="parameter"><code>startup_id</code></em> :</span></p></td>
 
2362
<td>a string with startup-notification identifier</td>
 
2363
</tr>
 
2364
</tbody>
 
2365
</table></div>
 
2366
<p class="since">Since 2.12</p>
 
2367
</div>
 
2368
<hr>
 
2369
<div class="refsect2">
 
2370
<a name="gtk-window-set-role"></a><h3>gtk_window_set_role ()</h3>
 
2371
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_window_set_role                 (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>,
 
2372
                                                         <em class="parameter"><code>const <span class="type">gchar</span> *role</code></em>);</pre>
 
2373
<p>
 
2374
This function is only useful on X11, not with other GTK+ targets.
 
2375
</p>
 
2376
<p>
 
2377
In combination with the window title, the window role allows a
 
2378
<a class="link" href="gtk-x11.html#gtk-X11-arch" title="Understanding the X11 architecture">window manager</a> to identify "the
 
2379
same" window when an application is restarted. So for example you
 
2380
might set the "toolbox" role on your app's toolbox window, so that
 
2381
when the user restarts their session, the window manager can put
 
2382
the toolbox back in the same place.
 
2383
</p>
 
2384
<p>
 
2385
If a window already has a unique title, you don't need to set the
 
2386
role, since the WM can use the title to identify the window when
 
2387
restoring the session.
 
2388
</p>
 
2389
<div class="variablelist"><table border="0" class="variablelist">
 
2390
<colgroup>
 
2391
<col align="left" valign="top">
 
2392
<col>
 
2393
</colgroup>
 
2394
<tbody>
 
2395
<tr>
 
2396
<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td>
 
2397
<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
 
2398
</td>
 
2399
</tr>
 
2400
<tr>
 
2401
<td><p><span class="term"><em class="parameter"><code>role</code></em> :</span></p></td>
 
2402
<td>unique identifier for the window to be used when restoring a session</td>
 
2403
</tr>
 
2404
</tbody>
 
2405
</table></div>
 
2406
</div>
 
2407
<hr>
 
2408
<div class="refsect2">
 
2409
<a name="gtk-window-get-decorated"></a><h3>gtk_window_get_decorated ()</h3>
 
2410
<pre class="programlisting"><span class="returnvalue">gboolean</span>            gtk_window_get_decorated            (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>);</pre>
 
2411
<p>
 
2412
Returns whether the window has been set to have decorations
 
2413
such as a title bar via <a class="link" href="GtkWindow.html#gtk-window-set-decorated" title="gtk_window_set_decorated ()"><code class="function">gtk_window_set_decorated()</code></a>.
 
2414
</p>
 
2415
<div class="variablelist"><table border="0" class="variablelist">
 
2416
<colgroup>
 
2417
<col align="left" valign="top">
 
2418
<col>
 
2419
</colgroup>
 
2420
<tbody>
 
2421
<tr>
 
2422
<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td>
 
2423
<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
 
2424
</td>
 
2425
</tr>
 
2426
<tr>
 
2427
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
2428
<td>
 
2429
<code class="literal">TRUE</code> if the window has been set to have decorations</td>
 
2430
</tr>
 
2431
</tbody>
 
2432
</table></div>
 
2433
</div>
 
2434
<hr>
 
2435
<div class="refsect2">
 
2436
<a name="gtk-window-get-deletable"></a><h3>gtk_window_get_deletable ()</h3>
 
2437
<pre class="programlisting"><span class="returnvalue">gboolean</span>            gtk_window_get_deletable            (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>);</pre>
 
2438
<p>
 
2439
Returns whether the window has been set to have a close button
 
2440
via <a class="link" href="GtkWindow.html#gtk-window-set-deletable" title="gtk_window_set_deletable ()"><code class="function">gtk_window_set_deletable()</code></a>.
 
2441
</p>
 
2442
<div class="variablelist"><table border="0" class="variablelist">
 
2443
<colgroup>
 
2444
<col align="left" valign="top">
 
2445
<col>
 
2446
</colgroup>
 
2447
<tbody>
 
2448
<tr>
 
2449
<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td>
 
2450
<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
 
2451
</td>
 
2452
</tr>
 
2453
<tr>
 
2454
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
2455
<td>
 
2456
<code class="literal">TRUE</code> if the window has been set to have a close button</td>
 
2457
</tr>
 
2458
</tbody>
 
2459
</table></div>
 
2460
<p class="since">Since 2.10</p>
 
2461
</div>
 
2462
<hr>
 
2463
<div class="refsect2">
 
2464
<a name="gtk-window-get-default-icon-list"></a><h3>gtk_window_get_default_icon_list ()</h3>
 
2465
<pre class="programlisting"><span class="returnvalue">GList</span> *             gtk_window_get_default_icon_list    (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
 
2466
<p>
 
2467
Gets the value set by <a class="link" href="GtkWindow.html#gtk-window-set-default-icon-list" title="gtk_window_set_default_icon_list ()"><code class="function">gtk_window_set_default_icon_list()</code></a>.
 
2468
The list is a copy and should be freed with <code class="function">g_list_free()</code>,
 
2469
but the pixbufs in the list have not had their reference count
 
2470
incremented.
 
2471
</p>
 
2472
<div class="variablelist"><table border="0" class="variablelist">
 
2473
<colgroup>
 
2474
<col align="left" valign="top">
 
2475
<col>
 
2476
</colgroup>
 
2477
<tbody><tr>
 
2478
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
2479
<td>copy of default icon list. <span class="annotation">[<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> GdkPixbuf][<acronym title="Free data container after the code is done."><span class="acronym">transfer container</span></acronym>]</span>
 
2480
</td>
 
2481
</tr></tbody>
 
2482
</table></div>
 
2483
</div>
 
2484
<hr>
 
2485
<div class="refsect2">
 
2486
<a name="gtk-window-get-default-icon-name"></a><h3>gtk_window_get_default_icon_name ()</h3>
 
2487
<pre class="programlisting">const <span class="returnvalue">gchar</span> *       gtk_window_get_default_icon_name    (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
 
2488
<p>
 
2489
Returns the fallback icon name for windows that has been set
 
2490
with <a class="link" href="GtkWindow.html#gtk-window-set-default-icon-name" title="gtk_window_set_default_icon_name ()"><code class="function">gtk_window_set_default_icon_name()</code></a>. The returned
 
2491
string is owned by GTK+ and should not be modified. It
 
2492
is only valid until the next call to
 
2493
<a class="link" href="GtkWindow.html#gtk-window-set-default-icon-name" title="gtk_window_set_default_icon_name ()"><code class="function">gtk_window_set_default_icon_name()</code></a>.
 
2494
</p>
 
2495
<div class="variablelist"><table border="0" class="variablelist">
 
2496
<colgroup>
 
2497
<col align="left" valign="top">
 
2498
<col>
 
2499
</colgroup>
 
2500
<tbody><tr>
 
2501
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
2502
<td>the fallback icon name for windows</td>
 
2503
</tr></tbody>
 
2504
</table></div>
 
2505
<p class="since">Since 2.16</p>
 
2506
</div>
 
2507
<hr>
 
2508
<div class="refsect2">
 
2509
<a name="gtk-window-get-default-size"></a><h3>gtk_window_get_default_size ()</h3>
 
2510
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_window_get_default_size         (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>,
 
2511
                                                         <em class="parameter"><code><span class="type">gint</span> *width</code></em>,
 
2512
                                                         <em class="parameter"><code><span class="type">gint</span> *height</code></em>);</pre>
 
2513
<p>
 
2514
Gets the default size of the window. A value of -1 for the width or
 
2515
height indicates that a default size has not been explicitly set
 
2516
for that dimension, so the "natural" size of the window will be
 
2517
used.
 
2518
</p>
 
2519
<div class="variablelist"><table border="0" class="variablelist">
 
2520
<colgroup>
 
2521
<col align="left" valign="top">
 
2522
<col>
 
2523
</colgroup>
 
2524
<tbody>
 
2525
<tr>
 
2526
<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td>
 
2527
<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
 
2528
</td>
 
2529
</tr>
 
2530
<tr>
 
2531
<td><p><span class="term"><em class="parameter"><code>width</code></em> :</span></p></td>
 
2532
<td>location to store the default width, or <a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
 
2533
</td>
 
2534
</tr>
 
2535
<tr>
 
2536
<td><p><span class="term"><em class="parameter"><code>height</code></em> :</span></p></td>
 
2537
<td>location to store the default height, or <a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
 
2538
</td>
 
2539
</tr>
 
2540
</tbody>
 
2541
</table></div>
 
2542
</div>
 
2543
<hr>
 
2544
<div class="refsect2">
 
2545
<a name="gtk-window-get-destroy-with-parent"></a><h3>gtk_window_get_destroy_with_parent ()</h3>
 
2546
<pre class="programlisting"><span class="returnvalue">gboolean</span>            gtk_window_get_destroy_with_parent  (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>);</pre>
 
2547
<p>
 
2548
Returns whether the window will be destroyed with its transient parent. See
 
2549
<a class="link" href="GtkWindow.html#gtk-window-set-destroy-with-parent" title="gtk_window_set_destroy_with_parent ()"><code class="function">gtk_window_set_destroy_with_parent()</code></a>.
 
2550
</p>
 
2551
<div class="variablelist"><table border="0" class="variablelist">
 
2552
<colgroup>
 
2553
<col align="left" valign="top">
 
2554
<col>
 
2555
</colgroup>
 
2556
<tbody>
 
2557
<tr>
 
2558
<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td>
 
2559
<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
 
2560
</td>
 
2561
</tr>
 
2562
<tr>
 
2563
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
2564
<td>
 
2565
<code class="literal">TRUE</code> if the window will be destroyed with its transient parent.</td>
 
2566
</tr>
 
2567
</tbody>
 
2568
</table></div>
 
2569
</div>
 
2570
<hr>
 
2571
<div class="refsect2">
 
2572
<a name="gtk-window-get-frame-dimensions"></a><h3>gtk_window_get_frame_dimensions ()</h3>
 
2573
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_window_get_frame_dimensions     (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>,
 
2574
                                                         <em class="parameter"><code><span class="type">gint</span> *left</code></em>,
 
2575
                                                         <em class="parameter"><code><span class="type">gint</span> *top</code></em>,
 
2576
                                                         <em class="parameter"><code><span class="type">gint</span> *right</code></em>,
 
2577
                                                         <em class="parameter"><code><span class="type">gint</span> *bottom</code></em>);</pre>
 
2578
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
 
2579
<h3 class="title">Warning</h3>
 
2580
<p><code class="literal">gtk_window_get_frame_dimensions</code> has been deprecated since version 2.24 and should not be used in newly-written code. This function will be removed in GTK+ 3</p>
 
2581
</div>
 
2582
<p>
 
2583
(Note: this is a special-purpose function intended for the
 
2584
 framebuffer port; see <a class="link" href="GtkWindow.html#gtk-window-set-has-frame" title="gtk_window_set_has_frame ()"><code class="function">gtk_window_set_has_frame()</code></a>. It will not
 
2585
 return the size of the window border drawn by the <a class="link" href="gtk-x11.html#gtk-X11-arch" title="Understanding the X11 architecture">window manager</a>, which is the normal
 
2586
 case when using a windowing system.  See
 
2587
 <a href="../gdk2/gdk2-Windows.html#gdk-window-get-frame-extents"><code class="function">gdk_window_get_frame_extents()</code></a> to get the standard window border
 
2588
 extents.)
 
2589
</p>
 
2590
<p>
 
2591
Retrieves the dimensions of the frame window for this toplevel.
 
2592
See <a class="link" href="GtkWindow.html#gtk-window-set-has-frame" title="gtk_window_set_has_frame ()"><code class="function">gtk_window_set_has_frame()</code></a>, <a class="link" href="GtkWindow.html#gtk-window-set-frame-dimensions" title="gtk_window_set_frame_dimensions ()"><code class="function">gtk_window_set_frame_dimensions()</code></a>.
 
2593
</p>
 
2594
<div class="variablelist"><table border="0" class="variablelist">
 
2595
<colgroup>
 
2596
<col align="left" valign="top">
 
2597
<col>
 
2598
</colgroup>
 
2599
<tbody>
 
2600
<tr>
 
2601
<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td>
 
2602
<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
 
2603
</td>
 
2604
</tr>
 
2605
<tr>
 
2606
<td><p><span class="term"><em class="parameter"><code>left</code></em> :</span></p></td>
 
2607
<td>location to store the width of the frame at the left, or <a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
 
2608
</td>
 
2609
</tr>
 
2610
<tr>
 
2611
<td><p><span class="term"><em class="parameter"><code>top</code></em> :</span></p></td>
 
2612
<td>location to store the height of the frame at the top, or <a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
 
2613
</td>
 
2614
</tr>
 
2615
<tr>
 
2616
<td><p><span class="term"><em class="parameter"><code>right</code></em> :</span></p></td>
 
2617
<td>location to store the width of the frame at the returns, or <a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
 
2618
</td>
 
2619
</tr>
 
2620
<tr>
 
2621
<td><p><span class="term"><em class="parameter"><code>bottom</code></em> :</span></p></td>
 
2622
<td>location to store the height of the frame at the bottom, or <a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
 
2623
</td>
 
2624
</tr>
 
2625
</tbody>
 
2626
</table></div>
 
2627
</div>
 
2628
<hr>
 
2629
<div class="refsect2">
 
2630
<a name="gtk-window-get-has-frame"></a><h3>gtk_window_get_has_frame ()</h3>
 
2631
<pre class="programlisting"><span class="returnvalue">gboolean</span>            gtk_window_get_has_frame            (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>);</pre>
 
2632
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
 
2633
<h3 class="title">Warning</h3>
 
2634
<p><code class="literal">gtk_window_get_has_frame</code> has been deprecated since version 2.24 and should not be used in newly-written code. This function will be removed in GTK+ 3</p>
 
2635
</div>
 
2636
<p>
 
2637
Accessor for whether the window has a frame window exterior to
 
2638
<em class="parameter"><code>window-&gt;window</code></em>. Gets the value set by <a class="link" href="GtkWindow.html#gtk-window-set-has-frame" title="gtk_window_set_has_frame ()"><code class="function">gtk_window_set_has_frame()</code></a>.
 
2639
</p>
 
2640
<div class="variablelist"><table border="0" class="variablelist">
 
2641
<colgroup>
 
2642
<col align="left" valign="top">
 
2643
<col>
 
2644
</colgroup>
 
2645
<tbody>
 
2646
<tr>
 
2647
<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td>
 
2648
<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
 
2649
</td>
 
2650
</tr>
 
2651
<tr>
 
2652
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
2653
<td>
 
2654
<code class="literal">TRUE</code> if a frame has been added to the window
 
2655
via <a class="link" href="GtkWindow.html#gtk-window-set-has-frame" title="gtk_window_set_has_frame ()"><code class="function">gtk_window_set_has_frame()</code></a>.</td>
 
2656
</tr>
 
2657
</tbody>
 
2658
</table></div>
 
2659
</div>
 
2660
<hr>
 
2661
<div class="refsect2">
 
2662
<a name="gtk-window-get-icon"></a><h3>gtk_window_get_icon ()</h3>
 
2663
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="returnvalue">GdkPixbuf</span></a> *         gtk_window_get_icon                 (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>);</pre>
 
2664
<p>
 
2665
Gets the value set by <a class="link" href="GtkWindow.html#gtk-window-set-icon" title="gtk_window_set_icon ()"><code class="function">gtk_window_set_icon()</code></a> (or if you've
 
2666
called <a class="link" href="GtkWindow.html#gtk-window-set-icon-list" title="gtk_window_set_icon_list ()"><code class="function">gtk_window_set_icon_list()</code></a>, gets the first icon in
 
2667
the icon list).
 
2668
</p>
 
2669
<div class="variablelist"><table border="0" class="variablelist">
 
2670
<colgroup>
 
2671
<col align="left" valign="top">
 
2672
<col>
 
2673
</colgroup>
 
2674
<tbody>
 
2675
<tr>
 
2676
<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td>
 
2677
<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
 
2678
</td>
 
2679
</tr>
 
2680
<tr>
 
2681
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
2682
<td>icon for window. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
 
2683
</td>
 
2684
</tr>
 
2685
</tbody>
 
2686
</table></div>
 
2687
</div>
 
2688
<hr>
 
2689
<div class="refsect2">
 
2690
<a name="gtk-window-get-icon-list"></a><h3>gtk_window_get_icon_list ()</h3>
 
2691
<pre class="programlisting"><span class="returnvalue">GList</span> *             gtk_window_get_icon_list            (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>);</pre>
 
2692
<p>
 
2693
Retrieves the list of icons set by <a class="link" href="GtkWindow.html#gtk-window-set-icon-list" title="gtk_window_set_icon_list ()"><code class="function">gtk_window_set_icon_list()</code></a>.
 
2694
The list is copied, but the reference count on each
 
2695
member won't be incremented.
 
2696
</p>
 
2697
<div class="variablelist"><table border="0" class="variablelist">
 
2698
<colgroup>
 
2699
<col align="left" valign="top">
 
2700
<col>
 
2701
</colgroup>
 
2702
<tbody>
 
2703
<tr>
 
2704
<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td>
 
2705
<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
 
2706
</td>
 
2707
</tr>
 
2708
<tr>
 
2709
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
2710
<td>copy of window's icon list. <span class="annotation">[<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> GdkPixbuf][<acronym title="Free data container after the code is done."><span class="acronym">transfer container</span></acronym>]</span>
 
2711
</td>
 
2712
</tr>
 
2713
</tbody>
 
2714
</table></div>
 
2715
</div>
 
2716
<hr>
 
2717
<div class="refsect2">
 
2718
<a name="gtk-window-get-icon-name"></a><h3>gtk_window_get_icon_name ()</h3>
 
2719
<pre class="programlisting">const <span class="returnvalue">gchar</span> *       gtk_window_get_icon_name            (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>);</pre>
 
2720
<p>
 
2721
Returns the name of the themed icon for the window,
 
2722
see <a class="link" href="GtkWindow.html#gtk-window-set-icon-name" title="gtk_window_set_icon_name ()"><code class="function">gtk_window_set_icon_name()</code></a>.
 
2723
</p>
 
2724
<div class="variablelist"><table border="0" class="variablelist">
 
2725
<colgroup>
 
2726
<col align="left" valign="top">
 
2727
<col>
 
2728
</colgroup>
 
2729
<tbody>
 
2730
<tr>
 
2731
<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td>
 
2732
<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
 
2733
</td>
 
2734
</tr>
 
2735
<tr>
 
2736
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
2737
<td>the icon name or <a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a> if the window has
 
2738
no themed icon</td>
 
2739
</tr>
 
2740
</tbody>
 
2741
</table></div>
 
2742
<p class="since">Since 2.6</p>
 
2743
</div>
 
2744
<hr>
 
2745
<div class="refsect2">
 
2746
<a name="gtk-window-get-mnemonic-modifier"></a><h3>gtk_window_get_mnemonic_modifier ()</h3>
 
2747
<pre class="programlisting"><a href="../gdk2/gdk2-Windows.html#GdkModifierType"><span class="returnvalue">GdkModifierType</span></a>     gtk_window_get_mnemonic_modifier    (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>);</pre>
 
2748
<p>
 
2749
Returns the mnemonic modifier for this window. See
 
2750
<a class="link" href="GtkWindow.html#gtk-window-set-mnemonic-modifier" title="gtk_window_set_mnemonic_modifier ()"><code class="function">gtk_window_set_mnemonic_modifier()</code></a>.
 
2751
</p>
 
2752
<div class="variablelist"><table border="0" class="variablelist">
 
2753
<colgroup>
 
2754
<col align="left" valign="top">
 
2755
<col>
 
2756
</colgroup>
 
2757
<tbody>
 
2758
<tr>
 
2759
<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td>
 
2760
<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
 
2761
</td>
 
2762
</tr>
 
2763
<tr>
 
2764
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
2765
<td>the modifier mask used to activate
 
2766
mnemonics on this window.</td>
 
2767
</tr>
 
2768
</tbody>
 
2769
</table></div>
 
2770
</div>
 
2771
<hr>
 
2772
<div class="refsect2">
 
2773
<a name="gtk-window-get-modal"></a><h3>gtk_window_get_modal ()</h3>
 
2774
<pre class="programlisting"><span class="returnvalue">gboolean</span>            gtk_window_get_modal                (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>);</pre>
 
2775
<p>
 
2776
Returns whether the window is modal. See <a class="link" href="GtkWindow.html#gtk-window-set-modal" title="gtk_window_set_modal ()"><code class="function">gtk_window_set_modal()</code></a>.
 
2777
</p>
 
2778
<div class="variablelist"><table border="0" class="variablelist">
 
2779
<colgroup>
 
2780
<col align="left" valign="top">
 
2781
<col>
 
2782
</colgroup>
 
2783
<tbody>
 
2784
<tr>
 
2785
<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td>
 
2786
<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
 
2787
</td>
 
2788
</tr>
 
2789
<tr>
 
2790
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
2791
<td>
 
2792
<code class="literal">TRUE</code> if the window is set to be modal and
 
2793
establishes a grab when shown</td>
 
2794
</tr>
 
2795
</tbody>
 
2796
</table></div>
 
2797
</div>
 
2798
<hr>
 
2799
<div class="refsect2">
 
2800
<a name="gtk-window-get-position"></a><h3>gtk_window_get_position ()</h3>
 
2801
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_window_get_position             (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>,
 
2802
                                                         <em class="parameter"><code><span class="type">gint</span> *root_x</code></em>,
 
2803
                                                         <em class="parameter"><code><span class="type">gint</span> *root_y</code></em>);</pre>
 
2804
<p>
 
2805
This function returns the position you need to pass to
 
2806
<a class="link" href="GtkWindow.html#gtk-window-move" title="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
 
2807
means that the meaning of the returned value varies with window
 
2808
gravity. See <a class="link" href="GtkWindow.html#gtk-window-move" title="gtk_window_move ()"><code class="function">gtk_window_move()</code></a> for more details.
 
2809
</p>
 
2810
<p>
 
2811
If you haven't changed the window gravity, its gravity will be
 
2812
<a href="../gdk2/gdk2-Windows.html#GDK-GRAVITY-NORTH-WEST:CAPS"><span class="type">GDK_GRAVITY_NORTH_WEST</span></a>. This means that <a class="link" href="GtkWindow.html#gtk-window-get-position" title="gtk_window_get_position ()"><code class="function">gtk_window_get_position()</code></a>
 
2813
gets the position of the top-left corner of the window manager
 
2814
frame for the window. <a class="link" href="GtkWindow.html#gtk-window-move" title="gtk_window_move ()"><code class="function">gtk_window_move()</code></a> sets the position of this
 
2815
same top-left corner.
 
2816
</p>
 
2817
<p>
 
2818
<a class="link" href="GtkWindow.html#gtk-window-get-position" title="gtk_window_get_position ()"><code class="function">gtk_window_get_position()</code></a> is not 100% reliable because the X Window System
 
2819
does not specify a way to obtain the geometry of the
 
2820
decorations placed on a window by the window manager.
 
2821
Thus GTK+ is using a "best guess" that works with most
 
2822
window managers.
 
2823
</p>
 
2824
<p>
 
2825
Moreover, nearly all window managers are historically broken with
 
2826
respect to their handling of window gravity. So moving a window to
 
2827
its current position as returned by <a class="link" href="GtkWindow.html#gtk-window-get-position" title="gtk_window_get_position ()"><code class="function">gtk_window_get_position()</code></a> tends
 
2828
to result in moving the window slightly. Window managers are
 
2829
slowly getting better over time.
 
2830
</p>
 
2831
<p>
 
2832
If a window has gravity <a href="../gdk2/gdk2-Windows.html#GDK-GRAVITY-STATIC:CAPS"><span class="type">GDK_GRAVITY_STATIC</span></a> the window manager
 
2833
frame is not relevant, and thus <a class="link" href="GtkWindow.html#gtk-window-get-position" title="gtk_window_get_position ()"><code class="function">gtk_window_get_position()</code></a> will
 
2834
always produce accurate results. However you can't use static
 
2835
gravity to do things like place a window in a corner of the screen,
 
2836
because static gravity ignores the window manager decorations.
 
2837
</p>
 
2838
<p>
 
2839
If you are saving and restoring your application's window
 
2840
positions, you should know that it's impossible for applications to
 
2841
do this without getting it somewhat wrong because applications do
 
2842
not have sufficient knowledge of window manager state. The Correct
 
2843
Mechanism is to support the session management protocol (see the
 
2844
"GnomeClient" object in the GNOME libraries for example) and allow
 
2845
the window manager to save your window sizes and positions.
 
2846
</p>
 
2847
<div class="variablelist"><table border="0" class="variablelist">
 
2848
<colgroup>
 
2849
<col align="left" valign="top">
 
2850
<col>
 
2851
</colgroup>
 
2852
<tbody>
 
2853
<tr>
 
2854
<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td>
 
2855
<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
 
2856
</td>
 
2857
</tr>
 
2858
<tr>
 
2859
<td><p><span class="term"><em class="parameter"><code>root_x</code></em> :</span></p></td>
 
2860
<td>return location for X coordinate of gravity-determined reference point. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
 
2861
</td>
 
2862
</tr>
 
2863
<tr>
 
2864
<td><p><span class="term"><em class="parameter"><code>root_y</code></em> :</span></p></td>
 
2865
<td>return location for Y coordinate of gravity-determined reference point. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
 
2866
</td>
 
2867
</tr>
 
2868
</tbody>
 
2869
</table></div>
 
2870
</div>
 
2871
<hr>
 
2872
<div class="refsect2">
 
2873
<a name="gtk-window-get-role"></a><h3>gtk_window_get_role ()</h3>
 
2874
<pre class="programlisting">const <span class="returnvalue">gchar</span> *       gtk_window_get_role                 (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>);</pre>
 
2875
<p>
 
2876
Returns the role of the window. See <a class="link" href="GtkWindow.html#gtk-window-set-role" title="gtk_window_set_role ()"><code class="function">gtk_window_set_role()</code></a> for
 
2877
further explanation.
 
2878
</p>
 
2879
<div class="variablelist"><table border="0" class="variablelist">
 
2880
<colgroup>
 
2881
<col align="left" valign="top">
 
2882
<col>
 
2883
</colgroup>
 
2884
<tbody>
 
2885
<tr>
 
2886
<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td>
 
2887
<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
 
2888
</td>
 
2889
</tr>
 
2890
<tr>
 
2891
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
2892
<td>the role of the window if set, or <a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a>. The
 
2893
returned is owned by the widget and must not be modified
 
2894
or freed.</td>
 
2895
</tr>
 
2896
</tbody>
 
2897
</table></div>
 
2898
</div>
 
2899
<hr>
 
2900
<div class="refsect2">
 
2901
<a name="gtk-window-get-size"></a><h3>gtk_window_get_size ()</h3>
 
2902
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_window_get_size                 (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>,
 
2903
                                                         <em class="parameter"><code><span class="type">gint</span> *width</code></em>,
 
2904
                                                         <em class="parameter"><code><span class="type">gint</span> *height</code></em>);</pre>
 
2905
<p>
 
2906
Obtains the current size of <em class="parameter"><code>window</code></em>. If <em class="parameter"><code>window</code></em> is not onscreen,
 
2907
it returns the size GTK+ will suggest to the <a class="link" href="gtk-x11.html#gtk-X11-arch" title="Understanding the X11 architecture">window manager</a> for the initial window
 
2908
size (but this is not reliably the same as the size the window
 
2909
manager will actually select). The size obtained by
 
2910
<a class="link" href="GtkWindow.html#gtk-window-get-size" title="gtk_window_get_size ()"><code class="function">gtk_window_get_size()</code></a> is the last size received in a
 
2911
<a href="../gdk2/gdk2-Event-Structures.html#GdkEventConfigure"><span class="type">GdkEventConfigure</span></a>, that is, GTK+ uses its locally-stored size,
 
2912
rather than querying the X server for the size. As a result, if you
 
2913
call <a class="link" href="GtkWindow.html#gtk-window-resize" title="gtk_window_resize ()"><code class="function">gtk_window_resize()</code></a> then immediately call
 
2914
<a class="link" href="GtkWindow.html#gtk-window-get-size" title="gtk_window_get_size ()"><code class="function">gtk_window_get_size()</code></a>, the size won't have taken effect yet. After
 
2915
the window manager processes the resize request, GTK+ receives
 
2916
notification that the size has changed via a configure event, and
 
2917
the size of the window gets updated.
 
2918
</p>
 
2919
<p>
 
2920
Note 1: Nearly any use of this function creates a race condition,
 
2921
because the size of the window may change between the time that you
 
2922
get the size and the time that you perform some action assuming
 
2923
that size is the current size. To avoid race conditions, connect to
 
2924
"configure-event" on the window and adjust your size-dependent
 
2925
state to match the size delivered in the <a href="../gdk2/gdk2-Event-Structures.html#GdkEventConfigure"><span class="type">GdkEventConfigure</span></a>.
 
2926
</p>
 
2927
<p>
 
2928
Note 2: The returned size does <span class="emphasis"><em>not</em></span> include the
 
2929
size of the window manager decorations (aka the window frame or
 
2930
border). Those are not drawn by GTK+ and GTK+ has no reliable
 
2931
method of determining their size.
 
2932
</p>
 
2933
<p>
 
2934
Note 3: If you are getting a window size in order to position
 
2935
the window onscreen, there may be a better way. The preferred
 
2936
way is to simply set the window's semantic type with
 
2937
<a class="link" href="GtkWindow.html#gtk-window-set-type-hint" title="gtk_window_set_type_hint ()"><code class="function">gtk_window_set_type_hint()</code></a>, which allows the window manager to
 
2938
e.g. center dialogs. Also, if you set the transient parent of
 
2939
dialogs with <a class="link" href="GtkWindow.html#gtk-window-set-transient-for" title="gtk_window_set_transient_for ()"><code class="function">gtk_window_set_transient_for()</code></a> window managers
 
2940
will often center the dialog over its parent window. It's
 
2941
much preferred to let the window manager handle these
 
2942
things rather than doing it yourself, because all apps will
 
2943
behave consistently and according to user prefs if the window
 
2944
manager handles it. Also, the window manager can take the size
 
2945
of the window decorations/border into account, while your
 
2946
application cannot.
 
2947
</p>
 
2948
<p>
 
2949
In any case, if you insist on application-specified window
 
2950
positioning, there's <span class="emphasis"><em>still</em></span> a better way than
 
2951
doing it yourself - <a class="link" href="GtkWindow.html#gtk-window-set-position" title="gtk_window_set_position ()"><code class="function">gtk_window_set_position()</code></a> will frequently
 
2952
handle the details for you.
 
2953
</p>
 
2954
<div class="variablelist"><table border="0" class="variablelist">
 
2955
<colgroup>
 
2956
<col align="left" valign="top">
 
2957
<col>
 
2958
</colgroup>
 
2959
<tbody>
 
2960
<tr>
 
2961
<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td>
 
2962
<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
 
2963
</td>
 
2964
</tr>
 
2965
<tr>
 
2966
<td><p><span class="term"><em class="parameter"><code>width</code></em> :</span></p></td>
 
2967
<td>return location for width, or <a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
 
2968
</td>
 
2969
</tr>
 
2970
<tr>
 
2971
<td><p><span class="term"><em class="parameter"><code>height</code></em> :</span></p></td>
 
2972
<td>return location for height, or <a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
 
2973
</td>
 
2974
</tr>
 
2975
</tbody>
 
2976
</table></div>
 
2977
</div>
 
2978
<hr>
 
2979
<div class="refsect2">
 
2980
<a name="gtk-window-get-title"></a><h3>gtk_window_get_title ()</h3>
 
2981
<pre class="programlisting">const <span class="returnvalue">gchar</span> *       gtk_window_get_title                (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>);</pre>
 
2982
<p>
 
2983
Retrieves the title of the window. See <a class="link" href="GtkWindow.html#gtk-window-set-title" title="gtk_window_set_title ()"><code class="function">gtk_window_set_title()</code></a>.
 
2984
</p>
 
2985
<div class="variablelist"><table border="0" class="variablelist">
 
2986
<colgroup>
 
2987
<col align="left" valign="top">
 
2988
<col>
 
2989
</colgroup>
 
2990
<tbody>
 
2991
<tr>
 
2992
<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td>
 
2993
<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
 
2994
</td>
 
2995
</tr>
 
2996
<tr>
 
2997
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
2998
<td>the title of the window, or <a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a> if none has
 
2999
been set explicitely. The returned string is owned by the widget
 
3000
and must not be modified or freed.</td>
 
3001
</tr>
 
3002
</tbody>
 
3003
</table></div>
 
3004
</div>
 
3005
<hr>
 
3006
<div class="refsect2">
 
3007
<a name="gtk-window-get-transient-for"></a><h3>gtk_window_get_transient_for ()</h3>
 
3008
<pre class="programlisting"><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="returnvalue">GtkWindow</span></a> *         gtk_window_get_transient_for        (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>);</pre>
 
3009
<p>
 
3010
Fetches the transient parent for this window. See
 
3011
<a class="link" href="GtkWindow.html#gtk-window-set-transient-for" title="gtk_window_set_transient_for ()"><code class="function">gtk_window_set_transient_for()</code></a>.
 
3012
</p>
 
3013
<div class="variablelist"><table border="0" class="variablelist">
 
3014
<colgroup>
 
3015
<col align="left" valign="top">
 
3016
<col>
 
3017
</colgroup>
 
3018
<tbody>
 
3019
<tr>
 
3020
<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td>
 
3021
<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
 
3022
</td>
 
3023
</tr>
 
3024
<tr>
 
3025
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
3026
<td>the transient parent for this window, or <a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a>
 
3027
if no transient parent has been set. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
 
3028
</td>
 
3029
</tr>
 
3030
</tbody>
 
3031
</table></div>
 
3032
</div>
 
3033
<hr>
 
3034
<div class="refsect2">
 
3035
<a name="gtk-window-get-type-hint"></a><h3>gtk_window_get_type_hint ()</h3>
 
3036
<pre class="programlisting"><a href="../gdk2/gdk2-Windows.html#GdkWindowTypeHint"><span class="returnvalue">GdkWindowTypeHint</span></a>   gtk_window_get_type_hint            (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>);</pre>
 
3037
<p>
 
3038
Gets the type hint for this window. See <a class="link" href="GtkWindow.html#gtk-window-set-type-hint" title="gtk_window_set_type_hint ()"><code class="function">gtk_window_set_type_hint()</code></a>.
 
3039
</p>
 
3040
<div class="variablelist"><table border="0" class="variablelist">
 
3041
<colgroup>
 
3042
<col align="left" valign="top">
 
3043
<col>
 
3044
</colgroup>
 
3045
<tbody>
 
3046
<tr>
 
3047
<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td>
 
3048
<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
 
3049
</td>
 
3050
</tr>
 
3051
<tr>
 
3052
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
3053
<td>the type hint for <em class="parameter"><code>window</code></em>.</td>
 
3054
</tr>
 
3055
</tbody>
 
3056
</table></div>
 
3057
</div>
 
3058
<hr>
 
3059
<div class="refsect2">
 
3060
<a name="gtk-window-get-skip-taskbar-hint"></a><h3>gtk_window_get_skip_taskbar_hint ()</h3>
 
3061
<pre class="programlisting"><span class="returnvalue">gboolean</span>            gtk_window_get_skip_taskbar_hint    (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>);</pre>
 
3062
<p>
 
3063
Gets the value set by <a class="link" href="GtkWindow.html#gtk-window-set-skip-taskbar-hint" title="gtk_window_set_skip_taskbar_hint ()"><code class="function">gtk_window_set_skip_taskbar_hint()</code></a>
 
3064
</p>
 
3065
<div class="variablelist"><table border="0" class="variablelist">
 
3066
<colgroup>
 
3067
<col align="left" valign="top">
 
3068
<col>
 
3069
</colgroup>
 
3070
<tbody>
 
3071
<tr>
 
3072
<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td>
 
3073
<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
 
3074
</td>
 
3075
</tr>
 
3076
<tr>
 
3077
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
3078
<td>
 
3079
<code class="literal">TRUE</code> if window shouldn't be in taskbar</td>
 
3080
</tr>
 
3081
</tbody>
 
3082
</table></div>
 
3083
<p class="since">Since 2.2</p>
 
3084
</div>
 
3085
<hr>
 
3086
<div class="refsect2">
 
3087
<a name="gtk-window-get-skip-pager-hint"></a><h3>gtk_window_get_skip_pager_hint ()</h3>
 
3088
<pre class="programlisting"><span class="returnvalue">gboolean</span>            gtk_window_get_skip_pager_hint      (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>);</pre>
 
3089
<p>
 
3090
Gets the value set by <a class="link" href="GtkWindow.html#gtk-window-set-skip-pager-hint" title="gtk_window_set_skip_pager_hint ()"><code class="function">gtk_window_set_skip_pager_hint()</code></a>.
 
3091
</p>
 
3092
<div class="variablelist"><table border="0" class="variablelist">
 
3093
<colgroup>
 
3094
<col align="left" valign="top">
 
3095
<col>
 
3096
</colgroup>
 
3097
<tbody>
 
3098
<tr>
 
3099
<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td>
 
3100
<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
 
3101
</td>
 
3102
</tr>
 
3103
<tr>
 
3104
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
3105
<td>
 
3106
<code class="literal">TRUE</code> if window shouldn't be in pager</td>
 
3107
</tr>
 
3108
</tbody>
 
3109
</table></div>
 
3110
<p class="since">Since 2.2</p>
 
3111
</div>
 
3112
<hr>
 
3113
<div class="refsect2">
 
3114
<a name="gtk-window-get-urgency-hint"></a><h3>gtk_window_get_urgency_hint ()</h3>
 
3115
<pre class="programlisting"><span class="returnvalue">gboolean</span>            gtk_window_get_urgency_hint         (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>);</pre>
 
3116
<p>
 
3117
Gets the value set by <a class="link" href="GtkWindow.html#gtk-window-set-urgency-hint" title="gtk_window_set_urgency_hint ()"><code class="function">gtk_window_set_urgency_hint()</code></a>
 
3118
</p>
 
3119
<div class="variablelist"><table border="0" class="variablelist">
 
3120
<colgroup>
 
3121
<col align="left" valign="top">
 
3122
<col>
 
3123
</colgroup>
 
3124
<tbody>
 
3125
<tr>
 
3126
<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td>
 
3127
<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
 
3128
</td>
 
3129
</tr>
 
3130
<tr>
 
3131
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
3132
<td>
 
3133
<code class="literal">TRUE</code> if window is urgent</td>
 
3134
</tr>
 
3135
</tbody>
 
3136
</table></div>
 
3137
<p class="since">Since 2.8</p>
 
3138
</div>
 
3139
<hr>
 
3140
<div class="refsect2">
 
3141
<a name="gtk-window-get-accept-focus"></a><h3>gtk_window_get_accept_focus ()</h3>
 
3142
<pre class="programlisting"><span class="returnvalue">gboolean</span>            gtk_window_get_accept_focus         (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>);</pre>
 
3143
<p>
 
3144
Gets the value set by <a class="link" href="GtkWindow.html#gtk-window-set-accept-focus" title="gtk_window_set_accept_focus ()"><code class="function">gtk_window_set_accept_focus()</code></a>.
 
3145
</p>
 
3146
<div class="variablelist"><table border="0" class="variablelist">
 
3147
<colgroup>
 
3148
<col align="left" valign="top">
 
3149
<col>
 
3150
</colgroup>
 
3151
<tbody>
 
3152
<tr>
 
3153
<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td>
 
3154
<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
 
3155
</td>
 
3156
</tr>
 
3157
<tr>
 
3158
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
3159
<td>
 
3160
<code class="literal">TRUE</code> if window should receive the input focus</td>
 
3161
</tr>
 
3162
</tbody>
 
3163
</table></div>
 
3164
<p class="since">Since 2.4</p>
 
3165
</div>
 
3166
<hr>
 
3167
<div class="refsect2">
 
3168
<a name="gtk-window-get-focus-on-map"></a><h3>gtk_window_get_focus_on_map ()</h3>
 
3169
<pre class="programlisting"><span class="returnvalue">gboolean</span>            gtk_window_get_focus_on_map         (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>);</pre>
 
3170
<p>
 
3171
Gets the value set by <a class="link" href="GtkWindow.html#gtk-window-set-focus-on-map" title="gtk_window_set_focus_on_map ()"><code class="function">gtk_window_set_focus_on_map()</code></a>.
 
3172
</p>
 
3173
<div class="variablelist"><table border="0" class="variablelist">
 
3174
<colgroup>
 
3175
<col align="left" valign="top">
 
3176
<col>
 
3177
</colgroup>
 
3178
<tbody>
 
3179
<tr>
 
3180
<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td>
 
3181
<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
 
3182
</td>
 
3183
</tr>
 
3184
<tr>
 
3185
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
3186
<td>
 
3187
<code class="literal">TRUE</code> if window should receive the input focus when
 
3188
mapped.</td>
 
3189
</tr>
 
3190
</tbody>
 
3191
</table></div>
 
3192
<p class="since">Since 2.6</p>
 
3193
</div>
 
3194
<hr>
 
3195
<div class="refsect2">
 
3196
<a name="gtk-window-get-group"></a><h3>gtk_window_get_group ()</h3>
 
3197
<pre class="programlisting"><a class="link" href="GtkWindowGroup.html" title="GtkWindowGroup"><span class="returnvalue">GtkWindowGroup</span></a> *    gtk_window_get_group                (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>);</pre>
 
3198
<p>
 
3199
Returns the group for <em class="parameter"><code>window</code></em> or the default group, if
 
3200
<em class="parameter"><code>window</code></em> is <a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a> or if <em class="parameter"><code>window</code></em> does not have an explicit
 
3201
window group.
 
3202
</p>
 
3203
<div class="variablelist"><table border="0" class="variablelist">
 
3204
<colgroup>
 
3205
<col align="left" valign="top">
 
3206
<col>
 
3207
</colgroup>
 
3208
<tbody>
 
3209
<tr>
 
3210
<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td>
 
3211
<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>, or <a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
 
3212
</td>
 
3213
</tr>
 
3214
<tr>
 
3215
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
3216
<td>the <a class="link" href="GtkWindowGroup.html" title="GtkWindowGroup"><span class="type">GtkWindowGroup</span></a> for a window or the default group. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
 
3217
</td>
 
3218
</tr>
 
3219
</tbody>
 
3220
</table></div>
 
3221
<p class="since">Since 2.10</p>
 
3222
</div>
 
3223
<hr>
 
3224
<div class="refsect2">
 
3225
<a name="gtk-window-has-group"></a><h3>gtk_window_has_group ()</h3>
 
3226
<pre class="programlisting"><span class="returnvalue">gboolean</span>            gtk_window_has_group                (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>);</pre>
 
3227
<p>
 
3228
Returns whether <em class="parameter"><code>window</code></em> has an explicit window group.
 
3229
</p>
 
3230
<div class="variablelist"><table border="0" class="variablelist">
 
3231
<colgroup>
 
3232
<col align="left" valign="top">
 
3233
<col>
 
3234
</colgroup>
 
3235
<tbody>
 
3236
<tr>
 
3237
<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td>
 
3238
<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
 
3239
</td>
 
3240
</tr>
 
3241
<tr>
 
3242
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
3243
<td>
 
3244
<code class="literal">TRUE</code> if <em class="parameter"><code>window</code></em> has an explicit window group.
 
3245
Since 2.22</td>
 
3246
</tr>
 
3247
</tbody>
 
3248
</table></div>
 
3249
</div>
 
3250
<hr>
 
3251
<div class="refsect2">
 
3252
<a name="gtk-window-get-window-type"></a><h3>gtk_window_get_window_type ()</h3>
 
3253
<pre class="programlisting"><a class="link" href="gtk2-Standard-Enumerations.html#GtkWindowType" title="enum GtkWindowType"><span class="returnvalue">GtkWindowType</span></a>       gtk_window_get_window_type          (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>);</pre>
 
3254
<p>
 
3255
Gets the type of the window. See <a class="link" href="gtk2-Standard-Enumerations.html#GtkWindowType" title="enum GtkWindowType"><span class="type">GtkWindowType</span></a>.
 
3256
</p>
 
3257
<div class="variablelist"><table border="0" class="variablelist">
 
3258
<colgroup>
 
3259
<col align="left" valign="top">
 
3260
<col>
 
3261
</colgroup>
 
3262
<tbody>
 
3263
<tr>
 
3264
<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td>
 
3265
<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
 
3266
</td>
 
3267
</tr>
 
3268
<tr>
 
3269
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
3270
<td>the type of the window</td>
 
3271
</tr>
 
3272
</tbody>
 
3273
</table></div>
 
3274
<p class="since">Since 2.20</p>
 
3275
</div>
 
3276
<hr>
 
3277
<div class="refsect2">
 
3278
<a name="gtk-window-move"></a><h3>gtk_window_move ()</h3>
 
3279
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_window_move                     (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>,
 
3280
                                                         <em class="parameter"><code><span class="type">gint</span> x</code></em>,
 
3281
                                                         <em class="parameter"><code><span class="type">gint</span> y</code></em>);</pre>
 
3282
<p>
 
3283
Asks the <a class="link" href="gtk-x11.html#gtk-X11-arch" title="Understanding the X11 architecture">window manager</a> to move
 
3284
<em class="parameter"><code>window</code></em> to the given position.  Window managers are free to ignore
 
3285
this; most window managers ignore requests for initial window
 
3286
positions (instead using a user-defined placement algorithm) and
 
3287
honor requests after the window has already been shown.
 
3288
</p>
 
3289
<p>
 
3290
Note: the position is the position of the gravity-determined
 
3291
reference point for the window. The gravity determines two things:
 
3292
first, the location of the reference point in root window
 
3293
coordinates; and second, which point on the window is positioned at
 
3294
the reference point.
 
3295
</p>
 
3296
<p>
 
3297
By default the gravity is <a href="../gdk2/gdk2-Windows.html#GDK-GRAVITY-NORTH-WEST:CAPS"><span class="type">GDK_GRAVITY_NORTH_WEST</span></a>, so the reference
 
3298
point is simply the <em class="parameter"><code>x</code></em>, <em class="parameter"><code>y</code></em> supplied to <a class="link" href="GtkWindow.html#gtk-window-move" title="gtk_window_move ()"><code class="function">gtk_window_move()</code></a>. The
 
3299
top-left corner of the window decorations (aka window frame or
 
3300
border) will be placed at <em class="parameter"><code>x</code></em>, <em class="parameter"><code>y</code></em>.  Therefore, to position a window
 
3301
at the top left of the screen, you want to use the default gravity
 
3302
(which is <a href="../gdk2/gdk2-Windows.html#GDK-GRAVITY-NORTH-WEST:CAPS"><span class="type">GDK_GRAVITY_NORTH_WEST</span></a>) and move the window to 0,0.
 
3303
</p>
 
3304
<p>
 
3305
To position a window at the bottom right corner of the screen, you
 
3306
would set <a href="../gdk2/gdk2-Windows.html#GDK-GRAVITY-SOUTH-EAST:CAPS"><span class="type">GDK_GRAVITY_SOUTH_EAST</span></a>, which means that the reference
 
3307
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
 
3308
the bottom-right corner of the window border will be placed at that
 
3309
reference point. So, to place a window in the bottom right corner
 
3310
you would first set gravity to south east, then write:
 
3311
<code class="literal">gtk_window_move (window, <a href="../gdk2/gdk2-General.html#gdk-screen-width"><code class="function">gdk_screen_width()</code></a> - window_width,
 
3312
<a href="../gdk2/gdk2-General.html#gdk-screen-height"><code class="function">gdk_screen_height()</code></a> - window_height)</code> (note that this
 
3313
example does not take multi-head scenarios into account).
 
3314
</p>
 
3315
<p>
 
3316
The Extended Window Manager Hints specification at <a class="ulink" href="http://www.freedesktop.org/Standards/wm-spec" target="_top">
 
3317
http://www.freedesktop.org/Standards/wm-spec</a> has a 
 
3318
nice table of gravities in the "implementation notes" section.
 
3319
</p>
 
3320
<p>
 
3321
The <a class="link" href="GtkWindow.html#gtk-window-get-position" title="gtk_window_get_position ()"><code class="function">gtk_window_get_position()</code></a> documentation may also be relevant.
 
3322
</p>
 
3323
<div class="variablelist"><table border="0" class="variablelist">
 
3324
<colgroup>
 
3325
<col align="left" valign="top">
 
3326
<col>
 
3327
</colgroup>
 
3328
<tbody>
 
3329
<tr>
 
3330
<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td>
 
3331
<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
 
3332
</td>
 
3333
</tr>
 
3334
<tr>
 
3335
<td><p><span class="term"><em class="parameter"><code>x</code></em> :</span></p></td>
 
3336
<td>X coordinate to move window to</td>
 
3337
</tr>
 
3338
<tr>
 
3339
<td><p><span class="term"><em class="parameter"><code>y</code></em> :</span></p></td>
 
3340
<td>Y coordinate to move window to</td>
 
3341
</tr>
 
3342
</tbody>
 
3343
</table></div>
 
3344
</div>
 
3345
<hr>
 
3346
<div class="refsect2">
 
3347
<a name="gtk-window-parse-geometry"></a><h3>gtk_window_parse_geometry ()</h3>
 
3348
<pre class="programlisting"><span class="returnvalue">gboolean</span>            gtk_window_parse_geometry           (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>,
 
3349
                                                         <em class="parameter"><code>const <span class="type">gchar</span> *geometry</code></em>);</pre>
 
3350
<p>
 
3351
Parses a standard X Window System geometry string - see the
 
3352
manual page for X (type 'man X') for details on this.
 
3353
<a class="link" href="GtkWindow.html#gtk-window-parse-geometry" title="gtk_window_parse_geometry ()"><code class="function">gtk_window_parse_geometry()</code></a> does work on all GTK+ ports
 
3354
including Win32 but is primarily intended for an X environment.
 
3355
</p>
 
3356
<p>
 
3357
If either a size or a position can be extracted from the
 
3358
geometry string, <a class="link" href="GtkWindow.html#gtk-window-parse-geometry" title="gtk_window_parse_geometry ()"><code class="function">gtk_window_parse_geometry()</code></a> returns <code class="literal">TRUE</code>
 
3359
and calls <a class="link" href="GtkWindow.html#gtk-window-set-default-size" title="gtk_window_set_default_size ()"><code class="function">gtk_window_set_default_size()</code></a> and/or <a class="link" href="GtkWindow.html#gtk-window-move" title="gtk_window_move ()"><code class="function">gtk_window_move()</code></a>
 
3360
to resize/move the window.
 
3361
</p>
 
3362
<p>
 
3363
If <a class="link" href="GtkWindow.html#gtk-window-parse-geometry" title="gtk_window_parse_geometry ()"><code class="function">gtk_window_parse_geometry()</code></a> returns <code class="literal">TRUE</code>, it will also
 
3364
set the <a href="../gdk2/gdk2-Windows.html#GDK-HINT-USER-POS:CAPS"><span class="type">GDK_HINT_USER_POS</span></a> and/or <a href="../gdk2/gdk2-Windows.html#GDK-HINT-USER-SIZE:CAPS"><span class="type">GDK_HINT_USER_SIZE</span></a> hints
 
3365
indicating to the window manager that the size/position of
 
3366
the window was user-specified. This causes most window
 
3367
managers to honor the geometry.
 
3368
</p>
 
3369
<p>
 
3370
Note that for <a class="link" href="GtkWindow.html#gtk-window-parse-geometry" title="gtk_window_parse_geometry ()"><code class="function">gtk_window_parse_geometry()</code></a> to work as expected, it has
 
3371
to be called when the window has its "final" size, i.e. after calling
 
3372
<a class="link" href="GtkWidget.html#gtk-widget-show-all" title="gtk_widget_show_all ()"><code class="function">gtk_widget_show_all()</code></a> on the contents and <a class="link" href="GtkWindow.html#gtk-window-set-geometry-hints" title="gtk_window_set_geometry_hints ()"><code class="function">gtk_window_set_geometry_hints()</code></a>
 
3373
on the window.
 
3374
</p>
 
3375
<div class="informalexample">
 
3376
  <table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
 
3377
    <tbody>
 
3378
      <tr>
 
3379
        <td class="listing_lines" align="right"><pre>1
 
3380
2
 
3381
3
 
3382
4
 
3383
5
 
3384
6
 
3385
7
 
3386
8
 
3387
9
 
3388
10
 
3389
11
 
3390
12
 
3391
13
 
3392
14
 
3393
15
 
3394
16
 
3395
17
 
3396
18
 
3397
19
 
3398
20
 
3399
21
 
3400
22
 
3401
23
 
3402
24
 
3403
25
 
3404
26
 
3405
27
 
3406
28
 
3407
29
 
3408
30
 
3409
31
 
3410
32
 
3411
33
 
3412
34
 
3413
35
 
3414
36
 
3415
37
 
3416
38
 
3417
39
 
3418
40
 
3419
41
 
3420
42
 
3421
43</pre></td>
 
3422
        <td class="listing_code"><pre class="programlisting"><span class="preproc">#include</span><span class="normal"> </span><span class="string">&lt;gtk/gtk.h&gt;</span>
 
3423
<span class="normal">   </span>
 
3424
<span class="keyword">static</span><span class="normal"> </span><span class="type">void</span>
 
3425
<span class="function">fill_with_content</span><span class="normal"> </span><span class="symbol">(</span><span class="usertype">GtkWidget</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">vbox</span><span class="symbol">)</span>
 
3426
<span class="cbracket">{</span>
 
3427
<span class="normal">  </span><span class="comment">/* fill with content... */</span>
 
3428
<span class="cbracket">}</span>
 
3429
<span class="normal">   </span>
 
3430
<span class="type">int</span>
 
3431
<span class="function">main</span><span class="normal"> </span><span class="symbol">(</span><span class="type">int</span><span class="normal"> argc</span><span class="symbol">,</span><span class="normal"> </span><span class="type">char</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">argv</span><span class="symbol">[])</span>
 
3432
<span class="cbracket">{</span>
 
3433
<span class="normal">  </span><span class="usertype">GtkWidget</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">window</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">vbox</span><span class="symbol">;</span>
 
3434
<span class="normal">  </span><span class="usertype">GdkGeometry</span><span class="normal"> size_hints </span><span class="symbol">=</span><span class="normal"> </span><span class="cbracket">{</span>
 
3435
<span class="normal">    </span><span class="number">100</span><span class="symbol">,</span><span class="normal"> </span><span class="number">50</span><span class="symbol">,</span><span class="normal"> </span><span class="number">0</span><span class="symbol">,</span><span class="normal"> </span><span class="number">0</span><span class="symbol">,</span><span class="normal"> </span><span class="number">100</span><span class="symbol">,</span><span class="normal"> </span><span class="number">50</span><span class="symbol">,</span><span class="normal"> </span><span class="number">10</span><span class="symbol">,</span><span class="normal"> </span><span class="number">10</span><span class="symbol">,</span><span class="normal"> </span><span class="number">0.0</span><span class="symbol">,</span><span class="normal"> </span><span class="number">0.0</span><span class="symbol">,</span><span class="normal"> <a href="../gdk2/gdk2-Windows.html#GDK-GRAVITY-NORTH-WEST:CAPS">GDK_GRAVITY_NORTH_WEST</a>  </span>
 
3436
<span class="normal">  </span><span class="cbracket">}</span><span class="symbol">;</span>
 
3437
<span class="normal">   </span>
 
3438
<span class="normal">  </span><span class="function"><a href="gtk2-General.html#gtk-init">gtk_init</a></span><span class="normal"> </span><span class="symbol">(&amp;</span><span class="normal">argc</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">&amp;</span><span class="normal">argv</span><span class="symbol">);</span>
 
3439
<span class="normal">  </span>
 
3440
<span class="normal">  window </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="GtkWindow.html#gtk-window-new">gtk_window_new</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal"><a href="gtk2-Standard-Enumerations.html#GTK-WINDOW-TOPLEVEL:CAPS">GTK_WINDOW_TOPLEVEL</a></span><span class="symbol">);</span>
 
3441
<span class="normal">  vbox </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="GtkVBox.html#gtk-vbox-new">gtk_vbox_new</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">FALSE</span><span class="symbol">,</span><span class="normal"> </span><span class="number">0</span><span class="symbol">);</span>
 
3442
<span class="normal">  </span>
 
3443
<span class="normal">  </span><span class="function"><a href="GtkContainer.html#gtk-container-add">gtk_container_add</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function">GTK_CONTAINER</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">window</span><span class="symbol">),</span><span class="normal"> vbox</span><span class="symbol">);</span>
 
3444
<span class="normal">  </span><span class="function">fill_with_content</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">vbox</span><span class="symbol">);</span>
 
3445
<span class="normal">  </span><span class="function"><a href="GtkWidget.html#gtk-widget-show-all">gtk_widget_show_all</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">vbox</span><span class="symbol">);</span>
 
3446
<span class="normal">  </span>
 
3447
<span class="normal">  </span><span class="function"><a href="GtkWindow.html#gtk-window-set-geometry-hints">gtk_window_set_geometry_hints</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function">GTK_WINDOW</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">window</span><span class="symbol">),</span>
 
3448
<span class="normal">                    window</span><span class="symbol">,</span>
 
3449
<span class="normal">                    </span><span class="symbol">&amp;</span><span class="normal">size_hints</span><span class="symbol">,</span>
 
3450
<span class="normal">                    <a href="../gdk2/gdk2-Windows.html#GDK-HINT-MIN-SIZE:CAPS">GDK_HINT_MIN_SIZE</a> </span><span class="symbol">|</span><span class="normal"> </span>
 
3451
<span class="normal">                    GDK_HINT_BASE_SIZE </span><span class="symbol">|</span><span class="normal"> </span>
 
3452
<span class="normal">                    GDK_HINT_RESIZE_INC</span><span class="symbol">);</span>
 
3453
<span class="normal">  </span>
 
3454
<span class="normal">  </span><span class="keyword">if</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">argc </span><span class="symbol">&gt;</span><span class="normal"> </span><span class="number">1</span><span class="symbol">)</span>
 
3455
<span class="normal">    </span><span class="cbracket">{</span>
 
3456
<span class="normal">      </span><span class="keyword">if</span><span class="normal"> </span><span class="symbol">(!</span><span class="function"><a href="GtkWindow.html#gtk-window-parse-geometry">gtk_window_parse_geometry</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function">GTK_WINDOW</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">window</span><span class="symbol">),</span><span class="normal"> argv</span><span class="symbol">[</span><span class="number">1</span><span class="symbol">]))</span>
 
3457
<span class="normal">        </span><span class="function">fprintf</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">stderr</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"Failed to parse '%s'</span><span class="specialchar">\n</span><span class="string">"</span><span class="symbol">,</span><span class="normal"> argv</span><span class="symbol">[</span><span class="number">1</span><span class="symbol">]);</span>
 
3458
<span class="normal">    </span><span class="cbracket">}</span>
 
3459
<span class="normal">   </span>
 
3460
<span class="normal">  </span><span class="function"><a href="GtkWidget.html#gtk-widget-show-all">gtk_widget_show_all</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">window</span><span class="symbol">);</span>
 
3461
<span class="normal">  </span><span class="function"><a href="gtk2-General.html#gtk-main">gtk_main</a></span><span class="normal"> </span><span class="symbol">();</span>
 
3462
<span class="normal">   </span>
 
3463
<span class="normal">  </span><span class="keyword">return</span><span class="normal"> </span><span class="number">0</span><span class="symbol">;</span>
 
3464
<span class="cbracket">}</span></pre></td>
 
3465
      </tr>
 
3466
    </tbody>
 
3467
  </table>
 
3468
</div>
 
3469
 
 
3470
<p>
 
3471
</p>
 
3472
<div class="variablelist"><table border="0" class="variablelist">
 
3473
<colgroup>
 
3474
<col align="left" valign="top">
 
3475
<col>
 
3476
</colgroup>
 
3477
<tbody>
 
3478
<tr>
 
3479
<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td>
 
3480
<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
 
3481
</td>
 
3482
</tr>
 
3483
<tr>
 
3484
<td><p><span class="term"><em class="parameter"><code>geometry</code></em> :</span></p></td>
 
3485
<td>geometry string</td>
 
3486
</tr>
 
3487
<tr>
 
3488
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
3489
<td>
 
3490
<code class="literal">TRUE</code> if string was parsed successfully</td>
 
3491
</tr>
 
3492
</tbody>
 
3493
</table></div>
 
3494
</div>
 
3495
<hr>
 
3496
<div class="refsect2">
 
3497
<a name="gtk-window-reshow-with-initial-size"></a><h3>gtk_window_reshow_with_initial_size ()</h3>
 
3498
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_window_reshow_with_initial_size (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>);</pre>
 
3499
<p>
 
3500
Hides <em class="parameter"><code>window</code></em>, then reshows it, resetting the
 
3501
default size and position of the window. Used
 
3502
by GUI builders only.
 
3503
</p>
 
3504
<div class="variablelist"><table border="0" class="variablelist">
 
3505
<colgroup>
 
3506
<col align="left" valign="top">
 
3507
<col>
 
3508
</colgroup>
 
3509
<tbody><tr>
 
3510
<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td>
 
3511
<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
 
3512
</td>
 
3513
</tr></tbody>
 
3514
</table></div>
 
3515
</div>
 
3516
<hr>
 
3517
<div class="refsect2">
 
3518
<a name="gtk-window-resize"></a><h3>gtk_window_resize ()</h3>
 
3519
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_window_resize                   (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>,
 
3520
                                                         <em class="parameter"><code><span class="type">gint</span> width</code></em>,
 
3521
                                                         <em class="parameter"><code><span class="type">gint</span> height</code></em>);</pre>
 
3522
<p>
 
3523
Resizes the window as if the user had done so, obeying geometry
 
3524
constraints. The default geometry constraint is that windows may
 
3525
not be smaller than their size request; to override this
 
3526
constraint, call <a class="link" href="GtkWidget.html#gtk-widget-set-size-request" title="gtk_widget_set_size_request ()"><code class="function">gtk_widget_set_size_request()</code></a> to set the window's
 
3527
request to a smaller value.
 
3528
</p>
 
3529
<p>
 
3530
If <a class="link" href="GtkWindow.html#gtk-window-resize" title="gtk_window_resize ()"><code class="function">gtk_window_resize()</code></a> is called before showing a window for the
 
3531
first time, it overrides any default size set with
 
3532
<a class="link" href="GtkWindow.html#gtk-window-set-default-size" title="gtk_window_set_default_size ()"><code class="function">gtk_window_set_default_size()</code></a>.
 
3533
</p>
 
3534
<p>
 
3535
Windows may not be resized smaller than 1 by 1 pixels.
 
3536
</p>
 
3537
<div class="variablelist"><table border="0" class="variablelist">
 
3538
<colgroup>
 
3539
<col align="left" valign="top">
 
3540
<col>
 
3541
</colgroup>
 
3542
<tbody>
 
3543
<tr>
 
3544
<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td>
 
3545
<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
 
3546
</td>
 
3547
</tr>
 
3548
<tr>
 
3549
<td><p><span class="term"><em class="parameter"><code>width</code></em> :</span></p></td>
 
3550
<td>width in pixels to resize the window to</td>
 
3551
</tr>
 
3552
<tr>
 
3553
<td><p><span class="term"><em class="parameter"><code>height</code></em> :</span></p></td>
 
3554
<td>height in pixels to resize the window to</td>
 
3555
</tr>
 
3556
</tbody>
 
3557
</table></div>
 
3558
</div>
 
3559
<hr>
 
3560
<div class="refsect2">
 
3561
<a name="gtk-window-set-default-icon-list"></a><h3>gtk_window_set_default_icon_list ()</h3>
 
3562
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_window_set_default_icon_list    (<em class="parameter"><code><span class="type">GList</span> *list</code></em>);</pre>
 
3563
<p>
 
3564
Sets an icon list to be used as fallback for windows that haven't
 
3565
had <a class="link" href="GtkWindow.html#gtk-window-set-icon-list" title="gtk_window_set_icon_list ()"><code class="function">gtk_window_set_icon_list()</code></a> called on them to set up a
 
3566
window-specific icon list. This function allows you to set up the
 
3567
icon for all windows in your app at once.
 
3568
</p>
 
3569
<p>
 
3570
See <a class="link" href="GtkWindow.html#gtk-window-set-icon-list" title="gtk_window_set_icon_list ()"><code class="function">gtk_window_set_icon_list()</code></a> for more details.
 
3571
</p>
 
3572
<div class="variablelist"><table border="0" class="variablelist">
 
3573
<colgroup>
 
3574
<col align="left" valign="top">
 
3575
<col>
 
3576
</colgroup>
 
3577
<tbody><tr>
 
3578
<td><p><span class="term"><em class="parameter"><code>list</code></em> :</span></p></td>
 
3579
<td>a list of <a href="/usr/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a>. <span class="annotation">[<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> GdkPixbuf][<acronym title="Free data container after the code is done."><span class="acronym">transfer container</span></acronym>]</span>
 
3580
</td>
 
3581
</tr></tbody>
 
3582
</table></div>
 
3583
</div>
 
3584
<hr>
 
3585
<div class="refsect2">
 
3586
<a name="gtk-window-set-default-icon"></a><h3>gtk_window_set_default_icon ()</h3>
 
3587
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_window_set_default_icon         (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *icon</code></em>);</pre>
 
3588
<p>
 
3589
Sets an icon to be used as fallback for windows that haven't
 
3590
had <a class="link" href="GtkWindow.html#gtk-window-set-icon" title="gtk_window_set_icon ()"><code class="function">gtk_window_set_icon()</code></a> called on them from a pixbuf.
 
3591
</p>
 
3592
<div class="variablelist"><table border="0" class="variablelist">
 
3593
<colgroup>
 
3594
<col align="left" valign="top">
 
3595
<col>
 
3596
</colgroup>
 
3597
<tbody><tr>
 
3598
<td><p><span class="term"><em class="parameter"><code>icon</code></em> :</span></p></td>
 
3599
<td>the icon</td>
 
3600
</tr></tbody>
 
3601
</table></div>
 
3602
<p class="since">Since 2.4</p>
 
3603
</div>
 
3604
<hr>
 
3605
<div class="refsect2">
 
3606
<a name="gtk-window-set-default-icon-from-file"></a><h3>gtk_window_set_default_icon_from_file</h3>
 
3607
<pre class="programlisting">#define gtk_window_set_default_icon_from_file gtk_window_set_default_icon_from_file_utf8
 
3608
</pre>
 
3609
<p>
 
3610
Sets an icon to be used as fallback for windows that haven't
 
3611
had <a class="link" href="GtkWindow.html#gtk-window-set-icon-list" title="gtk_window_set_icon_list ()"><code class="function">gtk_window_set_icon_list()</code></a> called on them from a file
 
3612
on disk. Warns on failure if <em class="parameter"><code>err</code></em> is <a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a>.
 
3613
</p>
 
3614
<div class="variablelist"><table border="0" class="variablelist">
 
3615
<colgroup>
 
3616
<col align="left" valign="top">
 
3617
<col>
 
3618
</colgroup>
 
3619
<tbody><tr>
 
3620
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
3621
<td>
 
3622
<code class="literal">TRUE</code> if setting the icon succeeded.</td>
 
3623
</tr></tbody>
 
3624
</table></div>
 
3625
<p class="since">Since 2.2</p>
 
3626
</div>
 
3627
<hr>
 
3628
<div class="refsect2">
 
3629
<a name="gtk-window-set-default-icon-name"></a><h3>gtk_window_set_default_icon_name ()</h3>
 
3630
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_window_set_default_icon_name    (<em class="parameter"><code>const <span class="type">gchar</span> *name</code></em>);</pre>
 
3631
<p>
 
3632
Sets an icon to be used as fallback for windows that haven't
 
3633
had <a class="link" href="GtkWindow.html#gtk-window-set-icon-list" title="gtk_window_set_icon_list ()"><code class="function">gtk_window_set_icon_list()</code></a> called on them from a named
 
3634
themed icon, see <a class="link" href="GtkWindow.html#gtk-window-set-icon-name" title="gtk_window_set_icon_name ()"><code class="function">gtk_window_set_icon_name()</code></a>.
 
3635
</p>
 
3636
<div class="variablelist"><table border="0" class="variablelist">
 
3637
<colgroup>
 
3638
<col align="left" valign="top">
 
3639
<col>
 
3640
</colgroup>
 
3641
<tbody><tr>
 
3642
<td><p><span class="term"><em class="parameter"><code>name</code></em> :</span></p></td>
 
3643
<td>the name of the themed icon</td>
 
3644
</tr></tbody>
 
3645
</table></div>
 
3646
<p class="since">Since 2.6</p>
 
3647
</div>
 
3648
<hr>
 
3649
<div class="refsect2">
 
3650
<a name="gtk-window-set-icon"></a><h3>gtk_window_set_icon ()</h3>
 
3651
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_window_set_icon                 (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>,
 
3652
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *icon</code></em>);</pre>
 
3653
<p>
 
3654
Sets up the icon representing a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>. This icon is used when
 
3655
the window is minimized (also known as iconified).  Some window
 
3656
managers or desktop environments may also place it in the window
 
3657
frame, or display it in other contexts.
 
3658
</p>
 
3659
<p>
 
3660
The icon should be provided in whatever size it was naturally
 
3661
drawn; that is, don't scale the image before passing it to
 
3662
GTK+. Scaling is postponed until the last minute, when the desired
 
3663
final size is known, to allow best quality.
 
3664
</p>
 
3665
<p>
 
3666
If you have your icon hand-drawn in multiple sizes, use
 
3667
<a class="link" href="GtkWindow.html#gtk-window-set-icon-list" title="gtk_window_set_icon_list ()"><code class="function">gtk_window_set_icon_list()</code></a>. Then the best size will be used.
 
3668
</p>
 
3669
<p>
 
3670
This function is equivalent to calling <a class="link" href="GtkWindow.html#gtk-window-set-icon-list" title="gtk_window_set_icon_list ()"><code class="function">gtk_window_set_icon_list()</code></a>
 
3671
with a 1-element list.
 
3672
</p>
 
3673
<p>
 
3674
See also <a class="link" href="GtkWindow.html#gtk-window-set-default-icon-list" title="gtk_window_set_default_icon_list ()"><code class="function">gtk_window_set_default_icon_list()</code></a> to set the icon
 
3675
for all windows in your application in one go.
 
3676
</p>
 
3677
<div class="variablelist"><table border="0" class="variablelist">
 
3678
<colgroup>
 
3679
<col align="left" valign="top">
 
3680
<col>
 
3681
</colgroup>
 
3682
<tbody>
 
3683
<tr>
 
3684
<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td>
 
3685
<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
 
3686
</td>
 
3687
</tr>
 
3688
<tr>
 
3689
<td><p><span class="term"><em class="parameter"><code>icon</code></em> :</span></p></td>
 
3690
<td>icon image, or <a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
 
3691
</td>
 
3692
</tr>
 
3693
</tbody>
 
3694
</table></div>
 
3695
</div>
 
3696
<hr>
 
3697
<div class="refsect2">
 
3698
<a name="gtk-window-set-icon-list"></a><h3>gtk_window_set_icon_list ()</h3>
 
3699
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_window_set_icon_list            (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>,
 
3700
                                                         <em class="parameter"><code><span class="type">GList</span> *list</code></em>);</pre>
 
3701
<p>
 
3702
Sets up the icon representing a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>. The icon is used when
 
3703
the window is minimized (also known as iconified).  Some window
 
3704
managers or desktop environments may also place it in the window
 
3705
frame, or display it in other contexts.
 
3706
</p>
 
3707
<p>
 
3708
<a class="link" href="GtkWindow.html#gtk-window-set-icon-list" title="gtk_window_set_icon_list ()"><code class="function">gtk_window_set_icon_list()</code></a> allows you to pass in the same icon in
 
3709
several hand-drawn sizes. The list should contain the natural sizes
 
3710
your icon is available in; that is, don't scale the image before
 
3711
passing it to GTK+. Scaling is postponed until the last minute,
 
3712
when the desired final size is known, to allow best quality.
 
3713
</p>
 
3714
<p>
 
3715
By passing several sizes, you may improve the final image quality
 
3716
of the icon, by reducing or eliminating automatic image scaling.
 
3717
</p>
 
3718
<p>
 
3719
Recommended sizes to provide: 16x16, 32x32, 48x48 at minimum, and
 
3720
larger images (64x64, 128x128) if you have them.
 
3721
</p>
 
3722
<p>
 
3723
See also <a class="link" href="GtkWindow.html#gtk-window-set-default-icon-list" title="gtk_window_set_default_icon_list ()"><code class="function">gtk_window_set_default_icon_list()</code></a> to set the icon
 
3724
for all windows in your application in one go.
 
3725
</p>
 
3726
<p>
 
3727
Note that transient windows (those who have been set transient for another
 
3728
window using <a class="link" href="GtkWindow.html#gtk-window-set-transient-for" title="gtk_window_set_transient_for ()"><code class="function">gtk_window_set_transient_for()</code></a>) will inherit their
 
3729
icon from their transient parent. So there's no need to explicitly
 
3730
set the icon on transient windows.
 
3731
</p>
 
3732
<div class="variablelist"><table border="0" class="variablelist">
 
3733
<colgroup>
 
3734
<col align="left" valign="top">
 
3735
<col>
 
3736
</colgroup>
 
3737
<tbody>
 
3738
<tr>
 
3739
<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td>
 
3740
<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
 
3741
</td>
 
3742
</tr>
 
3743
<tr>
 
3744
<td><p><span class="term"><em class="parameter"><code>list</code></em> :</span></p></td>
 
3745
<td>list of <a href="/usr/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a>
 
3746
</td>
 
3747
</tr>
 
3748
</tbody>
 
3749
</table></div>
 
3750
</div>
 
3751
<hr>
 
3752
<div class="refsect2">
 
3753
<a name="gtk-window-set-icon-from-file"></a><h3>gtk_window_set_icon_from_file</h3>
 
3754
<pre class="programlisting">#define gtk_window_set_icon_from_file gtk_window_set_icon_from_file_utf8
 
3755
</pre>
 
3756
<p>
 
3757
Sets the icon for <em class="parameter"><code>window</code></em>.  
 
3758
Warns on failure if <em class="parameter"><code>err</code></em> is <a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a>.
 
3759
</p>
 
3760
<p>
 
3761
This function is equivalent to calling <a class="link" href="GtkWindow.html#gtk-window-set-icon" title="gtk_window_set_icon ()"><code class="function">gtk_window_set_icon()</code></a>
 
3762
with a pixbuf created by loading the image from <em class="parameter"><code>filename</code></em>.
 
3763
</p>
 
3764
<div class="variablelist"><table border="0" class="variablelist">
 
3765
<colgroup>
 
3766
<col align="left" valign="top">
 
3767
<col>
 
3768
</colgroup>
 
3769
<tbody><tr>
 
3770
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
3771
<td>
 
3772
<code class="literal">TRUE</code> if setting the icon succeeded.</td>
 
3773
</tr></tbody>
 
3774
</table></div>
 
3775
<p class="since">Since 2.2</p>
 
3776
</div>
 
3777
<hr>
 
3778
<div class="refsect2">
 
3779
<a name="gtk-window-set-icon-name"></a><h3>gtk_window_set_icon_name ()</h3>
 
3780
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_window_set_icon_name            (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>,
 
3781
                                                         <em class="parameter"><code>const <span class="type">gchar</span> *name</code></em>);</pre>
 
3782
<p>
 
3783
Sets the icon for the window from a named themed icon. See
 
3784
the docs for <a class="link" href="GtkIconTheme.html" title="GtkIconTheme"><span class="type">GtkIconTheme</span></a> for more details.
 
3785
</p>
 
3786
<p>
 
3787
Note that this has nothing to do with the WM_ICON_NAME 
 
3788
property which is mentioned in the ICCCM.
 
3789
</p>
 
3790
<div class="variablelist"><table border="0" class="variablelist">
 
3791
<colgroup>
 
3792
<col align="left" valign="top">
 
3793
<col>
 
3794
</colgroup>
 
3795
<tbody>
 
3796
<tr>
 
3797
<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td>
 
3798
<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
 
3799
</td>
 
3800
</tr>
 
3801
<tr>
 
3802
<td><p><span class="term"><em class="parameter"><code>name</code></em> :</span></p></td>
 
3803
<td>the name of the themed icon. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
 
3804
</td>
 
3805
</tr>
 
3806
</tbody>
 
3807
</table></div>
 
3808
<p class="since">Since 2.6</p>
 
3809
</div>
 
3810
<hr>
 
3811
<div class="refsect2">
 
3812
<a name="gtk-window-set-auto-startup-notification"></a><h3>gtk_window_set_auto_startup_notification ()</h3>
 
3813
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_window_set_auto_startup_notification
 
3814
                                                        (<em class="parameter"><code><span class="type">gboolean</span> setting</code></em>);</pre>
 
3815
<p>
 
3816
By default, after showing the first <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>, GTK+ calls 
 
3817
<a href="../gdk2/gdk2-General.html#gdk-notify-startup-complete"><code class="function">gdk_notify_startup_complete()</code></a>.  Call this function to disable 
 
3818
the automatic startup notification. You might do this if your 
 
3819
first window is a splash screen, and you want to delay notification 
 
3820
until after your real main window has been shown, for example.
 
3821
</p>
 
3822
<p>
 
3823
In that example, you would disable startup notification
 
3824
temporarily, show your splash screen, then re-enable it so that
 
3825
showing the main window would automatically result in notification.
 
3826
</p>
 
3827
<div class="variablelist"><table border="0" class="variablelist">
 
3828
<colgroup>
 
3829
<col align="left" valign="top">
 
3830
<col>
 
3831
</colgroup>
 
3832
<tbody><tr>
 
3833
<td><p><span class="term"><em class="parameter"><code>setting</code></em> :</span></p></td>
 
3834
<td>
 
3835
<code class="literal">TRUE</code> to automatically do startup notification</td>
 
3836
</tr></tbody>
 
3837
</table></div>
 
3838
<p class="since">Since 2.2</p>
 
3839
</div>
 
3840
<hr>
 
3841
<div class="refsect2">
 
3842
<a name="gtk-window-get-opacity"></a><h3>gtk_window_get_opacity ()</h3>
 
3843
<pre class="programlisting"><span class="returnvalue">gdouble</span>             gtk_window_get_opacity              (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>);</pre>
 
3844
<p>
 
3845
Fetches the requested opacity for this window. See
 
3846
<a class="link" href="GtkWindow.html#gtk-window-set-opacity" title="gtk_window_set_opacity ()"><code class="function">gtk_window_set_opacity()</code></a>.
 
3847
</p>
 
3848
<div class="variablelist"><table border="0" class="variablelist">
 
3849
<colgroup>
 
3850
<col align="left" valign="top">
 
3851
<col>
 
3852
</colgroup>
 
3853
<tbody>
 
3854
<tr>
 
3855
<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td>
 
3856
<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
 
3857
</td>
 
3858
</tr>
 
3859
<tr>
 
3860
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
3861
<td>the requested opacity for this window.</td>
 
3862
</tr>
 
3863
</tbody>
 
3864
</table></div>
 
3865
<p class="since">Since 2.12</p>
 
3866
</div>
 
3867
<hr>
 
3868
<div class="refsect2">
 
3869
<a name="gtk-window-set-opacity"></a><h3>gtk_window_set_opacity ()</h3>
 
3870
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_window_set_opacity              (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>,
 
3871
                                                         <em class="parameter"><code><span class="type">gdouble</span> opacity</code></em>);</pre>
 
3872
<p>
 
3873
Request the windowing system to make <em class="parameter"><code>window</code></em> partially transparent,
 
3874
with opacity 0 being fully transparent and 1 fully opaque. (Values
 
3875
of the opacity parameter are clamped to the [0,1] range.) On X11
 
3876
this has any effect only on X screens with a compositing manager
 
3877
running. See <a class="link" href="GtkWidget.html#gtk-widget-is-composited" title="gtk_widget_is_composited ()"><code class="function">gtk_widget_is_composited()</code></a>. On Windows it should work
 
3878
always.
 
3879
</p>
 
3880
<p>
 
3881
Note that setting a window's opacity after the window has been
 
3882
shown causes it to flicker once on Windows.
 
3883
</p>
 
3884
<div class="variablelist"><table border="0" class="variablelist">
 
3885
<colgroup>
 
3886
<col align="left" valign="top">
 
3887
<col>
 
3888
</colgroup>
 
3889
<tbody>
 
3890
<tr>
 
3891
<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td>
 
3892
<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
 
3893
</td>
 
3894
</tr>
 
3895
<tr>
 
3896
<td><p><span class="term"><em class="parameter"><code>opacity</code></em> :</span></p></td>
 
3897
<td>desired opacity, between 0 and 1</td>
 
3898
</tr>
 
3899
</tbody>
 
3900
</table></div>
 
3901
<p class="since">Since 2.12</p>
 
3902
</div>
 
3903
<hr>
 
3904
<div class="refsect2">
 
3905
<a name="gtk-window-get-mnemonics-visible"></a><h3>gtk_window_get_mnemonics_visible ()</h3>
 
3906
<pre class="programlisting"><span class="returnvalue">gboolean</span>            gtk_window_get_mnemonics_visible    (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>);</pre>
 
3907
<p>
 
3908
</p>
 
3909
</div>
 
3910
<hr>
 
3911
<div class="refsect2">
 
3912
<a name="gtk-window-set-mnemonics-visible"></a><h3>gtk_window_set_mnemonics_visible ()</h3>
 
3913
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_window_set_mnemonics_visible    (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>,
 
3914
                                                         <em class="parameter"><code><span class="type">gboolean</span> setting</code></em>);</pre>
 
3915
<p>
 
3916
Sets the <a class="link" href="GtkWindow.html#GtkWindow--mnemonics-visible" title='The "mnemonics-visible" property'><span class="type">"mnemonics-visible"</span></a> property.
 
3917
</p>
 
3918
<div class="variablelist"><table border="0" class="variablelist">
 
3919
<colgroup>
 
3920
<col align="left" valign="top">
 
3921
<col>
 
3922
</colgroup>
 
3923
<tbody>
 
3924
<tr>
 
3925
<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td>
 
3926
<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
 
3927
</td>
 
3928
</tr>
 
3929
<tr>
 
3930
<td><p><span class="term"><em class="parameter"><code>setting</code></em> :</span></p></td>
 
3931
<td>the new value</td>
 
3932
</tr>
 
3933
</tbody>
 
3934
</table></div>
 
3935
<p class="since">Since 2.20</p>
 
3936
</div>
 
3937
</div>
 
3938
<div class="refsect1">
 
3939
<a name="GtkWindow.property-details"></a><h2>Property Details</h2>
 
3940
<div class="refsect2">
 
3941
<a name="GtkWindow--accept-focus"></a><h3>The <code class="literal">"accept-focus"</code> property</h3>
 
3942
<pre class="programlisting">  "accept-focus"             <span class="type">gboolean</span>              : Read / Write</pre>
 
3943
<p>
 
3944
Whether the window should receive the input focus.
 
3945
</p>
 
3946
<p>Default value: TRUE</p>
 
3947
<p class="since">Since 2.4</p>
 
3948
</div>
 
3949
<hr>
 
3950
<div class="refsect2">
 
3951
<a name="GtkWindow--allow-grow"></a><h3>The <code class="literal">"allow-grow"</code> property</h3>
 
3952
<pre class="programlisting">  "allow-grow"               <span class="type">gboolean</span>              : Read / Write</pre>
 
3953
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
 
3954
<h3 class="title">Warning</h3>
 
3955
<p><code class="literal">GtkWindow:allow-grow</code> has been deprecated since version 2.22 and should not be used in newly-written code. Use GtkWindow:resizable property instead.</p>
 
3956
</div>
 
3957
<p>
 
3958
If <code class="literal">TRUE</code>, users can expand the window beyond its minimum size.
 
3959
</p>
 
3960
<p>Default value: TRUE</p>
 
3961
</div>
 
3962
<hr>
 
3963
<div class="refsect2">
 
3964
<a name="GtkWindow--allow-shrink"></a><h3>The <code class="literal">"allow-shrink"</code> property</h3>
 
3965
<pre class="programlisting">  "allow-shrink"             <span class="type">gboolean</span>              : Read / Write</pre>
 
3966
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
 
3967
<h3 class="title">Warning</h3>
 
3968
<p><code class="literal">GtkWindow:allow-shrink</code> has been deprecated since version 2.22 and should not be used in newly-written code. Use GtkWindow:resizable property instead.</p>
 
3969
</div>
 
3970
<p>
 
3971
If <code class="literal">TRUE</code>, the window has no mimimum size. Setting this to <code class="literal">TRUE</code> is
 
3972
99% of the time a bad idea.
 
3973
</p>
 
3974
<p>Default value: FALSE</p>
 
3975
</div>
 
3976
<hr>
 
3977
<div class="refsect2">
 
3978
<a name="GtkWindow--decorated"></a><h3>The <code class="literal">"decorated"</code> property</h3>
 
3979
<pre class="programlisting">  "decorated"                <span class="type">gboolean</span>              : Read / Write</pre>
 
3980
<p>
 
3981
Whether the window should be decorated by the window manager.
 
3982
</p>
 
3983
<p>Default value: TRUE</p>
 
3984
<p class="since">Since 2.4</p>
 
3985
</div>
 
3986
<hr>
 
3987
<div class="refsect2">
 
3988
<a name="GtkWindow--default-height"></a><h3>The <code class="literal">"default-height"</code> property</h3>
 
3989
<pre class="programlisting">  "default-height"           <span class="type">gint</span>                  : Read / Write</pre>
 
3990
<p>The default height of the window, used when initially showing the window.</p>
 
3991
<p>Allowed values: &gt;= G_MAXULONG</p>
 
3992
<p>Default value: -1</p>
 
3993
</div>
 
3994
<hr>
 
3995
<div class="refsect2">
 
3996
<a name="GtkWindow--default-width"></a><h3>The <code class="literal">"default-width"</code> property</h3>
 
3997
<pre class="programlisting">  "default-width"            <span class="type">gint</span>                  : Read / Write</pre>
 
3998
<p>The default width of the window, used when initially showing the window.</p>
 
3999
<p>Allowed values: &gt;= G_MAXULONG</p>
 
4000
<p>Default value: -1</p>
 
4001
</div>
 
4002
<hr>
 
4003
<div class="refsect2">
 
4004
<a name="GtkWindow--deletable"></a><h3>The <code class="literal">"deletable"</code> property</h3>
 
4005
<pre class="programlisting">  "deletable"                <span class="type">gboolean</span>              : Read / Write</pre>
 
4006
<p>
 
4007
Whether the window frame should have a close button.
 
4008
</p>
 
4009
<p>Default value: TRUE</p>
 
4010
<p class="since">Since 2.10</p>
 
4011
</div>
 
4012
<hr>
 
4013
<div class="refsect2">
 
4014
<a name="GtkWindow--destroy-with-parent"></a><h3>The <code class="literal">"destroy-with-parent"</code> property</h3>
 
4015
<pre class="programlisting">  "destroy-with-parent"      <span class="type">gboolean</span>              : Read / Write</pre>
 
4016
<p>If this window should be destroyed when the parent is destroyed.</p>
 
4017
<p>Default value: FALSE</p>
 
4018
</div>
 
4019
<hr>
 
4020
<div class="refsect2">
 
4021
<a name="GtkWindow--focus-on-map"></a><h3>The <code class="literal">"focus-on-map"</code> property</h3>
 
4022
<pre class="programlisting">  "focus-on-map"             <span class="type">gboolean</span>              : Read / Write</pre>
 
4023
<p>
 
4024
Whether the window should receive the input focus when mapped.
 
4025
</p>
 
4026
<p>Default value: TRUE</p>
 
4027
<p class="since">Since 2.6</p>
 
4028
</div>
 
4029
<hr>
 
4030
<div class="refsect2">
 
4031
<a name="GtkWindow--gravity"></a><h3>The <code class="literal">"gravity"</code> property</h3>
 
4032
<pre class="programlisting">  "gravity"                  <a href="../gdk2/gdk2-Windows.html#GdkGravity"><span class="type">GdkGravity</span></a>            : Read / Write</pre>
 
4033
<p>
 
4034
The window gravity of the window. See <a class="link" href="GtkWindow.html#gtk-window-move" title="gtk_window_move ()"><code class="function">gtk_window_move()</code></a> and <a href="../gdk2/gdk2-Windows.html#GdkGravity"><span class="type">GdkGravity</span></a> for
 
4035
more details about window gravity.
 
4036
</p>
 
4037
<p>Default value: GDK_GRAVITY_NORTH_WEST</p>
 
4038
<p class="since">Since 2.4</p>
 
4039
</div>
 
4040
<hr>
 
4041
<div class="refsect2">
 
4042
<a name="GtkWindow--has-toplevel-focus"></a><h3>The <code class="literal">"has-toplevel-focus"</code> property</h3>
 
4043
<pre class="programlisting">  "has-toplevel-focus"       <span class="type">gboolean</span>              : Read</pre>
 
4044
<p>Whether the input focus is within this GtkWindow.</p>
 
4045
<p>Default value: FALSE</p>
 
4046
</div>
 
4047
<hr>
 
4048
<div class="refsect2">
 
4049
<a name="GtkWindow--icon"></a><h3>The <code class="literal">"icon"</code> property</h3>
 
4050
<pre class="programlisting">  "icon"                     <a href="/usr/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a>*            : Read / Write</pre>
 
4051
<p>Icon for this window.</p>
 
4052
</div>
 
4053
<hr>
 
4054
<div class="refsect2">
 
4055
<a name="GtkWindow--icon-name"></a><h3>The <code class="literal">"icon-name"</code> property</h3>
 
4056
<pre class="programlisting">  "icon-name"                <span class="type">gchar</span>*                : Read / Write</pre>
 
4057
<p>
 
4058
The :icon-name property specifies the name of the themed icon to
 
4059
use as the window icon. See <a class="link" href="GtkIconTheme.html" title="GtkIconTheme"><span class="type">GtkIconTheme</span></a> for more details.
 
4060
</p>
 
4061
<p>Default value: NULL</p>
 
4062
<p class="since">Since 2.6</p>
 
4063
</div>
 
4064
<hr>
 
4065
<div class="refsect2">
 
4066
<a name="GtkWindow--is-active"></a><h3>The <code class="literal">"is-active"</code> property</h3>
 
4067
<pre class="programlisting">  "is-active"                <span class="type">gboolean</span>              : Read</pre>
 
4068
<p>Whether the toplevel is the current active window.</p>
 
4069
<p>Default value: FALSE</p>
 
4070
</div>
 
4071
<hr>
 
4072
<div class="refsect2">
 
4073
<a name="GtkWindow--mnemonics-visible"></a><h3>The <code class="literal">"mnemonics-visible"</code> property</h3>
 
4074
<pre class="programlisting">  "mnemonics-visible"        <span class="type">gboolean</span>              : Read / Write</pre>
 
4075
<p>Whether mnemonics are currently visible in this window.</p>
 
4076
<p>Default value: TRUE</p>
 
4077
</div>
 
4078
<hr>
 
4079
<div class="refsect2">
 
4080
<a name="GtkWindow--modal"></a><h3>The <code class="literal">"modal"</code> property</h3>
 
4081
<pre class="programlisting">  "modal"                    <span class="type">gboolean</span>              : Read / Write</pre>
 
4082
<p>If TRUE, the window is modal (other windows are not usable while this one is up).</p>
 
4083
<p>Default value: FALSE</p>
 
4084
</div>
 
4085
<hr>
 
4086
<div class="refsect2">
 
4087
<a name="GtkWindow--opacity"></a><h3>The <code class="literal">"opacity"</code> property</h3>
 
4088
<pre class="programlisting">  "opacity"                  <span class="type">gdouble</span>               : Read / Write</pre>
 
4089
<p>
 
4090
The requested opacity of the window. See <a class="link" href="GtkWindow.html#gtk-window-set-opacity" title="gtk_window_set_opacity ()"><code class="function">gtk_window_set_opacity()</code></a> for
 
4091
more details about window opacity.
 
4092
</p>
 
4093
<p>Allowed values: [0,1]</p>
 
4094
<p>Default value: 1</p>
 
4095
<p class="since">Since 2.12</p>
 
4096
</div>
 
4097
<hr>
 
4098
<div class="refsect2">
 
4099
<a name="GtkWindow--resizable"></a><h3>The <code class="literal">"resizable"</code> property</h3>
 
4100
<pre class="programlisting">  "resizable"                <span class="type">gboolean</span>              : Read / Write</pre>
 
4101
<p>If TRUE, users can resize the window.</p>
 
4102
<p>Default value: TRUE</p>
 
4103
</div>
 
4104
<hr>
 
4105
<div class="refsect2">
 
4106
<a name="GtkWindow--role"></a><h3>The <code class="literal">"role"</code> property</h3>
 
4107
<pre class="programlisting">  "role"                     <span class="type">gchar</span>*                : Read / Write</pre>
 
4108
<p>Unique identifier for the window to be used when restoring a session.</p>
 
4109
<p>Default value: NULL</p>
 
4110
</div>
 
4111
<hr>
 
4112
<div class="refsect2">
 
4113
<a name="GtkWindow--screen"></a><h3>The <code class="literal">"screen"</code> property</h3>
 
4114
<pre class="programlisting">  "screen"                   <a href="../gdk2/GdkScreen.html"><span class="type">GdkScreen</span></a>*            : Read / Write</pre>
 
4115
<p>The screen where this window will be displayed.</p>
 
4116
</div>
 
4117
<hr>
 
4118
<div class="refsect2">
 
4119
<a name="GtkWindow--skip-pager-hint"></a><h3>The <code class="literal">"skip-pager-hint"</code> property</h3>
 
4120
<pre class="programlisting">  "skip-pager-hint"          <span class="type">gboolean</span>              : Read / Write</pre>
 
4121
<p>TRUE if the window should not be in the pager.</p>
 
4122
<p>Default value: FALSE</p>
 
4123
</div>
 
4124
<hr>
 
4125
<div class="refsect2">
 
4126
<a name="GtkWindow--skip-taskbar-hint"></a><h3>The <code class="literal">"skip-taskbar-hint"</code> property</h3>
 
4127
<pre class="programlisting">  "skip-taskbar-hint"        <span class="type">gboolean</span>              : Read / Write</pre>
 
4128
<p>TRUE if the window should not be in the task bar.</p>
 
4129
<p>Default value: FALSE</p>
 
4130
</div>
 
4131
<hr>
 
4132
<div class="refsect2">
 
4133
<a name="GtkWindow--startup-id"></a><h3>The <code class="literal">"startup-id"</code> property</h3>
 
4134
<pre class="programlisting">  "startup-id"               <span class="type">gchar</span>*                : Write</pre>
 
4135
<p>
 
4136
The :startup-id is a write-only property for setting window's
 
4137
startup notification identifier. See <a class="link" href="GtkWindow.html#gtk-window-set-startup-id" title="gtk_window_set_startup_id ()"><code class="function">gtk_window_set_startup_id()</code></a>
 
4138
for more details.
 
4139
</p>
 
4140
<p>Default value: NULL</p>
 
4141
<p class="since">Since 2.12</p>
 
4142
</div>
 
4143
<hr>
 
4144
<div class="refsect2">
 
4145
<a name="GtkWindow--title"></a><h3>The <code class="literal">"title"</code> property</h3>
 
4146
<pre class="programlisting">  "title"                    <span class="type">gchar</span>*                : Read / Write</pre>
 
4147
<p>The title of the window.</p>
 
4148
<p>Default value: NULL</p>
 
4149
</div>
 
4150
<hr>
 
4151
<div class="refsect2">
 
4152
<a name="GtkWindow--transient-for"></a><h3>The <code class="literal">"transient-for"</code> property</h3>
 
4153
<pre class="programlisting">  "transient-for"            <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>*            : Read / Write / Construct</pre>
 
4154
<p>
 
4155
The transient parent of the window. See <a class="link" href="GtkWindow.html#gtk-window-set-transient-for" title="gtk_window_set_transient_for ()"><code class="function">gtk_window_set_transient_for()</code></a> for
 
4156
more details about transient windows.
 
4157
</p>
 
4158
<p class="since">Since 2.10</p>
 
4159
</div>
 
4160
<hr>
 
4161
<div class="refsect2">
 
4162
<a name="GtkWindow--type"></a><h3>The <code class="literal">"type"</code> property</h3>
 
4163
<pre class="programlisting">  "type"                     <a class="link" href="gtk2-Standard-Enumerations.html#GtkWindowType" title="enum GtkWindowType"><span class="type">GtkWindowType</span></a>         : Read / Write / Construct Only</pre>
 
4164
<p>The type of the window.</p>
 
4165
<p>Default value: GTK_WINDOW_TOPLEVEL</p>
 
4166
</div>
 
4167
<hr>
 
4168
<div class="refsect2">
 
4169
<a name="GtkWindow--type-hint"></a><h3>The <code class="literal">"type-hint"</code> property</h3>
 
4170
<pre class="programlisting">  "type-hint"                <a href="../gdk2/gdk2-Windows.html#GdkWindowTypeHint"><span class="type">GdkWindowTypeHint</span></a>     : Read / Write</pre>
 
4171
<p>Hint to help the desktop environment understand what kind of window this is and how to treat it.</p>
 
4172
<p>Default value: GDK_WINDOW_TYPE_HINT_NORMAL</p>
 
4173
</div>
 
4174
<hr>
 
4175
<div class="refsect2">
 
4176
<a name="GtkWindow--urgency-hint"></a><h3>The <code class="literal">"urgency-hint"</code> property</h3>
 
4177
<pre class="programlisting">  "urgency-hint"             <span class="type">gboolean</span>              : Read / Write</pre>
 
4178
<p>TRUE if the window should be brought to the user's attention.</p>
 
4179
<p>Default value: FALSE</p>
 
4180
</div>
 
4181
<hr>
 
4182
<div class="refsect2">
 
4183
<a name="GtkWindow--window-position"></a><h3>The <code class="literal">"window-position"</code> property</h3>
 
4184
<pre class="programlisting">  "window-position"          <a class="link" href="gtk2-Standard-Enumerations.html#GtkWindowPosition" title="enum GtkWindowPosition"><span class="type">GtkWindowPosition</span></a>     : Read / Write</pre>
 
4185
<p>The initial position of the window.</p>
 
4186
<p>Default value: GTK_WIN_POS_NONE</p>
 
4187
</div>
 
4188
</div>
 
4189
<div class="refsect1">
 
4190
<a name="GtkWindow.signal-details"></a><h2>Signal Details</h2>
 
4191
<div class="refsect2">
 
4192
<a name="GtkWindow-activate-default"></a><h3>The <code class="literal">"activate-default"</code> signal</h3>
 
4193
<pre class="programlisting"><span class="returnvalue">void</span>                user_function                      (<a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window,
 
4194
                                                        <span class="type">gpointer</span>   user_data)      : <code class="literal">Action</code></pre>
 
4195
<p>
 
4196
The ::activate-default signal is a
 
4197
<a class="link" href="gtk2-Bindings.html#keybinding-signals">keybinding signal</a>
 
4198
which gets emitted when the user activates the default widget
 
4199
of <em class="parameter"><code>window</code></em>.
 
4200
</p>
 
4201
<div class="variablelist"><table border="0" class="variablelist">
 
4202
<colgroup>
 
4203
<col align="left" valign="top">
 
4204
<col>
 
4205
</colgroup>
 
4206
<tbody>
 
4207
<tr>
 
4208
<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td>
 
4209
<td>the window which received the signal</td>
 
4210
</tr>
 
4211
<tr>
 
4212
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
 
4213
<td>user data set when the signal handler was connected.</td>
 
4214
</tr>
 
4215
</tbody>
 
4216
</table></div>
 
4217
</div>
 
4218
<hr>
 
4219
<div class="refsect2">
 
4220
<a name="GtkWindow-activate-focus"></a><h3>The <code class="literal">"activate-focus"</code> signal</h3>
 
4221
<pre class="programlisting"><span class="returnvalue">void</span>                user_function                      (<a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window,
 
4222
                                                        <span class="type">gpointer</span>   user_data)      : <code class="literal">Action</code></pre>
 
4223
<p>
 
4224
The ::activate-focus signal is a
 
4225
<a class="link" href="gtk2-Bindings.html#keybinding-signals">keybinding signal</a>
 
4226
which gets emitted when the user activates the currently
 
4227
focused widget of <em class="parameter"><code>window</code></em>.
 
4228
</p>
 
4229
<div class="variablelist"><table border="0" class="variablelist">
 
4230
<colgroup>
 
4231
<col align="left" valign="top">
 
4232
<col>
 
4233
</colgroup>
 
4234
<tbody>
 
4235
<tr>
 
4236
<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td>
 
4237
<td>the window which received the signal</td>
 
4238
</tr>
 
4239
<tr>
 
4240
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
 
4241
<td>user data set when the signal handler was connected.</td>
 
4242
</tr>
 
4243
</tbody>
 
4244
</table></div>
 
4245
</div>
 
4246
<hr>
 
4247
<div class="refsect2">
 
4248
<a name="GtkWindow-frame-event"></a><h3>The <code class="literal">"frame-event"</code> signal</h3>
 
4249
<pre class="programlisting"><span class="returnvalue">gboolean</span>            user_function                      (<a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window,
 
4250
                                                        <a href="../gdk2/gdk2-Event-Structures.html#GdkEvent"><span class="type">GdkEvent</span></a>  *arg1,
 
4251
                                                        <span class="type">gpointer</span>   user_data)      : <code class="literal">Run Last</code></pre>
 
4252
<p>
 
4253
</p>
 
4254
<div class="variablelist"><table border="0" class="variablelist">
 
4255
<colgroup>
 
4256
<col align="left" valign="top">
 
4257
<col>
 
4258
</colgroup>
 
4259
<tbody>
 
4260
<tr>
 
4261
<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td>
 
4262
<td>the object which received the signal.</td>
 
4263
</tr>
 
4264
<tr>
 
4265
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
 
4266
<td>user data set when the signal handler was connected.</td>
 
4267
</tr>
 
4268
</tbody>
 
4269
</table></div>
 
4270
</div>
 
4271
<hr>
 
4272
<div class="refsect2">
 
4273
<a name="GtkWindow-keys-changed"></a><h3>The <code class="literal">"keys-changed"</code> signal</h3>
 
4274
<pre class="programlisting"><span class="returnvalue">void</span>                user_function                      (<a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window,
 
4275
                                                        <span class="type">gpointer</span>   user_data)      : <code class="literal">Run First</code></pre>
 
4276
<p>
 
4277
The ::keys-changed signal gets emitted when the set of accelerators
 
4278
or mnemonics that are associated with <em class="parameter"><code>window</code></em> changes.
 
4279
</p>
 
4280
<div class="variablelist"><table border="0" class="variablelist">
 
4281
<colgroup>
 
4282
<col align="left" valign="top">
 
4283
<col>
 
4284
</colgroup>
 
4285
<tbody>
 
4286
<tr>
 
4287
<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td>
 
4288
<td>the window which received the signal</td>
 
4289
</tr>
 
4290
<tr>
 
4291
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
 
4292
<td>user data set when the signal handler was connected.</td>
 
4293
</tr>
 
4294
</tbody>
 
4295
</table></div>
 
4296
</div>
 
4297
<hr>
 
4298
<div class="refsect2">
 
4299
<a name="GtkWindow-set-focus"></a><h3>The <code class="literal">"set-focus"</code> signal</h3>
 
4300
<pre class="programlisting"><span class="returnvalue">void</span>                user_function                      (<a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window,
 
4301
                                                        <a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a> *widget,
 
4302
                                                        <span class="type">gpointer</span>   user_data)      : <code class="literal">Run Last</code></pre>
 
4303
<p>
 
4304
</p>
 
4305
<div class="variablelist"><table border="0" class="variablelist">
 
4306
<colgroup>
 
4307
<col align="left" valign="top">
 
4308
<col>
 
4309
</colgroup>
 
4310
<tbody>
 
4311
<tr>
 
4312
<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td>
 
4313
<td>the object which received the signal.</td>
 
4314
</tr>
 
4315
<tr>
 
4316
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
 
4317
<td>user data set when the signal handler was connected.</td>
 
4318
</tr>
 
4319
</tbody>
 
4320
</table></div>
 
4321
</div>
 
4322
</div>
 
4323
</div>
 
4324
<div class="footer">
 
4325
<hr>
 
4326
          Generated by GTK-Doc V1.18</div>
 
4327
</body>
 
4328
</html>
 
 
b'\\ No newline at end of file'