2008-07-01 22:57:50 +00:00
|
|
|
|
/* GTK - The GIMP Toolkit
|
1997-11-24 22:37:52 +00:00
|
|
|
|
* Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
|
|
|
|
|
*
|
|
|
|
|
* This library is free software; you can redistribute it and/or
|
2000-07-26 11:33:08 +00:00
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
1997-11-24 22:37:52 +00:00
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
|
* version 2 of the License, or (at your option) any later version.
|
|
|
|
|
*
|
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
2000-07-26 11:33:08 +00:00
|
|
|
|
* Lesser General Public License for more details.
|
1997-11-24 22:37:52 +00:00
|
|
|
|
*
|
2000-07-26 11:33:08 +00:00
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
2012-02-27 13:01:10 +00:00
|
|
|
|
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
|
1997-11-24 22:37:52 +00:00
|
|
|
|
*/
|
1999-02-24 07:37:18 +00:00
|
|
|
|
|
|
|
|
|
/*
|
2000-07-26 11:33:08 +00:00
|
|
|
|
* Modified by the GTK+ Team and others 1997-2000. See the AUTHORS
|
1999-02-24 07:37:18 +00:00
|
|
|
|
* file for a list of people on the GTK+ Team. See the ChangeLog
|
|
|
|
|
* files for a list of changes. These files are distributed with
|
2008-05-28 15:35:43 +00:00
|
|
|
|
* GTK+ at ftp://ftp.gtk.org/pub/gtk/.
|
1999-02-24 07:37:18 +00:00
|
|
|
|
*/
|
|
|
|
|
|
1997-11-24 22:37:52 +00:00
|
|
|
|
#ifndef __GTK_WINDOW_H__
|
|
|
|
|
#define __GTK_WINDOW_H__
|
|
|
|
|
|
2008-10-30 15:58:06 +00:00
|
|
|
|
|
2012-12-28 14:57:34 +00:00
|
|
|
|
#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
|
|
|
|
|
#error "Only <gtk/gtk.h> can be included directly."
|
|
|
|
|
#endif
|
|
|
|
|
|
2010-08-11 05:23:23 +00:00
|
|
|
|
#include <gtk/gtkapplication.h>
|
fixed an assertment.
Sat Jun 6 06:01:24 1998 Tim Janik <timj@gtk.org>
* gtk/gtksignal.c (gtk_signal_emitv): fixed an assertment.
* gtk/makeenums.awk: a script to generate the GtkEnumValue arrays from,
this should eventually be done by gentypeinfo.el somewhen.
* gtk/gtkenumvalues.c: new generated file to hold GtkEnumValue arrays.
* gtk/gtktypeutils.h: new function gtk_enum_values() to retrive all the
enum values of an enum type.
* gtk/gtk.defs:
* gtk/gtkcurve.h:
* gtk/gtkobject.h:
* gtk/gtkprivate.h:
* gtk/gtkwidget.h:
* gtk/gtkenums.h:
brought enum/flags definitions in sync, added a few more enum
definitions for bindings and pattern matching.
* some more macro and GtkType fixups in various places.
* gdk/gdktypes.h (enum): added a new value GDK_AFTER_MASK, which is used
as a key-release modifier for the binding system.
Fri Jun 5 06:06:06 1998 Tim Janik <timj@gtk.org>
* gtk/gtkmenu.h (struct _GtkMenu): removed GList*children, since it
was a stale list pointer that is already present in GtkMenuShell.
* gtk/gtkmenushell.h (struct _GtkMenuShellClass): added a signal
GtkMenuShell::selection_done which is emitted after the menu shell
poped down again and all possible menu items have been activated.
Thu Jun 4 02:20:42 1998 Tim Janik <timj@gtk.org>
* gtk/gtkmenushell.c (gtk_menu_shell_button_release): flush the x-queue
before activation of the menuitem, so the menu is actually taken off the
screen prior to any menu item activation.
* gtk/gtkctree.c (gtk_ctree_get_row_data): allow function invokation
for NULL nodes.
* gtk/gtkwidget.h:
* gtk/gtkwidget.c: new function gtk_widget_stop_accelerator to stop
the emission of the "add-accelerator" signal on a widget. this is
usefull to prevent accelerator installation on certain widgets.
* gtk/gtknotebook.c (gtk_notebook_menu_item_create): keep the menu
labels left justified, by setting their alignment. stop accelerator
installation for the menu items, since we use dynamic menus.
Wed Jun 3 06:41:22 1998 Tim Janik <timj@gtk.org>
* gtk/gtkmenufactory.c: adaptions to use the new accel groups. people
should *really* use GtkItemFactory. this is only for preserving source
compatibility where possible, use of GtkMenuFactory is deprecated as of
now.
* gtk/gtkobject.h (gtk_object_class_add_user_signal): new function
to create user signals of type GTK_RUN_NO_RECURSE. don't know why i
missed this possibility when i added gtk_object_class_add_user_signal
in late january.
* gtk/gtkmain.c (gtk_init): ignore subsequent function calls.
Sun May 31 07:31:09 1998 Tim Janik <timj@gtk.org>
* gtk/gtkaccelgroup.h:
* gtk/gtkaccelgroup.c: new implementation of the accelerator concept.
* gtk/gtkaccellabel.h:
* gtk/gtkaccellabel.c: new widget derived from GtkLabel whitch features
display of the accelerators associated with a certain widget.
* gtk/gtkitemfactory.h:
* gtk/gtkitemfactory.c: new widget, item factory with automatic rc
parsing and accelerator handling.
* gtk/gtkmenu.c (gtk_menu_reposition): new function to care for
positioning a menu.
(gtk_menu_map): removed the allocation code.
(gtk_menu_size_allocate): care for redrawing of children and resize
our widget->window correctly.
(gtk_menu_key_press): feature the new accelerator groups.
* gtk/gtkmenuitem.c (gtk_menu_item_size_allocate): reposition the
submenu if neccessary.
* gtk/gtkmenuitem.c:
* gtk/gtkcheckmenuitem.c:
* gtk/gtkradiomenuitem.c: use GtkAccelLabel in the *_new_with_label()
function variants.
* gdk/gdk.c:
(gdk_keyval_from_name):
(gdk_keyval_name): new functions for keyval<->key-name associations.
(gdk_keyval_to_upper):
(gdk_keyval_to_lower):
(gdk_keyval_is_upper):
(gdk_keyval_is_lower): new functions to check/translate keyvalues with
regards to their cases.
Wed May 27 00:48:10 1998 Tim Janik <timj@gtk.org>
* gtk/gtkwidget.c (gtk_widget_class_path): new function to calculate a
widget's class path.
(gtk_widget_path): new function to calculate a widget's name path.
* gtk/gtkrc.c: newly introduced GtkPatternSpec structures to speed up
pattern matching, features reversed pattern matches.
1998-06-07 06:48:56 +00:00
|
|
|
|
#include <gtk/gtkaccelgroup.h>
|
1997-11-24 22:37:52 +00:00
|
|
|
|
#include <gtk/gtkbin.h>
|
|
|
|
|
|
2005-03-20 07:01:23 +00:00
|
|
|
|
G_BEGIN_DECLS
|
1998-05-06 01:43:56 +00:00
|
|
|
|
|
|
|
|
|
#define GTK_TYPE_WINDOW (gtk_window_get_type ())
|
2002-10-01 19:55:08 +00:00
|
|
|
|
#define GTK_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_WINDOW, GtkWindow))
|
|
|
|
|
#define GTK_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_WINDOW, GtkWindowClass))
|
|
|
|
|
#define GTK_IS_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_WINDOW))
|
|
|
|
|
#define GTK_IS_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_WINDOW))
|
|
|
|
|
#define GTK_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_WINDOW, GtkWindowClass))
|
1997-11-24 22:37:52 +00:00
|
|
|
|
|
2010-08-17 13:37:57 +00:00
|
|
|
|
typedef struct _GtkWindowPrivate GtkWindowPrivate;
|
2001-04-01 04:05:42 +00:00
|
|
|
|
typedef struct _GtkWindowClass GtkWindowClass;
|
|
|
|
|
typedef struct _GtkWindowGeometryInfo GtkWindowGeometryInfo;
|
2001-06-14 21:44:01 +00:00
|
|
|
|
typedef struct _GtkWindowGroup GtkWindowGroup;
|
|
|
|
|
typedef struct _GtkWindowGroupClass GtkWindowGroupClass;
|
2010-12-18 01:41:16 +00:00
|
|
|
|
typedef struct _GtkWindowGroupPrivate GtkWindowGroupPrivate;
|
1997-11-24 22:37:52 +00:00
|
|
|
|
|
|
|
|
|
struct _GtkWindow
|
|
|
|
|
{
|
|
|
|
|
GtkBin bin;
|
|
|
|
|
|
2010-08-17 13:37:57 +00:00
|
|
|
|
GtkWindowPrivate *priv;
|
1997-11-24 22:37:52 +00:00
|
|
|
|
};
|
|
|
|
|
|
2014-01-17 20:17:45 +00:00
|
|
|
|
/**
|
|
|
|
|
* GtkWindowClass:
|
|
|
|
|
* @parent_class: The parent class.
|
|
|
|
|
* @set_focus: Sets child as the focus widget for the window.
|
|
|
|
|
* @activate_focus: Activates the current focused widget within the window.
|
|
|
|
|
* @activate_default: Activates the default widget for the window.
|
2014-01-21 15:40:52 +00:00
|
|
|
|
* @keys_changed: Signal gets emitted when the set of accelerators or
|
|
|
|
|
* mnemonics that are associated with window changes.
|
2015-06-20 14:36:09 +00:00
|
|
|
|
* @enable_debugging: Class handler for the #GtkWindow::enable-debugging
|
|
|
|
|
* keybinding signal. Since: 3.14
|
2014-01-17 20:17:45 +00:00
|
|
|
|
*/
|
1997-11-24 22:37:52 +00:00
|
|
|
|
struct _GtkWindowClass
|
|
|
|
|
{
|
|
|
|
|
GtkBinClass parent_class;
|
|
|
|
|
|
2014-01-17 20:17:45 +00:00
|
|
|
|
/*< public >*/
|
|
|
|
|
|
2001-01-08 17:04:17 +00:00
|
|
|
|
void (* set_focus) (GtkWindow *window,
|
2010-12-23 17:58:00 +00:00
|
|
|
|
GtkWidget *focus);
|
2001-04-18 22:21:45 +00:00
|
|
|
|
|
|
|
|
|
/* G_SIGNAL_ACTION signals for keybindings */
|
|
|
|
|
|
2010-12-23 17:58:00 +00:00
|
|
|
|
void (* activate_focus) (GtkWindow *window);
|
|
|
|
|
void (* activate_default) (GtkWindow *window);
|
|
|
|
|
void (* keys_changed) (GtkWindow *window);
|
2014-09-26 13:37:28 +00:00
|
|
|
|
gboolean (* enable_debugging) (GtkWindow *window,
|
2014-07-06 20:53:37 +00:00
|
|
|
|
gboolean toggle);
|
2010-10-20 14:58:18 +00:00
|
|
|
|
|
2014-01-17 20:17:45 +00:00
|
|
|
|
/*< private >*/
|
|
|
|
|
|
2002-02-23 20:22:05 +00:00
|
|
|
|
/* Padding for future expansion */
|
|
|
|
|
void (*_gtk_reserved1) (void);
|
|
|
|
|
void (*_gtk_reserved2) (void);
|
|
|
|
|
void (*_gtk_reserved3) (void);
|
1997-11-24 22:37:52 +00:00
|
|
|
|
};
|
|
|
|
|
|
2014-05-20 13:12:10 +00:00
|
|
|
|
/**
|
|
|
|
|
* GtkWindowType:
|
|
|
|
|
* @GTK_WINDOW_TOPLEVEL: A regular window, such as a dialog.
|
|
|
|
|
* @GTK_WINDOW_POPUP: A special window such as a tooltip.
|
|
|
|
|
*
|
|
|
|
|
* A #GtkWindow can be one of these types. Most things you’d consider a
|
|
|
|
|
* “window” should have type #GTK_WINDOW_TOPLEVEL; windows with this type
|
|
|
|
|
* are managed by the window manager and have a frame by default (call
|
|
|
|
|
* gtk_window_set_decorated() to toggle the frame). Windows with type
|
|
|
|
|
* #GTK_WINDOW_POPUP are ignored by the window manager; window manager
|
|
|
|
|
* keybindings won’t work on them, the window manager won’t decorate the
|
|
|
|
|
* window with a frame, many GTK+ features that rely on the window
|
2018-01-13 09:17:21 +00:00
|
|
|
|
* manager will not work (e.g. maximization/minimization).
|
|
|
|
|
* #GTK_WINDOW_POPUP is used to implement
|
2014-05-20 13:12:10 +00:00
|
|
|
|
* widgets such as #GtkMenu or tooltips that you normally don’t think of
|
|
|
|
|
* as windows per se. Nearly all windows should be #GTK_WINDOW_TOPLEVEL.
|
|
|
|
|
* In particular, do not use #GTK_WINDOW_POPUP just to turn off
|
|
|
|
|
* the window borders; use gtk_window_set_decorated() for that.
|
|
|
|
|
*/
|
|
|
|
|
typedef enum
|
|
|
|
|
{
|
|
|
|
|
GTK_WINDOW_TOPLEVEL,
|
|
|
|
|
GTK_WINDOW_POPUP
|
|
|
|
|
} GtkWindowType;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* GtkWindowPosition:
|
|
|
|
|
* @GTK_WIN_POS_NONE: No influence is made on placement.
|
|
|
|
|
* @GTK_WIN_POS_CENTER: Windows should be placed in the center of the screen.
|
|
|
|
|
* @GTK_WIN_POS_MOUSE: Windows should be placed at the current mouse position.
|
|
|
|
|
* @GTK_WIN_POS_CENTER_ALWAYS: Keep window centered as it changes size, etc.
|
|
|
|
|
* @GTK_WIN_POS_CENTER_ON_PARENT: Center the window on its transient
|
|
|
|
|
* parent (see gtk_window_set_transient_for()).
|
|
|
|
|
*
|
|
|
|
|
* Window placement can be influenced using this enumeration. Note that
|
|
|
|
|
* using #GTK_WIN_POS_CENTER_ALWAYS is almost always a bad idea.
|
|
|
|
|
* It won’t necessarily work well with all window managers or on all windowing systems.
|
|
|
|
|
*/
|
|
|
|
|
typedef enum
|
|
|
|
|
{
|
|
|
|
|
GTK_WIN_POS_NONE,
|
|
|
|
|
GTK_WIN_POS_CENTER,
|
|
|
|
|
GTK_WIN_POS_MOUSE,
|
|
|
|
|
GTK_WIN_POS_CENTER_ALWAYS,
|
|
|
|
|
GTK_WIN_POS_CENTER_ON_PARENT
|
|
|
|
|
} GtkWindowPosition;
|
|
|
|
|
|
|
|
|
|
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2002-10-01 19:55:08 +00:00
|
|
|
|
GType gtk_window_get_type (void) G_GNUC_CONST;
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
1997-11-24 22:37:52 +00:00
|
|
|
|
GtkWidget* gtk_window_new (GtkWindowType type);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
1997-11-24 22:37:52 +00:00
|
|
|
|
void gtk_window_set_title (GtkWindow *window,
|
|
|
|
|
const gchar *title);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2011-06-06 18:13:44 +00:00
|
|
|
|
const gchar * gtk_window_get_title (GtkWindow *window);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2001-03-07 21:10:44 +00:00
|
|
|
|
void gtk_window_set_role (GtkWindow *window,
|
|
|
|
|
const gchar *role);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2007-03-13 17:03:54 +00:00
|
|
|
|
void gtk_window_set_startup_id (GtkWindow *window,
|
|
|
|
|
const gchar *startup_id);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2011-06-06 18:13:44 +00:00
|
|
|
|
const gchar * gtk_window_get_role (GtkWindow *window);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
fixed an assertment.
Sat Jun 6 06:01:24 1998 Tim Janik <timj@gtk.org>
* gtk/gtksignal.c (gtk_signal_emitv): fixed an assertment.
* gtk/makeenums.awk: a script to generate the GtkEnumValue arrays from,
this should eventually be done by gentypeinfo.el somewhen.
* gtk/gtkenumvalues.c: new generated file to hold GtkEnumValue arrays.
* gtk/gtktypeutils.h: new function gtk_enum_values() to retrive all the
enum values of an enum type.
* gtk/gtk.defs:
* gtk/gtkcurve.h:
* gtk/gtkobject.h:
* gtk/gtkprivate.h:
* gtk/gtkwidget.h:
* gtk/gtkenums.h:
brought enum/flags definitions in sync, added a few more enum
definitions for bindings and pattern matching.
* some more macro and GtkType fixups in various places.
* gdk/gdktypes.h (enum): added a new value GDK_AFTER_MASK, which is used
as a key-release modifier for the binding system.
Fri Jun 5 06:06:06 1998 Tim Janik <timj@gtk.org>
* gtk/gtkmenu.h (struct _GtkMenu): removed GList*children, since it
was a stale list pointer that is already present in GtkMenuShell.
* gtk/gtkmenushell.h (struct _GtkMenuShellClass): added a signal
GtkMenuShell::selection_done which is emitted after the menu shell
poped down again and all possible menu items have been activated.
Thu Jun 4 02:20:42 1998 Tim Janik <timj@gtk.org>
* gtk/gtkmenushell.c (gtk_menu_shell_button_release): flush the x-queue
before activation of the menuitem, so the menu is actually taken off the
screen prior to any menu item activation.
* gtk/gtkctree.c (gtk_ctree_get_row_data): allow function invokation
for NULL nodes.
* gtk/gtkwidget.h:
* gtk/gtkwidget.c: new function gtk_widget_stop_accelerator to stop
the emission of the "add-accelerator" signal on a widget. this is
usefull to prevent accelerator installation on certain widgets.
* gtk/gtknotebook.c (gtk_notebook_menu_item_create): keep the menu
labels left justified, by setting their alignment. stop accelerator
installation for the menu items, since we use dynamic menus.
Wed Jun 3 06:41:22 1998 Tim Janik <timj@gtk.org>
* gtk/gtkmenufactory.c: adaptions to use the new accel groups. people
should *really* use GtkItemFactory. this is only for preserving source
compatibility where possible, use of GtkMenuFactory is deprecated as of
now.
* gtk/gtkobject.h (gtk_object_class_add_user_signal): new function
to create user signals of type GTK_RUN_NO_RECURSE. don't know why i
missed this possibility when i added gtk_object_class_add_user_signal
in late january.
* gtk/gtkmain.c (gtk_init): ignore subsequent function calls.
Sun May 31 07:31:09 1998 Tim Janik <timj@gtk.org>
* gtk/gtkaccelgroup.h:
* gtk/gtkaccelgroup.c: new implementation of the accelerator concept.
* gtk/gtkaccellabel.h:
* gtk/gtkaccellabel.c: new widget derived from GtkLabel whitch features
display of the accelerators associated with a certain widget.
* gtk/gtkitemfactory.h:
* gtk/gtkitemfactory.c: new widget, item factory with automatic rc
parsing and accelerator handling.
* gtk/gtkmenu.c (gtk_menu_reposition): new function to care for
positioning a menu.
(gtk_menu_map): removed the allocation code.
(gtk_menu_size_allocate): care for redrawing of children and resize
our widget->window correctly.
(gtk_menu_key_press): feature the new accelerator groups.
* gtk/gtkmenuitem.c (gtk_menu_item_size_allocate): reposition the
submenu if neccessary.
* gtk/gtkmenuitem.c:
* gtk/gtkcheckmenuitem.c:
* gtk/gtkradiomenuitem.c: use GtkAccelLabel in the *_new_with_label()
function variants.
* gdk/gdk.c:
(gdk_keyval_from_name):
(gdk_keyval_name): new functions for keyval<->key-name associations.
(gdk_keyval_to_upper):
(gdk_keyval_to_lower):
(gdk_keyval_is_upper):
(gdk_keyval_is_lower): new functions to check/translate keyvalues with
regards to their cases.
Wed May 27 00:48:10 1998 Tim Janik <timj@gtk.org>
* gtk/gtkwidget.c (gtk_widget_class_path): new function to calculate a
widget's class path.
(gtk_widget_path): new function to calculate a widget's name path.
* gtk/gtkrc.c: newly introduced GtkPatternSpec structures to speed up
pattern matching, features reversed pattern matches.
1998-06-07 06:48:56 +00:00
|
|
|
|
void gtk_window_add_accel_group (GtkWindow *window,
|
|
|
|
|
GtkAccelGroup *accel_group);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
fixed an assertment.
Sat Jun 6 06:01:24 1998 Tim Janik <timj@gtk.org>
* gtk/gtksignal.c (gtk_signal_emitv): fixed an assertment.
* gtk/makeenums.awk: a script to generate the GtkEnumValue arrays from,
this should eventually be done by gentypeinfo.el somewhen.
* gtk/gtkenumvalues.c: new generated file to hold GtkEnumValue arrays.
* gtk/gtktypeutils.h: new function gtk_enum_values() to retrive all the
enum values of an enum type.
* gtk/gtk.defs:
* gtk/gtkcurve.h:
* gtk/gtkobject.h:
* gtk/gtkprivate.h:
* gtk/gtkwidget.h:
* gtk/gtkenums.h:
brought enum/flags definitions in sync, added a few more enum
definitions for bindings and pattern matching.
* some more macro and GtkType fixups in various places.
* gdk/gdktypes.h (enum): added a new value GDK_AFTER_MASK, which is used
as a key-release modifier for the binding system.
Fri Jun 5 06:06:06 1998 Tim Janik <timj@gtk.org>
* gtk/gtkmenu.h (struct _GtkMenu): removed GList*children, since it
was a stale list pointer that is already present in GtkMenuShell.
* gtk/gtkmenushell.h (struct _GtkMenuShellClass): added a signal
GtkMenuShell::selection_done which is emitted after the menu shell
poped down again and all possible menu items have been activated.
Thu Jun 4 02:20:42 1998 Tim Janik <timj@gtk.org>
* gtk/gtkmenushell.c (gtk_menu_shell_button_release): flush the x-queue
before activation of the menuitem, so the menu is actually taken off the
screen prior to any menu item activation.
* gtk/gtkctree.c (gtk_ctree_get_row_data): allow function invokation
for NULL nodes.
* gtk/gtkwidget.h:
* gtk/gtkwidget.c: new function gtk_widget_stop_accelerator to stop
the emission of the "add-accelerator" signal on a widget. this is
usefull to prevent accelerator installation on certain widgets.
* gtk/gtknotebook.c (gtk_notebook_menu_item_create): keep the menu
labels left justified, by setting their alignment. stop accelerator
installation for the menu items, since we use dynamic menus.
Wed Jun 3 06:41:22 1998 Tim Janik <timj@gtk.org>
* gtk/gtkmenufactory.c: adaptions to use the new accel groups. people
should *really* use GtkItemFactory. this is only for preserving source
compatibility where possible, use of GtkMenuFactory is deprecated as of
now.
* gtk/gtkobject.h (gtk_object_class_add_user_signal): new function
to create user signals of type GTK_RUN_NO_RECURSE. don't know why i
missed this possibility when i added gtk_object_class_add_user_signal
in late january.
* gtk/gtkmain.c (gtk_init): ignore subsequent function calls.
Sun May 31 07:31:09 1998 Tim Janik <timj@gtk.org>
* gtk/gtkaccelgroup.h:
* gtk/gtkaccelgroup.c: new implementation of the accelerator concept.
* gtk/gtkaccellabel.h:
* gtk/gtkaccellabel.c: new widget derived from GtkLabel whitch features
display of the accelerators associated with a certain widget.
* gtk/gtkitemfactory.h:
* gtk/gtkitemfactory.c: new widget, item factory with automatic rc
parsing and accelerator handling.
* gtk/gtkmenu.c (gtk_menu_reposition): new function to care for
positioning a menu.
(gtk_menu_map): removed the allocation code.
(gtk_menu_size_allocate): care for redrawing of children and resize
our widget->window correctly.
(gtk_menu_key_press): feature the new accelerator groups.
* gtk/gtkmenuitem.c (gtk_menu_item_size_allocate): reposition the
submenu if neccessary.
* gtk/gtkmenuitem.c:
* gtk/gtkcheckmenuitem.c:
* gtk/gtkradiomenuitem.c: use GtkAccelLabel in the *_new_with_label()
function variants.
* gdk/gdk.c:
(gdk_keyval_from_name):
(gdk_keyval_name): new functions for keyval<->key-name associations.
(gdk_keyval_to_upper):
(gdk_keyval_to_lower):
(gdk_keyval_is_upper):
(gdk_keyval_is_lower): new functions to check/translate keyvalues with
regards to their cases.
Wed May 27 00:48:10 1998 Tim Janik <timj@gtk.org>
* gtk/gtkwidget.c (gtk_widget_class_path): new function to calculate a
widget's class path.
(gtk_widget_path): new function to calculate a widget's name path.
* gtk/gtkrc.c: newly introduced GtkPatternSpec structures to speed up
pattern matching, features reversed pattern matches.
1998-06-07 06:48:56 +00:00
|
|
|
|
void gtk_window_remove_accel_group (GtkWindow *window,
|
|
|
|
|
GtkAccelGroup *accel_group);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
1998-11-28 07:42:37 +00:00
|
|
|
|
void gtk_window_set_position (GtkWindow *window,
|
1997-11-24 22:37:52 +00:00
|
|
|
|
GtkWindowPosition position);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2001-03-16 20:12:40 +00:00
|
|
|
|
gboolean gtk_window_activate_focus (GtkWindow *window);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2001-11-17 01:18:49 +00:00
|
|
|
|
void gtk_window_set_focus (GtkWindow *window,
|
|
|
|
|
GtkWidget *focus);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2001-10-31 20:41:02 +00:00
|
|
|
|
GtkWidget *gtk_window_get_focus (GtkWindow *window);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2001-11-17 01:18:49 +00:00
|
|
|
|
void gtk_window_set_default (GtkWindow *window,
|
|
|
|
|
GtkWidget *default_widget);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2008-08-02 04:29:47 +00:00
|
|
|
|
GtkWidget *gtk_window_get_default_widget (GtkWindow *window);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2001-03-16 20:12:40 +00:00
|
|
|
|
gboolean gtk_window_activate_default (GtkWindow *window);
|
1997-11-24 22:37:52 +00:00
|
|
|
|
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
1998-12-07 06:37:27 +00:00
|
|
|
|
void gtk_window_set_transient_for (GtkWindow *window,
|
|
|
|
|
GtkWindow *parent);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2001-06-24 15:34:48 +00:00
|
|
|
|
GtkWindow *gtk_window_get_transient_for (GtkWindow *window);
|
2012-02-27 12:10:59 +00:00
|
|
|
|
GDK_AVAILABLE_IN_3_4
|
2012-01-12 18:29:52 +00:00
|
|
|
|
void gtk_window_set_attached_to (GtkWindow *window,
|
|
|
|
|
GtkWidget *attach_widget);
|
2012-02-27 12:10:59 +00:00
|
|
|
|
GDK_AVAILABLE_IN_3_4
|
2012-01-12 18:29:52 +00:00
|
|
|
|
GtkWidget *gtk_window_get_attached_to (GtkWindow *window);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2001-03-05 15:09:02 +00:00
|
|
|
|
void gtk_window_set_type_hint (GtkWindow *window,
|
|
|
|
|
GdkWindowTypeHint hint);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2001-06-24 15:34:48 +00:00
|
|
|
|
GdkWindowTypeHint gtk_window_get_type_hint (GtkWindow *window);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2002-09-25 19:16:46 +00:00
|
|
|
|
void gtk_window_set_skip_taskbar_hint (GtkWindow *window,
|
|
|
|
|
gboolean setting);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2002-09-25 19:16:46 +00:00
|
|
|
|
gboolean gtk_window_get_skip_taskbar_hint (GtkWindow *window);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2002-09-25 19:16:46 +00:00
|
|
|
|
void gtk_window_set_skip_pager_hint (GtkWindow *window,
|
|
|
|
|
gboolean setting);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2002-09-25 19:16:46 +00:00
|
|
|
|
gboolean gtk_window_get_skip_pager_hint (GtkWindow *window);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2005-06-17 20:19:32 +00:00
|
|
|
|
void gtk_window_set_urgency_hint (GtkWindow *window,
|
|
|
|
|
gboolean setting);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2005-06-17 20:19:32 +00:00
|
|
|
|
gboolean gtk_window_get_urgency_hint (GtkWindow *window);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2003-12-10 23:58:23 +00:00
|
|
|
|
void gtk_window_set_accept_focus (GtkWindow *window,
|
|
|
|
|
gboolean setting);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2003-12-10 23:58:23 +00:00
|
|
|
|
gboolean gtk_window_get_accept_focus (GtkWindow *window);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2004-05-06 02:57:01 +00:00
|
|
|
|
void gtk_window_set_focus_on_map (GtkWindow *window,
|
|
|
|
|
gboolean setting);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2004-05-06 02:57:01 +00:00
|
|
|
|
gboolean gtk_window_get_focus_on_map (GtkWindow *window);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2000-10-20 23:14:41 +00:00
|
|
|
|
void gtk_window_set_destroy_with_parent (GtkWindow *window,
|
|
|
|
|
gboolean setting);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2001-06-24 15:34:48 +00:00
|
|
|
|
gboolean gtk_window_get_destroy_with_parent (GtkWindow *window);
|
2017-12-31 15:42:10 +00:00
|
|
|
|
GDK_AVAILABLE_IN_3_94
|
|
|
|
|
void gtk_window_set_hide_on_close (GtkWindow *window,
|
|
|
|
|
gboolean setting);
|
|
|
|
|
GDK_AVAILABLE_IN_3_94
|
|
|
|
|
gboolean gtk_window_get_hide_on_close (GtkWindow *window);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2009-12-20 08:04:52 +00:00
|
|
|
|
void gtk_window_set_mnemonics_visible (GtkWindow *window,
|
|
|
|
|
gboolean setting);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2009-12-20 08:04:52 +00:00
|
|
|
|
gboolean gtk_window_get_mnemonics_visible (GtkWindow *window);
|
2012-02-27 12:10:59 +00:00
|
|
|
|
GDK_AVAILABLE_IN_3_2
|
2011-08-10 14:00:38 +00:00
|
|
|
|
void gtk_window_set_focus_visible (GtkWindow *window,
|
|
|
|
|
gboolean setting);
|
2012-02-27 12:10:59 +00:00
|
|
|
|
GDK_AVAILABLE_IN_3_2
|
2011-08-10 14:00:38 +00:00
|
|
|
|
gboolean gtk_window_get_focus_visible (GtkWindow *window);
|
2001-03-07 21:10:44 +00:00
|
|
|
|
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2001-06-25 23:48:51 +00:00
|
|
|
|
void gtk_window_set_resizable (GtkWindow *window,
|
|
|
|
|
gboolean resizable);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2001-06-25 23:48:51 +00:00
|
|
|
|
gboolean gtk_window_get_resizable (GtkWindow *window);
|
2001-03-29 23:02:30 +00:00
|
|
|
|
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2001-03-29 23:02:30 +00:00
|
|
|
|
void gtk_window_set_gravity (GtkWindow *window,
|
|
|
|
|
GdkGravity gravity);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2001-03-29 23:02:30 +00:00
|
|
|
|
GdkGravity gtk_window_get_gravity (GtkWindow *window);
|
|
|
|
|
|
2017-10-31 06:41:15 +00:00
|
|
|
|
GDK_AVAILABLE_IN_3_94
|
|
|
|
|
void gtk_window_set_display (GtkWindow *window,
|
|
|
|
|
GdkDisplay *display);
|
Integrate Erwann Chenede's multihead changes for the gtk/ directory.
Mon Apr 29 18:28:00 2002 Owen Taylor <otaylor@redhat.com>
Integrate Erwann Chenede's multihead changes for the gtk/ directory.
* gtk/gtkclipboard.[ch]: Add gtk_clipboard_get_for_display(),
make internals multihead aware.
* gtk/gtkcolorsel.[ch]: Add
gtk_color_selection_set_change_palette_with_screen_hook () [ugh!]
make up for non-multihead safety of
gtk_color_selection_set_change_palette_hook()
* gtk/gtkinvisible.[ch] gtk/gtkmenu.[ch] gtkwindow.[ch]: Add
gtk_{invisible,menu,window}_set_screen(); add "screen" properties
for GtkWindow and GtkMenu.
* gtk/gtkplug.[ch]: Add gtk_plug_construct_for_display(),
gtk_plug_new_for_display(). Multihead fixes.
* gtk/gtkselection.[ch]: Add gtk_selection_owner_set_for_display(),
make internals multihead aware.
* gtk/gtksettings.[ch]: Add gtk_settings_get_for_screen(), get
rid of now-useless gtk_settings_constructor().
* gtk/gtkstyle.[ch]: Add gtk_style_get_font_for_display(), fix
check/radio button indicators bitmap handling to be multihead
safe.
* gtk/gtkwidget.[ch]: Add gtk_widget_get_screen(), gtk_widget_has_screen(),
gtk_widget_get_display(), gtk_widget_get_clipboard(),
gtk_widget_get_root_window().
* gtk/gtkbindings.c gtk/gtkbutton.c gtk/gtkclist.c gtk/gtkcombo.c
gtk/gtkctree.c gtk/gtkdnd.c gtk/gtkfilesel.c gtk/gtkgamma.c
gtk/gtkhandlebox.c gtk/gtkhsv.c gtk/gtkimcontext.c gtk/gtklabel.c
gtk/gtklist.c gtk/gtkmain.c gtk/gtkmenuitem.c gtk/gtkmenushell.c
gtk/gtknotebook.c gtk/gtkoldeditable.c gtk/gtkoptionmenu.c
gtk/gtkpaned.c gtk/gtkpreview.c gtk/gtksocket.c gtk/gtktext.c
gtk/gtktextbuffer.c gtk/gtktextview.c gtk/gtktipsquery.c
gtk/gtktooltips.c gtk/gtktreeview.c gtk/gtktreeviewcolumn.c:
misc mechanical multihead-safety fixes.
* gtk/gtkclipboard.c: Use a GtkImage rather than a pixmap for
the dropper, look up the color palette only at realization time,
other multihead fixes.
* gtk/gtkcombo.c (gtk_combo_unrealize): Popdown the list when
unrealizing.
* gtk/gtkentry.c: Only claim ownership of the primary selection
when realized, misc multihead fixes.
* gtk/gtkfontsel.c: Only fill in fonts when attached to a screen,
fix gtk_font_selection_get_font() for multihead.
* gtk/gtkgc.c: make the depth => drawable hash per-screen.
* gtk/gtkinvisible.c: Add a constructor that realizes the
widget, so we get a realized widget with g_object_new() as
well gtk_invisible_new() as before.
* gtk/gtkmain.c: Get rid of unused gtk_visual/gtk_colormap
variables.
* gtk/gtktextdisplay.c: Add warnings if stipple bitmaps
are used on the wrong screen.
* gtk/gtktoolbar.c: Make handling of GtkSettings-based layout
read properties and connect to settings when the screen is changed,
rather than on init/finalize.
* gtk/gtkwindow.c: Fix icon handing to be multihead safe ...
default icon pixmaps/mask are only shared between windows on the
same screen. Misc multihead fixes.
Sat Apr 27 13:49:53 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkclipboard.c (gtk_clipboard_get_for_display):
Update docs to reference GDK_SELECTION_CLIPBOARD rather GDK_NONE.
2002-04-29 Alex Larsson <alexl@redhat.com>
* gdk/linux-fb/gdkproperty-fb.c (gdk_property_get):
Fix silly bug, noticed by Sven Neumann.
Sun Apr 28 22:43:55 2002 Jonathan Blandford <jrb@gnome.org>
* gtk/gtktreemodelsort.c (gtk_tree_model_sort_set_sort_func): Fix
so that you can set a new sort func.
2002-04-29 22:53:45 +00:00
|
|
|
|
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2003-10-28 15:43:43 +00:00
|
|
|
|
gboolean gtk_window_is_active (GtkWindow *window);
|
|
|
|
|
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2001-06-24 15:34:48 +00:00
|
|
|
|
void gtk_window_set_decorated (GtkWindow *window,
|
|
|
|
|
gboolean setting);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2001-06-24 15:34:48 +00:00
|
|
|
|
gboolean gtk_window_get_decorated (GtkWindow *window);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2005-08-30 04:46:09 +00:00
|
|
|
|
void gtk_window_set_deletable (GtkWindow *window,
|
|
|
|
|
gboolean setting);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2005-08-30 04:46:09 +00:00
|
|
|
|
gboolean gtk_window_get_deletable (GtkWindow *window);
|
2001-03-09 16:43:19 +00:00
|
|
|
|
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2001-08-29 02:20:02 +00:00
|
|
|
|
void gtk_window_set_icon_list (GtkWindow *window,
|
|
|
|
|
GList *list);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2001-08-29 02:20:02 +00:00
|
|
|
|
GList* gtk_window_get_icon_list (GtkWindow *window);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2001-08-29 02:20:02 +00:00
|
|
|
|
void gtk_window_set_icon (GtkWindow *window,
|
2017-11-15 18:33:26 +00:00
|
|
|
|
GdkTexture *icon);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2004-07-17 03:55:07 +00:00
|
|
|
|
void gtk_window_set_icon_name (GtkWindow *window,
|
|
|
|
|
const gchar *name);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2002-09-30 18:58:27 +00:00
|
|
|
|
gboolean gtk_window_set_icon_from_file (GtkWindow *window,
|
|
|
|
|
const gchar *filename,
|
|
|
|
|
GError **err);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2017-11-04 19:23:33 +00:00
|
|
|
|
GdkTexture * gtk_window_get_icon (GtkWindow *window);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2011-06-06 18:13:44 +00:00
|
|
|
|
const gchar * gtk_window_get_icon_name (GtkWindow *window);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2001-08-29 02:20:02 +00:00
|
|
|
|
void gtk_window_set_default_icon_list (GList *list);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2001-08-29 02:20:02 +00:00
|
|
|
|
GList* gtk_window_get_default_icon_list (void);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2017-11-04 19:23:33 +00:00
|
|
|
|
void gtk_window_set_default_icon (GdkTexture *icon);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2004-07-17 03:55:07 +00:00
|
|
|
|
void gtk_window_set_default_icon_name (const gchar *name);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2011-06-06 18:13:44 +00:00
|
|
|
|
const gchar * gtk_window_get_default_icon_name (void);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2002-09-30 18:58:27 +00:00
|
|
|
|
gboolean gtk_window_set_default_icon_from_file (const gchar *filename,
|
|
|
|
|
GError **err);
|
|
|
|
|
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2002-11-02 05:37:04 +00:00
|
|
|
|
void gtk_window_set_auto_startup_notification (gboolean setting);
|
2001-08-29 02:20:02 +00:00
|
|
|
|
|
1998-08-11 19:06:18 +00:00
|
|
|
|
/* If window is set modal, input will be grabbed when show and released when hide */
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2001-06-14 21:44:01 +00:00
|
|
|
|
void gtk_window_set_modal (GtkWindow *window,
|
|
|
|
|
gboolean modal);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2001-06-24 15:34:48 +00:00
|
|
|
|
gboolean gtk_window_get_modal (GtkWindow *window);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2001-06-14 21:44:01 +00:00
|
|
|
|
GList* gtk_window_list_toplevels (void);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2011-01-10 16:49:06 +00:00
|
|
|
|
void gtk_window_set_has_user_ref_count (GtkWindow *window,
|
|
|
|
|
gboolean setting);
|
documented necessary changes for 1.4 transition.
Fri May 12 17:13:32 2000 Tim Janik <timj@gtk.org>
* docs/Changes-1.4.txt: documented necessary changes for 1.4 transition.
* gtk/gtktext.c: made the adjustments no-construct args, simply
provide default adjustments.
(gtk_text_destroy): release adjustments.
* gtk/gtkprogressbar.c (gtk_progress_bar_class_init): made the
adjustment argument non-construct.
* gtk/gtkprogress.c (gtk_progress_destroy): release adjustment here,
instead of in finalize.
(gtk_progress_get_text_from_value):
(gtk_progress_get_current_text):
(gtk_progress_set_value):
(gtk_progress_get_percentage_from_value):
(gtk_progress_get_current_percentage):
(gtk_progress_set_percentage):
(gtk_progress_configure): ensure an adjustment is present.
Thu May 11 01:24:08 2000 Tim Janik <timj@gtk.org>
* gtk/gtkcolorsel.[hc]:
* gtk/gtkcolorseldialog.[hc]:
* gtk/gtkhsv.[hc]: major code cleanups, destroy handlers need to chain
their parent implementation, use bit fields for boolean values, don't
create unused widgets, usage of glib types, braces go on their own
lines, function argument alignment, #include directives etc. etc. etc..
* gtk/Makefile.am (gtk_public_h_sources): install gtkhsv.h.
Wed May 10 23:29:52 2000 Tim Janik <timj@gtk.org>
* gtk/gtktoolbar.c (gtk_toolbar_destroy): don't unref a NULL tooltips.
* gtk/gtkfilesel.c (gtk_file_selection_destroy): don't free a cmpl_state
of NULL.
* gtk/gtkcombo.c (gtk_combo_item_destroy): don#t keep references
to freed data.
(gtk_combo_destroy): don't keep a pointer to a destroyed window.
* gtk/gtkmenu.c (gtk_menu_init): reset the menu's toplevel pointer
to NULL when the toplevel is getting destroyed.
(gtk_menu_set_tearoff_state): same here for the tearoff_window.
(gtk_menu_destroy):
(gtk_menu_init): store the information of whether we have to
readd the initial child ref_count during destruction in a new
GtkMenu field needs_destruction_ref_count.
* gtk/gtkviewport.c: SHAME! ok this one is tricky, so i note it
here, those reading: learn from my mistake! ;)
in order for set_?adjustment to support a default adjustemnt if
invoked with an adjustment pointer of NULL, the code read (pseudo):
if (v->adjustment) unref (v->adjustment);
if (!adjustment) adjustment = adjustment_new ();
if (v->adjustment != adjustment) v->adjustment = ref (adjustment);
now imagine the first unref to actually free the old adjustment and
adjustment_new() creating a new adjustment from the very same memory
portion. here, the latter comparision will unintendedly fail, and
all hell breaks loose.
(gtk_viewport_set_hadjustment):
(gtk_viewport_set_vadjustment): reset viewport->?adjustment to NULL
after unreferencing it.
* gtk/gtkcontainer.[hc]: removed toplevel registration
functions: gtk_container_register_toplevel(),
gtk_container_unregister_toplevel() and
gtk_container_get_toplevels() which had wrong semantics
anyways: it didn't reference and copy the list.
* gtk/gtkwindow.c: we take over the container toplevel registration
bussiness now. windows are registered across multiple destructions,
untill they are finalized. the initial implicit reference count
users are holding on windows is removed with the first destruction
though.
(gtk_window_init): ref & sink and set has_user_ref_count, got
rid of gtk_container_register_toplevel() call. add window to
toplevel_list.
(gtk_window_destroy): unref the window if has_user_ref_count
is still set, got rid of call to
gtk_container_unregister_toplevel().
(gtk_window_finalize): remove window from toplevel list.
(gtk_window_list_toplevels): new function to return a newly
created list with referenced toplevels.
(gtk_window_read_rcfiles): use gtk_window_list_toplevels().
* gtk/gtkhscale.c (gtk_hscale_class_init): made the GtkRange
adjustment a non-construct arg.
* gtk/gtkvscale.c (gtk_vscale_class_init): likewise.
* gtk/gtkhscrollbar.c (gtk_vscrollbar_class_init): likewise.
* gtk/gtkvscrollbar.c (gtk_vscrollbar_class_init): likewise.
* gtk/gtkrange.c: added some realized checks.
(gtk_range_destroy): get rid of the h/v adjustments in the
destroy handler instead of finalize. remove timer.
(gtk_range_get_adjustment): demand create adjustment.
* gtk/gtkviewport.c: made h/v adjustment non-construct args.
we simply create them on demand now and get rid of them in
the destroy handler.
(gtk_viewport_destroy): get rid of the h/v adjustments in the
destroy handler instead of finalize.
(gtk_viewport_get_hadjustment):
(gtk_viewport_get_vadjustment):
(gtk_viewport_size_allocate): demand create h/v adjustment
if required.
* gtk/gtkwidget.c (gtk_widget_finalize): duplicate part of the
gtk_widget_real_destroy () functionality.
(gtk_widget_real_destroy): reinitialize with a new style, instead
of setting widget->style to NULL.
Fri May 5 13:02:09 2000 Tim Janik <timj@gtk.org>
* gtk/gtkcalendar.c:
* gtk/gtkbutton.c: ported _get_type() implementation over to
GType, either to preserve memchunks allocation facilities,
or because Gtk+ 1.0 GtkTypeInfo was still being used.
* gtk/gtkobject.[hc]: derive from GObject. ported various functions
over. prepare for ::destroy to be emitted multiple times.
removed reference tracer magic. chain into GObjectClass.shutdown()
to emit ::destroy signal.
* gtk/gtksignal.c: removed assumptions about GTK_TYPE_OBJECT being
fundamental.
* gtk/gtkmain.c: removed gtk_object_post_arg_parsing_init()
cludge.
* gtk/gtksocket.c:
* gtk/gtkplug.c:
* gtk/gtklayout.c:
* gtk/gtklabel.c:
* gtk/gtkargcollector.c:
* gtk/gtkarg.c: various fixups to work with GTK_TYPE_OBJECT
not being a fundamental anymore, and to work with the new
type system (nuked fundamental type varargs clutter).
* gtk/*.c: install finalize handlers in the GObjectClass
part of the class structure.
changed direct GTK_OBJECT()->klass accesses to
GTK_*_GET_CLASS().
changed direct object_class->type accesses to GTK_CLASS_TYPE().
* gtktypeutils.[hc]: use the reserved fundamental ids provided by
GType. made most of the GTK_*() type macros and Gtk* typedefs
simple wrappers around macros and types provided by GType.
most notably, a significant portion of the old API vanished:
GTK_TYPE_MAKE(),
GTK_TYPE_SEQNO(),
GTK_TYPE_FLAT_FIRST, GTK_TYPE_FLAT_LAST,
GTK_TYPE_STRUCTURED_FIRST, GTK_TYPE_STRUCTURED_LAST,
GTK_TYPE_ARGS,
GTK_TYPE_CALLBACK,
GTK_TYPE_C_CALLBACK,
GTK_TYPE_FOREIGN,
GtkTypeQuery,
gtk_type_query(),
gtk_type_set_varargs_type(),
gtk_type_get_varargs_type(),
gtk_type_check_object_cast(),
gtk_type_check_class_cast(),
gtk_type_describe_tree(),
gtk_type_describe_heritage(),
gtk_type_free(),
gtk_type_children_types(),
gtk_type_set_chunk_alloc(),
gtk_type_register_enum(),
gtk_type_register_flags(),
gtk_type_parent_class().
replacements, where available are described in ../docs/Changes-1.4.txt.
implemented compatibility functions for the remaining API.
* configure.in: depend on glib 1.3.1, use gobject module.
2000-05-12 15:25:50 +00:00
|
|
|
|
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2001-03-21 18:58:28 +00:00
|
|
|
|
void gtk_window_add_mnemonic (GtkWindow *window,
|
|
|
|
|
guint keyval,
|
|
|
|
|
GtkWidget *target);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2001-03-21 18:58:28 +00:00
|
|
|
|
void gtk_window_remove_mnemonic (GtkWindow *window,
|
|
|
|
|
guint keyval,
|
|
|
|
|
GtkWidget *target);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2001-04-01 07:32:41 +00:00
|
|
|
|
gboolean gtk_window_mnemonic_activate (GtkWindow *window,
|
2001-03-21 18:58:28 +00:00
|
|
|
|
guint keyval,
|
|
|
|
|
GdkModifierType modifier);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2001-03-21 18:58:28 +00:00
|
|
|
|
void gtk_window_set_mnemonic_modifier (GtkWindow *window,
|
|
|
|
|
GdkModifierType modifier);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2001-06-24 15:34:48 +00:00
|
|
|
|
GdkModifierType gtk_window_get_mnemonic_modifier (GtkWindow *window);
|
2001-03-21 18:58:28 +00:00
|
|
|
|
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2004-03-01 01:41:17 +00:00
|
|
|
|
gboolean gtk_window_activate_key (GtkWindow *window,
|
|
|
|
|
GdkEventKey *event);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2004-03-02 00:04:36 +00:00
|
|
|
|
gboolean gtk_window_propagate_key_event (GtkWindow *window,
|
|
|
|
|
GdkEventKey *event);
|
2004-03-01 01:41:17 +00:00
|
|
|
|
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2005-06-20 18:19:34 +00:00
|
|
|
|
void gtk_window_present (GtkWindow *window);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2005-06-20 18:19:34 +00:00
|
|
|
|
void gtk_window_present_with_time (GtkWindow *window,
|
|
|
|
|
guint32 timestamp);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2001-02-27 20:40:15 +00:00
|
|
|
|
void gtk_window_iconify (GtkWindow *window);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2001-02-27 20:40:15 +00:00
|
|
|
|
void gtk_window_deiconify (GtkWindow *window);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2001-02-27 20:40:15 +00:00
|
|
|
|
void gtk_window_stick (GtkWindow *window);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2001-02-27 20:40:15 +00:00
|
|
|
|
void gtk_window_unstick (GtkWindow *window);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2001-02-27 20:40:15 +00:00
|
|
|
|
void gtk_window_maximize (GtkWindow *window);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2001-02-27 20:40:15 +00:00
|
|
|
|
void gtk_window_unmaximize (GtkWindow *window);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2002-09-25 19:16:46 +00:00
|
|
|
|
void gtk_window_fullscreen (GtkWindow *window);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2002-09-25 19:16:46 +00:00
|
|
|
|
void gtk_window_unfullscreen (GtkWindow *window);
|
2015-07-13 16:30:42 +00:00
|
|
|
|
GDK_AVAILABLE_IN_3_18
|
2017-11-01 15:52:56 +00:00
|
|
|
|
void gtk_window_fullscreen_on_monitor (GtkWindow *window,
|
|
|
|
|
GdkMonitor *monitor);
|
2013-06-29 02:19:15 +00:00
|
|
|
|
GDK_AVAILABLE_IN_3_10
|
|
|
|
|
void gtk_window_close (GtkWindow *window);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2003-08-10 23:37:37 +00:00
|
|
|
|
void gtk_window_set_keep_above (GtkWindow *window, gboolean setting);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2003-08-10 23:37:37 +00:00
|
|
|
|
void gtk_window_set_keep_below (GtkWindow *window, gboolean setting);
|
2001-02-27 20:40:15 +00:00
|
|
|
|
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2001-03-29 21:17:45 +00:00
|
|
|
|
void gtk_window_begin_resize_drag (GtkWindow *window,
|
|
|
|
|
GdkWindowEdge edge,
|
|
|
|
|
gint button,
|
|
|
|
|
gint root_x,
|
|
|
|
|
gint root_y,
|
|
|
|
|
guint32 timestamp);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2001-03-29 21:17:45 +00:00
|
|
|
|
void gtk_window_begin_move_drag (GtkWindow *window,
|
|
|
|
|
gint button,
|
|
|
|
|
gint root_x,
|
|
|
|
|
gint root_y,
|
|
|
|
|
guint32 timestamp);
|
|
|
|
|
|
fix a typo.
2001-08-07 Havoc Pennington <hp@pobox.com>
* gtk/gtkfilesel.c (open_ref_dir): fix a typo.
* gtk/gtkplug.c (gtk_plug_init): remove setting of auto_shrink;
some fixage is needed here, but nothing simple. Owen understands
it. ;-)
* gtk/gtkwindow.h, gtk/gtkwindow.c: Rework code and API for window
sizing and positioning. Also, fix bug in compute_geometry_hints
(width/height confusion for setting min size).
(gtk_window_move): new function
(gtk_window_resize): new function
(gtk_window_get_size): new function
(gtk_window_get_position): new function
(gtk_window_parse_geometry): new function
* gtk/gtkwidget.c (gtk_widget_set_size_request): new function
(gtk_widget_get_size_request): new function
(gtk_widget_get_usize): delete, that was a short-lived function
;-)
(gtk_widget_set_usize): deprecate
(gtk_widget_set_uposition): deprecate, make it a trivial
gtk_window_move() wrapper
(gtk_widget_class_init): remove x/y/width/height properties,
add width_request height_request
* demos/*: update to avoid deprecated functions
* gtk/gtklayout.c: add x/y child properties
* gtk/gtkfixed.c: add x/y child properties, and get rid of
uses of "gint16"
* tests/testgtk.c (create_window_sizing): lots of tweaks to window
sizing test
* gdk/x11/gdkevents-x11.c (gdk_event_translate): Ensure that
configure events on toplevel windows are always in root window
coordinates, following ICCCM spec that all synthetic events
are in root window coords already, while real events are
in parent window coords. Previously the code assumed that
coords of 0,0 were parent window coords, which was
really broken.
* gtk/gtkcontainer.c (gtk_container_get_focus_chain): fix
warning
* gdk/gdkwindow.h (GdkWindowHints): add GDK_HINT_USER_POS
and GDK_HINT_USER_SIZE so we can set USSize and USPosition
hints in gtk_window_parse_geometry()
* gdk/x11/gdkwindow-x11.c (gdk_window_set_geometry_hints): support
new USER_POS USER_SIZE hints
2001-08-10 03:46:08 +00:00
|
|
|
|
/* Set initial default size of the window (does not constrain user
|
|
|
|
|
* resize operations)
|
2001-03-29 23:02:30 +00:00
|
|
|
|
*/
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
fix a typo.
2001-08-07 Havoc Pennington <hp@pobox.com>
* gtk/gtkfilesel.c (open_ref_dir): fix a typo.
* gtk/gtkplug.c (gtk_plug_init): remove setting of auto_shrink;
some fixage is needed here, but nothing simple. Owen understands
it. ;-)
* gtk/gtkwindow.h, gtk/gtkwindow.c: Rework code and API for window
sizing and positioning. Also, fix bug in compute_geometry_hints
(width/height confusion for setting min size).
(gtk_window_move): new function
(gtk_window_resize): new function
(gtk_window_get_size): new function
(gtk_window_get_position): new function
(gtk_window_parse_geometry): new function
* gtk/gtkwidget.c (gtk_widget_set_size_request): new function
(gtk_widget_get_size_request): new function
(gtk_widget_get_usize): delete, that was a short-lived function
;-)
(gtk_widget_set_usize): deprecate
(gtk_widget_set_uposition): deprecate, make it a trivial
gtk_window_move() wrapper
(gtk_widget_class_init): remove x/y/width/height properties,
add width_request height_request
* demos/*: update to avoid deprecated functions
* gtk/gtklayout.c: add x/y child properties
* gtk/gtkfixed.c: add x/y child properties, and get rid of
uses of "gint16"
* tests/testgtk.c (create_window_sizing): lots of tweaks to window
sizing test
* gdk/x11/gdkevents-x11.c (gdk_event_translate): Ensure that
configure events on toplevel windows are always in root window
coordinates, following ICCCM spec that all synthetic events
are in root window coords already, while real events are
in parent window coords. Previously the code assumed that
coords of 0,0 were parent window coords, which was
really broken.
* gtk/gtkcontainer.c (gtk_container_get_focus_chain): fix
warning
* gdk/gdkwindow.h (GdkWindowHints): add GDK_HINT_USER_POS
and GDK_HINT_USER_SIZE so we can set USSize and USPosition
hints in gtk_window_parse_geometry()
* gdk/x11/gdkwindow-x11.c (gdk_window_set_geometry_hints): support
new USER_POS USER_SIZE hints
2001-08-10 03:46:08 +00:00
|
|
|
|
void gtk_window_set_default_size (GtkWindow *window,
|
|
|
|
|
gint width,
|
|
|
|
|
gint height);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
fix a typo.
2001-08-07 Havoc Pennington <hp@pobox.com>
* gtk/gtkfilesel.c (open_ref_dir): fix a typo.
* gtk/gtkplug.c (gtk_plug_init): remove setting of auto_shrink;
some fixage is needed here, but nothing simple. Owen understands
it. ;-)
* gtk/gtkwindow.h, gtk/gtkwindow.c: Rework code and API for window
sizing and positioning. Also, fix bug in compute_geometry_hints
(width/height confusion for setting min size).
(gtk_window_move): new function
(gtk_window_resize): new function
(gtk_window_get_size): new function
(gtk_window_get_position): new function
(gtk_window_parse_geometry): new function
* gtk/gtkwidget.c (gtk_widget_set_size_request): new function
(gtk_widget_get_size_request): new function
(gtk_widget_get_usize): delete, that was a short-lived function
;-)
(gtk_widget_set_usize): deprecate
(gtk_widget_set_uposition): deprecate, make it a trivial
gtk_window_move() wrapper
(gtk_widget_class_init): remove x/y/width/height properties,
add width_request height_request
* demos/*: update to avoid deprecated functions
* gtk/gtklayout.c: add x/y child properties
* gtk/gtkfixed.c: add x/y child properties, and get rid of
uses of "gint16"
* tests/testgtk.c (create_window_sizing): lots of tweaks to window
sizing test
* gdk/x11/gdkevents-x11.c (gdk_event_translate): Ensure that
configure events on toplevel windows are always in root window
coordinates, following ICCCM spec that all synthetic events
are in root window coords already, while real events are
in parent window coords. Previously the code assumed that
coords of 0,0 were parent window coords, which was
really broken.
* gtk/gtkcontainer.c (gtk_container_get_focus_chain): fix
warning
* gdk/gdkwindow.h (GdkWindowHints): add GDK_HINT_USER_POS
and GDK_HINT_USER_SIZE so we can set USSize and USPosition
hints in gtk_window_parse_geometry()
* gdk/x11/gdkwindow-x11.c (gdk_window_set_geometry_hints): support
new USER_POS USER_SIZE hints
2001-08-10 03:46:08 +00:00
|
|
|
|
void gtk_window_get_default_size (GtkWindow *window,
|
|
|
|
|
gint *width,
|
|
|
|
|
gint *height);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
fix a typo.
2001-08-07 Havoc Pennington <hp@pobox.com>
* gtk/gtkfilesel.c (open_ref_dir): fix a typo.
* gtk/gtkplug.c (gtk_plug_init): remove setting of auto_shrink;
some fixage is needed here, but nothing simple. Owen understands
it. ;-)
* gtk/gtkwindow.h, gtk/gtkwindow.c: Rework code and API for window
sizing and positioning. Also, fix bug in compute_geometry_hints
(width/height confusion for setting min size).
(gtk_window_move): new function
(gtk_window_resize): new function
(gtk_window_get_size): new function
(gtk_window_get_position): new function
(gtk_window_parse_geometry): new function
* gtk/gtkwidget.c (gtk_widget_set_size_request): new function
(gtk_widget_get_size_request): new function
(gtk_widget_get_usize): delete, that was a short-lived function
;-)
(gtk_widget_set_usize): deprecate
(gtk_widget_set_uposition): deprecate, make it a trivial
gtk_window_move() wrapper
(gtk_widget_class_init): remove x/y/width/height properties,
add width_request height_request
* demos/*: update to avoid deprecated functions
* gtk/gtklayout.c: add x/y child properties
* gtk/gtkfixed.c: add x/y child properties, and get rid of
uses of "gint16"
* tests/testgtk.c (create_window_sizing): lots of tweaks to window
sizing test
* gdk/x11/gdkevents-x11.c (gdk_event_translate): Ensure that
configure events on toplevel windows are always in root window
coordinates, following ICCCM spec that all synthetic events
are in root window coords already, while real events are
in parent window coords. Previously the code assumed that
coords of 0,0 were parent window coords, which was
really broken.
* gtk/gtkcontainer.c (gtk_container_get_focus_chain): fix
warning
* gdk/gdkwindow.h (GdkWindowHints): add GDK_HINT_USER_POS
and GDK_HINT_USER_SIZE so we can set USSize and USPosition
hints in gtk_window_parse_geometry()
* gdk/x11/gdkwindow-x11.c (gdk_window_set_geometry_hints): support
new USER_POS USER_SIZE hints
2001-08-10 03:46:08 +00:00
|
|
|
|
void gtk_window_resize (GtkWindow *window,
|
|
|
|
|
gint width,
|
|
|
|
|
gint height);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
fix a typo.
2001-08-07 Havoc Pennington <hp@pobox.com>
* gtk/gtkfilesel.c (open_ref_dir): fix a typo.
* gtk/gtkplug.c (gtk_plug_init): remove setting of auto_shrink;
some fixage is needed here, but nothing simple. Owen understands
it. ;-)
* gtk/gtkwindow.h, gtk/gtkwindow.c: Rework code and API for window
sizing and positioning. Also, fix bug in compute_geometry_hints
(width/height confusion for setting min size).
(gtk_window_move): new function
(gtk_window_resize): new function
(gtk_window_get_size): new function
(gtk_window_get_position): new function
(gtk_window_parse_geometry): new function
* gtk/gtkwidget.c (gtk_widget_set_size_request): new function
(gtk_widget_get_size_request): new function
(gtk_widget_get_usize): delete, that was a short-lived function
;-)
(gtk_widget_set_usize): deprecate
(gtk_widget_set_uposition): deprecate, make it a trivial
gtk_window_move() wrapper
(gtk_widget_class_init): remove x/y/width/height properties,
add width_request height_request
* demos/*: update to avoid deprecated functions
* gtk/gtklayout.c: add x/y child properties
* gtk/gtkfixed.c: add x/y child properties, and get rid of
uses of "gint16"
* tests/testgtk.c (create_window_sizing): lots of tweaks to window
sizing test
* gdk/x11/gdkevents-x11.c (gdk_event_translate): Ensure that
configure events on toplevel windows are always in root window
coordinates, following ICCCM spec that all synthetic events
are in root window coords already, while real events are
in parent window coords. Previously the code assumed that
coords of 0,0 were parent window coords, which was
really broken.
* gtk/gtkcontainer.c (gtk_container_get_focus_chain): fix
warning
* gdk/gdkwindow.h (GdkWindowHints): add GDK_HINT_USER_POS
and GDK_HINT_USER_SIZE so we can set USSize and USPosition
hints in gtk_window_parse_geometry()
* gdk/x11/gdkwindow-x11.c (gdk_window_set_geometry_hints): support
new USER_POS USER_SIZE hints
2001-08-10 03:46:08 +00:00
|
|
|
|
void gtk_window_get_size (GtkWindow *window,
|
|
|
|
|
gint *width,
|
|
|
|
|
gint *height);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
fix a typo.
2001-08-07 Havoc Pennington <hp@pobox.com>
* gtk/gtkfilesel.c (open_ref_dir): fix a typo.
* gtk/gtkplug.c (gtk_plug_init): remove setting of auto_shrink;
some fixage is needed here, but nothing simple. Owen understands
it. ;-)
* gtk/gtkwindow.h, gtk/gtkwindow.c: Rework code and API for window
sizing and positioning. Also, fix bug in compute_geometry_hints
(width/height confusion for setting min size).
(gtk_window_move): new function
(gtk_window_resize): new function
(gtk_window_get_size): new function
(gtk_window_get_position): new function
(gtk_window_parse_geometry): new function
* gtk/gtkwidget.c (gtk_widget_set_size_request): new function
(gtk_widget_get_size_request): new function
(gtk_widget_get_usize): delete, that was a short-lived function
;-)
(gtk_widget_set_usize): deprecate
(gtk_widget_set_uposition): deprecate, make it a trivial
gtk_window_move() wrapper
(gtk_widget_class_init): remove x/y/width/height properties,
add width_request height_request
* demos/*: update to avoid deprecated functions
* gtk/gtklayout.c: add x/y child properties
* gtk/gtkfixed.c: add x/y child properties, and get rid of
uses of "gint16"
* tests/testgtk.c (create_window_sizing): lots of tweaks to window
sizing test
* gdk/x11/gdkevents-x11.c (gdk_event_translate): Ensure that
configure events on toplevel windows are always in root window
coordinates, following ICCCM spec that all synthetic events
are in root window coords already, while real events are
in parent window coords. Previously the code assumed that
coords of 0,0 were parent window coords, which was
really broken.
* gtk/gtkcontainer.c (gtk_container_get_focus_chain): fix
warning
* gdk/gdkwindow.h (GdkWindowHints): add GDK_HINT_USER_POS
and GDK_HINT_USER_SIZE so we can set USSize and USPosition
hints in gtk_window_parse_geometry()
* gdk/x11/gdkwindow-x11.c (gdk_window_set_geometry_hints): support
new USER_POS USER_SIZE hints
2001-08-10 03:46:08 +00:00
|
|
|
|
void gtk_window_move (GtkWindow *window,
|
|
|
|
|
gint x,
|
|
|
|
|
gint y);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
fix a typo.
2001-08-07 Havoc Pennington <hp@pobox.com>
* gtk/gtkfilesel.c (open_ref_dir): fix a typo.
* gtk/gtkplug.c (gtk_plug_init): remove setting of auto_shrink;
some fixage is needed here, but nothing simple. Owen understands
it. ;-)
* gtk/gtkwindow.h, gtk/gtkwindow.c: Rework code and API for window
sizing and positioning. Also, fix bug in compute_geometry_hints
(width/height confusion for setting min size).
(gtk_window_move): new function
(gtk_window_resize): new function
(gtk_window_get_size): new function
(gtk_window_get_position): new function
(gtk_window_parse_geometry): new function
* gtk/gtkwidget.c (gtk_widget_set_size_request): new function
(gtk_widget_get_size_request): new function
(gtk_widget_get_usize): delete, that was a short-lived function
;-)
(gtk_widget_set_usize): deprecate
(gtk_widget_set_uposition): deprecate, make it a trivial
gtk_window_move() wrapper
(gtk_widget_class_init): remove x/y/width/height properties,
add width_request height_request
* demos/*: update to avoid deprecated functions
* gtk/gtklayout.c: add x/y child properties
* gtk/gtkfixed.c: add x/y child properties, and get rid of
uses of "gint16"
* tests/testgtk.c (create_window_sizing): lots of tweaks to window
sizing test
* gdk/x11/gdkevents-x11.c (gdk_event_translate): Ensure that
configure events on toplevel windows are always in root window
coordinates, following ICCCM spec that all synthetic events
are in root window coords already, while real events are
in parent window coords. Previously the code assumed that
coords of 0,0 were parent window coords, which was
really broken.
* gtk/gtkcontainer.c (gtk_container_get_focus_chain): fix
warning
* gdk/gdkwindow.h (GdkWindowHints): add GDK_HINT_USER_POS
and GDK_HINT_USER_SIZE so we can set USSize and USPosition
hints in gtk_window_parse_geometry()
* gdk/x11/gdkwindow-x11.c (gdk_window_set_geometry_hints): support
new USER_POS USER_SIZE hints
2001-08-10 03:46:08 +00:00
|
|
|
|
void gtk_window_get_position (GtkWindow *window,
|
2001-09-08 06:24:46 +00:00
|
|
|
|
gint *root_x,
|
|
|
|
|
gint *root_y);
|
2010-10-10 02:38:54 +00:00
|
|
|
|
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2006-01-10 04:33:30 +00:00
|
|
|
|
GtkWindowGroup *gtk_window_get_group (GtkWindow *window);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2010-05-26 14:49:31 +00:00
|
|
|
|
gboolean gtk_window_has_group (GtkWindow *window);
|
fix a typo.
2001-08-07 Havoc Pennington <hp@pobox.com>
* gtk/gtkfilesel.c (open_ref_dir): fix a typo.
* gtk/gtkplug.c (gtk_plug_init): remove setting of auto_shrink;
some fixage is needed here, but nothing simple. Owen understands
it. ;-)
* gtk/gtkwindow.h, gtk/gtkwindow.c: Rework code and API for window
sizing and positioning. Also, fix bug in compute_geometry_hints
(width/height confusion for setting min size).
(gtk_window_move): new function
(gtk_window_resize): new function
(gtk_window_get_size): new function
(gtk_window_get_position): new function
(gtk_window_parse_geometry): new function
* gtk/gtkwidget.c (gtk_widget_set_size_request): new function
(gtk_widget_get_size_request): new function
(gtk_widget_get_usize): delete, that was a short-lived function
;-)
(gtk_widget_set_usize): deprecate
(gtk_widget_set_uposition): deprecate, make it a trivial
gtk_window_move() wrapper
(gtk_widget_class_init): remove x/y/width/height properties,
add width_request height_request
* demos/*: update to avoid deprecated functions
* gtk/gtklayout.c: add x/y child properties
* gtk/gtkfixed.c: add x/y child properties, and get rid of
uses of "gint16"
* tests/testgtk.c (create_window_sizing): lots of tweaks to window
sizing test
* gdk/x11/gdkevents-x11.c (gdk_event_translate): Ensure that
configure events on toplevel windows are always in root window
coordinates, following ICCCM spec that all synthetic events
are in root window coords already, while real events are
in parent window coords. Previously the code assumed that
coords of 0,0 were parent window coords, which was
really broken.
* gtk/gtkcontainer.c (gtk_container_get_focus_chain): fix
warning
* gdk/gdkwindow.h (GdkWindowHints): add GDK_HINT_USER_POS
and GDK_HINT_USER_SIZE so we can set USSize and USPosition
hints in gtk_window_parse_geometry()
* gdk/x11/gdkwindow-x11.c (gdk_window_set_geometry_hints): support
new USER_POS USER_SIZE hints
2001-08-10 03:46:08 +00:00
|
|
|
|
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2009-11-11 19:06:52 +00:00
|
|
|
|
GtkWindowType gtk_window_get_window_type (GtkWindow *window);
|
|
|
|
|
|
2010-05-25 22:38:44 +00:00
|
|
|
|
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2010-08-11 05:23:23 +00:00
|
|
|
|
GtkApplication *gtk_window_get_application (GtkWindow *window);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2010-08-11 05:23:23 +00:00
|
|
|
|
void gtk_window_set_application (GtkWindow *window,
|
|
|
|
|
GtkApplication *application);
|
|
|
|
|
|
2013-03-18 12:48:15 +00:00
|
|
|
|
GDK_AVAILABLE_IN_3_10
|
2013-03-18 12:38:02 +00:00
|
|
|
|
void gtk_window_set_titlebar (GtkWindow *window,
|
|
|
|
|
GtkWidget *titlebar);
|
2014-10-18 16:42:29 +00:00
|
|
|
|
GDK_AVAILABLE_IN_3_16
|
|
|
|
|
GtkWidget *gtk_window_get_titlebar (GtkWindow *window);
|
2013-03-18 12:38:02 +00:00
|
|
|
|
|
2013-04-24 19:45:49 +00:00
|
|
|
|
GDK_AVAILABLE_IN_3_12
|
|
|
|
|
gboolean gtk_window_is_maximized (GtkWindow *window);
|
|
|
|
|
|
2014-05-13 18:08:15 +00:00
|
|
|
|
GDK_AVAILABLE_IN_3_14
|
|
|
|
|
void gtk_window_set_interactive_debugging (gboolean enable);
|
|
|
|
|
|
2015-11-10 13:34:33 +00:00
|
|
|
|
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkWindow, g_object_unref)
|
|
|
|
|
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkWindowGroup, g_object_unref)
|
|
|
|
|
|
2005-03-20 07:01:23 +00:00
|
|
|
|
G_END_DECLS
|
1997-11-24 22:37:52 +00:00
|
|
|
|
|
|
|
|
|
#endif /* __GTK_WINDOW_H__ */
|