aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/idoentrymenuitem.c2
-rw-r--r--src/idoscalemenuitem.c12
2 files changed, 9 insertions, 5 deletions
diff --git a/src/idoentrymenuitem.c b/src/idoentrymenuitem.c
index 81a2f89..1729c38 100644
--- a/src/idoentrymenuitem.c
+++ b/src/idoentrymenuitem.c
@@ -128,7 +128,7 @@ ido_entry_menu_item_key_press (GtkWidget *widget,
if (menuitem->priv->selected)
{
gtk_widget_event (menuitem->priv->entry,
- (GdkEvent *)event);
+ ((GdkEvent *)(void*)(event)));
}
return FALSE;
diff --git a/src/idoscalemenuitem.c b/src/idoscalemenuitem.c
index 97cee06..2f9cb4e 100644
--- a/src/idoscalemenuitem.c
+++ b/src/idoscalemenuitem.c
@@ -90,7 +90,8 @@ ido_scale_menu_item_scroll_event (GtkWidget *menuitem,
{
GtkWidget *scale = GET_PRIVATE (IDO_SCALE_MENU_ITEM (menuitem))->scale;
- gtk_widget_event (scale, (GdkEvent *) event);
+ gtk_widget_event (scale,
+ ((GdkEvent *)(void*)(event)));
return TRUE;
}
@@ -361,7 +362,8 @@ ido_scale_menu_item_button_press_event (GtkWidget *menuitem,
translate_event_coordinates (menuitem, event->x_root, &x);
event->x_root = x;
- gtk_widget_event (scale, (GdkEvent *)event);
+ gtk_widget_event (scale,
+ ((GdkEvent *)(void*)(event)));
return TRUE;
}
@@ -417,7 +419,8 @@ ido_scale_menu_item_button_release_event (GtkWidget *menuitem,
translate_event_coordinates (menuitem, event->x_root, &x);
event->x_root= x;
- gtk_widget_event (scale, (GdkEvent *) event);
+ gtk_widget_event (scale,
+ ((GdkEvent *)(void*)(event)));
event->window = tmp;
@@ -438,7 +441,8 @@ ido_scale_menu_item_motion_notify_event (GtkWidget *menuitem,
translate_event_coordinates (menuitem, event->x_root, &x);
event->x_root= x;
- gtk_widget_event (scale, (GdkEvent *) event);
+ gtk_widget_event (scale,
+ ((GdkEvent *)(void*)(event)));
return TRUE;
}