Re: GdkColor
| From: | Rich Payne | Date: | Wed, 06 Mar 2002 00:45:25 +0000 |
| Subject: | Re: GdkColor | ||
| References: | 1 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-1454@lists.php.net to get a copy of this message | ||
On Wed, 6 Mar 2002, Steph wrote:
> I just got around to looking at the source code.
>
> Where default properties are set, you're changing the application's default style by
> doing the original stuff.
>
> Wonder if it helps to use $stylenew = $style->copy();
Yes, I asked about this on the gtk-list a while back. It seems that there
is a GtkStyle object that all the GUI parts use for their style. If you
want to change just the styles of one object then copy its GtkStyle object
and modify the copy.
--rdp
>
> - will investigate, be back in about a month ;)
>
> ----- Original Message -----
> From: "Alan Knowles" <alan@akbkhome.com>
> To: <php-gtk-general@lists.php.net>
> Sent: Tuesday, March 05, 2002 11:54 PM
> Subject: Re: [PHP-GTK] GdkColor
>
>
> > There are bits and bobs of examples in phpmole - look at the
> > dialogs/generic_config_dialog() - it uses does color setting on the
> > background of drawing areas.
> >
> > pgtkhtml has a bit of it in look at tests/pgtkhtml/html_textblock.class
> > - method set_gc
> >
> > I normally use the sytnax
> > new Gdkcolor('#FF00CC') - it can accept good ole web hexcodes :)
> >
> > regards
> > alan
> >
> > Markus Fischer wrote:
> >
> > > There used to be an article at develop.gnome.org around but I
> > > forgot the link ....
> > >
> > >On Wed, Mar 06, 2002 at 12:20:50AM +0100, Adrian Immler wrote :
> > >
> > >>somehow the colors are applied to all widgets.
> > >>
> > >>i use this:
> > >>
> > >>$button ->style->bg[GTK_STATE_ACTIVE] = $color1;
> > >>
> > >>if $color1 represents some kind of blue all <"inputs"> are blued
> > >>...
> > >>
> > >>why !?
> > >>
> > >>someone knows how the GdkColor works in C/C++ ? i didn't understand the
> > >>syntax of it ...
> > >>
> > >>
> > >>--
> > >>PHP-GTK General Mailing List (http://gtk.php.net/)
> > >>To unsubscribe, visit:
> > >>http://www.php.net/unsub.php
> > >>
> > >
> >
> >
> >
> >
> > --
> > PHP-GTK General Mailing List (http://gtk.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>
>
>
>
--
Rich Payne
http://talisman.mv.com