diff options
author | Daniel Elstner <daniel.elstner@gmx.net> | 2001-11-03 23:02:40 +0000 |
---|---|---|
committer | Daniel Elstner <daniel@src.gnome.org> | 2001-11-03 23:02:40 +0000 |
commit | ac812521613047bff5cbe8b74529aafd094be0b6 (patch) | |
tree | 5e50bca871a74240002acf74815d6a98d4d11cf7 /gtk/gtkwindow-decorate.c | |
parent | 2a0f4e7d9a48d9e8f37d13a4ea1763ea332a986f (diff) | |
download | gtk+-ac812521613047bff5cbe8b74529aafd094be0b6.tar.gz |
Use GtkWindow* as first signal argument (was GtkWidget*).
2001-11-03 Daniel Elstner <daniel.elstner@gmx.net>
* gtk/gtkwindow.h (frame_event): Use GtkWindow* as first
signal argument (was GtkWidget*).
* gtk/gtkwindow.c (gtk_window_frame_event),
gtk/gtkwindow-decorate.c (gtk_decorated_window_frame_event):
Fixed argument types as above, removed GTK_WINDOW casts and
added some GTK_WIDGET casts instead.
Diffstat (limited to 'gtk/gtkwindow-decorate.c')
-rw-r--r-- | gtk/gtkwindow-decorate.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/gtk/gtkwindow-decorate.c b/gtk/gtkwindow-decorate.c index 080608ba78..2ef0c0d5bf 100644 --- a/gtk/gtkwindow-decorate.c +++ b/gtk/gtkwindow-decorate.c @@ -95,7 +95,7 @@ static void gtk_decorated_window_recalculate_regions (GtkWindow *windo static GtkWindowRegionType gtk_decorated_window_region_type (GtkWindow *window, gint x, gint y); -static gint gtk_decorated_window_frame_event (GtkWidget *widget, +static gint gtk_decorated_window_frame_event (GtkWindow *window, GdkEvent *event); static gint gtk_decorated_window_button_press (GtkWidget *widget, GdkEventButton *event); @@ -288,9 +288,10 @@ gtk_decorated_window_unrealize (GtkWindow *window) } static gint -gtk_decorated_window_frame_event (GtkWidget *widget, GdkEvent *event) +gtk_decorated_window_frame_event (GtkWindow *window, GdkEvent *event) { - GtkWindowDecoration *deco = get_decoration (GTK_WINDOW (widget)); + GtkWindowDecoration *deco = get_decoration (window); + GtkWidget *widget = GTK_WIDGET (window); GdkEventExpose *expose_event; switch (event->type) @@ -302,7 +303,7 @@ gtk_decorated_window_frame_event (GtkWidget *widget, GdkEvent *event) return TRUE; break; case GDK_CONFIGURE: - gtk_decorated_window_recalculate_regions (GTK_WINDOW (widget)); + gtk_decorated_window_recalculate_regions (window); break; case GDK_MOTION_NOTIFY: return gtk_decorated_window_motion_notify (widget, (GdkEventMotion *)event); |