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 <r...@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@maemo.org
> https://lists.maemo.org/mailman/listinfo/maemo-developers
>
_______________________________________________
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers

Reply via email to