[242] in The GTK GIMP ToolKit mailing list archive

home help back first fref pref prev next nref lref last post

[gtk-list] Re: gtk_rc_get_style_by_name()?

daemon@ATHENA.MIT.EDU (Otto Hammersmith)
Fri May 23 11:17:38 1997

Date: Fri, 23 May 1997 11:13:20 -0400
From: Otto Hammersmith <otto@redhat.com>
To: gtk-list@redhat.com
In-Reply-To: <"UwS8U2.0.t34.AxHXp"@mail2.redhat.com>; from Peter Mattis on Thu, May 22, 1997 at 09:28:24PM -0700
Resent-From: gtk-list@redhat.com
Reply-To: gtk-list@redhat.com

On Thu, May 22, 1997 at 09:28:24PM -0700, Peter Mattis wrote:
> 
> "Michael K. Johnson" writes:
> >I wrote:
> >>Doh!  I've found gtk_rc_style_find(), which appears to do what I want.
> 
> But gtk_rc_style_find returns a GtkRcStyle, not a GtkStyle. The
> GtkRcStyle contains a GtkStyle which may need to be initialized. I
> guess I can add a gtk_rc_style_by_name if its desired. 

Might be useful, but since this bug is fixed, I'm not sure it's useful
anymore. :)

> >I'd really like to keep those style definitions out of the executable,
> >in the configuration file.  Is it possible?  Is it supposed to be
> >possible?
> 
> As mentioned by someone else on the list, gtk_widget_set_name does
> weird things with changing the style. Why did I do it that way? I
> can't remember. Probably because gtk_widget_set_style wasn't
> implemented for a long time. Anyways, changing gtk_widget_set_name to
> the following worked for me in a small little test:
> 
[fix snipped]

Shortly I'll have RPMs up on contrib on ftp.redhat.com for gimp and
gtk with this fix. (not a big fix, but makes it easier to hand it off
to Michael. :)

-- 
					-Otto.

--
To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null


home help back first fref pref prev next nref lref last post