Re: Can't read gtk-double-click-time property
- From: Lars Clausen <lrclause cs uiuc edu>
- To: iain <iain prettypeople org>
- Cc: gtk-list gnome org
- Subject: Re: Can't read gtk-double-click-time property
- Date: 26 Sep 2002 12:29:24 -0500
On Thursday, 26 September '02, iain prettypeople org wrote:
> 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?
No, 'cause I can't tell from the documentation. But Olexiy's reply saved
me.
I would say, for something as central as the GObject properties system, it
is rather scantily documented. A pity.
-Lars
--
Lars Clausen (http://shasta.cs.uiuc.edu/~lrclause)| Hårdgrim of Numenor
"I do not agree with a word that you say, but I |----------------------------
will defend to the death your right to say it." | Where are we going, and
--Evelyn Beatrice Hall paraphrasing Voltaire | what's with the handbasket?
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]