Re: Can't read gtk-double-click-time property



On Thu, 2002-09-26 at 15:27, Lars Clausen wrote:
> I'm trying to get the default setting for gtk-double-click-time, but can't
> seem to get it out of the GtkSettings object.  Here's what I do:
> 
>     GtkSettings *settings = gtk_settings_get_default();
>     GValue dctvalue;

>       g_object_get(G_OBJECT(settings), 
> 		   "gtk-double-click-time", &dctvalue, NULL);
>       if (g_type_is_a(G_VALUE_TYPE(&dctvalue), G_TYPE_INT)) {
> 	double_click_time = g_value_get_int(&dctvalue);
>       }
>     }

Are you sure gtk-double-click-time returns a GValue and not an int or a
float?

iain
-- 
"I don't see why [The United States] should stand by and let Chile go
communist merely due to the irresponsibility of its own people" 
        - Henry Kissinger




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