[maemo-developers] maemo 4.1 GTK button
From: Tim Teulings rael at edge.ping.deDate: Thu Apr 2 09:37:44 EEST 2009
- Previous message: maemo 4.1 GTK button
- Next message: maemo 4.1 GTK button
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hallo! > I am trying to using a button only with image from stock, but i cannot > success, the button only show text like "Preferences" instead of showing > image. Does anyone knows how to get button with only image? This feature (showing button image besides textual label) is by default switched off under the maemo version of Gtk. This likely has been done for space reasons. This means that something like: bool GetSettingsBoolValue(const char* name) { GValue gvalue; GtkSettings *settings; settings=gtk_settings_get_default(); assert(settings!=NULL); memset(&gvalue,0,sizeof(GValue)); g_value_init(&gvalue,G_TYPE_BOOLEAN); g_object_get_property(G_OBJECT(settings),name,&gvalue); return g_value_get_boolean(&gvalue); } returns false for "gtk-button-images". -- Gruß... Tim
- Previous message: maemo 4.1 GTK button
- Next message: maemo 4.1 GTK button
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]