diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2018-08-20 21:12:06 -0400 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2018-08-20 21:12:06 -0400 |
commit | 63e87c2d0c9d263f14c77b68f85c67d46ece82a9 (patch) | |
tree | 6260365cbf7d24f37d27669e8538227fcb72e243 /gtk+-mingw/share/gtk-doc/html/gtk3/GtkWindow.html | |
parent | a4460f6d9453bbd7e584937686449cef3e19f052 (diff) |
Diffstat (limited to 'gtk+-mingw/share/gtk-doc/html/gtk3/GtkWindow.html')
-rw-r--r-- | gtk+-mingw/share/gtk-doc/html/gtk3/GtkWindow.html | 4299 |
1 files changed, 0 insertions, 4299 deletions
diff --git a/gtk+-mingw/share/gtk-doc/html/gtk3/GtkWindow.html b/gtk+-mingw/share/gtk-doc/html/gtk3/GtkWindow.html deleted file mode 100644 index 98c64b1..0000000 --- a/gtk+-mingw/share/gtk-doc/html/gtk3/GtkWindow.html +++ /dev/null @@ -1,4299 +0,0 @@ -<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> -<html> -<head> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> -<title>GtkWindow</title> -<meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> -<link rel="home" href="index.html" title="GTK+ 3 Reference Manual"> -<link rel="up" href="WindowWidgets.html" title="Windows"> -<link rel="prev" href="GtkMessageDialog.html" title="GtkMessageDialog"> -<link rel="next" href="GtkWindowGroup.html" title="GtkWindowGroup"> -<meta name="generator" content="GTK-Doc V1.18.1 (XML mode)"> -<link rel="stylesheet" href="style.css" type="text/css"> -</head> -<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> -<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"> -<tr valign="middle"> -<td><a accesskey="p" href="GtkMessageDialog.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td> -<td><a accesskey="u" href="WindowWidgets.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td> -<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td> -<th width="100%" align="center">GTK+ 3 Reference Manual</th> -<td><a accesskey="n" href="GtkWindowGroup.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td> -</tr> -<tr><td colspan="5" class="shortcuts"> -<a href="#GtkWindow.synopsis" class="shortcut">Top</a> - | - <a href="#GtkWindow.description" class="shortcut">Description</a> - | - <a href="#GtkWindow.object-hierarchy" class="shortcut">Object Hierarchy</a> - | - <a href="#GtkWindow.implemented-interfaces" class="shortcut">Implemented Interfaces</a> - | - <a href="#GtkWindow.properties" class="shortcut">Properties</a> - | - <a href="#GtkWindow.style-properties" class="shortcut">Style Properties</a> - | - <a href="#GtkWindow.signals" class="shortcut">Signals</a> -</td></tr> -</table> -<div class="refentry"> -<a name="GtkWindow"></a><div class="titlepage"></div> -<div class="refnamediv"><table width="100%"><tr> -<td valign="top"> -<h2><span class="refentrytitle"><a name="GtkWindow.top_of_page"></a>GtkWindow</span></h2> -<p>GtkWindow — Toplevel which can contain other widgets</p> -</td> -<td valign="top" align="right"><img src="window.png"></td> -</tr></table></div> -<div class="refsynopsisdiv"> -<a name="GtkWindow.synopsis"></a><h2>Synopsis</h2> -<pre class="synopsis"> -#include <gtk/gtk.h> - - <a class="link" href="GtkWindow.html#GtkWindow-struct" title="GtkWindow">GtkWindow</a>; -<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="gtk3-Standard-Enumerations.html#GtkWindowType" title="enum GtkWindowType"><span class="type">GtkWindowType</span></a> type</code></em>); -<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>, - <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *title</code></em>); -<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>, - <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *wmclass_name</code></em>, - <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *wmclass_class</code></em>); -<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>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> resizable</code></em>); -<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <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>); -<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>, - <em class="parameter"><code><a class="link" href="gtk3-Keyboard-Accelerators.html#GtkAccelGroup"><span class="type">GtkAccelGroup</span></a> *accel_group</code></em>); -<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>, - <em class="parameter"><code><a class="link" href="gtk3-Keyboard-Accelerators.html#GtkAccelGroup"><span class="type">GtkAccelGroup</span></a> *accel_group</code></em>); -<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <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>); -<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <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>); -<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>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> modal</code></em>); -<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>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> width</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> height</code></em>); -<span class="returnvalue">void</span> <a class="link" href="GtkWindow.html#gtk-window-set-default-geometry" title="gtk_window_set_default_geometry ()">gtk_window_set_default_geometry</a> (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> width</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> height</code></em>); -<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>, - <em class="parameter"><code><a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a> *geometry_widget</code></em>, - <em class="parameter"><code><a href="http://developer.gnome.org/gdk/gdk3-Windows.html#GdkGeometry"><span class="type">GdkGeometry</span></a> *geometry</code></em>, - <em class="parameter"><code><a href="http://developer.gnome.org/gdk/gdk3-Windows.html#GdkWindowHints"><span class="type">GdkWindowHints</span></a> geom_mask</code></em>); -<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>, - <em class="parameter"><code><a href="http://developer.gnome.org/gdk/gdk3-Windows.html#GdkGravity"><span class="type">GdkGravity</span></a> gravity</code></em>); -<a href="http://developer.gnome.org/gdk/gdk3-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>); -<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>, - <em class="parameter"><code><a class="link" href="gtk3-Standard-Enumerations.html#GtkWindowPosition" title="enum GtkWindowPosition"><span class="type">GtkWindowPosition</span></a> position</code></em>); -<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>, - <em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *parent</code></em>); -<span class="returnvalue">void</span> <a class="link" href="GtkWindow.html#gtk-window-set-attached-to" title="gtk_window_set_attached_to ()">gtk_window_set_attached_to</a> (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>, - <em class="parameter"><code><a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a> *attach_widget</code></em>); -<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>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> setting</code></em>); -<span class="returnvalue">void</span> <a class="link" href="GtkWindow.html#gtk-window-set-hide-titlebar-when-maximized" title="gtk_window_set_hide_titlebar_when_maximized ()">gtk_window_set_hide_titlebar_when_maximized</a> - (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> setting</code></em>); -<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>, - <em class="parameter"><code><a href="http://developer.gnome.org/gdk/GdkScreen.html"><span class="type">GdkScreen</span></a> *screen</code></em>); -<a href="http://developer.gnome.org/gdk/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>); -<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <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>); -<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <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>); -<a href="http://library.gnome.org/devel/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="returnvalue">GList</span></a> * <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>); -<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>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> keyval</code></em>, - <em class="parameter"><code><a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a> *target</code></em>); -<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>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> keyval</code></em>, - <em class="parameter"><code><a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a> *target</code></em>); -<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <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>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> keyval</code></em>, - <em class="parameter"><code><a href="http://developer.gnome.org/gdk/gdk3-Windows.html#GdkModifierType"><span class="type">GdkModifierType</span></a> modifier</code></em>); -<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <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>, - <em class="parameter"><code><a href="http://developer.gnome.org/gdk/gdk3-Event-Structures.html#GdkEventKey"><span class="type">GdkEventKey</span></a> *event</code></em>); -<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <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>, - <em class="parameter"><code><a href="http://developer.gnome.org/gdk/gdk3-Event-Structures.html#GdkEventKey"><span class="type">GdkEventKey</span></a> *event</code></em>); -<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>); -<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>, - <em class="parameter"><code><a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a> *focus</code></em>); -<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>); -<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>, - <em class="parameter"><code><a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a> *default_widget</code></em>); -<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>); -<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>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a> timestamp</code></em>); -<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>); -<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>); -<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>); -<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>); -<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>); -<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>); -<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>); -<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>); -<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>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> setting</code></em>); -<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>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> setting</code></em>); -<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>, - <em class="parameter"><code><a href="http://developer.gnome.org/gdk/gdk3-Windows.html#GdkWindowEdge"><span class="type">GdkWindowEdge</span></a> edge</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> button</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> root_x</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> root_y</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a> timestamp</code></em>); -<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>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> button</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> root_x</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> root_y</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a> timestamp</code></em>); -<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>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> setting</code></em>); -<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>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> setting</code></em>); -<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>, - <em class="parameter"><code><a href="http://developer.gnome.org/gdk/gdk3-Windows.html#GdkModifierType"><span class="type">GdkModifierType</span></a> modifier</code></em>); -<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>, - <em class="parameter"><code><a href="http://developer.gnome.org/gdk/gdk3-Windows.html#GdkWindowTypeHint"><span class="type">GdkWindowTypeHint</span></a> hint</code></em>); -<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>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> setting</code></em>); -<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>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> setting</code></em>); -<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>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> setting</code></em>); -<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>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> setting</code></em>); -<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>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> setting</code></em>); -<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>, - <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *startup_id</code></em>); -<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>, - <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *role</code></em>); -<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <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>); -<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <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>); -<a href="http://library.gnome.org/devel/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="returnvalue">GList</span></a> * <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>); -const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * <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>); -<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>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *width</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *height</code></em>); -<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <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>); -<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="GtkWindow.html#gtk-window-get-hide-titlebar-when-maximized" title="gtk_window_get_hide_titlebar_when_maximized ()">gtk_window_get_hide_titlebar_when_maximized</a> - (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>); -<a href="http://library.gnome.org/devel/gdk-pixbuf/unstable/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>); -<a href="http://library.gnome.org/devel/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="returnvalue">GList</span></a> * <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>); -const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * <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>); -<a href="http://developer.gnome.org/gdk/gdk3-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>); -<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <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>); -<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>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *root_x</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *root_y</code></em>); -const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * <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>); -<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>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *width</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *height</code></em>); -const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * <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>); -<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>); -<a class="link" href="GtkWidget.html" title="GtkWidget"><span class="returnvalue">GtkWidget</span></a> * <a class="link" href="GtkWindow.html#gtk-window-get-attached-to" title="gtk_window_get_attached_to ()">gtk_window_get_attached_to</a> (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>); -<a href="http://developer.gnome.org/gdk/gdk3-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>); -<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <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>); -<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <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>); -<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <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>); -<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <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>); -<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <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>); -<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>); -<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <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>); -<a class="link" href="gtk3-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>); -<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>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> x</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> y</code></em>); -<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <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>, - <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *geometry</code></em>); -<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>); -<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>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> width</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> height</code></em>); -<span class="returnvalue">void</span> <a class="link" href="GtkWindow.html#gtk-window-resize-to-geometry" title="gtk_window_resize_to_geometry ()">gtk_window_resize_to_geometry</a> (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> width</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> height</code></em>); -<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><a href="http://library.gnome.org/devel/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="type">GList</span></a> *list</code></em>); -<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="http://library.gnome.org/devel/gdk-pixbuf/unstable/gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *icon</code></em>); -<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <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> - (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *filename</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **err</code></em>); -<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 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *name</code></em>); -<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>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/gdk-pixbuf/unstable/gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *icon</code></em>); -<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>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="type">GList</span></a> *list</code></em>); -<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <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> (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>, - <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *filename</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **err</code></em>); -<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>, - <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *name</code></em>); -<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> - (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> setting</code></em>); -<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="returnvalue">gdouble</span></a> <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>); -<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>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> opacity</code></em>); -<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <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>); -<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>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> setting</code></em>); -<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="GtkWindow.html#gtk-window-get-focus-visible" title="gtk_window_get_focus_visible ()">gtk_window_get_focus_visible</a> (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>); -<span class="returnvalue">void</span> <a class="link" href="GtkWindow.html#gtk-window-set-focus-visible" title="gtk_window_set_focus_visible ()">gtk_window_set_focus_visible</a> (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> setting</code></em>); -<span class="returnvalue">void</span> <a class="link" href="GtkWindow.html#gtk-window-set-has-resize-grip" title="gtk_window_set_has_resize_grip ()">gtk_window_set_has_resize_grip</a> (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> value</code></em>); -<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="GtkWindow.html#gtk-window-get-has-resize-grip" title="gtk_window_get_has_resize_grip ()">gtk_window_get_has_resize_grip</a> (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>); -<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="GtkWindow.html#gtk-window-resize-grip-is-visible" title="gtk_window_resize_grip_is_visible ()">gtk_window_resize_grip_is_visible</a> (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>); -<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="GtkWindow.html#gtk-window-get-resize-grip-area" title="gtk_window_get_resize_grip_area ()">gtk_window_get_resize_grip_area</a> (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>, - <em class="parameter"><code><a href="http://developer.gnome.org/gdk/gdk3-Points-Rectangles-and-Regions.html#GdkRectangle"><span class="type">GdkRectangle</span></a> *rect</code></em>); -<a class="link" href="GtkApplication.html" title="GtkApplication"><span class="returnvalue">GtkApplication</span></a> * <a class="link" href="GtkWindow.html#gtk-window-get-application" title="gtk_window_get_application ()">gtk_window_get_application</a> (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>); -<span class="returnvalue">void</span> <a class="link" href="GtkWindow.html#gtk-window-set-application" title="gtk_window_set_application ()">gtk_window_set_application</a> (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>, - <em class="parameter"><code><a class="link" href="GtkApplication.html" title="GtkApplication"><span class="type">GtkApplication</span></a> *application</code></em>); -<span class="returnvalue">void</span> <a class="link" href="GtkWindow.html#gtk-window-set-has-user-ref-count" title="gtk_window_set_has_user_ref_count ()">gtk_window_set_has_user_ref_count</a> (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> setting</code></em>); -</pre> -</div> -<div class="refsect1"> -<a name="GtkWindow.object-hierarchy"></a><h2>Object Hierarchy</h2> -<pre class="synopsis"> - <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject">GObject</a> - +----<a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GInitiallyUnowned">GInitiallyUnowned</a> - +----<a class="link" href="GtkWidget.html" title="GtkWidget">GtkWidget</a> - +----<a class="link" href="GtkContainer.html" title="GtkContainer">GtkContainer</a> - +----<a class="link" href="GtkBin.html" title="GtkBin">GtkBin</a> - +----GtkWindow - +----<a class="link" href="GtkDialog.html" title="GtkDialog">GtkDialog</a> - +----<a class="link" href="GtkApplicationWindow.html" title="GtkApplicationWindow">GtkApplicationWindow</a> - +----<a class="link" href="GtkAssistant.html" title="GtkAssistant">GtkAssistant</a> - +----<a class="link" href="GtkOffscreenWindow.html" title="GtkOffscreenWindow">GtkOffscreenWindow</a> - +----<a class="link" href="GtkPlug.html" title="GtkPlug">GtkPlug</a> -</pre> -</div> -<div class="refsect1"> -<a name="GtkWindow.implemented-interfaces"></a><h2>Implemented Interfaces</h2> -<p> -GtkWindow implements - AtkImplementorIface and <a class="link" href="GtkBuildable.html" title="GtkBuildable">GtkBuildable</a>.</p> -</div> -<div class="refsect1"> -<a name="GtkWindow.properties"></a><h2>Properties</h2> -<pre class="synopsis"> - "<a class="link" href="GtkWindow.html#GtkWindow--accept-focus" title='The "accept-focus" property'>accept-focus</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> : Read / Write - "<a class="link" href="GtkWindow.html#GtkWindow--application" title='The "application" property'>application</a>" <a class="link" href="GtkApplication.html" title="GtkApplication"><span class="type">GtkApplication</span></a>* : Read / Write - "<a class="link" href="GtkWindow.html#GtkWindow--attached-to" title='The "attached-to" property'>attached-to</a>" <a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>* : Read / Write / Construct - "<a class="link" href="GtkWindow.html#GtkWindow--decorated" title='The "decorated" property'>decorated</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> : Read / Write - "<a class="link" href="GtkWindow.html#GtkWindow--default-height" title='The "default-height" property'>default-height</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> : Read / Write - "<a class="link" href="GtkWindow.html#GtkWindow--default-width" title='The "default-width" property'>default-width</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> : Read / Write - "<a class="link" href="GtkWindow.html#GtkWindow--deletable" title='The "deletable" property'>deletable</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> : Read / Write - "<a class="link" href="GtkWindow.html#GtkWindow--destroy-with-parent" title='The "destroy-with-parent" property'>destroy-with-parent</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> : Read / Write - "<a class="link" href="GtkWindow.html#GtkWindow--focus-on-map" title='The "focus-on-map" property'>focus-on-map</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> : Read / Write - "<a class="link" href="GtkWindow.html#GtkWindow--focus-visible" title='The "focus-visible" property'>focus-visible</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> : Read / Write - "<a class="link" href="GtkWindow.html#GtkWindow--gravity" title='The "gravity" property'>gravity</a>" <a href="http://developer.gnome.org/gdk/gdk3-Windows.html#GdkGravity"><span class="type">GdkGravity</span></a> : Read / Write - "<a class="link" href="GtkWindow.html#GtkWindow--has-resize-grip" title='The "has-resize-grip" property'>has-resize-grip</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> : Read / Write - "<a class="link" href="GtkWindow.html#GtkWindow--has-toplevel-focus" title='The "has-toplevel-focus" property'>has-toplevel-focus</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> : Read - "<a class="link" href="GtkWindow.html#GtkWindow--hide-titlebar-when-maximized" title='The "hide-titlebar-when-maximized" property'>hide-titlebar-when-maximized</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> : Read / Write - "<a class="link" href="GtkWindow.html#GtkWindow--icon" title='The "icon" property'>icon</a>" <a href="http://library.gnome.org/devel/gdk-pixbuf/unstable/gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a>* : Read / Write - "<a class="link" href="GtkWindow.html#GtkWindow--icon-name" title='The "icon-name" property'>icon-name</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Read / Write - "<a class="link" href="GtkWindow.html#GtkWindow--is-active" title='The "is-active" property'>is-active</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> : Read - "<a class="link" href="GtkWindow.html#GtkWindow--mnemonics-visible" title='The "mnemonics-visible" property'>mnemonics-visible</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> : Read / Write - "<a class="link" href="GtkWindow.html#GtkWindow--modal" title='The "modal" property'>modal</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> : Read / Write - "<a class="link" href="GtkWindow.html#GtkWindow--opacity" title='The "opacity" property'>opacity</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> : Read / Write - "<a class="link" href="GtkWindow.html#GtkWindow--resizable" title='The "resizable" property'>resizable</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> : Read / Write - "<a class="link" href="GtkWindow.html#GtkWindow--resize-grip-visible" title='The "resize-grip-visible" property'>resize-grip-visible</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> : Read - "<a class="link" href="GtkWindow.html#GtkWindow--role" title='The "role" property'>role</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Read / Write - "<a class="link" href="GtkWindow.html#GtkWindow--screen" title='The "screen" property'>screen</a>" <a href="http://developer.gnome.org/gdk/GdkScreen.html"><span class="type">GdkScreen</span></a>* : Read / Write - "<a class="link" href="GtkWindow.html#GtkWindow--skip-pager-hint" title='The "skip-pager-hint" property'>skip-pager-hint</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> : Read / Write - "<a class="link" href="GtkWindow.html#GtkWindow--skip-taskbar-hint" title='The "skip-taskbar-hint" property'>skip-taskbar-hint</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> : Read / Write - "<a class="link" href="GtkWindow.html#GtkWindow--startup-id" title='The "startup-id" property'>startup-id</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Write - "<a class="link" href="GtkWindow.html#GtkWindow--title" title='The "title" property'>title</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Read / Write - "<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 - "<a class="link" href="GtkWindow.html#GtkWindow--type" title='The "type" property'>type</a>" <a class="link" href="gtk3-Standard-Enumerations.html#GtkWindowType" title="enum GtkWindowType"><span class="type">GtkWindowType</span></a> : Read / Write / Construct Only - "<a class="link" href="GtkWindow.html#GtkWindow--type-hint" title='The "type-hint" property'>type-hint</a>" <a href="http://developer.gnome.org/gdk/gdk3-Windows.html#GdkWindowTypeHint"><span class="type">GdkWindowTypeHint</span></a> : Read / Write - "<a class="link" href="GtkWindow.html#GtkWindow--urgency-hint" title='The "urgency-hint" property'>urgency-hint</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> : Read / Write - "<a class="link" href="GtkWindow.html#GtkWindow--window-position" title='The "window-position" property'>window-position</a>" <a class="link" href="gtk3-Standard-Enumerations.html#GtkWindowPosition" title="enum GtkWindowPosition"><span class="type">GtkWindowPosition</span></a> : Read / Write -</pre> -</div> -<div class="refsect1"> -<a name="GtkWindow.style-properties"></a><h2>Style Properties</h2> -<pre class="synopsis"> - "<a class="link" href="GtkWindow.html#GtkWindow--s-resize-grip-height" title='The "resize-grip-height" style property'>resize-grip-height</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> : Read / Write - "<a class="link" href="GtkWindow.html#GtkWindow--s-resize-grip-width" title='The "resize-grip-width" style property'>resize-grip-width</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> : Read / Write -</pre> -</div> -<div class="refsect1"> -<a name="GtkWindow.signals"></a><h2>Signals</h2> -<pre class="synopsis"> - "<a class="link" href="GtkWindow.html#GtkWindow-activate-default" title='The "activate-default" signal'>activate-default</a>" : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-ACTION:CAPS"><code class="literal">Action</code></a> - "<a class="link" href="GtkWindow.html#GtkWindow-activate-focus" title='The "activate-focus" signal'>activate-focus</a>" : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-ACTION:CAPS"><code class="literal">Action</code></a> - "<a class="link" href="GtkWindow.html#GtkWindow-keys-changed" title='The "keys-changed" signal'>keys-changed</a>" : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-RUN-FIRST:CAPS"><code class="literal">Run First</code></a> - "<a class="link" href="GtkWindow.html#GtkWindow-set-focus" title='The "set-focus" signal'>set-focus</a>" : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS"><code class="literal">Run Last</code></a> -</pre> -</div> -<div class="refsect1"> -<a name="GtkWindow.description"></a><h2>Description</h2> -<p> -A GtkWindow is a toplevel window which can contain other widgets. -Windows normally have decorations that are under the control -of the windowing system and allow the user to manipulate the window -(resize it, move it, close it,...). -</p> -<p> -GTK+ also allows windows to have a resize grip (a small area in the lower -right or left corner) which can be clicked to reszie the window. To -control whether a window has a resize grip, use -<a class="link" href="GtkWindow.html#gtk-window-set-has-resize-grip" title="gtk_window_set_has_resize_grip ()"><code class="function">gtk_window_set_has_resize_grip()</code></a>. -</p> -<p> -</p> -<div class="refsect2"> -<a name="GtkWindow-BUILDER-UI"></a><h3>GtkWindow as GtkBuildable</h3> -<p> -The GtkWindow implementation of the GtkBuildable interface supports a -custom <code class="sgmltag-starttag"><accel-groups></code> element, which supports -any number of <code class="sgmltag-starttag"><group></code> elements representing the -<a class="link" href="gtk3-Keyboard-Accelerators.html#GtkAccelGroup"><span class="type">GtkAccelGroup</span></a> objects you want to add to your 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>. -</p> -<div class="example"> -<a name="id741868"></a><p class="title"><b>Example 48. A UI definition fragment with accel groups</b></p> -<div class="example-contents"> - <table class="listing_frame" border="0" cellpadding="0" cellspacing="0"> - <tbody> - <tr> - <td class="listing_lines" align="right"><pre>1 -2 -3 -4 -5 -6 -7 -8 -9</pre></td> - <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> -<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> -<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> -<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> -<span class="symbol"></</span><span class="normal">object</span><span class="symbol">></span> -<span class="symbol"><!--</span><span class="normal"> </span><span class="symbol">--></span> -<span class="symbol">...</span> -<span class="symbol"><!--</span><span class="normal"> </span><span class="symbol">--></span> -<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> - </tr> - </tbody> - </table> -</div> - -</div> -<br class="example-break"> -</div> -<p> -</p> -</div> -<div class="refsect1"> -<a name="GtkWindow.details"></a><h2>Details</h2> -<div class="refsect2"> -<a name="GtkWindow-struct"></a><h3>GtkWindow</h3> -<pre class="programlisting">typedef struct _GtkWindow GtkWindow;</pre> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-window-new"></a><h3>gtk_window_new ()</h3> -<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="gtk3-Standard-Enumerations.html#GtkWindowType" title="enum GtkWindowType"><span class="type">GtkWindowType</span></a> type</code></em>);</pre> -<p> -Creates a new <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>, which is a toplevel window that can -contain other widgets. Nearly always, the type of the window should -be <a class="link" href="gtk3-Standard-Enumerations.html#GTK-WINDOW-TOPLEVEL:CAPS"><span class="type">GTK_WINDOW_TOPLEVEL</span></a>. If you're implementing something like a -popup menu from scratch (which is a bad idea, just use <a class="link" href="GtkMenu.html" title="GtkMenu"><span class="type">GtkMenu</span></a>), -you might use <a class="link" href="gtk3-Standard-Enumerations.html#GTK-WINDOW-POPUP:CAPS"><span class="type">GTK_WINDOW_POPUP</span></a>. <a class="link" href="gtk3-Standard-Enumerations.html#GTK-WINDOW-POPUP:CAPS"><span class="type">GTK_WINDOW_POPUP</span></a> is not for -dialogs, though in some other toolkits dialogs are called "popups". -In GTK+, <a class="link" href="gtk3-Standard-Enumerations.html#GTK-WINDOW-POPUP:CAPS"><span class="type">GTK_WINDOW_POPUP</span></a> means a pop-up menu or pop-up tooltip. -On X11, popup windows are not controlled by the <a class="link" href="gtk-x11.html#gtk-X11-arch" title="Understanding the X11 architecture">window manager</a>. -</p> -<p> -If you simply want an undecorated window (no window borders), use -<a 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="gtk3-Standard-Enumerations.html#GTK-WINDOW-POPUP:CAPS"><span class="type">GTK_WINDOW_POPUP</span></a>. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>type</code></em> :</span></p></td> -<td>type of window</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td>a new <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>.</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-window-set-title"></a><h3>gtk_window_set_title ()</h3> -<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>, - <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *title</code></em>);</pre> -<p> -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 -displayed in its title bar; on the X Window System, the title bar -is rendered by the <a class="link" href="gtk-x11.html#gtk-X11-arch" title="Understanding the X11 architecture">window -manager</a>, so exactly how the title appears to users may vary -according to a user's exact configuration. The title should help a -user distinguish this window from other windows they may have -open. A good title might include the application name and current -document filename, for example. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td> -<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>title</code></em> :</span></p></td> -<td>title of the window</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-window-set-wmclass"></a><h3>gtk_window_set_wmclass ()</h3> -<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>, - <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *wmclass_name</code></em>, - <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *wmclass_class</code></em>);</pre> -<p> -Don't use this function. It sets the X Window System "class" and -"name" hints for a window. According to the ICCCM, you should -always set these to the same value for all windows in an -application, and GTK+ sets them to that value by default, so calling -this function is sort of pointless. However, you may want to call -<a 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 -benefit of the session manager. Setting the role allows the window -manager to restore window positions when loading a saved session. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td> -<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>wmclass_name</code></em> :</span></p></td> -<td>window name hint</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>wmclass_class</code></em> :</span></p></td> -<td>window class hint</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-window-set-resizable"></a><h3>gtk_window_set_resizable ()</h3> -<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>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> resizable</code></em>);</pre> -<p> -Sets whether the user can resize a window. Windows are user resizable -by default. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td> -<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>resizable</code></em> :</span></p></td> -<td> -<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the user can resize this window</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-window-get-resizable"></a><h3>gtk_window_get_resizable ()</h3> -<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> 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> -<p> -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>. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td> -<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> -<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the user can resize the window</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-window-add-accel-group"></a><h3>gtk_window_add_accel_group ()</h3> -<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>, - <em class="parameter"><code><a class="link" href="gtk3-Keyboard-Accelerators.html#GtkAccelGroup"><span class="type">GtkAccelGroup</span></a> *accel_group</code></em>);</pre> -<p> -Associate <em class="parameter"><code>accel_group</code></em> with <em class="parameter"><code>window</code></em>, such that calling -<a class="link" href="gtk3-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 -in <em class="parameter"><code>accel_group</code></em>. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td> -<td>window to attach accelerator group to</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>accel_group</code></em> :</span></p></td> -<td>a <a class="link" href="gtk3-Keyboard-Accelerators.html#GtkAccelGroup"><span class="type">GtkAccelGroup</span></a> -</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-window-remove-accel-group"></a><h3>gtk_window_remove_accel_group ()</h3> -<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>, - <em class="parameter"><code><a class="link" href="gtk3-Keyboard-Accelerators.html#GtkAccelGroup"><span class="type">GtkAccelGroup</span></a> *accel_group</code></em>);</pre> -<p> -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>. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td> -<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>accel_group</code></em> :</span></p></td> -<td>a <a class="link" href="gtk3-Keyboard-Accelerators.html#GtkAccelGroup"><span class="type">GtkAccelGroup</span></a> -</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-window-activate-focus"></a><h3>gtk_window_activate_focus ()</h3> -<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> 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> -<p> -Activates the current focused widget within the window. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td> -<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> -<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if a widget got activated.</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-window-activate-default"></a><h3>gtk_window_activate_default ()</h3> -<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> 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> -<p> -Activates the default widget for the window, unless the current -focused widget has been configured to receive the default action -(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 -focused widget is activated. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td> -<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> -<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if a widget got activated.</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-window-set-modal"></a><h3>gtk_window_set_modal ()</h3> -<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>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> modal</code></em>);</pre> -<p> -Sets a window modal or non-modal. Modal windows prevent interaction -with other windows in the same application. To keep modal dialogs -on top of main application windows, use -<a 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 -parent; most <a class="link" href="gtk-x11.html#gtk-X11-arch" title="Understanding the X11 architecture">window managers</a> -will then disallow lowering the dialog below the parent. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td> -<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>modal</code></em> :</span></p></td> -<td>whether the window is modal</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-window-set-default-size"></a><h3>gtk_window_set_default_size ()</h3> -<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>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> width</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> height</code></em>);</pre> -<p> -Sets the default size of a window. If the window's "natural" size -(its size request) is larger than the default, the default will be -ignored. More generally, if the default size does not obey the -geometry hints for the window (<a 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 -be used to set these explicitly), the default size will be clamped -to the nearest permitted size. -</p> -<p> -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 -a widget and thus would keep users from shrinking the window, this -function only sets the initial size, just as if the user had -resized the window themselves. Users can still shrink the window -again as they normally would. Setting a default size of -1 means to -use the "natural" default size (the size request of the window). -</p> -<p> -For more control over a window's initial size and how resizing works, -investigate <a 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>. -</p> -<p> -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. -<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 -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 -affects the window itself, not the geometry widget. -</p> -<p> -The default size of a window only affects the first time a window is -shown; if a window is hidden and re-shown, it will remember the size -it had prior to hiding, rather than using the default size. -</p> -<p> -Windows can't actually be 0x0 in size, they must be at least 1x1, but -passing 0 for <em class="parameter"><code>width</code></em> and <em class="parameter"><code>height</code></em> is OK, resulting in a 1x1 default size. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td> -<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>width</code></em> :</span></p></td> -<td>width in pixels, or -1 to unset the default width</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>height</code></em> :</span></p></td> -<td>height in pixels, or -1 to unset the default height</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-window-set-default-geometry"></a><h3>gtk_window_set_default_geometry ()</h3> -<pre class="programlisting"><span class="returnvalue">void</span> gtk_window_set_default_geometry (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> width</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> height</code></em>);</pre> -<p> -Like <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>, but <em class="parameter"><code>width</code></em> and <em class="parameter"><code>height</code></em> are interpreted -in terms of the base size and increment set with -gtk_window_set_geometry_hints. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td> -<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>width</code></em> :</span></p></td> -<td>width in resize increments, or -1 to unset the default width</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>height</code></em> :</span></p></td> -<td>height in resize increments, or -1 to unset the default height</td> -</tr> -</tbody> -</table></div> -<p class="since">Since 3.0</p> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-window-set-geometry-hints"></a><h3>gtk_window_set_geometry_hints ()</h3> -<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>, - <em class="parameter"><code><a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a> *geometry_widget</code></em>, - <em class="parameter"><code><a href="http://developer.gnome.org/gdk/gdk3-Windows.html#GdkGeometry"><span class="type">GdkGeometry</span></a> *geometry</code></em>, - <em class="parameter"><code><a href="http://developer.gnome.org/gdk/gdk3-Windows.html#GdkWindowHints"><span class="type">GdkWindowHints</span></a> geom_mask</code></em>);</pre> -<p> -This function sets up hints about how a window can be resized by -the user. You can set a minimum and maximum size; allowed resize -increments (e.g. for xterm, you can only resize by the size of a -character); aspect ratios; and more. See the <a href="http://developer.gnome.org/gdk/gdk3-Windows.html#GdkGeometry"><span class="type">GdkGeometry</span></a> struct. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td> -<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>geometry_widget</code></em> :</span></p></td> -<td>widget the geometry hints will be applied to or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.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> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>geometry</code></em> :</span></p></td> -<td>struct containing geometry information or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.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> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>geom_mask</code></em> :</span></p></td> -<td>mask indicating which struct fields should be paid attention to</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-window-set-gravity"></a><h3>gtk_window_set_gravity ()</h3> -<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>, - <em class="parameter"><code><a href="http://developer.gnome.org/gdk/gdk3-Windows.html#GdkGravity"><span class="type">GdkGravity</span></a> gravity</code></em>);</pre> -<p> -Window gravity defines the meaning of coordinates passed to -<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="http://developer.gnome.org/gdk/gdk3-Windows.html#GdkGravity"><span class="type">GdkGravity</span></a> for -more details. -</p> -<p> -The default window gravity is <a href="http://developer.gnome.org/gdk/gdk3-Windows.html#GDK-GRAVITY-NORTH-WEST:CAPS"><span class="type">GDK_GRAVITY_NORTH_WEST</span></a> which will -typically "do what you mean." -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td> -<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>gravity</code></em> :</span></p></td> -<td>window gravity</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-window-get-gravity"></a><h3>gtk_window_get_gravity ()</h3> -<pre class="programlisting"><a href="http://developer.gnome.org/gdk/gdk3-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> -<p> -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>. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td> -<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<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> -</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-window-set-position"></a><h3>gtk_window_set_position ()</h3> -<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>, - <em class="parameter"><code><a class="link" href="gtk3-Standard-Enumerations.html#GtkWindowPosition" title="enum GtkWindowPosition"><span class="type">GtkWindowPosition</span></a> position</code></em>);</pre> -<p> -Sets a position constraint for this window. If the old or new -constraint is <a class="link" href="gtk3-Standard-Enumerations.html#GTK-WIN-POS-CENTER-ALWAYS:CAPS"><code class="literal">GTK_WIN_POS_CENTER_ALWAYS</code></a>, this will also cause -the window to be repositioned to satisfy the new constraint. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td> -<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>.</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>position</code></em> :</span></p></td> -<td>a position constraint.</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-window-set-transient-for"></a><h3>gtk_window_set_transient_for ()</h3> -<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>, - <em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *parent</code></em>);</pre> -<p> -Dialog windows should be set transient for the main application -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 -dialog on top of the main window, or center the dialog over the -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 -functions in GTK+ will sometimes call -<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. -</p> -<p> -Passing <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> for <em class="parameter"><code>parent</code></em> unsets the current transient window. -</p> -<p> -On Windows, this function puts the child window on top of the parent, -much as the window manager would have done on X. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td> -<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>parent</code></em> :</span></p></td> -<td>parent window, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.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> -</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-window-set-attached-to"></a><h3>gtk_window_set_attached_to ()</h3> -<pre class="programlisting"><span class="returnvalue">void</span> gtk_window_set_attached_to (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>, - <em class="parameter"><code><a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a> *attach_widget</code></em>);</pre> -<p> -Marks <em class="parameter"><code>window</code></em> as attached to <em class="parameter"><code>attach_widget</code></em>. This creates a logical binding -between the window and the widget it belongs to, which is used by GTK+ to -propagate information such as styling or accessibility to <em class="parameter"><code>window</code></em> as if it -was a children of <em class="parameter"><code>attach_widget</code></em>. -</p> -<p> -Examples of places where specifying this relation is useful are for instance -a <a class="link" href="GtkMenu.html" title="GtkMenu"><span class="type">GtkMenu</span></a> created by a <a class="link" href="GtkComboBox.html" title="GtkComboBox"><span class="type">GtkComboBox</span></a>, a completion popup window -created by <a class="link" href="GtkEntry.html" title="GtkEntry"><span class="type">GtkEntry</span></a> or a typeahead search entry created by <a class="link" href="GtkTreeView.html" title="GtkTreeView"><span class="type">GtkTreeView</span></a>. -</p> -<p> -Note that this function should not be confused 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>, which specifies a window manager relation -between two toplevels instead. -</p> -<p> -Passing <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> for <em class="parameter"><code>attach_widget</code></em> detaches the window. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td> -<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>attach_widget</code></em> :</span></p></td> -<td>a <a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.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> -</td> -</tr> -</tbody> -</table></div> -<p class="since">Since 3.4</p> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-window-set-destroy-with-parent"></a><h3>gtk_window_set_destroy_with_parent ()</h3> -<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>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> setting</code></em>);</pre> -<p> -If <em class="parameter"><code>setting</code></em> is <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>, then destroying the transient parent of <em class="parameter"><code>window</code></em> -will also destroy <em class="parameter"><code>window</code></em> itself. This is useful for dialogs that -shouldn't persist beyond the lifetime of the main window they're -associated with, for example. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td> -<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>setting</code></em> :</span></p></td> -<td>whether to destroy <em class="parameter"><code>window</code></em> with its transient parent</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-window-set-hide-titlebar-when-maximized"></a><h3>gtk_window_set_hide_titlebar_when_maximized ()</h3> -<pre class="programlisting"><span class="returnvalue">void</span> gtk_window_set_hide_titlebar_when_maximized - (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> setting</code></em>);</pre> -<p> -If <em class="parameter"><code>setting</code></em> is <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>, then <em class="parameter"><code>window</code></em> will request that it's titlebar -should be hidden when maximized. -This is useful for windows that don't convey any information other -than the application name in the titlebar, to put the available -screen space to better use. If the underlying window system does not -support the request, the setting will not have any effect. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td> -<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>setting</code></em> :</span></p></td> -<td>whether to hide the titlebar when <em class="parameter"><code>window</code></em> is maximized</td> -</tr> -</tbody> -</table></div> -<p class="since">Since 3.4</p> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-window-set-screen"></a><h3>gtk_window_set_screen ()</h3> -<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>, - <em class="parameter"><code><a href="http://developer.gnome.org/gdk/GdkScreen.html"><span class="type">GdkScreen</span></a> *screen</code></em>);</pre> -<p> -Sets the <a href="http://developer.gnome.org/gdk/GdkScreen.html"><span class="type">GdkScreen</span></a> where the <em class="parameter"><code>window</code></em> is displayed; if -the window is already mapped, it will be unmapped, and -then remapped on the new screen. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td> -<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>.</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>screen</code></em> :</span></p></td> -<td>a <a href="http://developer.gnome.org/gdk/GdkScreen.html"><span class="type">GdkScreen</span></a>.</td> -</tr> -</tbody> -</table></div> -<p class="since">Since 2.2</p> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-window-get-screen"></a><h3>gtk_window_get_screen ()</h3> -<pre class="programlisting"><a href="http://developer.gnome.org/gdk/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> -<p> -Returns the <a href="http://developer.gnome.org/gdk/GdkScreen.html"><span class="type">GdkScreen</span></a> associated with <em class="parameter"><code>window</code></em>. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td> -<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>.</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td>a <a href="http://developer.gnome.org/gdk/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> -</td> -</tr> -</tbody> -</table></div> -<p class="since">Since 2.2</p> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-window-is-active"></a><h3>gtk_window_is_active ()</h3> -<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> 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> -<p> -Returns whether the window is part of the current active toplevel. -(That is, the toplevel window receiving keystrokes.) -The return value is <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the window is active toplevel -itself, but also if it is, say, a <a class="link" href="GtkPlug.html" title="GtkPlug"><span class="type">GtkPlug</span></a> embedded in the active toplevel. -You might use this function if you wanted to draw a widget -differently in an active window from a widget in an inactive window. -See <a 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> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td> -<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> -<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the window part of the current active window.</td> -</tr> -</tbody> -</table></div> -<p class="since">Since 2.4</p> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-window-has-toplevel-focus"></a><h3>gtk_window_has_toplevel_focus ()</h3> -<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> 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> -<p> -Returns whether the input focus is within this GtkWindow. -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>, -but for embedded windows, like <a class="link" href="GtkPlug.html" title="GtkPlug"><span class="type">GtkPlug</span></a>, the results will differ. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td> -<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> -<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the input focus is within this GtkWindow</td> -</tr> -</tbody> -</table></div> -<p class="since">Since 2.4</p> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-window-list-toplevels"></a><h3>gtk_window_list_toplevels ()</h3> -<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="returnvalue">GList</span></a> * gtk_window_list_toplevels (<em class="parameter"><code><span class="type">void</span></code></em>);</pre> -<p> -Returns a list of all existing toplevel windows. The widgets -in the list are not individually referenced. If you want -to iterate through the list and perform actions involving -callbacks that might destroy the widgets, you <span class="emphasis"><em>must</em></span> call -<code class="literal">g_list_foreach (result, (GFunc)g_object_ref, NULL)</code> first, and -then unref all the widgets afterwards. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody><tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<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> -</td> -</tr></tbody> -</table></div> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-window-add-mnemonic"></a><h3>gtk_window_add_mnemonic ()</h3> -<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>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> keyval</code></em>, - <em class="parameter"><code><a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a> *target</code></em>);</pre> -<p> -Adds a mnemonic to this window. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td> -<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>keyval</code></em> :</span></p></td> -<td>the mnemonic</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>target</code></em> :</span></p></td> -<td>the widget that gets activated by the mnemonic</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-window-remove-mnemonic"></a><h3>gtk_window_remove_mnemonic ()</h3> -<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>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> keyval</code></em>, - <em class="parameter"><code><a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a> *target</code></em>);</pre> -<p> -Removes a mnemonic from this window. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td> -<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>keyval</code></em> :</span></p></td> -<td>the mnemonic</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>target</code></em> :</span></p></td> -<td>the widget that gets activated by the mnemonic</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-window-mnemonic-activate"></a><h3>gtk_window_mnemonic_activate ()</h3> -<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> 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>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> keyval</code></em>, - <em class="parameter"><code><a href="http://developer.gnome.org/gdk/gdk3-Windows.html#GdkModifierType"><span class="type">GdkModifierType</span></a> modifier</code></em>);</pre> -<p> -Activates the targets associated with the mnemonic. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td> -<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>keyval</code></em> :</span></p></td> -<td>the mnemonic</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>modifier</code></em> :</span></p></td> -<td>the modifiers</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> -<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the activation is done.</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-window-activate-key"></a><h3>gtk_window_activate_key ()</h3> -<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> 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>, - <em class="parameter"><code><a href="http://developer.gnome.org/gdk/gdk3-Event-Structures.html#GdkEventKey"><span class="type">GdkEventKey</span></a> *event</code></em>);</pre> -<p> -Activates mnemonics and accelerators for this <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>. This is normally -called by the default ::key_press_event handler for toplevel windows, -however in some cases it may be useful to call this directly when -overriding the standard key handling for a toplevel window. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td> -<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>event</code></em> :</span></p></td> -<td>a <a href="http://developer.gnome.org/gdk/gdk3-Event-Structures.html#GdkEventKey"><span class="type">GdkEventKey</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> -<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if a mnemonic or accelerator was found and activated.</td> -</tr> -</tbody> -</table></div> -<p class="since">Since 2.4</p> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-window-propagate-key-event"></a><h3>gtk_window_propagate_key_event ()</h3> -<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> 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>, - <em class="parameter"><code><a href="http://developer.gnome.org/gdk/gdk3-Event-Structures.html#GdkEventKey"><span class="type">GdkEventKey</span></a> *event</code></em>);</pre> -<p> -Propagate a key press or release event to the focus widget and -up the focus container chain until a widget handles <em class="parameter"><code>event</code></em>. -This is normally called by the default ::key_press_event and -::key_release_event handlers for toplevel windows, -however in some cases it may be useful to call this directly when -overriding the standard key handling for a toplevel window. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td> -<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>event</code></em> :</span></p></td> -<td>a <a href="http://developer.gnome.org/gdk/gdk3-Event-Structures.html#GdkEventKey"><span class="type">GdkEventKey</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> -<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if a widget in the focus chain handled the event.</td> -</tr> -</tbody> -</table></div> -<p class="since">Since 2.4</p> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-window-get-focus"></a><h3>gtk_window_get_focus ()</h3> -<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> -<p> -Retrieves the current focused widget within the window. -Note that this is the widget that would have the focus -if the toplevel window focused; if the toplevel window -is not focused then <code class="literal">gtk_widget_has_focus (widget)</code> will -not be <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> for the widget. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td> -<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td>the currently focused widget, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.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> -</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-window-set-focus"></a><h3>gtk_window_set_focus ()</h3> -<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>, - <em class="parameter"><code><a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a> *focus</code></em>);</pre> -<p> -If <em class="parameter"><code>focus</code></em> is not the current focus widget, and is focusable, sets -it as the focus widget for the window. If <em class="parameter"><code>focus</code></em> is <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, unsets -the focus widget for this window. To set the focus to a particular -widget in the toplevel, it is usually more convenient to use -<a 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. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td> -<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>focus</code></em> :</span></p></td> -<td>widget to be the new focus widget, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to unset -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> -</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-window-get-default-widget"></a><h3>gtk_window_get_default_widget ()</h3> -<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> -<p> -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> -for more details. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td> -<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td>the default widget, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.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> -</td> -</tr> -</tbody> -</table></div> -<p class="since">Since 2.14</p> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-window-set-default"></a><h3>gtk_window_set_default ()</h3> -<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>, - <em class="parameter"><code><a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a> *default_widget</code></em>);</pre> -<p> -The default widget is the widget that's activated when the user -presses Enter in a dialog (for example). This function sets or -unsets the default widget for a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> about. When setting -(rather than unsetting) the default widget it's generally easier to -call <a 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 -the default widget, you must set the <a href="http://library.gnome.org/devel/gtk3/GtkWidget.html#GTK-CAN-DEFAULT:CAPS"><span class="type">GTK_CAN_DEFAULT</span></a> flag on the -widget you'd like to make the default using <a href="http://library.gnome.org/devel/gtk3/GtkWidget.html#GTK-WIDGET-SET-FLAGS:CAPS"><code class="function">GTK_WIDGET_SET_FLAGS()</code></a>. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td> -<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>default_widget</code></em> :</span></p></td> -<td>widget to be the default, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to unset the -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> -</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-window-present"></a><h3>gtk_window_present ()</h3> -<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> -<p> -Presents a window to the user. This may mean raising the window -in the stacking order, deiconifying it, moving it to the current -desktop, and/or giving it the keyboard focus, possibly dependent -on the user's platform, window manager, and preferences. -</p> -<p> -If <em class="parameter"><code>window</code></em> is hidden, this function calls <a class="link" href="GtkWidget.html#gtk-widget-show" title="gtk_widget_show ()"><code class="function">gtk_widget_show()</code></a> -as well. -</p> -<p> -This function should be used when the user tries to open a window -that's already open. Say for example the preferences dialog is -currently open, and the user chooses Preferences from the menu -a second time; use <a 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 -where the user can see it. -</p> -<p> -If you are calling this function in response to a user interaction, -it is preferable to use <a 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>. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody><tr> -<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td> -<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> -</td> -</tr></tbody> -</table></div> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-window-present-with-time"></a><h3>gtk_window_present_with_time ()</h3> -<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>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a> timestamp</code></em>);</pre> -<p> -Presents a window to the user in response to a user interaction. -If you need to present a window without a timestamp, use -<a 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. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td> -<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>timestamp</code></em> :</span></p></td> -<td>the timestamp of the user interaction (typically a -button or key press event) which triggered this call</td> -</tr> -</tbody> -</table></div> -<p class="since">Since 2.8</p> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-window-iconify"></a><h3>gtk_window_iconify ()</h3> -<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> -<p> -Asks to iconify (i.e. minimize) the specified <em class="parameter"><code>window</code></em>. Note that -you shouldn't assume the window is definitely iconified afterward, -because other entities (e.g. the user or <a class="link" href="gtk-x11.html#gtk-X11-arch" title="Understanding the X11 architecture">window manager</a>) could deiconify it -again, or there may not be a window manager in which case -iconification isn't possible, etc. But normally the window will end -up iconified. Just don't write code that crashes if not. -</p> -<p> -It's permitted to call this function before showing a window, -in which case the window will be iconified before it ever appears -onscreen. -</p> -<p> -You can track iconification via the "window-state-event" signal -on <a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody><tr> -<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td> -<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> -</td> -</tr></tbody> -</table></div> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-window-deiconify"></a><h3>gtk_window_deiconify ()</h3> -<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> -<p> -Asks to deiconify (i.e. unminimize) the specified <em class="parameter"><code>window</code></em>. Note -that you shouldn't assume the window is definitely deiconified -afterward, because other entities (e.g. the user or <a class="link" href="gtk-x11.html#gtk-X11-arch" title="Understanding the X11 architecture">window manager</a>) could iconify it -again before your code which assumes deiconification gets to run. -</p> -<p> -You can track iconification via the "window-state-event" signal -on <a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody><tr> -<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td> -<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> -</td> -</tr></tbody> -</table></div> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-window-stick"></a><h3>gtk_window_stick ()</h3> -<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> -<p> -Asks to stick <em class="parameter"><code>window</code></em>, which means that it will appear on all user -desktops. Note that you shouldn't assume the window is definitely -stuck afterward, because other entities (e.g. the user or <a class="link" href="gtk-x11.html#gtk-X11-arch" title="Understanding the X11 architecture">window manager</a>) could unstick it -again, and some window managers do not support sticking -windows. But normally the window will end up stuck. Just don't -write code that crashes if not. -</p> -<p> -It's permitted to call this function before showing a window. -</p> -<p> -You can track stickiness via the "window-state-event" signal -on <a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody><tr> -<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td> -<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> -</td> -</tr></tbody> -</table></div> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-window-unstick"></a><h3>gtk_window_unstick ()</h3> -<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> -<p> -Asks to unstick <em class="parameter"><code>window</code></em>, which means that it will appear on only -one of the user's desktops. Note that you shouldn't assume the -window is definitely unstuck afterward, because other entities -(e.g. the user or <a class="link" href="gtk-x11.html#gtk-X11-arch" title="Understanding the X11 architecture">window -manager</a>) could stick it again. But normally the window will -end up stuck. Just don't write code that crashes if not. -</p> -<p> -You can track stickiness via the "window-state-event" signal -on <a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody><tr> -<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td> -<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> -</td> -</tr></tbody> -</table></div> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-window-maximize"></a><h3>gtk_window_maximize ()</h3> -<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> -<p> -Asks to maximize <em class="parameter"><code>window</code></em>, so that it becomes full-screen. Note that -you shouldn't assume the window is definitely maximized afterward, -because other entities (e.g. the user or <a class="link" href="gtk-x11.html#gtk-X11-arch" title="Understanding the X11 architecture">window manager</a>) could unmaximize it -again, and not all window managers support maximization. But -normally the window will end up maximized. Just don't write code -that crashes if not. -</p> -<p> -It's permitted to call this function before showing a window, -in which case the window will be maximized when it appears onscreen -initially. -</p> -<p> -You can track maximization via the "window-state-event" signal -on <a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody><tr> -<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td> -<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> -</td> -</tr></tbody> -</table></div> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-window-unmaximize"></a><h3>gtk_window_unmaximize ()</h3> -<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> -<p> -Asks to unmaximize <em class="parameter"><code>window</code></em>. Note that you shouldn't assume the -window is definitely unmaximized afterward, because other entities -(e.g. the user or <a class="link" href="gtk-x11.html#gtk-X11-arch" title="Understanding the X11 architecture">window -manager</a>) could maximize it again, and not all window -managers honor requests to unmaximize. But normally the window will -end up unmaximized. Just don't write code that crashes if not. -</p> -<p> -You can track maximization via the "window-state-event" signal -on <a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody><tr> -<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td> -<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> -</td> -</tr></tbody> -</table></div> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-window-fullscreen"></a><h3>gtk_window_fullscreen ()</h3> -<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> -<p> -Asks to place <em class="parameter"><code>window</code></em> in the fullscreen state. Note that you -shouldn't assume the window is definitely full screen afterward, -because other entities (e.g. the user or <a class="link" href="gtk-x11.html#gtk-X11-arch" title="Understanding the X11 architecture">window manager</a>) could unfullscreen it -again, and not all window managers honor requests to fullscreen -windows. But normally the window will end up fullscreen. Just -don't write code that crashes if not. -</p> -<p> -You can track the fullscreen state via the "window-state-event" signal -on <a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody><tr> -<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td> -<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> -</td> -</tr></tbody> -</table></div> -<p class="since">Since 2.2</p> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-window-unfullscreen"></a><h3>gtk_window_unfullscreen ()</h3> -<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> -<p> -Asks to toggle off the fullscreen state for <em class="parameter"><code>window</code></em>. Note that you -shouldn't assume the window is definitely not full screen -afterward, because other entities (e.g. the user or <a class="link" href="gtk-x11.html#gtk-X11-arch" title="Understanding the X11 architecture">window manager</a>) could fullscreen it -again, and not all window managers honor requests to unfullscreen -windows. But normally the window will end up restored to its normal -state. Just don't write code that crashes if not. -</p> -<p> -You can track the fullscreen state via the "window-state-event" signal -on <a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody><tr> -<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td> -<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> -</td> -</tr></tbody> -</table></div> -<p class="since">Since 2.2</p> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-window-set-keep-above"></a><h3>gtk_window_set_keep_above ()</h3> -<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>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> setting</code></em>);</pre> -<p> -Asks to keep <em class="parameter"><code>window</code></em> above, so that it stays on top. Note that -you shouldn't assume the window is definitely above afterward, -because other entities (e.g. the user or <a class="link" href="gtk-x11.html#gtk-X11-arch" title="Understanding the X11 architecture">window manager</a>) could not keep it above, -and not all window managers support keeping windows above. But -normally the window will end kept above. Just don't write code -that crashes if not. -</p> -<p> -It's permitted to call this function before showing a window, -in which case the window will be kept above when it appears onscreen -initially. -</p> -<p> -You can track the above state via the "window-state-event" signal -on <a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>. -</p> -<p> -Note that, according to the <a class="ulink" href="http://www.freedesktop.org/Standards/wm-spec" target="_top">Extended Window -Manager Hints</a> specification, the above state is mainly meant -for user preferences and should not be used by applications e.g. for -drawing attention to their dialogs. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td> -<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>setting</code></em> :</span></p></td> -<td>whether to keep <em class="parameter"><code>window</code></em> above other windows</td> -</tr> -</tbody> -</table></div> -<p class="since">Since 2.4</p> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-window-set-keep-below"></a><h3>gtk_window_set_keep_below ()</h3> -<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>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> setting</code></em>);</pre> -<p> -Asks to keep <em class="parameter"><code>window</code></em> below, so that it stays in bottom. Note that -you shouldn't assume the window is definitely below afterward, -because other entities (e.g. the user or <a class="link" href="gtk-x11.html#gtk-X11-arch" title="Understanding the X11 architecture">window manager</a>) could not keep it below, -and not all window managers support putting windows below. But -normally the window will be kept below. Just don't write code -that crashes if not. -</p> -<p> -It's permitted to call this function before showing a window, -in which case the window will be kept below when it appears onscreen -initially. -</p> -<p> -You can track the below state via the "window-state-event" signal -on <a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>. -</p> -<p> -Note that, according to the <a class="ulink" href="http://www.freedesktop.org/Standards/wm-spec" target="_top">Extended Window -Manager Hints</a> specification, the above state is mainly meant -for user preferences and should not be used by applications e.g. for -drawing attention to their dialogs. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td> -<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>setting</code></em> :</span></p></td> -<td>whether to keep <em class="parameter"><code>window</code></em> below other windows</td> -</tr> -</tbody> -</table></div> -<p class="since">Since 2.4</p> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-window-begin-resize-drag"></a><h3>gtk_window_begin_resize_drag ()</h3> -<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>, - <em class="parameter"><code><a href="http://developer.gnome.org/gdk/gdk3-Windows.html#GdkWindowEdge"><span class="type">GdkWindowEdge</span></a> edge</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> button</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> root_x</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> root_y</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a> timestamp</code></em>);</pre> -<p> -Starts resizing a window. This function is used if an application -has window resizing controls. When GDK can support it, the resize -will be done using the standard mechanism for the <a class="link" href="gtk-x11.html#gtk-X11-arch" title="Understanding the X11 architecture">window manager</a> or windowing -system. Otherwise, GDK will try to emulate window resizing, -potentially not all that well, depending on the windowing system. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td> -<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>button</code></em> :</span></p></td> -<td>mouse button that initiated the drag</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>edge</code></em> :</span></p></td> -<td>position of the resize control</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>root_x</code></em> :</span></p></td> -<td>X position where the user clicked to initiate the drag, in root window coordinates</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>root_y</code></em> :</span></p></td> -<td>Y position where the user clicked to initiate the drag</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>timestamp</code></em> :</span></p></td> -<td>timestamp from the click event that initiated the drag</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-window-begin-move-drag"></a><h3>gtk_window_begin_move_drag ()</h3> -<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>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> button</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> root_x</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> root_y</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a> timestamp</code></em>);</pre> -<p> -Starts moving a window. This function is used if an application has -window movement grips. When GDK can support it, the window movement -will be done using the standard mechanism for the <a class="link" href="gtk-x11.html#gtk-X11-arch" title="Understanding the X11 architecture">window manager</a> or windowing -system. Otherwise, GDK will try to emulate window movement, -potentially not all that well, depending on the windowing system. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td> -<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>button</code></em> :</span></p></td> -<td>mouse button that initiated the drag</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>root_x</code></em> :</span></p></td> -<td>X position where the user clicked to initiate the drag, in root window coordinates</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>root_y</code></em> :</span></p></td> -<td>Y position where the user clicked to initiate the drag</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>timestamp</code></em> :</span></p></td> -<td>timestamp from the click event that initiated the drag</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-window-set-decorated"></a><h3>gtk_window_set_decorated ()</h3> -<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>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> setting</code></em>);</pre> -<p> -By default, windows are decorated with a title bar, resize -controls, etc. Some <a class="link" href="gtk-x11.html#gtk-X11-arch" title="Understanding the X11 architecture">window -managers</a> allow GTK+ to disable these decorations, creating a -borderless window. If you set the decorated property to <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> -using this function, GTK+ will do its best to convince the window -manager not to decorate the window. Depending on the system, this -function may not have any effect when called on a window that is -already visible, so you should call it before calling <a class="link" href="GtkWidget.html#gtk-widget-show" title="gtk_widget_show ()"><code class="function">gtk_widget_show()</code></a>. -</p> -<p> -On Windows, this function always works, since there's no window manager -policy involved. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td> -<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>setting</code></em> :</span></p></td> -<td> -<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> to decorate the window</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-window-set-deletable"></a><h3>gtk_window_set_deletable ()</h3> -<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>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> setting</code></em>);</pre> -<p> -By default, windows have a close button in the window frame. Some -<a class="link" href="gtk-x11.html#gtk-X11-arch" title="Understanding the X11 architecture">window managers</a> allow GTK+ to -disable this button. If you set the deletable property to <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> -using this function, GTK+ will do its best to convince the window -manager not to show a close button. Depending on the system, this -function may not have any effect when called on a window that is -already visible, so you should call it before calling <code class="function">gtk_window_show()</code>. -</p> -<p> -On Windows, this function always works, since there's no window manager -policy involved. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td> -<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>setting</code></em> :</span></p></td> -<td> -<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> to decorate the window as deletable</td> -</tr> -</tbody> -</table></div> -<p class="since">Since 2.10</p> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-window-set-mnemonic-modifier"></a><h3>gtk_window_set_mnemonic_modifier ()</h3> -<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>, - <em class="parameter"><code><a href="http://developer.gnome.org/gdk/gdk3-Windows.html#GdkModifierType"><span class="type">GdkModifierType</span></a> modifier</code></em>);</pre> -<p> -Sets the mnemonic modifier for this window. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td> -<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>modifier</code></em> :</span></p></td> -<td>the modifier mask used to activate -mnemonics on this window.</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-window-set-type-hint"></a><h3>gtk_window_set_type_hint ()</h3> -<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>, - <em class="parameter"><code><a href="http://developer.gnome.org/gdk/gdk3-Windows.html#GdkWindowTypeHint"><span class="type">GdkWindowTypeHint</span></a> hint</code></em>);</pre> -<p> -By setting the type hint for the window, you allow the window -manager to decorate and handle the window in a way which is -suitable to the function of the window in your application. -</p> -<p> -This function should be called before the window becomes visible. -</p> -<p> -<a 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+ -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. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td> -<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>hint</code></em> :</span></p></td> -<td>the window type</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-window-set-skip-taskbar-hint"></a><h3>gtk_window_set_skip_taskbar_hint ()</h3> -<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>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> setting</code></em>);</pre> -<p> -Windows may set a hint asking the desktop environment not to display -the window in the task bar. This function sets this hint. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td> -<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>setting</code></em> :</span></p></td> -<td> -<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> to keep this window from appearing in the task bar</td> -</tr> -</tbody> -</table></div> -<p class="since">Since 2.2</p> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-window-set-skip-pager-hint"></a><h3>gtk_window_set_skip_pager_hint ()</h3> -<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>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> setting</code></em>);</pre> -<p> -Windows may set a hint asking the desktop environment not to display -the window in the pager. This function sets this hint. -(A "pager" is any desktop navigation tool such as a workspace -switcher that displays a thumbnail representation of the windows -on the screen.) -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td> -<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>setting</code></em> :</span></p></td> -<td> -<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> to keep this window from appearing in the pager</td> -</tr> -</tbody> -</table></div> -<p class="since">Since 2.2</p> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-window-set-urgency-hint"></a><h3>gtk_window_set_urgency_hint ()</h3> -<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>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> setting</code></em>);</pre> -<p> -Windows may set a hint asking the desktop environment to draw -the users attention to the window. This function sets this hint. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td> -<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>setting</code></em> :</span></p></td> -<td> -<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> to mark this window as urgent</td> -</tr> -</tbody> -</table></div> -<p class="since">Since 2.8</p> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-window-set-accept-focus"></a><h3>gtk_window_set_accept_focus ()</h3> -<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>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> setting</code></em>);</pre> -<p> -Windows may set a hint asking the desktop environment not to receive -the input focus. This function sets this hint. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td> -<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>setting</code></em> :</span></p></td> -<td> -<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> to let this window receive input focus</td> -</tr> -</tbody> -</table></div> -<p class="since">Since 2.4</p> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-window-set-focus-on-map"></a><h3>gtk_window_set_focus_on_map ()</h3> -<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>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> setting</code></em>);</pre> -<p> -Windows may set a hint asking the desktop environment not to receive -the input focus when the window is mapped. This function sets this -hint. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td> -<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>setting</code></em> :</span></p></td> -<td> -<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> to let this window receive input focus on map</td> -</tr> -</tbody> -</table></div> -<p class="since">Since 2.6</p> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-window-set-startup-id"></a><h3>gtk_window_set_startup_id ()</h3> -<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>, - <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *startup_id</code></em>);</pre> -<p> -Startup notification identifiers are used by desktop environment to -track application startup, to provide user feedback and other -features. This function changes the corresponding property on the -underlying GdkWindow. Normally, startup identifier is managed -automatically and you should only use this function in special cases -like transferring focus from other processes. You should use this -function before calling <a class="link" href="GtkWindow.html#gtk-window-present" title="gtk_window_present ()"><code class="function">gtk_window_present()</code></a> or any equivalent -function generating a window map event. -</p> -<p> -This function is only useful on X11, not with other GTK+ targets. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td> -<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>startup_id</code></em> :</span></p></td> -<td>a string with startup-notification identifier</td> -</tr> -</tbody> -</table></div> -<p class="since">Since 2.12</p> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-window-set-role"></a><h3>gtk_window_set_role ()</h3> -<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>, - <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *role</code></em>);</pre> -<p> -This function is only useful on X11, not with other GTK+ targets. -</p> -<p> -In combination with the window title, the window role allows a -<a class="link" href="gtk-x11.html#gtk-X11-arch" title="Understanding the X11 architecture">window manager</a> to identify "the -same" window when an application is restarted. So for example you -might set the "toolbox" role on your app's toolbox window, so that -when the user restarts their session, the window manager can put -the toolbox back in the same place. -</p> -<p> -If a window already has a unique title, you don't need to set the -role, since the WM can use the title to identify the window when -restoring the session. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td> -<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>role</code></em> :</span></p></td> -<td>unique identifier for the window to be used when restoring a session</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-window-get-decorated"></a><h3>gtk_window_get_decorated ()</h3> -<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> 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> -<p> -Returns whether the window has been set to have decorations -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>. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td> -<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> -<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the window has been set to have decorations</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-window-get-deletable"></a><h3>gtk_window_get_deletable ()</h3> -<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> 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> -<p> -Returns whether the window has been set to have a close button -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>. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td> -<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> -<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the window has been set to have a close button</td> -</tr> -</tbody> -</table></div> -<p class="since">Since 2.10</p> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-window-get-default-icon-list"></a><h3>gtk_window_get_default_icon_list ()</h3> -<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="returnvalue">GList</span></a> * gtk_window_get_default_icon_list (<em class="parameter"><code><span class="type">void</span></code></em>);</pre> -<p> -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>. -The list is a copy and should be freed with <a href="http://library.gnome.org/devel/glib/unstable/glib-Doubly-Linked-Lists.html#g-list-free"><code class="function">g_list_free()</code></a>, -but the pixbufs in the list have not had their reference count -incremented. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody><tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<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> -</td> -</tr></tbody> -</table></div> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-window-get-default-icon-name"></a><h3>gtk_window_get_default_icon_name ()</h3> -<pre class="programlisting">const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * gtk_window_get_default_icon_name (<em class="parameter"><code><span class="type">void</span></code></em>);</pre> -<p> -Returns the fallback icon name for windows that has been set -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 -string is owned by GTK+ and should not be modified. It -is only valid until the next call to -<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>. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody><tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td>the fallback icon name for windows</td> -</tr></tbody> -</table></div> -<p class="since">Since 2.16</p> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-window-get-default-size"></a><h3>gtk_window_get_default_size ()</h3> -<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>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *width</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *height</code></em>);</pre> -<p> -Gets the default size of the window. A value of -1 for the width or -height indicates that a default size has not been explicitly set -for that dimension, so the "natural" size of the window will be -used. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td> -<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>width</code></em> :</span></p></td> -<td>location to store the default width, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.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> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>height</code></em> :</span></p></td> -<td>location to store the default height, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.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> -</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-window-get-destroy-with-parent"></a><h3>gtk_window_get_destroy_with_parent ()</h3> -<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> 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> -<p> -Returns whether the window will be destroyed with its transient parent. See -<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>. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td> -<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> -<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the window will be destroyed with its transient parent.</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-window-get-hide-titlebar-when-maximized"></a><h3>gtk_window_get_hide_titlebar_when_maximized ()</h3> -<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> gtk_window_get_hide_titlebar_when_maximized - (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>);</pre> -<p> -Returns whether the window has requested to have its titlebar hidden -when maximized. See <a class="link" href="GtkWindow.html#gtk-window-set-hide-titlebar-when-maximized" title="gtk_window_set_hide_titlebar_when_maximized ()"><code class="function">gtk_window_set_hide_titlebar_when_maximized()</code></a>. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td> -<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> -<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the window has requested to have its titlebar -hidden when maximized</td> -</tr> -</tbody> -</table></div> -<p class="since">Since 3.4</p> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-window-get-icon"></a><h3>gtk_window_get_icon ()</h3> -<pre class="programlisting"><a href="http://library.gnome.org/devel/gdk-pixbuf/unstable/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> -<p> -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 -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 -the icon list). -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td> -<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<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> -</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-window-get-icon-list"></a><h3>gtk_window_get_icon_list ()</h3> -<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="returnvalue">GList</span></a> * 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> -<p> -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>. -The list is copied, but the reference count on each -member won't be incremented. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td> -<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<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> -</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-window-get-icon-name"></a><h3>gtk_window_get_icon_name ()</h3> -<pre class="programlisting">const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * 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> -<p> -Returns the name of the themed icon for the window, -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>. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td> -<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td>the icon name or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if the window has -no themed icon</td> -</tr> -</tbody> -</table></div> -<p class="since">Since 2.6</p> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-window-get-mnemonic-modifier"></a><h3>gtk_window_get_mnemonic_modifier ()</h3> -<pre class="programlisting"><a href="http://developer.gnome.org/gdk/gdk3-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> -<p> -Returns the mnemonic modifier for this window. See -<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>. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td> -<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td>the modifier mask used to activate -mnemonics on this window.</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-window-get-modal"></a><h3>gtk_window_get_modal ()</h3> -<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> 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> -<p> -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>. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td> -<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> -<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the window is set to be modal and -establishes a grab when shown</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-window-get-position"></a><h3>gtk_window_get_position ()</h3> -<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>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *root_x</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *root_y</code></em>);</pre> -<p> -This function returns the position you need to pass to -<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 means that the meaning of the returned value varies with -window 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. -</p> -<p> -If you haven't changed the window gravity, its gravity will be -<a href="http://developer.gnome.org/gdk/gdk3-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> -gets the position of the top-left corner of the window manager -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 -same top-left corner. -</p> -<p> -<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 -does not specify a way to obtain the geometry of the -decorations placed on a window by the window manager. -Thus GTK+ is using a "best guess" that works with most -window managers. -</p> -<p> -Moreover, nearly all window managers are historically broken with -respect to their handling of window gravity. So moving a window to -its current position as returned by <a class="link" href="GtkWindow.html#gtk-window-get-position" title="gtk_window_get_position ()"><code class="function">gtk_window_get_position()</code></a> tends -to result in moving the window slightly. Window managers are -slowly getting better over time. -</p> -<p> -If a window has gravity <a href="http://developer.gnome.org/gdk/gdk3-Windows.html#GDK-GRAVITY-STATIC:CAPS"><span class="type">GDK_GRAVITY_STATIC</span></a> the window manager -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 -always produce accurate results. However you can't use static -gravity to do things like place a window in a corner of the screen, -because static gravity ignores the window manager decorations. -</p> -<p> -If you are saving and restoring your application's window -positions, you should know that it's impossible for applications to -do this without getting it somewhat wrong because applications do -not have sufficient knowledge of window manager state. The Correct -Mechanism is to support the session management protocol (see the -"GnomeClient" object in the GNOME libraries for example) and allow -the window manager to save your window sizes and positions. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td> -<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>root_x</code></em> :</span></p></td> -<td>return location for X coordinate of -gravity-determined reference point, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.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> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>root_y</code></em> :</span></p></td> -<td>return location for Y coordinate of -gravity-determined reference point, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.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> -</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-window-get-role"></a><h3>gtk_window_get_role ()</h3> -<pre class="programlisting">const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * 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> -<p> -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 -further explanation. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td> -<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td>the role of the window if set, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. The -returned is owned by the widget and must not be modified -or freed.</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-window-get-size"></a><h3>gtk_window_get_size ()</h3> -<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>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *width</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *height</code></em>);</pre> -<p> -Obtains the current size of <em class="parameter"><code>window</code></em>. If <em class="parameter"><code>window</code></em> is not onscreen, -it returns the size GTK+ will suggest to the <a class="link" href="gtk-x11.html#gtk-X11-arch" title="Understanding the X11 architecture">window manager</a> for the initial window -size (but this is not reliably the same as the size the window -manager will actually select). The size obtained by -<a 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 -<a href="http://developer.gnome.org/gdk/gdk3-Event-Structures.html#GdkEventConfigure"><span class="type">GdkEventConfigure</span></a>, that is, GTK+ uses its locally-stored size, -rather than querying the X server for the size. As a result, if you -call <a class="link" href="GtkWindow.html#gtk-window-resize" title="gtk_window_resize ()"><code class="function">gtk_window_resize()</code></a> then immediately call -<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 -the window manager processes the resize request, GTK+ receives -notification that the size has changed via a configure event, and -the size of the window gets updated. -</p> -<p> -Note 1: Nearly any use of this function creates a race condition, -because the size of the window may change between the time that you -get the size and the time that you perform some action assuming -that size is the current size. To avoid race conditions, connect to -"configure-event" on the window and adjust your size-dependent -state to match the size delivered in the <a href="http://developer.gnome.org/gdk/gdk3-Event-Structures.html#GdkEventConfigure"><span class="type">GdkEventConfigure</span></a>. -</p> -<p> -Note 2: The returned size does <span class="emphasis"><em>not</em></span> include the -size of the window manager decorations (aka the window frame or -border). Those are not drawn by GTK+ and GTK+ has no reliable -method of determining their size. -</p> -<p> -Note 3: If you are getting a window size in order to position -the window onscreen, there may be a better way. The preferred -way is to simply set the window's semantic type with -<a 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 -e.g. center dialogs. Also, if you set the transient parent of -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 -will often center the dialog over its parent window. It's -much preferred to let the window manager handle these -things rather than doing it yourself, because all apps will -behave consistently and according to user prefs if the window -manager handles it. Also, the window manager can take the size -of the window decorations/border into account, while your -application cannot. -</p> -<p> -In any case, if you insist on application-specified window -positioning, there's <span class="emphasis"><em>still</em></span> a better way than -doing it yourself - <a 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 -handle the details for you. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td> -<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>width</code></em> :</span></p></td> -<td>return location for width, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.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> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>height</code></em> :</span></p></td> -<td>return location for height, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.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> -</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-window-get-title"></a><h3>gtk_window_get_title ()</h3> -<pre class="programlisting">const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * 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> -<p> -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>. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td> -<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td>the title of the window, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if none has -been set explicitely. The returned string is owned by the widget -and must not be modified or freed.</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-window-get-transient-for"></a><h3>gtk_window_get_transient_for ()</h3> -<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> -<p> -Fetches the transient parent for this 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>. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td> -<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td>the transient parent for this window, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> -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> -</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-window-get-attached-to"></a><h3>gtk_window_get_attached_to ()</h3> -<pre class="programlisting"><a class="link" href="GtkWidget.html" title="GtkWidget"><span class="returnvalue">GtkWidget</span></a> * gtk_window_get_attached_to (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>);</pre> -<p> -Fetches the attach widget for this window. See -<a class="link" href="GtkWindow.html#gtk-window-set-attached-to" title="gtk_window_set_attached_to ()"><code class="function">gtk_window_set_attached_to()</code></a>. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td> -<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td>the widget where the window is attached, -or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if the window is not attached to any widget. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span> -</td> -</tr> -</tbody> -</table></div> -<p class="since">Since 3.4</p> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-window-get-type-hint"></a><h3>gtk_window_get_type_hint ()</h3> -<pre class="programlisting"><a href="http://developer.gnome.org/gdk/gdk3-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> -<p> -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>. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td> -<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td>the type hint for <em class="parameter"><code>window</code></em>.</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-window-get-skip-taskbar-hint"></a><h3>gtk_window_get_skip_taskbar_hint ()</h3> -<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> 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> -<p> -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> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td> -<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> -<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if window shouldn't be in taskbar</td> -</tr> -</tbody> -</table></div> -<p class="since">Since 2.2</p> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-window-get-skip-pager-hint"></a><h3>gtk_window_get_skip_pager_hint ()</h3> -<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> 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> -<p> -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>. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td> -<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> -<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if window shouldn't be in pager</td> -</tr> -</tbody> -</table></div> -<p class="since">Since 2.2</p> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-window-get-urgency-hint"></a><h3>gtk_window_get_urgency_hint ()</h3> -<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> 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> -<p> -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> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td> -<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> -<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if window is urgent</td> -</tr> -</tbody> -</table></div> -<p class="since">Since 2.8</p> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-window-get-accept-focus"></a><h3>gtk_window_get_accept_focus ()</h3> -<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> 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> -<p> -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>. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td> -<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> -<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if window should receive the input focus</td> -</tr> -</tbody> -</table></div> -<p class="since">Since 2.4</p> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-window-get-focus-on-map"></a><h3>gtk_window_get_focus_on_map ()</h3> -<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> 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> -<p> -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>. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td> -<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> -<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if window should receive the input focus when -mapped.</td> -</tr> -</tbody> -</table></div> -<p class="since">Since 2.6</p> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-window-get-group"></a><h3>gtk_window_get_group ()</h3> -<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> -<p> -Returns the group for <em class="parameter"><code>window</code></em> or the default group, if -<em class="parameter"><code>window</code></em> is <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> or if <em class="parameter"><code>window</code></em> does not have an explicit -window group. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td> -<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.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> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<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> -</td> -</tr> -</tbody> -</table></div> -<p class="since">Since 2.10</p> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-window-has-group"></a><h3>gtk_window_has_group ()</h3> -<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> 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> -<p> -Returns whether <em class="parameter"><code>window</code></em> has an explicit window group. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td> -<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> -<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if <em class="parameter"><code>window</code></em> has an explicit window group. -Since 2.22</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-window-get-window-type"></a><h3>gtk_window_get_window_type ()</h3> -<pre class="programlisting"><a class="link" href="gtk3-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> -<p> -Gets the type of the window. See <a class="link" href="gtk3-Standard-Enumerations.html#GtkWindowType" title="enum GtkWindowType"><span class="type">GtkWindowType</span></a>. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td> -<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td>the type of the window</td> -</tr> -</tbody> -</table></div> -<p class="since">Since 2.20</p> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-window-move"></a><h3>gtk_window_move ()</h3> -<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>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> x</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> y</code></em>);</pre> -<p> -Asks the <a class="link" href="gtk-x11.html#gtk-X11-arch" title="Understanding the X11 architecture">window manager</a> to move -<em class="parameter"><code>window</code></em> to the given position. Window managers are free to ignore -this; most window managers ignore requests for initial window -positions (instead using a user-defined placement algorithm) and -honor requests after the window has already been shown. -</p> -<p> -Note: the position is the position of the gravity-determined -reference point for the window. The gravity determines two things: -first, the location of the reference point in root window -coordinates; and second, which point on the window is positioned at -the reference point. -</p> -<p> -By default the gravity is <a href="http://developer.gnome.org/gdk/gdk3-Windows.html#GDK-GRAVITY-NORTH-WEST:CAPS"><span class="type">GDK_GRAVITY_NORTH_WEST</span></a>, so the reference -point is simply the <em class="parameter"><code>x</code></em>, <em class="parameter"><code>y</code></em> supplied to <a class="link" href="GtkWindow.html#gtk-window-move" title="gtk_window_move ()"><code class="function">gtk_window_move()</code></a>. The -top-left corner of the window decorations (aka window frame or -border) will be placed at <em class="parameter"><code>x</code></em>, <em class="parameter"><code>y</code></em>. Therefore, to position a window -at the top left of the screen, you want to use the default gravity -(which is <a href="http://developer.gnome.org/gdk/gdk3-Windows.html#GDK-GRAVITY-NORTH-WEST:CAPS"><span class="type">GDK_GRAVITY_NORTH_WEST</span></a>) and move the window to 0,0. -</p> -<p> -To position a window at the bottom right corner of the screen, you -would set <a href="http://developer.gnome.org/gdk/gdk3-Windows.html#GDK-GRAVITY-SOUTH-EAST:CAPS"><span class="type">GDK_GRAVITY_SOUTH_EAST</span></a>, which means that the reference -point is at <em class="parameter"><code>x</code></em> + the window width and <em class="parameter"><code>y</code></em> + the window height, and -the bottom-right corner of the window border will be placed at that -reference point. So, to place a window in the bottom right corner -you would first set gravity to south east, then write: -<code class="literal">gtk_window_move (window, <a href="http://developer.gnome.org/gdk/gdk3-General.html#gdk-screen-width"><code class="function">gdk_screen_width()</code></a> - window_width, -<a href="http://developer.gnome.org/gdk/gdk3-General.html#gdk-screen-height"><code class="function">gdk_screen_height()</code></a> - window_height)</code> (note that this -example does not take multi-head scenarios into account). -</p> -<p> -The Extended Window Manager Hints specification at <a class="ulink" href="http://www.freedesktop.org/Standards/wm-spec" target="_top"> -http://www.freedesktop.org/Standards/wm-spec</a> has a -nice table of gravities in the "implementation notes" section. -</p> -<p> -The <a 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. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td> -<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>x</code></em> :</span></p></td> -<td>X coordinate to move window to</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>y</code></em> :</span></p></td> -<td>Y coordinate to move window to</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-window-parse-geometry"></a><h3>gtk_window_parse_geometry ()</h3> -<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> 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>, - <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *geometry</code></em>);</pre> -<p> -Parses a standard X Window System geometry string - see the -manual page for X (type 'man X') for details on this. -<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 -including Win32 but is primarily intended for an X environment. -</p> -<p> -If either a size or a position can be extracted from the -geometry string, <a class="link" href="GtkWindow.html#gtk-window-parse-geometry" title="gtk_window_parse_geometry ()"><code class="function">gtk_window_parse_geometry()</code></a> returns <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> -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> -to resize/move the window. -</p> -<p> -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 <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>, it will also -set the <a href="http://developer.gnome.org/gdk/gdk3-Windows.html#GDK-HINT-USER-POS:CAPS"><span class="type">GDK_HINT_USER_POS</span></a> and/or <a href="http://developer.gnome.org/gdk/gdk3-Windows.html#GDK-HINT-USER-SIZE:CAPS"><span class="type">GDK_HINT_USER_SIZE</span></a> hints -indicating to the window manager that the size/position of -the window was user-specified. This causes most window -managers to honor the geometry. -</p> -<p> -Note that for <a 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 -to be called when the window has its "final" size, i.e. after calling -<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> -on the window. -</p> -<div class="informalexample"> - <table class="listing_frame" border="0" cellpadding="0" cellspacing="0"> - <tbody> - <tr> - <td class="listing_lines" align="right"><pre>1 -2 -3 -4 -5 -6 -7 -8 -9 -10 -11 -12 -13 -14 -15 -16 -17 -18 -19 -20 -21 -22 -23 -24 -25 -26 -27 -28 -29 -30 -31 -32 -33 -34 -35 -36 -37 -38 -39 -40 -41 -42 -43</pre></td> - <td class="listing_code"><pre class="programlisting"><span class="preproc">#include</span><span class="normal"> </span><span class="string"><gtk/gtk.h></span> -<span class="normal"> </span> -<span class="keyword">static</span><span class="normal"> </span><span class="type">void</span> -<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> -<span class="cbracket">{</span> -<span class="normal"> </span><span class="comment">/* fill with content... */</span> -<span class="cbracket">}</span> -<span class="normal"> </span> -<span class="type">int</span> -<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> -<span class="cbracket">{</span> -<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> -<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> -<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="http://developer.gnome.org/gdk/gdk3-Windows.html#GDK-GRAVITY-NORTH-WEST:CAPS">GDK_GRAVITY_NORTH_WEST</a> </span> -<span class="normal"> </span><span class="cbracket">}</span><span class="symbol">;</span> -<span class="normal"> </span> -<span class="normal"> </span><span class="function"><a href="gtk3-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> -<span class="normal"> </span> -<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="gtk3-Standard-Enumerations.html#GTK-WINDOW-TOPLEVEL:CAPS">GTK_WINDOW_TOPLEVEL</a></span><span class="symbol">);</span> -<span class="normal"> vbox </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="GtkBox.html#gtk-box-new">gtk_box_new</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal"><a href="gtk3-Standard-Enumerations.html#GTK-ORIENTATION-VERTICAL:CAPS">GTK_ORIENTATION_VERTICAL</a></span><span class="symbol">,</span><span class="normal"> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS">FALSE</a></span><span class="symbol">,</span><span class="normal"> </span><span class="number">0</span><span class="symbol">);</span> -<span class="normal"> </span> -<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> -<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> -<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> -<span class="normal"> </span> -<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> -<span class="normal"> window</span><span class="symbol">,</span> -<span class="normal"> </span><span class="symbol">&</span><span class="normal">size_hints</span><span class="symbol">,</span> -<span class="normal"> <a href="http://developer.gnome.org/gdk/gdk3-Windows.html#GDK-HINT-MIN-SIZE:CAPS">GDK_HINT_MIN_SIZE</a> </span><span class="symbol">|</span><span class="normal"> </span> -<span class="normal"> GDK_HINT_BASE_SIZE </span><span class="symbol">|</span><span class="normal"> </span> -<span class="normal"> GDK_HINT_RESIZE_INC</span><span class="symbol">);</span> -<span class="normal"> </span> -<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> -<span class="normal"> </span><span class="cbracket">{</span> -<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> -<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> -<span class="normal"> </span><span class="cbracket">}</span> -<span class="normal"> </span> -<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> -<span class="normal"> </span><span class="function"><a href="gtk3-General.html#gtk-main">gtk_main</a></span><span class="normal"> </span><span class="symbol">();</span> -<span class="normal"> </span> -<span class="normal"> </span><span class="keyword">return</span><span class="normal"> </span><span class="number">0</span><span class="symbol">;</span> -<span class="cbracket">}</span></pre></td> - </tr> - </tbody> - </table> -</div> - -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td> -<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>geometry</code></em> :</span></p></td> -<td>geometry string</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> -<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if string was parsed successfully</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-window-reshow-with-initial-size"></a><h3>gtk_window_reshow_with_initial_size ()</h3> -<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> -<p> -Hides <em class="parameter"><code>window</code></em>, then reshows it, resetting the -default size and position of the window. Used -by GUI builders only. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody><tr> -<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td> -<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> -</td> -</tr></tbody> -</table></div> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-window-resize"></a><h3>gtk_window_resize ()</h3> -<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>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> width</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> height</code></em>);</pre> -<p> -Resizes the window as if the user had done so, obeying geometry -constraints. The default geometry constraint is that windows may -not be smaller than their size request; to override this -constraint, call <a 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 -request to a smaller value. -</p> -<p> -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 -first time, it overrides any default size set with -<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>. -</p> -<p> -Windows may not be resized smaller than 1 by 1 pixels. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td> -<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>width</code></em> :</span></p></td> -<td>width in pixels to resize the window to</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>height</code></em> :</span></p></td> -<td>height in pixels to resize the window to</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-window-resize-to-geometry"></a><h3>gtk_window_resize_to_geometry ()</h3> -<pre class="programlisting"><span class="returnvalue">void</span> gtk_window_resize_to_geometry (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> width</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> height</code></em>);</pre> -<p> -Like <a class="link" href="GtkWindow.html#gtk-window-resize" title="gtk_window_resize ()"><code class="function">gtk_window_resize()</code></a>, but <em class="parameter"><code>width</code></em> and <em class="parameter"><code>height</code></em> are interpreted -in terms of the base size and increment set with -gtk_window_set_geometry_hints. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td> -<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>width</code></em> :</span></p></td> -<td>width in resize increments to resize the window to</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>height</code></em> :</span></p></td> -<td>height in resize increments to resize the window to</td> -</tr> -</tbody> -</table></div> -<p class="since">Since 3.0</p> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-window-set-default-icon-list"></a><h3>gtk_window_set_default_icon_list ()</h3> -<pre class="programlisting"><span class="returnvalue">void</span> gtk_window_set_default_icon_list (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="type">GList</span></a> *list</code></em>);</pre> -<p> -Sets an icon list to be used as fallback for windows that haven't -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 -window-specific icon list. This function allows you to set up the -icon for all windows in your app at once. -</p> -<p> -See <a 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. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody><tr> -<td><p><span class="term"><em class="parameter"><code>list</code></em> :</span></p></td> -<td>a list of <a href="http://library.gnome.org/devel/gdk-pixbuf/unstable/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> -</td> -</tr></tbody> -</table></div> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-window-set-default-icon"></a><h3>gtk_window_set_default_icon ()</h3> -<pre class="programlisting"><span class="returnvalue">void</span> gtk_window_set_default_icon (<em class="parameter"><code><a href="http://library.gnome.org/devel/gdk-pixbuf/unstable/gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *icon</code></em>);</pre> -<p> -Sets an icon to be used as fallback for windows that haven't -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. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody><tr> -<td><p><span class="term"><em class="parameter"><code>icon</code></em> :</span></p></td> -<td>the icon</td> -</tr></tbody> -</table></div> -<p class="since">Since 2.4</p> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-window-set-default-icon-from-file"></a><h3>gtk_window_set_default_icon_from_file ()</h3> -<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> gtk_window_set_default_icon_from_file - (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *filename</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **err</code></em>);</pre> -<p> -Sets an icon to be used as fallback for windows that haven't -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 -on disk. Warns on failure if <em class="parameter"><code>err</code></em> is <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>filename</code></em> :</span></p></td> -<td>location of icon file. <span class="annotation">[<acronym title="Override the parsed C type with given type."><span class="acronym">type</span></acronym> filename]</span> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>err</code></em> :</span></p></td> -<td>location to store error, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.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> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> -<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if setting the icon succeeded.</td> -</tr> -</tbody> -</table></div> -<p class="since">Since 2.2</p> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-window-set-default-icon-name"></a><h3>gtk_window_set_default_icon_name ()</h3> -<pre class="programlisting"><span class="returnvalue">void</span> gtk_window_set_default_icon_name (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *name</code></em>);</pre> -<p> -Sets an icon to be used as fallback for windows that haven't -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 -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>. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody><tr> -<td><p><span class="term"><em class="parameter"><code>name</code></em> :</span></p></td> -<td>the name of the themed icon</td> -</tr></tbody> -</table></div> -<p class="since">Since 2.6</p> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-window-set-icon"></a><h3>gtk_window_set_icon ()</h3> -<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>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/gdk-pixbuf/unstable/gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *icon</code></em>);</pre> -<p> -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 -the window is minimized (also known as iconified). Some window -managers or desktop environments may also place it in the window -frame, or display it in other contexts. -</p> -<p> -The icon should be provided in whatever size it was naturally -drawn; that is, don't scale the image before passing it to -GTK+. Scaling is postponed until the last minute, when the desired -final size is known, to allow best quality. -</p> -<p> -If you have your icon hand-drawn in multiple sizes, use -<a 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. -</p> -<p> -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> -with a 1-element list. -</p> -<p> -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 -for all windows in your application in one go. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td> -<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>icon</code></em> :</span></p></td> -<td>icon image, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.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> -</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-window-set-icon-list"></a><h3>gtk_window_set_icon_list ()</h3> -<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>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="type">GList</span></a> *list</code></em>);</pre> -<p> -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 -the window is minimized (also known as iconified). Some window -managers or desktop environments may also place it in the window -frame, or display it in other contexts. -</p> -<p> -<a 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 -several hand-drawn sizes. The list should contain the natural sizes -your icon is available in; that is, don't scale the image before -passing it to GTK+. Scaling is postponed until the last minute, -when the desired final size is known, to allow best quality. -</p> -<p> -By passing several sizes, you may improve the final image quality -of the icon, by reducing or eliminating automatic image scaling. -</p> -<p> -Recommended sizes to provide: 16x16, 32x32, 48x48 at minimum, and -larger images (64x64, 128x128) if you have them. -</p> -<p> -See also <a 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 -for all windows in your application in one go. -</p> -<p> -Note that transient windows (those who have been set transient for another -window using <a 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 -icon from their transient parent. So there's no need to explicitly -set the icon on transient windows. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td> -<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>list</code></em> :</span></p></td> -<td>list of <a href="http://library.gnome.org/devel/gdk-pixbuf/unstable/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]</span> -</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-window-set-icon-from-file"></a><h3>gtk_window_set_icon_from_file ()</h3> -<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> gtk_window_set_icon_from_file (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>, - <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *filename</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **err</code></em>);</pre> -<p> -Sets the icon for <em class="parameter"><code>window</code></em>. -Warns on failure if <em class="parameter"><code>err</code></em> is <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. -</p> -<p> -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> -with a pixbuf created by loading the image from <em class="parameter"><code>filename</code></em>. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td> -<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>filename</code></em> :</span></p></td> -<td>location of icon file. <span class="annotation">[<acronym title="Override the parsed C type with given type."><span class="acronym">type</span></acronym> filename]</span> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>err</code></em> :</span></p></td> -<td>location to store error, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.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> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> -<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if setting the icon succeeded.</td> -</tr> -</tbody> -</table></div> -<p class="since">Since 2.2</p> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-window-set-icon-name"></a><h3>gtk_window_set_icon_name ()</h3> -<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>, - <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *name</code></em>);</pre> -<p> -Sets the icon for the window from a named themed icon. See -the docs for <a class="link" href="GtkIconTheme.html" title="GtkIconTheme"><span class="type">GtkIconTheme</span></a> for more details. -</p> -<p> -Note that this has nothing to do with the WM_ICON_NAME -property which is mentioned in the ICCCM. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td> -<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>name</code></em> :</span></p></td> -<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> -</td> -</tr> -</tbody> -</table></div> -<p class="since">Since 2.6</p> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-window-set-auto-startup-notification"></a><h3>gtk_window_set_auto_startup_notification ()</h3> -<pre class="programlisting"><span class="returnvalue">void</span> gtk_window_set_auto_startup_notification - (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> setting</code></em>);</pre> -<p> -By default, after showing the first <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>, GTK+ calls -<a href="http://developer.gnome.org/gdk/gdk3-General.html#gdk-notify-startup-complete"><code class="function">gdk_notify_startup_complete()</code></a>. Call this function to disable -the automatic startup notification. You might do this if your -first window is a splash screen, and you want to delay notification -until after your real main window has been shown, for example. -</p> -<p> -In that example, you would disable startup notification -temporarily, show your splash screen, then re-enable it so that -showing the main window would automatically result in notification. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody><tr> -<td><p><span class="term"><em class="parameter"><code>setting</code></em> :</span></p></td> -<td> -<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> to automatically do startup notification</td> -</tr></tbody> -</table></div> -<p class="since">Since 2.2</p> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-window-get-opacity"></a><h3>gtk_window_get_opacity ()</h3> -<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="returnvalue">gdouble</span></a> 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> -<p> -Fetches the requested opacity for this 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>. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td> -<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td>the requested opacity for this window.</td> -</tr> -</tbody> -</table></div> -<p class="since">Since 2.12</p> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-window-set-opacity"></a><h3>gtk_window_set_opacity ()</h3> -<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>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> opacity</code></em>);</pre> -<p> -Request the windowing system to make <em class="parameter"><code>window</code></em> partially transparent, -with opacity 0 being fully transparent and 1 fully opaque. (Values -of the opacity parameter are clamped to the [0,1] range.) On X11 -this has any effect only on X screens with a compositing manager -running. See <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 -always. -</p> -<p> -Note that setting a window's opacity after the window has been -shown causes it to flicker once on Windows. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td> -<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>opacity</code></em> :</span></p></td> -<td>desired opacity, between 0 and 1</td> -</tr> -</tbody> -</table></div> -<p class="since">Since 2.12</p> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-window-get-mnemonics-visible"></a><h3>gtk_window_get_mnemonics_visible ()</h3> -<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> 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> -<p> -Gets the value of the <a class="link" href="GtkWindow.html#GtkWindow--mnemonics-visible" title='The "mnemonics-visible" property'><span class="type">"mnemonics-visible"</span></a> property. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td> -<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> -<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if mnemonics are supposed to be visible -in this window.</td> -</tr> -</tbody> -</table></div> -<p class="since">Since 2.20</p> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-window-set-mnemonics-visible"></a><h3>gtk_window_set_mnemonics_visible ()</h3> -<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>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> setting</code></em>);</pre> -<p> -Sets the <a class="link" href="GtkWindow.html#GtkWindow--mnemonics-visible" title='The "mnemonics-visible" property'><span class="type">"mnemonics-visible"</span></a> property. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td> -<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>setting</code></em> :</span></p></td> -<td>the new value</td> -</tr> -</tbody> -</table></div> -<p class="since">Since 2.20</p> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-window-get-focus-visible"></a><h3>gtk_window_get_focus_visible ()</h3> -<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> gtk_window_get_focus_visible (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>);</pre> -<p> -Gets the value of the <a class="link" href="GtkWindow.html#GtkWindow--focus-visible" title='The "focus-visible" property'><span class="type">"focus-visible"</span></a> property. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td> -<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> -<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if 'focus rectangles' are supposed to be visible -in this window.</td> -</tr> -</tbody> -</table></div> -<p class="since">Since 3.2</p> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-window-set-focus-visible"></a><h3>gtk_window_set_focus_visible ()</h3> -<pre class="programlisting"><span class="returnvalue">void</span> gtk_window_set_focus_visible (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> setting</code></em>);</pre> -<p> -Sets the <a class="link" href="GtkWindow.html#GtkWindow--focus-visible" title='The "focus-visible" property'><span class="type">"focus-visible"</span></a> property. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td> -<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>setting</code></em> :</span></p></td> -<td>the new value</td> -</tr> -</tbody> -</table></div> -<p class="since">Since 3.2</p> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-window-set-has-resize-grip"></a><h3>gtk_window_set_has_resize_grip ()</h3> -<pre class="programlisting"><span class="returnvalue">void</span> gtk_window_set_has_resize_grip (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> value</code></em>);</pre> -<p> -Sets whether <em class="parameter"><code>window</code></em> has a corner resize grip. -</p> -<p> -Note that the resize grip is only shown if the window -is actually resizable and not maximized. Use -<a class="link" href="GtkWindow.html#gtk-window-resize-grip-is-visible" title="gtk_window_resize_grip_is_visible ()"><code class="function">gtk_window_resize_grip_is_visible()</code></a> to find out if the -resize grip is currently shown. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td> -<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>value</code></em> :</span></p></td> -<td> -<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> to allow a resize grip</td> -</tr> -</tbody> -</table></div> -<p class="since">Since 3.0</p> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-window-get-has-resize-grip"></a><h3>gtk_window_get_has_resize_grip ()</h3> -<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> gtk_window_get_has_resize_grip (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>);</pre> -<p> -Determines whether the window may have a resize grip. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td> -<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> -<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the window has a resize grip</td> -</tr> -</tbody> -</table></div> -<p class="since">Since 3.0</p> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-window-resize-grip-is-visible"></a><h3>gtk_window_resize_grip_is_visible ()</h3> -<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> gtk_window_resize_grip_is_visible (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>);</pre> -<p> -Determines whether a resize grip is visible for the specified window. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td> -<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> -<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if a resize grip exists and is visible</td> -</tr> -</tbody> -</table></div> -<p class="since">Since 3.0</p> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-window-get-resize-grip-area"></a><h3>gtk_window_get_resize_grip_area ()</h3> -<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> gtk_window_get_resize_grip_area (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>, - <em class="parameter"><code><a href="http://developer.gnome.org/gdk/gdk3-Points-Rectangles-and-Regions.html#GdkRectangle"><span class="type">GdkRectangle</span></a> *rect</code></em>);</pre> -<p> -If a window has a resize grip, this will retrieve the grip -position, width and height into the specified <a href="http://developer.gnome.org/gdk/gdk3-Points-Rectangles-and-Regions.html#GdkRectangle"><span class="type">GdkRectangle</span></a>. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td> -<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>rect</code></em> :</span></p></td> -<td>a pointer to a <a href="http://developer.gnome.org/gdk/gdk3-Points-Rectangles-and-Regions.html#GdkRectangle"><span class="type">GdkRectangle</span></a> which we should store -the resize grip area. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> -<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the resize grip's area was retrieved</td> -</tr> -</tbody> -</table></div> -<p class="since">Since 3.0</p> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-window-get-application"></a><h3>gtk_window_get_application ()</h3> -<pre class="programlisting"><a class="link" href="GtkApplication.html" title="GtkApplication"><span class="returnvalue">GtkApplication</span></a> * gtk_window_get_application (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>);</pre> -<p> -Gets the <a class="link" href="GtkApplication.html" title="GtkApplication"><span class="type">GtkApplication</span></a> associated with the window (if any). -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td> -<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td>a <a class="link" href="GtkApplication.html" title="GtkApplication"><span class="type">GtkApplication</span></a>, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span> -</td> -</tr> -</tbody> -</table></div> -<p class="since">Since 3.0</p> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-window-set-application"></a><h3>gtk_window_set_application ()</h3> -<pre class="programlisting"><span class="returnvalue">void</span> gtk_window_set_application (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>, - <em class="parameter"><code><a class="link" href="GtkApplication.html" title="GtkApplication"><span class="type">GtkApplication</span></a> *application</code></em>);</pre> -<p> -Sets or unsets the <a class="link" href="GtkApplication.html" title="GtkApplication"><span class="type">GtkApplication</span></a> associated with the window. -</p> -<p> -The application will be kept alive for at least as long as the window -is open. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td> -<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>application</code></em> :</span></p></td> -<td>a <a class="link" href="GtkApplication.html" title="GtkApplication"><span class="type">GtkApplication</span></a>, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.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> -</td> -</tr> -</tbody> -</table></div> -<p class="since">Since 3.0</p> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-window-set-has-user-ref-count"></a><h3>gtk_window_set_has_user_ref_count ()</h3> -<pre class="programlisting"><span class="returnvalue">void</span> gtk_window_set_has_user_ref_count (<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> setting</code></em>);</pre> -<p> -Tells GTK+ whether to drop its extra reference to the window -when <code class="function">gtk_window_destroy()</code> is called. -</p> -<p> -This function is only exported for the benefit of language -bindings which may need to keep the window alive until their -wrapper object is garbage collected. There is no justification -for ever calling this function in an application. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td> -<td>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>setting</code></em> :</span></p></td> -<td>the new value</td> -</tr> -</tbody> -</table></div> -<p class="since">Since 3.0</p> -</div> -</div> -<div class="refsect1"> -<a name="GtkWindow.property-details"></a><h2>Property Details</h2> -<div class="refsect2"> -<a name="GtkWindow--accept-focus"></a><h3>The <code class="literal">"accept-focus"</code> property</h3> -<pre class="programlisting"> "accept-focus" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> : Read / Write</pre> -<p> -Whether the window should receive the input focus. -</p> -<p>Default value: TRUE</p> -<p class="since">Since 2.4</p> -</div> -<hr> -<div class="refsect2"> -<a name="GtkWindow--application"></a><h3>The <code class="literal">"application"</code> property</h3> -<pre class="programlisting"> "application" <a class="link" href="GtkApplication.html" title="GtkApplication"><span class="type">GtkApplication</span></a>* : Read / Write</pre> -<p> -The <a class="link" href="GtkApplication.html" title="GtkApplication"><span class="type">GtkApplication</span></a> associated with the window. -</p> -<p> -The application will be kept alive for at least as long as it -has any windows associated with it (see <a href="http://library.gnome.org/devel/gio/unstable/GApplication.html#g-application-hold"><code class="function">g_application_hold()</code></a> -for a way to keep it alive without windows). -</p> -<p> -Normally, the connection between the application and the window -will remain until the window is destroyed, but you can explicitly -remove it by setting the ::application property to <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. -</p> -<p class="since">Since 3.0</p> -</div> -<hr> -<div class="refsect2"> -<a name="GtkWindow--attached-to"></a><h3>The <code class="literal">"attached-to"</code> property</h3> -<pre class="programlisting"> "attached-to" <a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>* : Read / Write / Construct</pre> -<p> -The widget to which this window is attached. -See <a class="link" href="GtkWindow.html#gtk-window-set-attached-to" title="gtk_window_set_attached_to ()"><code class="function">gtk_window_set_attached_to()</code></a>. -</p> -<p> -Examples of places where specifying this relation is useful are -for instance a <a class="link" href="GtkMenu.html" title="GtkMenu"><span class="type">GtkMenu</span></a> created by a <a class="link" href="GtkComboBox.html" title="GtkComboBox"><span class="type">GtkComboBox</span></a>, a completion -popup window created by <a class="link" href="GtkEntry.html" title="GtkEntry"><span class="type">GtkEntry</span></a> or a typeahead search entry -created by <a class="link" href="GtkTreeView.html" title="GtkTreeView"><span class="type">GtkTreeView</span></a>. -</p> -<p class="since">Since 3.4</p> -</div> -<hr> -<div class="refsect2"> -<a name="GtkWindow--decorated"></a><h3>The <code class="literal">"decorated"</code> property</h3> -<pre class="programlisting"> "decorated" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> : Read / Write</pre> -<p> -Whether the window should be decorated by the window manager. -</p> -<p>Default value: TRUE</p> -<p class="since">Since 2.4</p> -</div> -<hr> -<div class="refsect2"> -<a name="GtkWindow--default-height"></a><h3>The <code class="literal">"default-height"</code> property</h3> -<pre class="programlisting"> "default-height" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> : Read / Write</pre> -<p>The default height of the window, used when initially showing the window.</p> -<p>Allowed values: >= G_MAXULONG</p> -<p>Default value: -1</p> -</div> -<hr> -<div class="refsect2"> -<a name="GtkWindow--default-width"></a><h3>The <code class="literal">"default-width"</code> property</h3> -<pre class="programlisting"> "default-width" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> : Read / Write</pre> -<p>The default width of the window, used when initially showing the window.</p> -<p>Allowed values: >= G_MAXULONG</p> -<p>Default value: -1</p> -</div> -<hr> -<div class="refsect2"> -<a name="GtkWindow--deletable"></a><h3>The <code class="literal">"deletable"</code> property</h3> -<pre class="programlisting"> "deletable" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> : Read / Write</pre> -<p> -Whether the window frame should have a close button. -</p> -<p>Default value: TRUE</p> -<p class="since">Since 2.10</p> -</div> -<hr> -<div class="refsect2"> -<a name="GtkWindow--destroy-with-parent"></a><h3>The <code class="literal">"destroy-with-parent"</code> property</h3> -<pre class="programlisting"> "destroy-with-parent" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> : Read / Write</pre> -<p>If this window should be destroyed when the parent is destroyed.</p> -<p>Default value: FALSE</p> -</div> -<hr> -<div class="refsect2"> -<a name="GtkWindow--focus-on-map"></a><h3>The <code class="literal">"focus-on-map"</code> property</h3> -<pre class="programlisting"> "focus-on-map" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> : Read / Write</pre> -<p> -Whether the window should receive the input focus when mapped. -</p> -<p>Default value: TRUE</p> -<p class="since">Since 2.6</p> -</div> -<hr> -<div class="refsect2"> -<a name="GtkWindow--focus-visible"></a><h3>The <code class="literal">"focus-visible"</code> property</h3> -<pre class="programlisting"> "focus-visible" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> : Read / Write</pre> -<p> -Whether 'focus rectangles' are currently visible in this window. -</p> -<p> -This property is maintained by GTK+ based on the -<a class="link" href="GtkSettings.html#GtkSettings--gtk-visible-focus" title='The "gtk-visible-focus" property'><span class="type">"gtk-visible-focus"</span></a> setting and user input -and should not be set by applications. -</p> -<p>Default value: TRUE</p> -<p class="since">Since 2.20</p> -</div> -<hr> -<div class="refsect2"> -<a name="GtkWindow--gravity"></a><h3>The <code class="literal">"gravity"</code> property</h3> -<pre class="programlisting"> "gravity" <a href="http://developer.gnome.org/gdk/gdk3-Windows.html#GdkGravity"><span class="type">GdkGravity</span></a> : Read / Write</pre> -<p> -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="http://developer.gnome.org/gdk/gdk3-Windows.html#GdkGravity"><span class="type">GdkGravity</span></a> for -more details about window gravity. -</p> -<p>Default value: GDK_GRAVITY_NORTH_WEST</p> -<p class="since">Since 2.4</p> -</div> -<hr> -<div class="refsect2"> -<a name="GtkWindow--has-resize-grip"></a><h3>The <code class="literal">"has-resize-grip"</code> property</h3> -<pre class="programlisting"> "has-resize-grip" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> : Read / Write</pre> -<p> -Whether the window has a corner resize grip. -</p> -<p> -Note that the resize grip is only shown if the window is -actually resizable and not maximized. Use -<a class="link" href="GtkWindow.html#GtkWindow--resize-grip-visible" title='The "resize-grip-visible" property'><span class="type">"resize-grip-visible"</span></a> to find out if the resize -grip is currently shown. -</p> -<p>Default value: TRUE</p> -<p class="since">Since 3.0</p> -</div> -<hr> -<div class="refsect2"> -<a name="GtkWindow--has-toplevel-focus"></a><h3>The <code class="literal">"has-toplevel-focus"</code> property</h3> -<pre class="programlisting"> "has-toplevel-focus" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> : Read</pre> -<p>Whether the input focus is within this GtkWindow.</p> -<p>Default value: FALSE</p> -</div> -<hr> -<div class="refsect2"> -<a name="GtkWindow--hide-titlebar-when-maximized"></a><h3>The <code class="literal">"hide-titlebar-when-maximized"</code> property</h3> -<pre class="programlisting"> "hide-titlebar-when-maximized" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> : Read / Write</pre> -<p> -Whether the titlebar should be hidden during maximization. -</p> -<p>Default value: FALSE</p> -<p class="since">Since 3.4</p> -</div> -<hr> -<div class="refsect2"> -<a name="GtkWindow--icon"></a><h3>The <code class="literal">"icon"</code> property</h3> -<pre class="programlisting"> "icon" <a href="http://library.gnome.org/devel/gdk-pixbuf/unstable/gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a>* : Read / Write</pre> -<p>Icon for this window.</p> -</div> -<hr> -<div class="refsect2"> -<a name="GtkWindow--icon-name"></a><h3>The <code class="literal">"icon-name"</code> property</h3> -<pre class="programlisting"> "icon-name" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Read / Write</pre> -<p> -The :icon-name property specifies the name of the themed icon to -use as the window icon. See <a class="link" href="GtkIconTheme.html" title="GtkIconTheme"><span class="type">GtkIconTheme</span></a> for more details. -</p> -<p>Default value: NULL</p> -<p class="since">Since 2.6</p> -</div> -<hr> -<div class="refsect2"> -<a name="GtkWindow--is-active"></a><h3>The <code class="literal">"is-active"</code> property</h3> -<pre class="programlisting"> "is-active" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> : Read</pre> -<p>Whether the toplevel is the current active window.</p> -<p>Default value: FALSE</p> -</div> -<hr> -<div class="refsect2"> -<a name="GtkWindow--mnemonics-visible"></a><h3>The <code class="literal">"mnemonics-visible"</code> property</h3> -<pre class="programlisting"> "mnemonics-visible" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> : Read / Write</pre> -<p> -Whether mnemonics are currently visible in this window. -</p> -<p> -This property is maintained by GTK+ based on the -<a class="link" href="GtkSettings.html#GtkSettings--gtk-auto-mnemonics" title='The "gtk-auto-mnemonics" property'><span class="type">"gtk-auto-mnemonics"</span></a> setting and user input, -and should not be set by applications. -</p> -<p>Default value: TRUE</p> -<p class="since">Since 2.20</p> -</div> -<hr> -<div class="refsect2"> -<a name="GtkWindow--modal"></a><h3>The <code class="literal">"modal"</code> property</h3> -<pre class="programlisting"> "modal" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> : Read / Write</pre> -<p>If TRUE, the window is modal (other windows are not usable while this one is up).</p> -<p>Default value: FALSE</p> -</div> -<hr> -<div class="refsect2"> -<a name="GtkWindow--opacity"></a><h3>The <code class="literal">"opacity"</code> property</h3> -<pre class="programlisting"> "opacity" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> : Read / Write</pre> -<p> -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 -more details about window opacity. -</p> -<p>Allowed values: [0,1]</p> -<p>Default value: 1</p> -<p class="since">Since 2.12</p> -</div> -<hr> -<div class="refsect2"> -<a name="GtkWindow--resizable"></a><h3>The <code class="literal">"resizable"</code> property</h3> -<pre class="programlisting"> "resizable" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> : Read / Write</pre> -<p>If TRUE, users can resize the window.</p> -<p>Default value: TRUE</p> -</div> -<hr> -<div class="refsect2"> -<a name="GtkWindow--resize-grip-visible"></a><h3>The <code class="literal">"resize-grip-visible"</code> property</h3> -<pre class="programlisting"> "resize-grip-visible" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> : Read</pre> -<p> -Whether a corner resize grip is currently shown. -</p> -<p>Default value: FALSE</p> -<p class="since">Since 3.0</p> -</div> -<hr> -<div class="refsect2"> -<a name="GtkWindow--role"></a><h3>The <code class="literal">"role"</code> property</h3> -<pre class="programlisting"> "role" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Read / Write</pre> -<p>Unique identifier for the window to be used when restoring a session.</p> -<p>Default value: NULL</p> -</div> -<hr> -<div class="refsect2"> -<a name="GtkWindow--screen"></a><h3>The <code class="literal">"screen"</code> property</h3> -<pre class="programlisting"> "screen" <a href="http://developer.gnome.org/gdk/GdkScreen.html"><span class="type">GdkScreen</span></a>* : Read / Write</pre> -<p>The screen where this window will be displayed.</p> -</div> -<hr> -<div class="refsect2"> -<a name="GtkWindow--skip-pager-hint"></a><h3>The <code class="literal">"skip-pager-hint"</code> property</h3> -<pre class="programlisting"> "skip-pager-hint" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> : Read / Write</pre> -<p>TRUE if the window should not be in the pager.</p> -<p>Default value: FALSE</p> -</div> -<hr> -<div class="refsect2"> -<a name="GtkWindow--skip-taskbar-hint"></a><h3>The <code class="literal">"skip-taskbar-hint"</code> property</h3> -<pre class="programlisting"> "skip-taskbar-hint" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> : Read / Write</pre> -<p>TRUE if the window should not be in the task bar.</p> -<p>Default value: FALSE</p> -</div> -<hr> -<div class="refsect2"> -<a name="GtkWindow--startup-id"></a><h3>The <code class="literal">"startup-id"</code> property</h3> -<pre class="programlisting"> "startup-id" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Write</pre> -<p> -The :startup-id is a write-only property for setting window's -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> -for more details. -</p> -<p>Default value: NULL</p> -<p class="since">Since 2.12</p> -</div> -<hr> -<div class="refsect2"> -<a name="GtkWindow--title"></a><h3>The <code class="literal">"title"</code> property</h3> -<pre class="programlisting"> "title" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Read / Write</pre> -<p>The title of the window.</p> -<p>Default value: NULL</p> -</div> -<hr> -<div class="refsect2"> -<a name="GtkWindow--transient-for"></a><h3>The <code class="literal">"transient-for"</code> property</h3> -<pre class="programlisting"> "transient-for" <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>* : Read / Write / Construct</pre> -<p> -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 -more details about transient windows. -</p> -<p class="since">Since 2.10</p> -</div> -<hr> -<div class="refsect2"> -<a name="GtkWindow--type"></a><h3>The <code class="literal">"type"</code> property</h3> -<pre class="programlisting"> "type" <a class="link" href="gtk3-Standard-Enumerations.html#GtkWindowType" title="enum GtkWindowType"><span class="type">GtkWindowType</span></a> : Read / Write / Construct Only</pre> -<p>The type of the window.</p> -<p>Default value: GTK_WINDOW_TOPLEVEL</p> -</div> -<hr> -<div class="refsect2"> -<a name="GtkWindow--type-hint"></a><h3>The <code class="literal">"type-hint"</code> property</h3> -<pre class="programlisting"> "type-hint" <a href="http://developer.gnome.org/gdk/gdk3-Windows.html#GdkWindowTypeHint"><span class="type">GdkWindowTypeHint</span></a> : Read / Write</pre> -<p>Hint to help the desktop environment understand what kind of window this is and how to treat it.</p> -<p>Default value: GDK_WINDOW_TYPE_HINT_NORMAL</p> -</div> -<hr> -<div class="refsect2"> -<a name="GtkWindow--urgency-hint"></a><h3>The <code class="literal">"urgency-hint"</code> property</h3> -<pre class="programlisting"> "urgency-hint" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> : Read / Write</pre> -<p>TRUE if the window should be brought to the user's attention.</p> -<p>Default value: FALSE</p> -</div> -<hr> -<div class="refsect2"> -<a name="GtkWindow--window-position"></a><h3>The <code class="literal">"window-position"</code> property</h3> -<pre class="programlisting"> "window-position" <a class="link" href="gtk3-Standard-Enumerations.html#GtkWindowPosition" title="enum GtkWindowPosition"><span class="type">GtkWindowPosition</span></a> : Read / Write</pre> -<p>The initial position of the window.</p> -<p>Default value: GTK_WIN_POS_NONE</p> -</div> -</div> -<div class="refsect1"> -<a name="GtkWindow.style-property-details"></a><h2>Style Property Details</h2> -<div class="refsect2"> -<a name="GtkWindow--s-resize-grip-height"></a><h3>The <code class="literal">"resize-grip-height"</code> style property</h3> -<pre class="programlisting"> "resize-grip-height" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> : Read / Write</pre> -<p>Height of resize grip.</p> -<p>Allowed values: >= 0</p> -<p>Default value: 16</p> -</div> -<hr> -<div class="refsect2"> -<a name="GtkWindow--s-resize-grip-width"></a><h3>The <code class="literal">"resize-grip-width"</code> style property</h3> -<pre class="programlisting"> "resize-grip-width" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> : Read / Write</pre> -<p>Width of resize grip.</p> -<p>Allowed values: >= 0</p> -<p>Default value: 16</p> -</div> -</div> -<div class="refsect1"> -<a name="GtkWindow.signal-details"></a><h2>Signal Details</h2> -<div class="refsect2"> -<a name="GtkWindow-activate-default"></a><h3>The <code class="literal">"activate-default"</code> signal</h3> -<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, - <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data) : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-ACTION:CAPS"><code class="literal">Action</code></a></pre> -<p> -The ::activate-default signal is a -<a class="link" href="gtk3-Bindings.html#keybinding-signals">keybinding signal</a> -which gets emitted when the user activates the default widget -of <em class="parameter"><code>window</code></em>. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td> -<td>the window which received the signal</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td> -<td>user data set when the signal handler was connected.</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2"> -<a name="GtkWindow-activate-focus"></a><h3>The <code class="literal">"activate-focus"</code> signal</h3> -<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, - <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data) : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-ACTION:CAPS"><code class="literal">Action</code></a></pre> -<p> -The ::activate-focus signal is a -<a class="link" href="gtk3-Bindings.html#keybinding-signals">keybinding signal</a> -which gets emitted when the user activates the currently -focused widget of <em class="parameter"><code>window</code></em>. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td> -<td>the window which received the signal</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td> -<td>user data set when the signal handler was connected.</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2"> -<a name="GtkWindow-keys-changed"></a><h3>The <code class="literal">"keys-changed"</code> signal</h3> -<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, - <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data) : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-RUN-FIRST:CAPS"><code class="literal">Run First</code></a></pre> -<p> -The ::keys-changed signal gets emitted when the set of accelerators -or mnemonics that are associated with <em class="parameter"><code>window</code></em> changes. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td> -<td>the window which received the signal</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td> -<td>user data set when the signal handler was connected.</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2"> -<a name="GtkWindow-set-focus"></a><h3>The <code class="literal">"set-focus"</code> signal</h3> -<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, - <a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a> *widget, - <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data) : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS"><code class="literal">Run Last</code></a></pre> -</div> -</div> -</div> -<div class="footer"> -<hr> - Generated by GTK-Doc V1.18.1</div> -</body> -</html>
\ No newline at end of file |