Re: Glade & new GTK+ 2.5.x features

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:

We never really agreed on how it should be saved in the XML.

Matthias suggested something like this, with a fake "global_attributes"

  <widget class="GtkLabel" id="label1">
     <property name="label">label1</property>
     <property name="global_attributes">&lt;b&gt; &lt;/b&gt;</property>

I initially preferred something like this, which looks cleaner, but only
supports a predefined number of attributes (e.g. weight/style/font

  <widget class="GtkLabel" id="label1">
     <property name="label">label1</property>
     <property name="font_weight">bold</property>

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="&lt;b&gt;">label1</property>

I don't know though. None of them are that great.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]