From: Darren S. <ds...@us...> - 2004-11-08 01:49:23
|
Update of /cvsroot/xine/gnome-xine/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21112/src Modified Files: preferences.c Log Message: Kill a few possible 32bit/64bit issues (which I introduced). Index: preferences.c =================================================================== RCS file: /cvsroot/xine/gnome-xine/src/preferences.c,v retrieving revision 1.27 retrieving revision 1.28 diff -u -r1.27 -r1.28 --- preferences.c 5 Nov 2004 21:43:39 -0000 1.27 +++ preferences.c 8 Nov 2004 01:49:14 -0000 1.28 @@ -89,7 +89,7 @@ static gboolean select_show_pref_widgets (void *data) { static const int experience_values[] = { 0, 10, 20, 65535 }; - int i, exp = (int) data; + int i, exp = *(int *)data; if (exp >= 0 && exp < sizeof (experience_values) / sizeof (experience_values[0])) @@ -226,7 +226,7 @@ xine_cfg_entry_t entry; gchar *key = (gchar *) data; - int pos; + static int pos; if (update_lock) return; @@ -244,7 +244,7 @@ printf ("preferences: updating entry to %d\n", pos); xine_config_update_entry (xine, &entry); if (!strcmp (key, "gui.experience_level")) - g_idle_add ((GSourceFunc) select_show_pref_widgets, (void *)pos); + g_idle_add ((GSourceFunc) select_show_pref_widgets, &pos); } } @@ -521,8 +521,11 @@ gtk_widget_show_all(tab_box); if (xine_config_lookup_entry (xine, "gui.experience_level", &entry)) - g_idle_add ((GSourceFunc) select_show_pref_widgets, - (void *) entry.num_value); + { + static int value; + value = entry.num_value; + g_idle_add ((GSourceFunc) select_show_pref_widgets, &value); + } is_visible = 0; |