Questions tagged [genie]

Genie is a programming language allowing one to program in Vala with a Python-like syntax.

Genie is a programming language allowing one to program in Vala with a Python-like syntax.

93 questions
0
votes
1 answer

Get pixel color of a SDL Surface with Vala/Genie

I can get the first pixel but how to get the others? def get_alpha (x:uint8,y:uint8): uchar r:uchar g:uchar b:uchar a:uchar dire:uint32* r=0 g=0 b=0 a=0 Image.do_lock() …
txasatonga
  • 419
  • 2
  • 11
-1
votes
1 answer

How to fix two clicks in dialog

I've created a dialog to ask the user if he really want to proceed creating another file (text buffer). However, there is something with my approach that requires me to click twice at the button yes or at the button no. What am I doing wrong? The…
lf_araujo
  • 1,991
  • 2
  • 16
  • 39
-2
votes
1 answer

init block in struct

I read this line from init Block https://wiki.gnome.org/Projects/Genie#init_Block An init block declared outside of a class or struct is equivalent to a "main" function in C and only one of these may be present. that say, we can declare an init…
Zee
  • 78
  • 6
1 2 3 4 5 6
7