[maemo-developers] maemo 4.1 GTK button
From: Luo Cheng richard.luocheng at gmail.comDate: Thu Apr 2 12:43:31 EEST 2009
- Previous message: maemo 4.1 GTK button
- Next message: python sqlites cannot connect specified database in FREMANTLE_ARMLE
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi Tim, Thanks very much, your information is really helpful. Save a lot of my time :) regards Cheng On Thu, Apr 2, 2009 at 7:37 AM, Tim Teulings <rael at edge.ping.de> wrote: > 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 > > _______________________________________________ > maemo-developers mailing list > maemo-developers at maemo.org > https://lists.maemo.org/mailman/listinfo/maemo-developers > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.maemo.org/pipermail/maemo-developers/attachments/20090402/7be04aaa/attachment.htm
- Previous message: maemo 4.1 GTK button
- Next message: python sqlites cannot connect specified database in FREMANTLE_ARMLE
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]