Re: [patch] fix int-enum preference update in eel



On Fri, 2003-01-17 at 10:35, Alexander Larsson wrote:

> Index: eel/eel-preferences-glade.c
> ===================================================================
> RCS file: /cvs/gnome/eel/eel/eel-preferences-glade.c,v
> retrieving revision 1.2
> diff -u -p -r1.2 eel-preferences-glade.c
> --- eel/eel-preferences-glade.c 17 Jan 2003 09:15:53 -0000      1.2
> +++ eel/eel-preferences-glade.c 17 Jan 2003 09:34:30 -0000
> @@ -249,7 +249,7 @@ eel_preferences_glade_connect_int_enum (
>  
>         option_menu = GTK_OPTION_MENU (glade_xml_get_widget (dialog, component));
>  
> -       map = g_hash_table_new (g_int_hash, g_int_equal);
> +       map = g_hash_table_new (g_direct_hash, g_direct_equal);
>         value_list = NULL;

Yeah, you are right. I tried the solution with GINT_TO_POINTER first but
there was the problem with int_hash/equal and I was too tired to find
the direct_hash/equal functions.

Regards
	Jan Arne 

-- 
Jan Arne Petersen <jpetersen gnome-de org>

Attachment: signature.asc
Description: This is a digitally signed message part



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]