Re: Glade & new GTK+ 2.5.x features
- From: Damon Chaplin <damon karuna uklinux net>
- To: Havoc Pennington <hp redhat com>
- Cc: gtk-devel-list gnome org, Matthias Clasen <mclasen redhat com>
- Subject: Re: Glade & new GTK+ 2.5.x features
- Date: Wed, 01 Dec 2004 00:27:07 +0000
On Tue, 2004-11-30 at 16:50, Havoc Pennington wrote:
> That longstanding bug about removing the need to use GMarkup to do
> bold/italic labels would be worth fixing, if it hasn't been already.
It's still there:
http://bugzilla.gnome.org/show_bug.cgi?id=97061
We never really agreed on how it should be saved in the XML.
Matthias suggested something like this, with a fake "global_attributes"
property:
<widget class="GtkLabel" id="label1">
<property name="label">label1</property>
<property name="global_attributes"><b> </b></property>
</widget>
I initially preferred something like this, which looks cleaner, but only
supports a predefined number of attributes (e.g. weight/style/font
size):
<widget class="GtkLabel" id="label1">
<property name="label">label1</property>
<property name="font_weight">bold</property>
</widget>
Now I'm thinking maybe we should use attributes in the XML instead, so
it can be used for arbitrary widget/object properties:
<widget class="GtkLabel" id="label1">
<property name="label" markup="<b>">label1</property>
</widget>
I don't know though. None of them are that great.
Damon
[Date Prev][
Date Next] [Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]