openbsd-ports/audio/xmms/patches/patch-Visualization_blur_scope_config_c

22 lines
908 B
Plaintext
Raw Normal View History

2002-08-31 03:15:11 -04:00
$OpenBSD: patch-Visualization_blur_scope_config_c,v 1.1 2002/08/31 07:15:11 wcobb Exp $
--- Visualization/blur_scope/config.c.orig Sat Aug 31 02:26:20 2002
+++ Visualization/blur_scope/config.c Sat Aug 31 02:28:05 2002
@@ -37,7 +37,7 @@ static void configure_ok(GtkWidget *w, g
static void configure_cancel(GtkWidget *w, gpointer data)
{
- bscope_cfg.color = (guint32)data;
+ bscope_cfg.color = (guint32)GPOINTER_TO_UINT(data);
generate_cmap();
gtk_widget_destroy(configure_win);
}
@@ -109,7 +109,7 @@ void bscope_configure (void)
cancel = gtk_button_new_with_label(_("Cancel"));
gtk_signal_connect(GTK_OBJECT(cancel), "clicked",
GTK_SIGNAL_FUNC(configure_cancel),
- (gpointer)bscope_cfg.color);
+ GUINT_TO_POINTER((guint)bscope_cfg.color));
GTK_WIDGET_SET_FLAGS(cancel, GTK_CAN_DEFAULT);
gtk_box_pack_start(GTK_BOX(bbox), cancel, TRUE, TRUE, 0);
gtk_widget_show(cancel);