[Glade-users] Superscript/Subscript characters in labels

On Thu, 2007-02-15 at 23:34 +0100, Michal Pryc wrote:
Calum Benson wrote:
On 14 Feb 2007, at 17:21, Michal Pryc wrote:

I'd like to ask if there is possible to use Superscript/Subscript
characters for labels using Glade?

Yes, just use <sup> and <sub> markup in the Label field of the  
Properties palette; remember to check the "Use markup" box too.  This  
works for static text labels, but I don't know if it'll work for  
other things with labels, like checkboxes etc.

Hello Calum,
I've tried that and it seems not to work :(
I am using Glade 2.6.8 for editing, but neither those worked for me:

<sub 2>

Glade converted '<' characters to the &gt

I have checked that in the gcalctool-5.9.12 and they are using:
which should work, but I can not reproduce it using glade, even if I am
editing the glade file and typing those line by hand.

Do you have any idea what might be wrong? or maybe you can insert some
part of working xml produced by glade for me and other people that might
be interested as well?

I just tried it and it worked fine here. I don't think I can remember
any bugs in this area but I'm not 100% sure.

Here's what it saved in the XML:

        <widget class="GtkLabel" id="label1">
          <property name="visible">True</property>
          <property name="label"
          <property name="use_underline">False</property>
          <property name="use_markup">True</property>
          <property name="justify">GTK_JUSTIFY_LEFT</property>
          <property name="wrap">False</property>
          <property name="selectable">False</property>
          <property name="xalign">0</property>
          <property name="yalign">0.5</property>
          <property name="xpad">0</property>
          <property name="ypad">0</property>
          <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
          <property name="width_chars">-1</property>
          <property name="single_line_mode">False</property>
          <property name="angle">0</property>


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