Hi all,
I'm working on GTK 1.2 on GLADE.
I got one problem.I want to generate a coloured text and colours for
widgets.I have got a few solutions but they r not suited for GLADE.Can
anyone help me in this matter as this helps inthe beautification of my
window a lot.Pls specify the declaration also as I'm getting errors in tht
part most of the time.
I have been suggested the following options but they are generating a lot of
errors.
GtkWidget *title,clist;
title = gtk_clist_get_column_widget(GTK_CLIST(clist),0);
style = gtk_style_copy( gtk_widget_get_style( (GTK_BIN(title)->child) ) );
style->font = font_load;
gtk_widget_set_style( (GTK_BIN(title)->child), style ) ;
gtk_clist_set_column_widget(GTK_CLIST(clist),0,title);
Also this for changing the style.
GdkColor red = { 0, 65535, 0, 0 };
GtkRcStyle *rc_style = gtk_rc_style_new ();
rc_style->fg[GTK_STATE_NORMAL] = red;
rc_style->color_flags[GTK_STATE_NORMAL] |= GTK_RC_FG;
gtk_widget_modify_style (widget, rc_style);
gtk_rc_style_unref (rc_style);
Pls look into the font style also.
Thanx in advance.
Preethi.
_________________________________________________________________
Unlimited Internet access for only $21.95/month. Try MSN!
http://resourcecenter.msn.com/access/plans/2monthsfree.asp
_______________________________________________
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list
- (no subject) 黃慶 Kason Huang
- (no subject) "Seisdedos Nuņez, Monserrat"
- (no subject) Vanessa D
- Re: (no subject) Sijin M. Stephen
- (no subject) Amit Jain
- (no subject) milimeter
- Re: (no subject) Alexander Chemeris
- (no subject) jmontes
- (no subject) Preethi Vasanth
- Re: (no subject) [EMAIL PROTECTED]
- (no subject) Preethi Vasanth
- (no subject) Blowfish
- Re: (no subject) Sven Neumann
- (no subject) suzan Allen
- (no subject) Mohamed Elassadi
- (no subject) malo p
- Re: (no subject) Diego Zuccato
- (no subject) Ben LeMasurier
- (no subject) Debdas Ghosh
- (no subject) Debdas Ghosh
- (no subject) Vasja J Zupan