summaryrefslogtreecommitdiff
path: root/gtk/gtkwindow.h
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2001-03-05 15:09:02 +0000
committerAlexander Larsson <alexl@src.gnome.org>2001-03-05 15:09:02 +0000
commit83c3e076ef33b5bda0f0c828d992217f3c31522d (patch)
tree61cd7dd28e4684e868bbf2cfbe9eebe3eaf94a50 /gtk/gtkwindow.h
parent8190728773257cf422700a907e92d95523175350 (diff)
downloadgtk+-83c3e076ef33b5bda0f0c828d992217f3c31522d.tar.gz
Added GdkWindowTypeHint type. Added modal_hint field to GdkWindindow. New
2001-03-05 Alexander Larsson <alexl@redhat.com> * gdk/gdkwindow.h: Added GdkWindowTypeHint type. Added modal_hint field to GdkWindindow. New functions gdk_window_set_type_hint, gdk_window_set_modal_hint and gdk_window_set_icon_list for net wmspec functionality. * gdk/x11/gdkwindow-x11.c: Set _NEW_WM_STATE_MODAL from window->modal_hint in set_inital_hints. Implement gdk_window_set_type_hint, gdk_window_set_modal_hint and gdk_window_set_icon_list. Added gdk_wmspec_change_state helper function and used it in the code. Set _NET_WM_ICON_NAME in gdk_window_set_title and gdk_window_set_icon_name. * gtk/gtkdialog.c (gtk_dialog_init): Set GDK_WINDOW_TYPE_HINT_DIALOG. * gtk/gtkhandlebox.c (gtk_handle_box_realize): Set GDK_WINDOW_TYPE_HINT_TOOLBAR. * gtk/gtkwindow.c: new function gtk_window_set_type_hint. On realize, set type hint and modal hint. * gtk/gtkwindow.h: Added type_hint field and gtk_window_set_type_hint.
Diffstat (limited to 'gtk/gtkwindow.h')
-rw-r--r--gtk/gtkwindow.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/gtk/gtkwindow.h b/gtk/gtkwindow.h
index 51be63fca8..92d97a3e4b 100644
--- a/gtk/gtkwindow.h
+++ b/gtk/gtkwindow.h
@@ -89,7 +89,9 @@ struct _GtkWindow
guint iconify_initially : 1;
guint stick_initially : 1;
guint maximize_initially : 1;
-
+
+ GdkWindowTypeHint type_hint : 2;
+
guint frame_left;
guint frame_top;
guint frame_right;
@@ -129,6 +131,8 @@ gint gtk_window_activate_default (GtkWindow *window);
void gtk_window_set_transient_for (GtkWindow *window,
GtkWindow *parent);
+void gtk_window_set_type_hint (GtkWindow *window,
+ GdkWindowTypeHint hint);
void gtk_window_set_destroy_with_parent (GtkWindow *window,
gboolean setting);
void gtk_window_set_geometry_hints (GtkWindow *window,