1997-11-24 22:37:52 +00:00
|
|
|
/* GTK - The GIMP Toolkit
|
|
|
|
* 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
|
1998-04-13 02:02:47 +00:00
|
|
|
* License along with this library; if not, write to the
|
|
|
|
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
|
|
* Boston, MA 02111-1307, USA.
|
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
|
|
|
|
* GTK+ at ftp://ftp.gtk.org/pub/gtk/.
|
|
|
|
*/
|
|
|
|
|
1997-11-24 22:37:52 +00:00
|
|
|
#ifndef __GTK_WINDOW_H__
|
|
|
|
#define __GTK_WINDOW_H__
|
|
|
|
|
|
|
|
|
|
|
|
#include <gdk/gdk.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>
|
|
|
|
#include <gtk/gtkenums.h>
|
|
|
|
#include <gtk/gtkwidget.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
|
|
|
|
|
|
|
|
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;
|
1997-11-24 22:37:52 +00:00
|
|
|
|
|
|
|
struct _GtkWindow
|
|
|
|
{
|
|
|
|
GtkBin bin;
|
|
|
|
|
|
|
|
gchar *title;
|
|
|
|
gchar *wmclass_name;
|
|
|
|
gchar *wmclass_class;
|
2001-03-07 21:10:44 +00:00
|
|
|
gchar *wm_role;
|
1997-11-24 22:37:52 +00:00
|
|
|
|
|
|
|
GtkWidget *focus_widget;
|
|
|
|
GtkWidget *default_widget;
|
1998-12-07 06:37:27 +00:00
|
|
|
GtkWindow *transient_parent;
|
2001-04-01 04:05:42 +00:00
|
|
|
GtkWindowGeometryInfo *geometry_info;
|
|
|
|
GdkWindow *frame;
|
2001-06-14 21:44:01 +00:00
|
|
|
GtkWindowGroup *group;
|
1997-11-24 22:37:52 +00:00
|
|
|
|
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
|
|
|
guint16 configure_request_count;
|
1997-11-24 22:37:52 +00:00
|
|
|
guint allow_shrink : 1;
|
|
|
|
guint allow_grow : 1;
|
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
|
|
|
guint configure_notify_received : 1;
|
|
|
|
/* The following flags are initially TRUE (before a window is mapped).
|
|
|
|
* They cause us to compute a configure request that involves
|
|
|
|
* default-only parameters. Once mapped, we set them to FALSE.
|
|
|
|
* Then we set them to TRUE again on unmap (for position)
|
|
|
|
* and on unrealize (for size).
|
1998-12-07 06:37:27 +00:00
|
|
|
*/
|
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
|
|
|
guint need_default_position : 1;
|
|
|
|
guint need_default_size : 1;
|
|
|
|
guint position : 3;
|
2002-02-23 00:13:17 +00:00
|
|
|
guint type : 4; /* GtkWindowType */
|
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
|
|
|
guint has_user_ref_count : 1;
|
|
|
|
guint has_focus : 1;
|
|
|
|
|
1998-08-11 19:06:18 +00:00
|
|
|
guint modal : 1;
|
2000-10-20 23:14:41 +00:00
|
|
|
guint destroy_with_parent : 1;
|
2001-01-08 17:04:17 +00:00
|
|
|
|
|
|
|
guint has_frame : 1;
|
|
|
|
|
2001-02-27 20:40:15 +00:00
|
|
|
/* gtk_window_iconify() called before realization */
|
|
|
|
guint iconify_initially : 1;
|
|
|
|
guint stick_initially : 1;
|
|
|
|
guint maximize_initially : 1;
|
2001-03-07 21:10:44 +00:00
|
|
|
guint decorated : 1;
|
|
|
|
|
2006-04-25 14:27:32 +00:00
|
|
|
guint type_hint : 3; /* GdkWindowTypeHint if the hint is one of the original eight. If not, then
|
|
|
|
* it contains GDK_WINDOW_TYPE_HINT_NORMAL
|
|
|
|
*/
|
2002-06-06 15:38:39 +00:00
|
|
|
guint gravity : 5; /* GdkGravity */
|
|
|
|
|
|
|
|
guint is_active : 1;
|
|
|
|
guint has_toplevel_focus : 1;
|
2001-03-07 21:10:44 +00:00
|
|
|
|
2001-01-08 17:04:17 +00:00
|
|
|
guint frame_left;
|
|
|
|
guint frame_top;
|
|
|
|
guint frame_right;
|
|
|
|
guint frame_bottom;
|
added gtkaccelmap.sgml. other updates.
Mon Nov 12 23:06:38 2001 Tim Janik <timj@gtk.org>
* added gtkaccelmap.sgml. other updates.
Mon Nov 12 23:08:37 2001 Tim Janik <timj@gtk.org>
* gtk/maketypes.awk: fix type utils generation on unix.
* gtk/gtkaccelmap.[hc]: new files, implementing a global accelerator
registry.
* gtk/gtkaccelgroup.[hc]: major API/implementation revamp:
removed GTK_ACCEL_SIGNAL_VISIBLE, gtk_accel_group_get_default,
gtk_accel_group_get_entry, gtk_accel_group_(un)lock_entry,
gtk_accel_group_add/remove, gtk_accel_group_handle_add/remove,
gtk_accel_group_create_add/remove, gtk_accel_group_entries_from_object.
introduced ::accel_changed signal for change notification, and
gtk_accel_group_connect/disconnect to connect closures to accel groups.
made gtk_accel_group_attach/detach and gtk_accel_group_activate private
functions.
deprecated gtk_accel_group_ref/unref.
* gtk/gtkaccellabel.[hc]: changes to make accellabels pay attention
to accel group changed notification and basically operate on closures.
removed gtk_accel_label_get_accel_object and
gtk_accel_label_set_accel_object.
introduced gtk_accel_label_set_accel_closure, and for convenience,
gtk_accel_label_set_accel_widget.
* gtk/gtkitemfactory.[hc]: removed accelerator propagation code
which mostly moved into gtkaccelmap.[hc].
removed gtk_item_factory_parse_rc*, gtk_item_factory_dump_*
and gtk_item_factory_print_func.
* gtk/gtkmain.c: call _gtk_accel_map_init().
* gtk/gtkmenuitem.[hc]: introduced gtk_menu_item_set_accel_path(),
that associates an accelerator path with menu items, through which
persistent accelerator settings on menu items are enabled.
* gtk/gtkmenu.[hc]: added gtk_menu_set_accel_path() so accelerator
paths of menu item can be default constructed to allow installation
of accelerators on menu items that don't come with an accelerator
binding by default.
* gtk/gtksettings.c: fix STRING type rc settings by special casing
them appropriately in the parser.
* gtk/gtksignal.[hc]: allow a class function offset of 0 for
gtk_signal_newv().
* gtk/gtkwidget.[hc]: accelerator API revamp.
removed ::accelerator_add/remove signals, gtk_widget_accelerator_signal,
gtk_widget_accelerators_locked, gtk_widget_remove_accelerators and
gtk_widget_(un)lock_accelerators.
accelerators maintained through gtk_widget_add/remove_accelerator()
are not runtime changable now, the correct sequence to setup a
widget for runtime changable accelerators is now:
gtk_accel_map_add_entry(accel_path, key, mods);
_gtk_widget_set_accel_path(widget, accel_path, accel_group);
* gtk/gtkwindow.[hc]: accelerator changes, proxy and coalesce accel
group changes (as well as mnemonic changes) through the new signal
::accels_changed.
Sat Nov 10 12:08:56 2001 Tim Janik <timj@gtk.org>
* gtk/gtksettings.c (_gtk_settings_parse_convert): properly handle
GString->string conversions.
2001-11-13 00:53:47 +00:00
|
|
|
|
2001-11-20 23:43:03 +00:00
|
|
|
guint keys_changed_handler;
|
2001-03-21 18:58:28 +00:00
|
|
|
|
|
|
|
GdkModifierType mnemonic_modifier;
|
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
|
|
|
GdkScreen *screen;
|
1997-11-24 22:37:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct _GtkWindowClass
|
|
|
|
{
|
|
|
|
GtkBinClass parent_class;
|
|
|
|
|
2001-01-08 17:04:17 +00:00
|
|
|
void (* set_focus) (GtkWindow *window,
|
|
|
|
GtkWidget *focus);
|
2001-11-03 23:02:40 +00:00
|
|
|
gboolean (* frame_event) (GtkWindow *window,
|
2001-01-08 17:04:17 +00:00
|
|
|
GdkEvent *event);
|
2001-04-18 22:21:45 +00:00
|
|
|
|
|
|
|
/* G_SIGNAL_ACTION signals for keybindings */
|
|
|
|
|
|
|
|
void (* activate_focus) (GtkWindow *window);
|
|
|
|
void (* activate_default) (GtkWindow *window);
|
|
|
|
void (* move_focus) (GtkWindow *window,
|
2002-02-21 17:14:10 +00:00
|
|
|
GtkDirectionType direction);
|
|
|
|
|
2001-11-20 23:43:03 +00:00
|
|
|
void (*keys_changed) (GtkWindow *window);
|
2002-02-23 20:22:05 +00:00
|
|
|
|
|
|
|
/* Padding for future expansion */
|
|
|
|
void (*_gtk_reserved1) (void);
|
|
|
|
void (*_gtk_reserved2) (void);
|
|
|
|
void (*_gtk_reserved3) (void);
|
|
|
|
void (*_gtk_reserved4) (void);
|
1997-11-24 22:37:52 +00:00
|
|
|
};
|
|
|
|
|
2001-06-14 21:44:01 +00:00
|
|
|
#define GTK_TYPE_WINDOW_GROUP (gtk_window_group_get_type ())
|
|
|
|
#define GTK_WINDOW_GROUP(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), GTK_TYPE_WINDOW_GROUP, GtkWindowGroup))
|
|
|
|
#define GTK_WINDOW_GROUP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_WINDOW_GROUP, GtkWindowGroupClass))
|
|
|
|
#define GTK_IS_WINDOW_GROUP(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), GTK_TYPE_WINDOW_GROUP))
|
|
|
|
#define GTK_IS_WINDOW_GROUP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_WINDOW_GROUP))
|
2001-06-15 18:58:58 +00:00
|
|
|
#define GTK_WINDOW_GROUP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_WINDOW_GROUP, GtkWindowGroupClass))
|
2001-06-14 21:44:01 +00:00
|
|
|
|
|
|
|
struct _GtkWindowGroup
|
|
|
|
{
|
|
|
|
GObject parent_instance;
|
|
|
|
|
|
|
|
GSList *grabs;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct _GtkWindowGroupClass
|
|
|
|
{
|
|
|
|
GObjectClass parent_class;
|
2002-02-23 20:22:05 +00:00
|
|
|
|
|
|
|
/* Padding for future expansion */
|
|
|
|
void (*_gtk_reserved1) (void);
|
|
|
|
void (*_gtk_reserved2) (void);
|
|
|
|
void (*_gtk_reserved3) (void);
|
|
|
|
void (*_gtk_reserved4) (void);
|
2001-06-14 21:44:01 +00:00
|
|
|
};
|
1997-11-24 22:37:52 +00:00
|
|
|
|
2004-12-12 21:09:13 +00:00
|
|
|
#ifdef G_OS_WIN32
|
|
|
|
/* Reserve old names for DLL ABI backward compatibility */
|
|
|
|
#define gtk_window_set_icon_from_file gtk_window_set_icon_from_file_utf8
|
|
|
|
#define gtk_window_set_default_icon_from_file gtk_window_set_default_icon_from_file_utf8
|
|
|
|
#endif
|
|
|
|
|
2002-10-01 19:55:08 +00:00
|
|
|
GType gtk_window_get_type (void) G_GNUC_CONST;
|
1997-11-24 22:37:52 +00:00
|
|
|
GtkWidget* gtk_window_new (GtkWindowType type);
|
|
|
|
void gtk_window_set_title (GtkWindow *window,
|
|
|
|
const gchar *title);
|
2001-06-24 15:34:48 +00:00
|
|
|
G_CONST_RETURN gchar *gtk_window_get_title (GtkWindow *window);
|
1997-11-24 22:37:52 +00:00
|
|
|
void gtk_window_set_wmclass (GtkWindow *window,
|
1998-05-12 21:30:52 +00:00
|
|
|
const gchar *wmclass_name,
|
|
|
|
const gchar *wmclass_class);
|
2001-03-07 21:10:44 +00:00
|
|
|
void gtk_window_set_role (GtkWindow *window,
|
|
|
|
const gchar *role);
|
2007-03-13 17:03:54 +00:00
|
|
|
void gtk_window_set_startup_id (GtkWindow *window,
|
|
|
|
const gchar *startup_id);
|
2001-06-24 15:34:48 +00:00
|
|
|
G_CONST_RETURN gchar *gtk_window_get_role (GtkWindow *window);
|
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);
|
|
|
|
void gtk_window_remove_accel_group (GtkWindow *window,
|
|
|
|
GtkAccelGroup *accel_group);
|
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);
|
2001-03-16 20:12:40 +00:00
|
|
|
gboolean gtk_window_activate_focus (GtkWindow *window);
|
2001-11-17 01:18:49 +00:00
|
|
|
void gtk_window_set_focus (GtkWindow *window,
|
|
|
|
GtkWidget *focus);
|
2001-10-31 20:41:02 +00:00
|
|
|
GtkWidget *gtk_window_get_focus (GtkWindow *window);
|
2001-11-17 01:18:49 +00:00
|
|
|
void gtk_window_set_default (GtkWindow *window,
|
|
|
|
GtkWidget *default_widget);
|
2001-03-16 20:12:40 +00:00
|
|
|
gboolean gtk_window_activate_default (GtkWindow *window);
|
1997-11-24 22:37:52 +00:00
|
|
|
|
1998-12-07 06:37:27 +00:00
|
|
|
void gtk_window_set_transient_for (GtkWindow *window,
|
|
|
|
GtkWindow *parent);
|
2001-06-24 15:34:48 +00:00
|
|
|
GtkWindow *gtk_window_get_transient_for (GtkWindow *window);
|
2007-04-30 07:37:24 +00:00
|
|
|
void gtk_window_set_opacity (GtkWindow *window,
|
|
|
|
gdouble opacity);
|
|
|
|
gdouble gtk_window_get_opacity (GtkWindow *window);
|
2001-03-05 15:09:02 +00:00
|
|
|
void gtk_window_set_type_hint (GtkWindow *window,
|
|
|
|
GdkWindowTypeHint hint);
|
2001-06-24 15:34:48 +00:00
|
|
|
GdkWindowTypeHint gtk_window_get_type_hint (GtkWindow *window);
|
2002-09-25 19:16:46 +00:00
|
|
|
void gtk_window_set_skip_taskbar_hint (GtkWindow *window,
|
|
|
|
gboolean setting);
|
|
|
|
gboolean gtk_window_get_skip_taskbar_hint (GtkWindow *window);
|
|
|
|
void gtk_window_set_skip_pager_hint (GtkWindow *window,
|
|
|
|
gboolean setting);
|
|
|
|
gboolean gtk_window_get_skip_pager_hint (GtkWindow *window);
|
2005-06-17 20:19:32 +00:00
|
|
|
void gtk_window_set_urgency_hint (GtkWindow *window,
|
|
|
|
gboolean setting);
|
|
|
|
gboolean gtk_window_get_urgency_hint (GtkWindow *window);
|
2003-12-10 23:58:23 +00:00
|
|
|
void gtk_window_set_accept_focus (GtkWindow *window,
|
|
|
|
gboolean setting);
|
|
|
|
gboolean gtk_window_get_accept_focus (GtkWindow *window);
|
2004-05-06 02:57:01 +00:00
|
|
|
void gtk_window_set_focus_on_map (GtkWindow *window,
|
|
|
|
gboolean setting);
|
|
|
|
gboolean gtk_window_get_focus_on_map (GtkWindow *window);
|
2000-10-20 23:14:41 +00:00
|
|
|
void gtk_window_set_destroy_with_parent (GtkWindow *window,
|
|
|
|
gboolean setting);
|
2001-06-24 15:34:48 +00:00
|
|
|
gboolean gtk_window_get_destroy_with_parent (GtkWindow *window);
|
2001-03-07 21:10:44 +00:00
|
|
|
|
2001-06-25 23:48:51 +00:00
|
|
|
void gtk_window_set_resizable (GtkWindow *window,
|
|
|
|
gboolean resizable);
|
|
|
|
gboolean gtk_window_get_resizable (GtkWindow *window);
|
2001-03-29 23:02:30 +00:00
|
|
|
|
|
|
|
void gtk_window_set_gravity (GtkWindow *window,
|
|
|
|
GdkGravity gravity);
|
|
|
|
GdkGravity gtk_window_get_gravity (GtkWindow *window);
|
|
|
|
|
|
|
|
|
|
|
|
void gtk_window_set_geometry_hints (GtkWindow *window,
|
|
|
|
GtkWidget *geometry_widget,
|
|
|
|
GdkGeometry *geometry,
|
|
|
|
GdkWindowHints geom_mask);
|
|
|
|
|
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
|
|
|
void gtk_window_set_screen (GtkWindow *window,
|
|
|
|
GdkScreen *screen);
|
|
|
|
GdkScreen* gtk_window_get_screen (GtkWindow *window);
|
|
|
|
|
2003-10-28 15:43:43 +00:00
|
|
|
gboolean gtk_window_is_active (GtkWindow *window);
|
|
|
|
gboolean gtk_window_has_toplevel_focus (GtkWindow *window);
|
|
|
|
|
|
|
|
|
|
|
|
|
2001-01-08 17:04:17 +00:00
|
|
|
/* gtk_window_set_has_frame () must be called before realizing the window_*/
|
2001-06-15 15:58:26 +00:00
|
|
|
void gtk_window_set_has_frame (GtkWindow *window,
|
|
|
|
gboolean setting);
|
2001-06-24 15:34:48 +00:00
|
|
|
gboolean gtk_window_get_has_frame (GtkWindow *window);
|
2001-01-08 17:04:17 +00:00
|
|
|
void gtk_window_set_frame_dimensions (GtkWindow *window,
|
|
|
|
gint left,
|
|
|
|
gint top,
|
|
|
|
gint right,
|
|
|
|
gint bottom);
|
2001-06-24 15:34:48 +00:00
|
|
|
void gtk_window_get_frame_dimensions (GtkWindow *window,
|
|
|
|
gint *left,
|
|
|
|
gint *top,
|
|
|
|
gint *right,
|
|
|
|
gint *bottom);
|
|
|
|
void gtk_window_set_decorated (GtkWindow *window,
|
|
|
|
gboolean setting);
|
|
|
|
gboolean gtk_window_get_decorated (GtkWindow *window);
|
2005-08-30 04:46:09 +00:00
|
|
|
void gtk_window_set_deletable (GtkWindow *window,
|
|
|
|
gboolean setting);
|
|
|
|
gboolean gtk_window_get_deletable (GtkWindow *window);
|
2001-03-09 16:43:19 +00:00
|
|
|
|
2001-08-29 02:20:02 +00:00
|
|
|
void gtk_window_set_icon_list (GtkWindow *window,
|
|
|
|
GList *list);
|
|
|
|
GList* gtk_window_get_icon_list (GtkWindow *window);
|
|
|
|
void gtk_window_set_icon (GtkWindow *window,
|
|
|
|
GdkPixbuf *icon);
|
2004-07-17 03:55:07 +00:00
|
|
|
void gtk_window_set_icon_name (GtkWindow *window,
|
|
|
|
const gchar *name);
|
2002-09-30 18:58:27 +00:00
|
|
|
gboolean gtk_window_set_icon_from_file (GtkWindow *window,
|
|
|
|
const gchar *filename,
|
|
|
|
GError **err);
|
2001-08-29 02:20:02 +00:00
|
|
|
GdkPixbuf* gtk_window_get_icon (GtkWindow *window);
|
2004-07-17 03:55:07 +00:00
|
|
|
G_CONST_RETURN
|
|
|
|
gchar *gtk_window_get_icon_name (GtkWindow *window);
|
2001-08-29 02:20:02 +00:00
|
|
|
void gtk_window_set_default_icon_list (GList *list);
|
|
|
|
GList* gtk_window_get_default_icon_list (void);
|
2003-07-18 18:52:03 +00:00
|
|
|
void gtk_window_set_default_icon (GdkPixbuf *icon);
|
2004-07-17 03:55:07 +00:00
|
|
|
void gtk_window_set_default_icon_name (const gchar *name);
|
2002-09-30 18:58:27 +00:00
|
|
|
gboolean gtk_window_set_default_icon_from_file (const gchar *filename,
|
|
|
|
GError **err);
|
|
|
|
|
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 */
|
2001-06-14 21:44:01 +00:00
|
|
|
void gtk_window_set_modal (GtkWindow *window,
|
|
|
|
gboolean modal);
|
2001-06-24 15:34:48 +00:00
|
|
|
gboolean gtk_window_get_modal (GtkWindow *window);
|
2001-06-14 21:44:01 +00:00
|
|
|
GList* gtk_window_list_toplevels (void);
|
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
|
|
|
|
2001-03-21 18:58:28 +00:00
|
|
|
void gtk_window_add_mnemonic (GtkWindow *window,
|
|
|
|
guint keyval,
|
|
|
|
GtkWidget *target);
|
|
|
|
void gtk_window_remove_mnemonic (GtkWindow *window,
|
|
|
|
guint keyval,
|
|
|
|
GtkWidget *target);
|
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);
|
|
|
|
void gtk_window_set_mnemonic_modifier (GtkWindow *window,
|
|
|
|
GdkModifierType modifier);
|
2001-06-24 15:34:48 +00:00
|
|
|
GdkModifierType gtk_window_get_mnemonic_modifier (GtkWindow *window);
|
2001-03-21 18:58:28 +00:00
|
|
|
|
2004-03-01 01:41:17 +00:00
|
|
|
gboolean gtk_window_activate_key (GtkWindow *window,
|
|
|
|
GdkEventKey *event);
|
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
|
|
|
|
2005-06-20 18:19:34 +00:00
|
|
|
void gtk_window_present (GtkWindow *window);
|
|
|
|
void gtk_window_present_with_time (GtkWindow *window,
|
|
|
|
guint32 timestamp);
|
2001-02-27 20:40:15 +00:00
|
|
|
void gtk_window_iconify (GtkWindow *window);
|
|
|
|
void gtk_window_deiconify (GtkWindow *window);
|
|
|
|
void gtk_window_stick (GtkWindow *window);
|
|
|
|
void gtk_window_unstick (GtkWindow *window);
|
|
|
|
void gtk_window_maximize (GtkWindow *window);
|
|
|
|
void gtk_window_unmaximize (GtkWindow *window);
|
2002-09-25 19:16:46 +00:00
|
|
|
void gtk_window_fullscreen (GtkWindow *window);
|
|
|
|
void gtk_window_unfullscreen (GtkWindow *window);
|
2003-08-10 23:37:37 +00:00
|
|
|
void gtk_window_set_keep_above (GtkWindow *window, gboolean setting);
|
|
|
|
void gtk_window_set_keep_below (GtkWindow *window, gboolean setting);
|
2001-02-27 20:40:15 +00:00
|
|
|
|
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);
|
|
|
|
void gtk_window_begin_move_drag (GtkWindow *window,
|
|
|
|
gint button,
|
|
|
|
gint root_x,
|
|
|
|
gint root_y,
|
|
|
|
guint32 timestamp);
|
|
|
|
|
2001-03-29 23:02:30 +00:00
|
|
|
#ifndef GTK_DISABLE_DEPRECATED
|
|
|
|
void gtk_window_set_policy (GtkWindow *window,
|
|
|
|
gint allow_shrink,
|
|
|
|
gint allow_grow,
|
|
|
|
gint auto_shrink);
|
2001-08-23 15:26:49 +00:00
|
|
|
#define gtk_window_position gtk_window_set_position
|
|
|
|
#endif /* GTK_DISABLE_DEPRECATED */
|
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
|
|
|
*/
|
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);
|
|
|
|
void gtk_window_get_default_size (GtkWindow *window,
|
|
|
|
gint *width,
|
|
|
|
gint *height);
|
|
|
|
void gtk_window_resize (GtkWindow *window,
|
|
|
|
gint width,
|
|
|
|
gint height);
|
|
|
|
void gtk_window_get_size (GtkWindow *window,
|
|
|
|
gint *width,
|
|
|
|
gint *height);
|
|
|
|
void gtk_window_move (GtkWindow *window,
|
|
|
|
gint x,
|
|
|
|
gint y);
|
|
|
|
void gtk_window_get_position (GtkWindow *window,
|
2001-09-08 06:24:46 +00:00
|
|
|
gint *root_x,
|
|
|
|
gint *root_y);
|
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
|
|
|
gboolean gtk_window_parse_geometry (GtkWindow *window,
|
|
|
|
const gchar *geometry);
|
2006-01-10 04:33:30 +00:00
|
|
|
GtkWindowGroup *gtk_window_get_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
|
|
|
|
|
|
|
/* Ignore this unless you are writing a GUI builder */
|
|
|
|
void gtk_window_reshow_with_initial_size (GtkWindow *window);
|
2001-01-08 17:04:17 +00:00
|
|
|
|
2001-06-14 21:44:01 +00:00
|
|
|
/* Window groups
|
|
|
|
*/
|
2001-09-19 00:58:09 +00:00
|
|
|
GType gtk_window_group_get_type (void) G_GNUC_CONST;
|
2001-06-14 21:44:01 +00:00
|
|
|
|
|
|
|
GtkWindowGroup * gtk_window_group_new (void);
|
|
|
|
void gtk_window_group_add_window (GtkWindowGroup *window_group,
|
|
|
|
GtkWindow *window);
|
|
|
|
void gtk_window_group_remove_window (GtkWindowGroup *window_group,
|
|
|
|
GtkWindow *window);
|
|
|
|
|
1999-02-21 19:01:08 +00:00
|
|
|
/* --- internal functions --- */
|
2001-11-17 01:18:49 +00:00
|
|
|
void _gtk_window_internal_set_focus (GtkWindow *window,
|
2001-06-14 21:44:01 +00:00
|
|
|
GtkWidget *focus);
|
|
|
|
void gtk_window_remove_embedded_xid (GtkWindow *window,
|
|
|
|
guint xid);
|
|
|
|
void gtk_window_add_embedded_xid (GtkWindow *window,
|
|
|
|
guint xid);
|
|
|
|
void _gtk_window_reposition (GtkWindow *window,
|
|
|
|
gint x,
|
|
|
|
gint y);
|
|
|
|
void _gtk_window_constrain_size (GtkWindow *window,
|
|
|
|
gint width,
|
|
|
|
gint height,
|
|
|
|
gint *new_width,
|
|
|
|
gint *new_height);
|
2005-07-05 22:34:07 +00:00
|
|
|
GtkWidget *_gtk_window_group_get_current_grab (GtkWindowGroup *window_group);
|
1998-11-24 04:45:29 +00:00
|
|
|
|
2002-06-06 15:38:39 +00:00
|
|
|
void _gtk_window_set_has_toplevel_focus (GtkWindow *window,
|
|
|
|
gboolean has_toplevel_focus);
|
2002-11-12 21:08:29 +00:00
|
|
|
void _gtk_window_unset_focus_and_default (GtkWindow *window,
|
|
|
|
GtkWidget *widget);
|
|
|
|
|
2002-06-06 15:38:39 +00:00
|
|
|
void _gtk_window_set_is_active (GtkWindow *window,
|
|
|
|
gboolean is_active);
|
|
|
|
|
2002-02-24 01:52:14 +00:00
|
|
|
typedef void (*GtkWindowKeysForeachFunc) (GtkWindow *window,
|
|
|
|
guint keyval,
|
|
|
|
GdkModifierType modifiers,
|
|
|
|
gboolean is_mnemonic,
|
|
|
|
gpointer data);
|
|
|
|
|
|
|
|
void _gtk_window_keys_foreach (GtkWindow *window,
|
|
|
|
GtkWindowKeysForeachFunc func,
|
|
|
|
gpointer func_data);
|
|
|
|
|
added gtkaccelmap.sgml. other updates.
Mon Nov 12 23:06:38 2001 Tim Janik <timj@gtk.org>
* added gtkaccelmap.sgml. other updates.
Mon Nov 12 23:08:37 2001 Tim Janik <timj@gtk.org>
* gtk/maketypes.awk: fix type utils generation on unix.
* gtk/gtkaccelmap.[hc]: new files, implementing a global accelerator
registry.
* gtk/gtkaccelgroup.[hc]: major API/implementation revamp:
removed GTK_ACCEL_SIGNAL_VISIBLE, gtk_accel_group_get_default,
gtk_accel_group_get_entry, gtk_accel_group_(un)lock_entry,
gtk_accel_group_add/remove, gtk_accel_group_handle_add/remove,
gtk_accel_group_create_add/remove, gtk_accel_group_entries_from_object.
introduced ::accel_changed signal for change notification, and
gtk_accel_group_connect/disconnect to connect closures to accel groups.
made gtk_accel_group_attach/detach and gtk_accel_group_activate private
functions.
deprecated gtk_accel_group_ref/unref.
* gtk/gtkaccellabel.[hc]: changes to make accellabels pay attention
to accel group changed notification and basically operate on closures.
removed gtk_accel_label_get_accel_object and
gtk_accel_label_set_accel_object.
introduced gtk_accel_label_set_accel_closure, and for convenience,
gtk_accel_label_set_accel_widget.
* gtk/gtkitemfactory.[hc]: removed accelerator propagation code
which mostly moved into gtkaccelmap.[hc].
removed gtk_item_factory_parse_rc*, gtk_item_factory_dump_*
and gtk_item_factory_print_func.
* gtk/gtkmain.c: call _gtk_accel_map_init().
* gtk/gtkmenuitem.[hc]: introduced gtk_menu_item_set_accel_path(),
that associates an accelerator path with menu items, through which
persistent accelerator settings on menu items are enabled.
* gtk/gtkmenu.[hc]: added gtk_menu_set_accel_path() so accelerator
paths of menu item can be default constructed to allow installation
of accelerators on menu items that don't come with an accelerator
binding by default.
* gtk/gtksettings.c: fix STRING type rc settings by special casing
them appropriately in the parser.
* gtk/gtksignal.[hc]: allow a class function offset of 0 for
gtk_signal_newv().
* gtk/gtkwidget.[hc]: accelerator API revamp.
removed ::accelerator_add/remove signals, gtk_widget_accelerator_signal,
gtk_widget_accelerators_locked, gtk_widget_remove_accelerators and
gtk_widget_(un)lock_accelerators.
accelerators maintained through gtk_widget_add/remove_accelerator()
are not runtime changable now, the correct sequence to setup a
widget for runtime changable accelerators is now:
gtk_accel_map_add_entry(accel_path, key, mods);
_gtk_widget_set_accel_path(widget, accel_path, accel_group);
* gtk/gtkwindow.[hc]: accelerator changes, proxy and coalesce accel
group changes (as well as mnemonic changes) through the new signal
::accels_changed.
Sat Nov 10 12:08:56 2001 Tim Janik <timj@gtk.org>
* gtk/gtksettings.c (_gtk_settings_parse_convert): properly handle
GString->string conversions.
2001-11-13 00:53:47 +00:00
|
|
|
/* --- internal (GtkAcceleratable) --- */
|
|
|
|
gboolean _gtk_window_query_nonaccels (GtkWindow *window,
|
|
|
|
guint accel_key,
|
|
|
|
GdkModifierType accel_mods);
|
|
|
|
|
2005-03-20 07:01:23 +00:00
|
|
|
G_END_DECLS
|
1997-11-24 22:37:52 +00:00
|
|
|
|
|
|
|
#endif /* __GTK_WINDOW_H__ */
|