[Gtk-sharp-list] Is it possible to create a button using the Glade-2 gui creater - when needing a button with a pango markup text?

Jesper K. Pedersen jkp at solnet.homeip.net
Sat Jan 6 13:29:58 EST 2007


On Sat, 6 Jan 2007 18:53:37 +0100
"Jesper K. Pedersen" <jkp at solnet.homeip.net> wrote:

> Having started to write a small application using C# and Gtk# I have
> so far been using the Glade-2 gui developer.
> 
> I have however run into a difficulty. Currently all buttons made are
> just usual GtkButtons - but I need buttons with the ability to format
> the text with the Pango markup language.
> 
> Creating buttons in the C# code that uses a regular markup-label is
> easy, but is it possible to insert this kind of button in the Glade-2
> software so not to mix Glade-2 and program inserted objects?
> 
> Any hints are greatly appreciated
> 

I will just answer myself so people dont waste time on writing the
answer to me.

The answer was listed in the FAQ for Glade which I had overlooked (yet
another reason for RTFM)

You just create the button - right click it. Remove the content of the
button and now you can insert new content - like either a label with
markup language which is what I needed.

Thank you all
  Jesper K. Pedersen


More information about the Gtk-sharp-list mailing list