rc files and styles

From: Date: Wed, 19 Feb 2003 02:40:32 +0000
Subject: rc files and styles
Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-3045@lists.php.net to get a copy of this message
What's the best way to make a GTKLabel bold/italics, different color, etc without making all of 'em the same color? I had some styles stuff figured out a while ago... even posted some stuff on the wiki, but now I'm stumped... Within the now rapidly growing application, I have gtklabels identifying what you are looking at, eg: <? $Main[win]=&New GtkWindow(); $Main[label1]=&New GtkLabel('User Name:'); $Main[input1]=&New GtkEntry(); $Main[row1]=&New GtkHbox(); ... ?> But what if I wanted to make one label in bold, while leaving the others to the default style? Ideally, something like (this is pseudo-code) <? $Main[label]=&New GtkLabel('Enter your Basic Information'); $Main[label]->Use_rc_style_called('title'); ?> And then have in the RC file: style "title" = "default" { font="-some-*-biggger-*-font-*-*-*-,*" } Isn't this possible? It seems that I have to create a new widget type to benefit from a setting in the RC file, and I have no clue how to use the $widget->set_style()... I get errors pretty much no matter *what* I do... What's the best way to make a GTKLabel bold/italics, different color, etc without making all of 'em the same color? -Ben

« previous php.gtk.general (#3045) next »