[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gtk
Subject:    (no subject)
From:       "Preethi Vasanth" <upreethivasanth () hotmail ! com>
Date:       2002-10-31 4:54:21
[Download RAW message or body]

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
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic