summaryrefslogtreecommitdiff
path: root/gtk/gtkwindow.h
diff options
context:
space:
mode:
authorTim Janik <timj@gtk.org>2001-04-01 04:05:42 +0000
committerTim Janik <timj@src.gnome.org>2001-04-01 04:05:42 +0000
commit1f7e5c06102ddb073620496fe2e8a7df74fd195d (patch)
tree33c3c326c7b9c81bbd7a2a7cc3e5d9d68c6e7d52 /gtk/gtkwindow.h
parent6ff97d2e0b1fc69390982c7b58b6649a00e420cd (diff)
downloadgtk+-1f7e5c06102ddb073620496fe2e8a7df74fd195d.tar.gz
fixed a bunch of notifications, added reference counts around emissions
Sun Apr 1 03:28:14 2001 Tim Janik <timj@gtk.org> * gtk/gtkwidget.c: fixed a bunch of notifications, added reference counts around emissions where the widget is used afterwards. added freeze/thaws around multiple properties being notified. (_gtk_widget_get_aux_info): cleanups. * gtk/gtksettings.c (gtk_settings_install_property): provide default parsing functions for gdkcolor, enums and flags. * gtk/gtkwindow.[hc]: partially reverted patch from havoc, applied by owen. kept a flag in GtkWindowGeometryInfo to handle user resetting default sizes. cleaned up ZVT comments. bunch of assorted bug fixes, notification fixes. (_gtk_window_reposition): make this a really internal function. * gtk/testgtk.c: fixups.
Diffstat (limited to 'gtk/gtkwindow.h')
-rw-r--r--gtk/gtkwindow.h34
1 files changed, 9 insertions, 25 deletions
diff --git a/gtk/gtkwindow.h b/gtk/gtkwindow.h
index f1460a6744..e4ed83eb49 100644
--- a/gtk/gtkwindow.h
+++ b/gtk/gtkwindow.h
@@ -47,8 +47,9 @@ extern "C" {
#define GTK_WINDOW_GET_CLASS(obj) (GTK_CHECK_GET_CLASS ((obj), GTK_TYPE_WINDOW, GtkWindowClass))
-typedef struct _GtkWindow GtkWindow;
-typedef struct _GtkWindowClass GtkWindowClass;
+typedef struct _GtkWindow GtkWindow;
+typedef struct _GtkWindowClass GtkWindowClass;
+typedef struct _GtkWindowGeometryInfo GtkWindowGeometryInfo;
struct _GtkWindow
{
@@ -58,15 +59,16 @@ struct _GtkWindow
gchar *wmclass_name;
gchar *wmclass_class;
gchar *wm_role;
- GtkWindowType type;
- GdkWindow *frame;
-
GtkWidget *focus_widget;
GtkWidget *default_widget;
GtkWindow *transient_parent;
+ GtkWindowGeometryInfo *geometry_info;
+ GdkWindow *frame;
- gushort resize_count;
+ guint16 resize_count;
+
+ GtkWindowType type : 4;
guint has_user_ref_count : 1;
guint allow_shrink : 1;
guint allow_grow : 1;
@@ -90,11 +92,9 @@ struct _GtkWindow
guint iconify_initially : 1;
guint stick_initially : 1;
guint maximize_initially : 1;
-
guint decorated : 1;
GdkWindowTypeHint type_hint : 3;
-
GdkGravity gravity : 5;
guint frame_left;
@@ -145,26 +145,10 @@ void gtk_window_set_decorations_hint (GtkWindow *window,
void gtk_window_set_functions_hint (GtkWindow *window,
GdkWMFunction functions);
-
void gtk_window_set_resizeable (GtkWindow *window,
- gboolean setting);
+ gboolean resizeable);
gboolean gtk_window_get_resizeable (GtkWindow *window);
-
-void gtk_window_set_size (GtkWindow *window,
- gint width,
- gint height);
-void gtk_window_get_size (GtkWindow *window,
- gint *width,
- gint *height);
-
-void gtk_window_set_location (GtkWindow *window,
- gint root_x,
- gint root_y);
-void gtk_window_get_location (GtkWindow *window,
- gint *root_x,
- gint *root_y);
-
void gtk_window_set_gravity (GtkWindow *window,
GdkGravity gravity);
GdkGravity gtk_window_get_gravity (GtkWindow *window);