Hello.
Delegates in VAPI are, in fact, bindings to function pointer (which
delegates translate to). So in order to be able to do that, there have
to be those pointers defined in the C header (otherwise it won't
compile with GCC).
If they aren't, you can still define them, but have to use a
Nicolas wrote:
Hi,
I'm using this function:
newfont = new FontSelectionDialog(Select font:)
var response = newfont.run()
if response is ResponseType.OK
font_desc = new FontDescription()
font_desc.from_string(newfont.get_font_name())
Actually, now that I think of it, there is one more problem.
There is a convert () method, that converts from one charset to
another. The problem is that its input and output are both of string
type, which should always be UTF-8 in Vala.
So I think it would be better to have something like:
Hi Frederik,
Thank you it work !
Can you help one more time please, i have this problem:
newcolor = new ColorSelectionDialog (Choose your prefered
background color:)
var response = newcolor.run()
if response is ResponseType.OK
color : Color
var
Your problem is that colorsel property has type Widget. You have to
cast it to ColorSelection.
Just two general notes about your question:
- keep your questions in one thread
- don't name the thread help me please. use something
informative, for god's sake...
2009/6/15 Nicolas
Hello,
I couldn't find any good documentation on how Vala generates code in
response to the different input files and command-line options, so I
did some experiments and came up with the following results. This
information might be useful for others, so I though I'd share it.
Please correct me if
Okay... This should be easy, but I can't figure it.
How do I create a GtkLabel with bold text, without using markup?
I presently use:
new Gtk.Label(b+text+/b)
but I need it to display a string that contains markup-like text, and
I'd rather not have to escape the text, just so I can add
There are two ways you can do it. One by using styles, and the second by
using markup. They are both as easy. To use the style approach you set a
name for your widget and then associate that name with a given style. I
described this in my Gtk perl tutorial a few years back: