1
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
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">
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">
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>
23
<tr><td colspan="5" class="shortcuts">
24
<a href="#GtkWindow.synopsis" class="shortcut">Top</a>
26
<a href="#GtkWindow.description" class="shortcut">Description</a>
28
<a href="#GtkWindow.object-hierarchy" class="shortcut">Object Hierarchy</a>
30
<a href="#GtkWindow.implemented-interfaces" class="shortcut">Implemented Interfaces</a>
32
<a href="#GtkWindow.properties" class="shortcut">Properties</a>
34
<a href="#GtkWindow.signals" class="shortcut">Signals</a>
37
<div class="refentry">
38
<a name="GtkWindow"></a><div class="titlepage"></div>
39
<div class="refnamediv"><table width="100%"><tr>
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>
44
<td valign="top" align="right"><img src="window.png"></td>
46
<div class="refsynopsisdiv">
47
<a name="GtkWindow.synopsis"></a><h2>Synopsis</h2>
48
<pre class="synopsis">
49
#include <gtk/gtk.h>
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>);
237
<div class="refsect1">
238
<a name="GtkWindow.object-hierarchy"></a><h2>Object Hierarchy</h2>
239
<pre class="synopsis">
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>
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>
253
<div class="refsect1">
254
<a name="GtkWindow.implemented-interfaces"></a><h2>Implemented Interfaces</h2>
257
AtkImplementorIface and <a class="link" href="GtkBuildable.html" title="GtkBuildable">GtkBuildable</a>.</p>
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
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>
303
<div class="refsect1">
304
<a name="GtkWindow.description"></a><h2>Description</h2>
307
<div class="refsect2">
308
<a name="GtkWindow-BUILDER-UI"></a><h3>GtkWindow as GtkBuildable</h3>
310
The GtkWindow implementation of the GtkBuildable interface supports a
311
custom <accel-groups> element, which supports any number of <group>
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>.
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">
321
<td class="listing_lines" align="right"><pre>1
328
<td class="listing_code"><pre class="programlisting"><span class="symbol"><</span><span class="usertype">object</span><span class="normal"> class</span><span class="symbol">=</span><span class="string">"GtkWindow"</span><span class="symbol">></span>
329
<span class="normal"> </span><span class="symbol"><</span><span class="normal">accel</span><span class="symbol">-</span><span class="normal">groups</span><span class="symbol">></span>
330
<span class="normal"> </span><span class="symbol"><</span><span class="usertype">group</span><span class="normal"> name</span><span class="symbol">=</span><span class="string">"accelgroup1"</span><span class="symbol">/></span>
331
<span class="normal"> </span><span class="symbol"></</span><span class="normal">accel</span><span class="symbol">-</span><span class="normal">groups</span><span class="symbol">></span>
332
<span class="symbol"></</span><span class="normal">object</span><span class="symbol">></span>
333
<span class="symbol">...</span>
334
<span class="symbol"><</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">/></span></pre></td>
341
<br class="example-break">
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>
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>
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>.
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>.
370
<div class="variablelist"><table border="0" class="variablelist">
372
<col align="left" valign="top">
377
<td><p><span class="term"><em class="parameter"><code>type</code></em> :</span></p></td>
378
<td>type of window</td>
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>
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>
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.
402
<div class="variablelist"><table border="0" class="variablelist">
404
<col align="left" valign="top">
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>
414
<td><p><span class="term"><em class="parameter"><code>title</code></em> :</span></p></td>
415
<td>title of the window</td>
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>
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.
436
<div class="variablelist"><table border="0" class="variablelist">
438
<col align="left" valign="top">
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>
448
<td><p><span class="term"><em class="parameter"><code>wmclass_name</code></em> :</span></p></td>
449
<td>window name hint</td>
452
<td><p><span class="term"><em class="parameter"><code>wmclass_class</code></em> :</span></p></td>
453
<td>window class hint</td>
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>
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:
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.
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.
485
The first policy is the default, that is, by default windows are designed to
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);
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>.
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.
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.
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>.
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>.
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.
531
<div class="variablelist"><table border="0" class="variablelist">
533
<col align="left" valign="top">
538
<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td>
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>
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>
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
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>
563
Sets whether the user can resize a window. Windows are user resizable
566
<div class="variablelist"><table border="0" class="variablelist">
568
<col align="left" valign="top">
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>
578
<td><p><span class="term"><em class="parameter"><code>resizable</code></em> :</span></p></td>
580
<code class="literal">TRUE</code> if the user can resize this window</td>
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>
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>.
592
<div class="variablelist"><table border="0" class="variablelist">
594
<col align="left" valign="top">
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>
604
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
606
<code class="literal">TRUE</code> if the user can resize the window</td>
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>
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>.
621
<div class="variablelist"><table border="0" class="variablelist">
623
<col align="left" valign="top">
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>
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>
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>
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>.
647
<div class="variablelist"><table border="0" class="variablelist">
649
<col align="left" valign="top">
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>
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>
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
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>
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>.
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>
684
Activates the current focused widget within the window.
686
<div class="variablelist"><table border="0" class="variablelist">
688
<col align="left" valign="top">
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>
698
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
700
<code class="literal">TRUE</code> if a widget got activated.</td>
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>
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.
715
<div class="variablelist"><table border="0" class="variablelist">
717
<col align="left" valign="top">
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>
727
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
729
<code class="literal">TRUE</code> if a widget got activated.</td>
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>
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.
747
<div class="variablelist"><table border="0" class="variablelist">
749
<col align="left" valign="top">
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>
759
<td><p><span class="term"><em class="parameter"><code>modal</code></em> :</span></p></td>
760
<td>whether the window is modal</td>
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>
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.
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).
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>.
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.
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.
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.
806
<div class="variablelist"><table border="0" class="variablelist">
808
<col align="left" valign="top">
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>
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>
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>
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>
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.
841
<div class="variablelist"><table border="0" class="variablelist">
843
<col align="left" valign="top">
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>
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>
857
<td><p><span class="term"><em class="parameter"><code>geometry</code></em> :</span></p></td>
858
<td>struct containing geometry information</td>
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>
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>
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
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."
881
<div class="variablelist"><table border="0" class="variablelist">
883
<col align="left" valign="top">
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>
893
<td><p><span class="term"><em class="parameter"><code>gravity</code></em> :</span></p></td>
894
<td>window gravity</td>
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>
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>.
906
<div class="variablelist"><table border="0" class="variablelist">
908
<col align="left" valign="top">
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>
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>
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>
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.
935
<div class="variablelist"><table border="0" class="variablelist">
937
<col align="left" valign="top">
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>
946
<td><p><span class="term"><em class="parameter"><code>position</code></em> :</span></p></td>
947
<td>a position constraint.</td>
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>
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.
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.
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.
972
<div class="variablelist"><table border="0" class="variablelist">
974
<col align="left" valign="top">
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>
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>
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>
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.
1002
<div class="variablelist"><table border="0" class="variablelist">
1004
<col align="left" valign="top">
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>
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>
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>
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.
1030
<div class="variablelist"><table border="0" class="variablelist">
1032
<col align="left" valign="top">
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>
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>
1046
<p class="since">Since 2.2</p>
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>
1053
Returns the <a href="../gdk2/GdkScreen.html"><span class="type">GdkScreen</span></a> associated with <em class="parameter"><code>window</code></em>.
1055
<div class="variablelist"><table border="0" class="variablelist">
1057
<col align="left" valign="top">
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>
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>
1072
<p class="since">Since 2.2</p>
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>
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>
1087
<div class="variablelist"><table border="0" class="variablelist">
1089
<col align="left" valign="top">
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>
1099
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1101
<code class="literal">TRUE</code> if the window part of the current active window.</td>
1105
<p class="since">Since 2.4</p>
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>
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.
1116
<div class="variablelist"><table border="0" class="variablelist">
1118
<col align="left" valign="top">
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>
1128
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1130
<code class="literal">TRUE</code> if the input focus is within this GtkWindow</td>
1134
<p class="since">Since 2.4</p>
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>
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.
1148
<div class="variablelist"><table border="0" class="variablelist">
1150
<col align="left" valign="top">
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>
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>
1167
Adds a mnemonic to this window.
1169
<div class="variablelist"><table border="0" class="variablelist">
1171
<col align="left" valign="top">
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>
1181
<td><p><span class="term"><em class="parameter"><code>keyval</code></em> :</span></p></td>
1182
<td>the mnemonic</td>
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>
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>
1198
Removes a mnemonic from this window.
1200
<div class="variablelist"><table border="0" class="variablelist">
1202
<col align="left" valign="top">
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>
1212
<td><p><span class="term"><em class="parameter"><code>keyval</code></em> :</span></p></td>
1213
<td>the mnemonic</td>
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>
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>
1229
Activates the targets associated with the mnemonic.
1231
<div class="variablelist"><table border="0" class="variablelist">
1233
<col align="left" valign="top">
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>
1243
<td><p><span class="term"><em class="parameter"><code>keyval</code></em> :</span></p></td>
1244
<td>the mnemonic</td>
1247
<td><p><span class="term"><em class="parameter"><code>modifier</code></em> :</span></p></td>
1248
<td>the modifiers</td>
1251
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1253
<code class="literal">TRUE</code> if the activation is done.</td>
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>
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.
1269
<div class="variablelist"><table border="0" class="variablelist">
1271
<col align="left" valign="top">
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>
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>
1286
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1288
<code class="literal">TRUE</code> if a mnemonic or accelerator was found and activated.</td>
1292
<p class="since">Since 2.4</p>
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>
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.
1307
<div class="variablelist"><table border="0" class="variablelist">
1309
<col align="left" valign="top">
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>
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>
1324
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1326
<code class="literal">TRUE</code> if a widget in the focus chain handled the event.</td>
1330
<p class="since">Since 2.4</p>
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>
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.
1343
<div class="variablelist"><table border="0" class="variablelist">
1345
<col align="left" valign="top">
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>
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>
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>
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.
1374
<div class="variablelist"><table border="0" class="variablelist">
1376
<col align="left" valign="top">
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>
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>
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>
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>
1402
<div class="variablelist"><table border="0" class="variablelist">
1404
<col align="left" valign="top">
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>
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>
1420
<p class="since">Since 2.14</p>
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>
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>.
1436
<div class="variablelist"><table border="0" class="variablelist">
1438
<col align="left" valign="top">
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>
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>
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>
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.
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>
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.
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>.
1481
<div class="variablelist"><table border="0" class="variablelist">
1483
<col align="left" valign="top">
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>
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>
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.
1503
<div class="variablelist"><table border="0" class="variablelist">
1505
<col align="left" valign="top">
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>
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>
1521
<p class="since">Since 2.8</p>
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>
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.
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
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>.
1544
<div class="variablelist"><table border="0" class="variablelist">
1546
<col align="left" valign="top">
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>
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>
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.
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>.
1570
<div class="variablelist"><table border="0" class="variablelist">
1572
<col align="left" valign="top">
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>
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>
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.
1595
It's permitted to call this function before showing a window.
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>.
1601
<div class="variablelist"><table border="0" class="variablelist">
1603
<col align="left" valign="top">
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>
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>
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.
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>.
1629
<div class="variablelist"><table border="0" class="variablelist">
1631
<col align="left" valign="top">
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>
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>
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.
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
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>.
1662
<div class="variablelist"><table border="0" class="variablelist">
1664
<col align="left" valign="top">
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>
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>
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.
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>.
1690
<div class="variablelist"><table border="0" class="variablelist">
1692
<col align="left" valign="top">
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>
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>
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.
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>.
1718
<div class="variablelist"><table border="0" class="variablelist">
1720
<col align="left" valign="top">
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>
1729
<p class="since">Since 2.2</p>
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>
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.
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>.
1747
<div class="variablelist"><table border="0" class="variablelist">
1749
<col align="left" valign="top">
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>
1758
<p class="since">Since 2.2</p>
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>
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.
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
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>.
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.
1788
<div class="variablelist"><table border="0" class="variablelist">
1790
<col align="left" valign="top">
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>
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>
1805
<p class="since">Since 2.4</p>
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>
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.
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
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>.
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.
1835
<div class="variablelist"><table border="0" class="variablelist">
1837
<col align="left" valign="top">
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>
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>
1852
<p class="since">Since 2.4</p>
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>
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.
1870
<div class="variablelist"><table border="0" class="variablelist">
1872
<col align="left" valign="top">
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>
1882
<td><p><span class="term"><em class="parameter"><code>edge</code></em> :</span></p></td>
1883
<td>position of the resize control</td>
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>
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>
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>
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>
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>
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.
1919
<div class="variablelist"><table border="0" class="variablelist">
1921
<col align="left" valign="top">
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>
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>
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>
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>
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>
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>
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>.
1965
On Windows, this function always works, since there's no window manager
1968
<div class="variablelist"><table border="0" class="variablelist">
1970
<col align="left" valign="top">
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>
1980
<td><p><span class="term"><em class="parameter"><code>setting</code></em> :</span></p></td>
1982
<code class="literal">TRUE</code> to decorate the window</td>
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>
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>.
2002
On Windows, this function always works, since there's no window manager
2005
<div class="variablelist"><table border="0" class="variablelist">
2007
<col align="left" valign="top">
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>
2017
<td><p><span class="term"><em class="parameter"><code>setting</code></em> :</span></p></td>
2019
<code class="literal">TRUE</code> to decorate the window as deletable</td>
2023
<p class="since">Since 2.10</p>
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>
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.)
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.
2047
<div class="variablelist"><table border="0" class="variablelist">
2049
<col align="left" valign="top">
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>
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>
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>
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>
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>
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>
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.)
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->window</code></em>, accessible in <em class="parameter"><code>window->frame</code></em>. Using the signal
2095
frame_event you can receive all events targeted at the frame.
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.
2102
<div class="variablelist"><table border="0" class="variablelist">
2104
<col align="left" valign="top">
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>
2114
<td><p><span class="term"><em class="parameter"><code>setting</code></em> :</span></p></td>
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>
2126
Sets the mnemonic modifier for this window.
2128
<div class="variablelist"><table border="0" class="variablelist">
2130
<col align="left" valign="top">
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>
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>
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>
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.
2158
This function should be called before the window becomes visible.
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.
2164
<div class="variablelist"><table border="0" class="variablelist">
2166
<col align="left" valign="top">
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>
2176
<td><p><span class="term"><em class="parameter"><code>hint</code></em> :</span></p></td>
2177
<td>the window type</td>
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>
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.
2191
<div class="variablelist"><table border="0" class="variablelist">
2193
<col align="left" valign="top">
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>
2203
<td><p><span class="term"><em class="parameter"><code>setting</code></em> :</span></p></td>
2205
<code class="literal">TRUE</code> to keep this window from appearing in the task bar</td>
2209
<p class="since">Since 2.2</p>
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>
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
2223
<div class="variablelist"><table border="0" class="variablelist">
2225
<col align="left" valign="top">
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>
2235
<td><p><span class="term"><em class="parameter"><code>setting</code></em> :</span></p></td>
2237
<code class="literal">TRUE</code> to keep this window from appearing in the pager</td>
2241
<p class="since">Since 2.2</p>
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>
2249
Windows may set a hint asking the desktop environment to draw
2250
the users attention to the window. This function sets this hint.
2252
<div class="variablelist"><table border="0" class="variablelist">
2254
<col align="left" valign="top">
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>
2264
<td><p><span class="term"><em class="parameter"><code>setting</code></em> :</span></p></td>
2266
<code class="literal">TRUE</code> to mark this window as urgent</td>
2270
<p class="since">Since 2.8</p>
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>
2278
Windows may set a hint asking the desktop environment not to receive
2279
the input focus. This function sets this hint.
2281
<div class="variablelist"><table border="0" class="variablelist">
2283
<col align="left" valign="top">
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>
2293
<td><p><span class="term"><em class="parameter"><code>setting</code></em> :</span></p></td>
2295
<code class="literal">TRUE</code> to let this window receive input focus</td>
2299
<p class="since">Since 2.4</p>
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>
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
2311
<div class="variablelist"><table border="0" class="variablelist">
2313
<col align="left" valign="top">
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>
2323
<td><p><span class="term"><em class="parameter"><code>setting</code></em> :</span></p></td>
2325
<code class="literal">TRUE</code> to let this window receive input focus on map</td>
2329
<p class="since">Since 2.6</p>
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>
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.
2347
This function is only useful on X11, not with other GTK+ targets.
2349
<div class="variablelist"><table border="0" class="variablelist">
2351
<col align="left" valign="top">
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>
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>
2366
<p class="since">Since 2.12</p>
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>
2374
This function is only useful on X11, not with other GTK+ targets.
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.
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.
2389
<div class="variablelist"><table border="0" class="variablelist">
2391
<col align="left" valign="top">
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>
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>
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>
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>.
2415
<div class="variablelist"><table border="0" class="variablelist">
2417
<col align="left" valign="top">
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>
2427
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
2429
<code class="literal">TRUE</code> if the window has been set to have decorations</td>
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>
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>.
2442
<div class="variablelist"><table border="0" class="variablelist">
2444
<col align="left" valign="top">
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>
2454
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
2456
<code class="literal">TRUE</code> if the window has been set to have a close button</td>
2460
<p class="since">Since 2.10</p>
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>
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
2472
<div class="variablelist"><table border="0" class="variablelist">
2474
<col align="left" valign="top">
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>
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>
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>.
2495
<div class="variablelist"><table border="0" class="variablelist">
2497
<col align="left" valign="top">
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>
2505
<p class="since">Since 2.16</p>
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>
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
2519
<div class="variablelist"><table border="0" class="variablelist">
2521
<col align="left" valign="top">
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>
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>
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>
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>
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>.
2551
<div class="variablelist"><table border="0" class="variablelist">
2553
<col align="left" valign="top">
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>
2563
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
2565
<code class="literal">TRUE</code> if the window will be destroyed with its transient parent.</td>
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>
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
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>.
2594
<div class="variablelist"><table border="0" class="variablelist">
2596
<col align="left" valign="top">
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>
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>
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>
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>
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>
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>
2637
Accessor for whether the window has a frame window exterior to
2638
<em class="parameter"><code>window->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>.
2640
<div class="variablelist"><table border="0" class="variablelist">
2642
<col align="left" valign="top">
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>
2652
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></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>
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>
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
2669
<div class="variablelist"><table border="0" class="variablelist">
2671
<col align="left" valign="top">
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>
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>
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>
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.
2697
<div class="variablelist"><table border="0" class="variablelist">
2699
<col align="left" valign="top">
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>
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>
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>
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>.
2724
<div class="variablelist"><table border="0" class="variablelist">
2726
<col align="left" valign="top">
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>
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
2742
<p class="since">Since 2.6</p>
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>
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>.
2752
<div class="variablelist"><table border="0" class="variablelist">
2754
<col align="left" valign="top">
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>
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>
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>
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>.
2778
<div class="variablelist"><table border="0" class="variablelist">
2780
<col align="left" valign="top">
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>
2790
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
2792
<code class="literal">TRUE</code> if the window is set to be modal and
2793
establishes a grab when shown</td>
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>
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.
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.
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
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.
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.
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.
2847
<div class="variablelist"><table border="0" class="variablelist">
2849
<col align="left" valign="top">
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>
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>
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>
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>
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.
2879
<div class="variablelist"><table border="0" class="variablelist">
2881
<col align="left" valign="top">
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>
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
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>
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.
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>.
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.
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
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.
2954
<div class="variablelist"><table border="0" class="variablelist">
2956
<col align="left" valign="top">
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>
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>
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>
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>
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>.
2985
<div class="variablelist"><table border="0" class="variablelist">
2987
<col align="left" valign="top">
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>
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>
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>
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>.
3013
<div class="variablelist"><table border="0" class="variablelist">
3015
<col align="left" valign="top">
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>
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>
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>
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>.
3040
<div class="variablelist"><table border="0" class="variablelist">
3042
<col align="left" valign="top">
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>
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>
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>
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>
3065
<div class="variablelist"><table border="0" class="variablelist">
3067
<col align="left" valign="top">
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>
3077
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
3079
<code class="literal">TRUE</code> if window shouldn't be in taskbar</td>
3083
<p class="since">Since 2.2</p>
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>
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>.
3092
<div class="variablelist"><table border="0" class="variablelist">
3094
<col align="left" valign="top">
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>
3104
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
3106
<code class="literal">TRUE</code> if window shouldn't be in pager</td>
3110
<p class="since">Since 2.2</p>
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>
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>
3119
<div class="variablelist"><table border="0" class="variablelist">
3121
<col align="left" valign="top">
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>
3131
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
3133
<code class="literal">TRUE</code> if window is urgent</td>
3137
<p class="since">Since 2.8</p>
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>
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>.
3146
<div class="variablelist"><table border="0" class="variablelist">
3148
<col align="left" valign="top">
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>
3158
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
3160
<code class="literal">TRUE</code> if window should receive the input focus</td>
3164
<p class="since">Since 2.4</p>
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>
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>.
3173
<div class="variablelist"><table border="0" class="variablelist">
3175
<col align="left" valign="top">
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>
3185
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
3187
<code class="literal">TRUE</code> if window should receive the input focus when
3192
<p class="since">Since 2.6</p>
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>
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
3203
<div class="variablelist"><table border="0" class="variablelist">
3205
<col align="left" valign="top">
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>
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>
3221
<p class="since">Since 2.10</p>
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>
3228
Returns whether <em class="parameter"><code>window</code></em> has an explicit window group.
3230
<div class="variablelist"><table border="0" class="variablelist">
3232
<col align="left" valign="top">
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>
3242
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
3244
<code class="literal">TRUE</code> if <em class="parameter"><code>window</code></em> has an explicit window group.
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>
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>.
3257
<div class="variablelist"><table border="0" class="variablelist">
3259
<col align="left" valign="top">
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>
3269
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
3270
<td>the type of the window</td>
3274
<p class="since">Since 2.20</p>
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>
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.
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.
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.
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).
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.
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.
3323
<div class="variablelist"><table border="0" class="variablelist">
3325
<col align="left" valign="top">
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>
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>
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>
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>
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.
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.
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.
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>
3375
<div class="informalexample">
3376
<table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
3379
<td class="listing_lines" align="right"><pre>1
3422
<td class="listing_code"><pre class="programlisting"><span class="preproc">#include</span><span class="normal"> </span><span class="string"><gtk/gtk.h></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">(&</span><span class="normal">argc</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">&</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">&</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">></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>
3472
<div class="variablelist"><table border="0" class="variablelist">
3474
<col align="left" valign="top">
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>
3484
<td><p><span class="term"><em class="parameter"><code>geometry</code></em> :</span></p></td>
3485
<td>geometry string</td>
3488
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
3490
<code class="literal">TRUE</code> if string was parsed successfully</td>
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>
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.
3504
<div class="variablelist"><table border="0" class="variablelist">
3506
<col align="left" valign="top">
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>
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>
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.
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>.
3535
Windows may not be resized smaller than 1 by 1 pixels.
3537
<div class="variablelist"><table border="0" class="variablelist">
3539
<col align="left" valign="top">
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>
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>
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>
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>
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.
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.
3572
<div class="variablelist"><table border="0" class="variablelist">
3574
<col align="left" valign="top">
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>
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>
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.
3592
<div class="variablelist"><table border="0" class="variablelist">
3594
<col align="left" valign="top">
3598
<td><p><span class="term"><em class="parameter"><code>icon</code></em> :</span></p></td>
3602
<p class="since">Since 2.4</p>
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
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>.
3614
<div class="variablelist"><table border="0" class="variablelist">
3616
<col align="left" valign="top">
3620
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
3622
<code class="literal">TRUE</code> if setting the icon succeeded.</td>
3625
<p class="since">Since 2.2</p>
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>
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>.
3636
<div class="variablelist"><table border="0" class="variablelist">
3638
<col align="left" valign="top">
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>
3646
<p class="since">Since 2.6</p>
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>
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.
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.
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.
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.
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.
3677
<div class="variablelist"><table border="0" class="variablelist">
3679
<col align="left" valign="top">
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>
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>
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>
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.
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.
3715
By passing several sizes, you may improve the final image quality
3716
of the icon, by reducing or eliminating automatic image scaling.
3719
Recommended sizes to provide: 16x16, 32x32, 48x48 at minimum, and
3720
larger images (64x64, 128x128) if you have them.
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.
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.
3732
<div class="variablelist"><table border="0" class="variablelist">
3734
<col align="left" valign="top">
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>
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>
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
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>.
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>.
3764
<div class="variablelist"><table border="0" class="variablelist">
3766
<col align="left" valign="top">
3770
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
3772
<code class="literal">TRUE</code> if setting the icon succeeded.</td>
3775
<p class="since">Since 2.2</p>
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>
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.
3787
Note that this has nothing to do with the WM_ICON_NAME
3788
property which is mentioned in the ICCCM.
3790
<div class="variablelist"><table border="0" class="variablelist">
3792
<col align="left" valign="top">
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>
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>
3808
<p class="since">Since 2.6</p>
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>
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.
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.
3827
<div class="variablelist"><table border="0" class="variablelist">
3829
<col align="left" valign="top">
3833
<td><p><span class="term"><em class="parameter"><code>setting</code></em> :</span></p></td>
3835
<code class="literal">TRUE</code> to automatically do startup notification</td>
3838
<p class="since">Since 2.2</p>
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>
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>.
3848
<div class="variablelist"><table border="0" class="variablelist">
3850
<col align="left" valign="top">
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>
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>
3865
<p class="since">Since 2.12</p>
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>
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
3881
Note that setting a window's opacity after the window has been
3882
shown causes it to flicker once on Windows.
3884
<div class="variablelist"><table border="0" class="variablelist">
3886
<col align="left" valign="top">
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>
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>
3901
<p class="since">Since 2.12</p>
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>
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>
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.
3918
<div class="variablelist"><table border="0" class="variablelist">
3920
<col align="left" valign="top">
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>
3930
<td><p><span class="term"><em class="parameter"><code>setting</code></em> :</span></p></td>
3931
<td>the new value</td>
3935
<p class="since">Since 2.20</p>
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>
3944
Whether the window should receive the input focus.
3946
<p>Default value: TRUE</p>
3947
<p class="since">Since 2.4</p>
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>
3958
If <code class="literal">TRUE</code>, users can expand the window beyond its minimum size.
3960
<p>Default value: TRUE</p>
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>
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.
3974
<p>Default value: FALSE</p>
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>
3981
Whether the window should be decorated by the window manager.
3983
<p>Default value: TRUE</p>
3984
<p class="since">Since 2.4</p>
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: >= G_MAXULONG</p>
3992
<p>Default value: -1</p>
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: >= G_MAXULONG</p>
4000
<p>Default value: -1</p>
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>
4007
Whether the window frame should have a close button.
4009
<p>Default value: TRUE</p>
4010
<p class="since">Since 2.10</p>
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>
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>
4024
Whether the window should receive the input focus when mapped.
4026
<p>Default value: TRUE</p>
4027
<p class="since">Since 2.6</p>
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>
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.
4037
<p>Default value: GDK_GRAVITY_NORTH_WEST</p>
4038
<p class="since">Since 2.4</p>
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>
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>
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>
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.
4061
<p>Default value: NULL</p>
4062
<p class="since">Since 2.6</p>
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>
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>
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>
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>
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.
4093
<p>Allowed values: [0,1]</p>
4094
<p>Default value: 1</p>
4095
<p class="since">Since 2.12</p>
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>
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>
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>
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>
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>
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>
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>
4140
<p>Default value: NULL</p>
4141
<p class="since">Since 2.12</p>
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>
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>
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.
4158
<p class="since">Since 2.10</p>
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>
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>
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>
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>
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>
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>.
4201
<div class="variablelist"><table border="0" class="variablelist">
4203
<col align="left" valign="top">
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>
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>
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>
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>.
4229
<div class="variablelist"><table border="0" class="variablelist">
4231
<col align="left" valign="top">
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>
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>
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>
4254
<div class="variablelist"><table border="0" class="variablelist">
4256
<col align="left" valign="top">
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>
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>
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>
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.
4280
<div class="variablelist"><table border="0" class="variablelist">
4282
<col align="left" valign="top">
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>
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>
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>
4305
<div class="variablelist"><table border="0" class="variablelist">
4307
<col align="left" valign="top">
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>
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>
4324
<div class="footer">
4326
Generated by GTK-Doc V1.18</div>
b'\\ No newline at end of file'