Re: [Vala] [PATCH]: Vte vapi: Vte.Terminal.fork_command_full some arguments can be nullable

2011-04-30 Thread Jacques-Pascal Deplaix

On 29/04/2011 23:47, Luca Bruno wrote:

On Fri, Apr 29, 2011 at 10:35:33PM +0200, Jacques-Pascal Deplaix wrote:

Hello everybody,

Vte in version= 0.26 had the function Vte.Terminal.fork_command_full.
But in the vte vapi file, this function had some arguments
non-nullable and some other arguments nullable.
That should be the opposite. (see: 
http://developer.gnome.org/vte/0.26/VteTerminal.html#vte-terminal-fork-command-full)

In the api documentation we can see that argv argument can't be
nullable, child_setup can be nullable and child_pid too.
For the child_pid case, the argument is not a variable but a pointer
nullable.|//|/||/

Thanks for your patch, please consider filing a bug report to
bugzilla.gnome.org to make sure patches don't get forgotten.


Bug reported: https://bugzilla.gnome.org/show_bug.cgi?id=649004
___
vala-list mailing list
vala-list@gnome.org
http://mail.gnome.org/mailman/listinfo/vala-list


Re: [Vala] Cross compiling vala gtk to win32

2011-04-30 Thread pancake
I spend some time this morning to write down some notes and upload some blobs 
and examples to build gtk apps for windows and osx.

Have fun

http://radare.org/cgi-bin/wk/GTK

On 30/04/2011, at 0:44, august aug...@alien.mur.at wrote:

 
 I would be very interested in both the mingw cross compile instructions
 and the OSx dmg creation instructions.
 
 (Would be great to work out the GTK3 kinks too.)
 
 best -august.
 
 
 I have crosscompiled big vala+gtk (gtkaml) apps with mingw from linux to 
 windows.
 
 The setup is simple, but requires some tricks. 
 
 I used to install the last gtk blobs for windows and then by setting 
 pkgconfig, cflags and ldflags yo point to the directory containing the liba 
 and include files the projects compiles just fine.
 
 I have a zip somewhere with all this environment prepared (w32 blobs and a 
 test program in valagtl that crosscompiles with 'make') .. I will have to 
 find it because im replying thia from my phone. 
 
 But if someone finds it interesting i can provide instructions and the zip 
 for this.
 
 I have also recently packaged a vala+gtkon app for osx with gtk and quartz 
 (no x11). And stored in a standalone .app in a .dmg image.. 
 
 If someone finds this interesting i can write some instructions to do it.
 
 I still have to play with the themes (to be emedded in the .app) and i would 
 love to switch to gtk3. If someone have any experience with it let me know :)
 
 --pancake
 
 On 29/04/2011, at 17:34, Martin Leibner mleib...@tincorad.com wrote:
 
 Hello,
 
 I'm a GNU beginner learning Vala since a couple of months and after playing
 and enjoying a lot in my Ubuntu desktop installation, now I want to build
 some small apps to be used by MS Windows users.
 I came into MingW32, and with some efforts finally was able to build a
 console-based 'HelloWorld' targeting i586-mingw32msvc
 But it's getting really difficult to build a gtk-based 'HelloWorld', btw I'm
 using autotools stack.
 
 Someone could help me, maybe with a minimal gtk vala sample application
 targeting w32 ?
 
 I looked at valaide source but it uses waf and I'm not really used to it.
 
 Thanks in advance,
 Greetings,
 Martín
 ___
 vala-list mailing list
 vala-list@gnome.org
 http://mail.gnome.org/mailman/listinfo/vala-list
 ___
 vala-list mailing list
 vala-list@gnome.org
 http://mail.gnome.org/mailman/listinfo/vala-list
 
___
vala-list mailing list
vala-list@gnome.org
http://mail.gnome.org/mailman/listinfo/vala-list


Re: [Vala] Remove line numbers from logging

2011-04-30 Thread san hoi
hi.

1. make simple custom function.

// https://bugzilla.gnome.org/show_bug.cgi?id=546043
class Test {
static int blah(int test) throws GLib.Error {
if (test  0)
throw new GLib.Error(GLib.Quark.from_string(test), 0,
test error);
return 5;
}

static void something(int val) {
log(value: %d.printf(val));
}

//static void log(string s, string e) { stdout.printf(@$s $e); }
static void log(string s) { stdout.printf(@$s\n); }

static void main(string[] args) {
log(aaa);
try {
something(blah(-1));
something(blah(1));
} catch(GLib.Error err) {
log(error: %s.printf(err.message));
}
}
}

2. implement logger class. https://launchpad.net/plank
i would be happy to be of any help to you.


Ricardo Gladwell ricardo.gladwell@... writes:

 Hi Guys

 I'm writing some code that uses the GLib log, debug, message etc. static
 methods. Is there anyway to disable/remove the pre-pending of file name
 and line number to these outputs so that instead of:

 [vain] DefaultVainExecution.vala:18: Scanning for projects...

 I just print:

 [vain] Scanning for projects...

 TIA...

___
vala-list mailing list
vala-list@gnome.org
http://mail.gnome.org/mailman/listinfo/vala-list


Re: [Vala] Cross compiling vala gtk to win32

2011-04-30 Thread august


fantastico.  This is really useful.  Thanks for taking the time and
effort.


 I spend some time this morning to write down some notes and upload some blobs 
 and examples to build gtk apps for windows and osx.
 
 Have fun
 
 http://radare.org/cgi-bin/wk/GTK
 
 On 30/04/2011, at 0:44, august aug...@alien.mur.at wrote:
 
  
  I would be very interested in both the mingw cross compile instructions
  and the OSx dmg creation instructions.
  
  (Would be great to work out the GTK3 kinks too.)
  
  best -august.
  
  
  I have crosscompiled big vala+gtk (gtkaml) apps with mingw from linux to 
  windows.
  
  The setup is simple, but requires some tricks. 
  
  I used to install the last gtk blobs for windows and then by setting 
  pkgconfig, cflags and ldflags yo point to the directory containing the 
  liba and include files the projects compiles just fine.
  
  I have a zip somewhere with all this environment prepared (w32 blobs and a 
  test program in valagtl that crosscompiles with 'make') .. I will have to 
  find it because im replying thia from my phone. 
  
  But if someone finds it interesting i can provide instructions and the zip 
  for this.
  
  I have also recently packaged a vala+gtkon app for osx with gtk and quartz 
  (no x11). And stored in a standalone .app in a .dmg image.. 
  
  If someone finds this interesting i can write some instructions to do it.
  
  I still have to play with the themes (to be emedded in the .app) and i 
  would love to switch to gtk3. If someone have any experience with it let 
  me know :)
  
  --pancake
  
  On 29/04/2011, at 17:34, Martin Leibner mleib...@tincorad.com wrote:
  
  Hello,
  
  I'm a GNU beginner learning Vala since a couple of months and after 
  playing
  and enjoying a lot in my Ubuntu desktop installation, now I want to build
  some small apps to be used by MS Windows users.
  I came into MingW32, and with some efforts finally was able to build a
  console-based 'HelloWorld' targeting i586-mingw32msvc
  But it's getting really difficult to build a gtk-based 'HelloWorld', btw 
  I'm
  using autotools stack.
  
  Someone could help me, maybe with a minimal gtk vala sample application
  targeting w32 ?
  
  I looked at valaide source but it uses waf and I'm not really used to it.
  
  Thanks in advance,
  Greetings,
  Martín
___
vala-list mailing list
vala-list@gnome.org
http://mail.gnome.org/mailman/listinfo/vala-list