Re: gtk_alignment_set_padding



J. Davison de St. Germain wrote:

Hi,

 I am trying to use 'gtk_alignment_set_padding' but the compiler
claims it doesn't exist...  However, the documentation on
developer.gnome.org says otherwise (this is for gtk 2.0).  Can anyone
help me with this?
You have API reference for gtk+-2.3 and headers for gtk+-2.[20]. gtk_alignment_set_padding() is in gtk+-2.3. Check what packages you have installed.

 In the event that I can't use 'gtk_alignment_set_padding', can
someone tell me how to "pad" a label inside of a frame?  Currently the
label butts up against the frame making it hard to read... I would
like to give it a ~5 pixel padding.
It's possible with gtk_misc_set_padding() function:
http://developer.gnome.org/doc/API/2.0/gtk/GtkMisc.html#gtk-misc-set-padding

All you need is to call:
gtk_misc_set_padding(GTK_MISC(label), 5,5);

   Olexiy




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