[PATCH] GtkWindow frame_event
- From: Daniel Elstner <daniel elstner gmx net>
- To: gtk-devel-list <gtk-devel-list gnome org>
- Subject: [PATCH] GtkWindow frame_event
- Date: 03 Nov 2001 22:01:41 +0100
Hi,
the frame_event signal in _GtkWindowClass currently has GtkWidget* as
first parameter. Isn't that supposed to be GtkWindow* instead?
May I commit the attached patch if it is indeed a mistake?
Regards,
--Daniel
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/gtk+/ChangeLog,v
retrieving revision 1.2531
diff -u -3 -r1.2531 ChangeLog
--- ChangeLog 2001/11/03 20:47:47 1.2531
+++ ChangeLog 2001/11/03 20:56:41
@@ -1,3 +1,10 @@
+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): Likewise.
+
2001-11-03 Hans Breuer <hans breuer org>
* gtk/gtkfilesel.c (gtk_file_selection_finalize) : chain
Index: gtk/gtkwindow.c
===================================================================
RCS file: /cvs/gnome/gtk+/gtk/gtkwindow.c,v
retrieving revision 1.159
diff -u -3 -r1.159 gtkwindow.c
--- gtk/gtkwindow.c 2001/10/31 20:41:01 1.159
+++ gtk/gtkwindow.c 2001/11/03 20:56:52
@@ -144,7 +144,7 @@
GtkAllocation *allocation);
static gint gtk_window_event (GtkWidget *widget,
GdkEvent *event);
-static gboolean gtk_window_frame_event (GtkWidget *widget,
+static gboolean gtk_window_frame_event (GtkWindow *window,
GdkEvent *event);
static gint gtk_window_configure_event (GtkWidget *widget,
GdkEventConfigure *event);
@@ -3283,10 +3283,9 @@
}
static gboolean
-gtk_window_frame_event (GtkWidget *widget, GdkEvent *event)
+gtk_window_frame_event (GtkWindow *window, GdkEvent *event)
{
GdkEventConfigure *configure_event;
- GtkWindow *window = GTK_WINDOW (widget);
GdkRectangle rect;
switch (event->type)
@@ -3305,7 +3304,7 @@
/* Pass on the (modified) configure event */
configure_event->width -= window->frame_left + window->frame_right;
configure_event->height -= window->frame_top + window->frame_bottom;
- return gtk_window_configure_event (widget, configure_event);
+ return gtk_window_configure_event (GTK_WIDGET (window), configure_event);
break;
default:
break;
Index: gtk/gtkwindow.h
===================================================================
RCS file: /cvs/gnome/gtk+/gtk/gtkwindow.h,v
retrieving revision 1.52
diff -u -3 -r1.52 gtkwindow.h
--- gtk/gtkwindow.h 2001/10/31 20:41:02 1.52
+++ gtk/gtkwindow.h 2001/11/03 20:56:52
@@ -115,7 +115,7 @@
void (* set_focus) (GtkWindow *window,
GtkWidget *focus);
- gboolean (* frame_event) (GtkWidget *widget,
+ gboolean (* frame_event) (GtkWindow *window,
GdkEvent *event);
/* G_SIGNAL_ACTION signals for keybindings */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]