setting gtk-can-change-accels




Hi all,

I tried this code to set gtk-can-change-accels = 1 for my application:

        GtkSettings* gtksettings = gtk_settings_get_default();
        g_object_set(G_OBJECT(gtksettings), "gtk-can-change-accels", TRUE, NULL); 

according to http://developer.gnome.org/doc/API/2.0/gtk/gtksettings.html
this is a valid property for the gtksettings class. But I get this error:

(bluefish:1735): GLib-GObject-WARNING **: gobject.c:855:g_object_set_valist(): object class `GtkSettings' has 
no property named `gtk-can-change-accels'

so what's wrong? the docs or the code?

thanks,
        Olivier

Attachment: pgprpIV2puWvS.pgp
Description: PGP signature



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