summaryrefslogtreecommitdiff
path: root/cut-n-paste-code
diff options
context:
space:
mode:
authorDarin Adler <darin@src.gnome.org>2001-07-09 23:18:49 +0000
committerDarin Adler <darin@src.gnome.org>2001-07-09 23:18:49 +0000
commit82f0244baba53ddb5cefbd683558f28611c40a92 (patch)
tree8225d160c620d76616d235182140324b72a082fc /cut-n-paste-code
parent7cf405cbb5da6b1159d4830420e277370663ecf5 (diff)
downloadnautilus-82f0244baba53ddb5cefbd683558f28611c40a92.tar.gz
Fix a cast so that 64-bit systems won't warn. This is similar to the
* cut-n-paste-code/widgets/gimphwrapbox/gtkwrapbox.c: (gtk_wrap_box_expose): Fix a cast so that 64-bit systems won't warn. This is similar to the e-paned.c fix I did already.
Diffstat (limited to 'cut-n-paste-code')
-rw-r--r--cut-n-paste-code/widgets/gimphwrapbox/gtkwrapbox.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/cut-n-paste-code/widgets/gimphwrapbox/gtkwrapbox.c b/cut-n-paste-code/widgets/gimphwrapbox/gtkwrapbox.c
index 49d5d5981..c954b7888 100644
--- a/cut-n-paste-code/widgets/gimphwrapbox/gtkwrapbox.c
+++ b/cut-n-paste-code/widgets/gimphwrapbox/gtkwrapbox.c
@@ -771,16 +771,17 @@ gtk_wrap_box_expose (GtkWidget *widget,
{
GtkWrapBox *wbox = GTK_WRAP_BOX (widget);
GtkWrapBoxChild *child;
- GdkEventExpose child_event = *event;
+ GdkEvent child_event;
g_return_val_if_fail (event != NULL, FALSE);
-
+
+ child_event.expose = *event;
if (GTK_WIDGET_DRAWABLE (widget))
for (child = wbox->children; child; child = child->next)
if (GTK_WIDGET_DRAWABLE (child->widget) &&
GTK_WIDGET_NO_WINDOW (child->widget) &&
- gtk_widget_intersect (child->widget, &event->area, &child_event.area))
- gtk_widget_event (child->widget, (GdkEvent*) &child_event);
+ gtk_widget_intersect (child->widget, &event->area, &child_event.expose.area))
+ gtk_widget_event (child->widget, &child_event);
return TRUE;
}