Re: font size gtk_*_new_with_label
- From: Lars-Peter Clausen <lars metafoo de>
- To: ariel_xxii yahoo com ar
- Cc: gtk-app-devel-list gnome org
- Subject: Re: font size gtk_*_new_with_label
- Date: Sun, 13 Jul 2008 14:09:00 +0200
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Luis Ariel Lecca schrieb:
Hi All ! I will appreciate very much any help :)
I'm using
gtk_widget_modify_font() and
style = gtk_rc_style_new();
pango_font_description_free( style->font_desc );
style->font_desc = pfont;
gtk_widget_modify_style( widget, style );
to change the font size of my labels, but I can't do it on created
buttons with gtk_*_new_with_label() and neither in my statusbar.
...
So how to get the reference pointer or directly how to change the font
size on these objects ?
Hi Luis
You can use gtk_bin_get_child[1] to access the button's label, but you
maybe want to consider to rather use resource files[2] to style your app.
Lars
[1]
http://library.gnome.org/devel/gtk/stable/GtkBin.html#gtk-bin-get-child
[2] http://library.gnome.org/devel/gtk/stable/gtk-Resource-Files.html
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFIefBcBX4mSR26RiMRAuEvAJ0dR0hwdcYSUXgiuLxarEzLaO8QKQCePXmi
iKKOGW3HQHHXG2RXWJnKGWQ=
=6TnT
-----END PGP SIGNATURE-----
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]