diff options
author | Havoc Pennington <hp@redhat.com> | 2001-02-27 20:40:15 +0000 |
---|---|---|
committer | Havoc Pennington <hp@src.gnome.org> | 2001-02-27 20:40:15 +0000 |
commit | 75d79abf9801195a0241b02ed7974fafa8278f5c (patch) | |
tree | 750b8f34aca36f06e24ff6ec060353d3e785289f /gtk/gtkwindow.h | |
parent | af03d3855dc4f6eefe713c69dce355de6f26d4ab (diff) | |
download | gtk+-75d79abf9801195a0241b02ed7974fafa8278f5c.tar.gz |
test the window state stuff
2001-02-26 Havoc Pennington <hp@redhat.com>
* gtk/testgtk.c: test the window state stuff
* gtk/gtkwindow.c (gtk_window_present): new function, makes a
window come to the user's attention as if it were just created
(gtk_window_iconify): new function
(gtk_window_deiconify): new function
(gtk_window_stick): new function
(gtk_window_unstick): new function
(gtk_window_maximize): new function
(gtk_window_unmaximize): new function
* gtk/gtkwidget.h, gtk/gtkwidget.c: add window_state_event signal
* gtk/gtkmain.c (gtk_main_do_event): handle GDK_WINDOW_STATE
* gdk/x11/gdkevents-x11.c: create window state events when
appropriate
(gdk_wmspec_supported): new function
* gdk/x11/gdkwindow-x11.c (gdk_window_iconify): handle
iconification before showing the window
(gdk_window_deiconify): new function
(gdk_window_stick): new function
(gdk_window_unstick): new function
(gdk_window_maximize): new function
(gdk_window_unmaximize): new function
* gdk/gdkwindow.c: store the window state in the window;
change to using the GDK_WINDOW_STATE_WITHDRAWN flag instead of
window->mapped.
(gdk_window_get_state): return the current window state
* gdk/gdkevents.c (gdk_event_get_time): handle GDK_WINDOW_STATE
(gdk_event_get_state): handle GDK_WINDOW_STATE
(gdk_synthesize_window_state): function to create the window state
events
* gdk/gdkevents.h (struct _GdkEventWindowState): new type of
event, for changes to "window state" such as maximized, sticky,
etc.
* gdk/x11/gdkwindow-x11.c (gdk_window_focus): new function,
focuses a window
* gdk/x11/gdkmain-x11.c (_gdk_wmspec_supported): new function,
finds out if we support a given WM spec hint
Diffstat (limited to 'gtk/gtkwindow.h')
-rw-r--r-- | gtk/gtkwindow.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gtk/gtkwindow.h b/gtk/gtkwindow.h index 7d4cb6b0e8..51be63fca8 100644 --- a/gtk/gtkwindow.h +++ b/gtk/gtkwindow.h @@ -85,6 +85,11 @@ struct _GtkWindow guint has_frame : 1; + /* gtk_window_iconify() called before realization */ + guint iconify_initially : 1; + guint stick_initially : 1; + guint maximize_initially : 1; + guint frame_left; guint frame_top; guint frame_right; @@ -153,6 +158,14 @@ GList* gtk_window_list_toplevels (void); /* Get the "built-in" accel group (convenience thing) */ GtkAccelGroup* gtk_window_get_default_accel_group (GtkWindow *window); +void gtk_window_present (GtkWindow *window); +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); + /* --- internal functions --- */ void gtk_window_set_focus (GtkWindow *window, |