Can't read gtk-double-click-time property
- From: Lars Clausen <lrclause cs uiuc edu>
- To: gtk-list gnome org
- Subject: Can't read gtk-double-click-time property
- Date: 26 Sep 2002 09:27:47 -0500
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;
if (settings == NULL) {
g_message(_("Couldn't get GTK settings"));
} else {
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);
}
}
The settings are non-null, but g_object_get doesn't give me the value. I
also get this error:
(lt-dia:1687): GLib-GObject-CRITICAL **: file gvaluetypes.c: line 820 (g_strdup_value_contents): assertion `G_IS_VALUE (value)' failed
The whole settings/value thing is sparsely documented, but I think I'm
doing the right thing. I also tried with g_object_get_property, same
result. Listing the properties with g_object_class_list_properties shows
that the property does indeed exist. But both the type and the value I get
is null. I don't see the double click time setting in Gnome Control
Center, either.
-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]