[Vala] Process.spawn_command_line_async; do nothing in windows

2015-01-22 Thread gontzal

Hello!!

Using Process.spawn_command_line_async in vala (windows) give me an error.
When i use it with the instaled libraries it goes well, but if i use 
Tarnyk's ValaWinPKG's libraries for a portable app, don't work!.
I suposse that is the same problem he had with GSettings and 
Filechooser. Isn't?

Any ideas?

Thanks Gontzal.



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


Re: [Vala] vala-list Digest, Vol 86, Issue 5

2015-01-22 Thread gontzal


ar., 2015.eko urtren 20a 13:00(e)an, vala-list-requ...@gnome.org 
igorleak idatzi zuen:

Send vala-list mailing list submissions to
vala-list@gnome.org

To subscribe or unsubscribe via the World Wide Web, visit
https://mail.gnome.org/mailman/listinfo/vala-list
or, via email, send a message with subject or body 'help' to
vala-list-requ...@gnome.org

You can reach the person managing the list at
vala-list-ow...@gnome.org

When replying, please edit your Subject line so it is more specific
than Re: Contents of vala-list digest...


Today's Topics:

1. Windows compiling; Error with GSettings usen FileChooser.
   (Gontzal Uriarte)
2. Re: Windows compiling; Error with GSettings usen
   FileChooser. (Tarnyko)


--

Message: 1
Date: Tue, 20 Jan 2015 10:16:20 +0100
From: Gontzal Uriarte txasato...@gmail.com
To: vala-list@gnome.org
Subject: [Vala] Windows compiling; Error with GSettings usen
FileChooser.
Message-ID:
CADsu+Bbp+VWVKJHTT1-xWvLdReupLU3ZsLutho=12osgujo...@mail.gmail.com
Content-Type: text/plain; charset=UTF-8

Hello!
I hate windows
But there is no way, when all my school teaches using it!!!
I have finished one free program in Genie. Is like a Interactive Activity
Book but offline. (there is a lot of them online)
named kataderno (see at gitorious)
Ubuntu instalers for teachers book constructor
https://www.dropbox.com/s/xr71tia01ofiiq3/katadernoconstructor_1.0-1_i386.deb?dl=0
and learners book
https://www.dropbox.com/s/ce0ts4tlaw2l8xr/katadernouser_1.0-1_i386.deb?dl=0
.
I have compiled for windows with Tarnyko's tools (ValaWinPKG). All went all
right, but when the program want to show a
Filechooser... Blop... error message: Glib-gio-ERROR No GSettings schemas
are installed on the system.

Note: My application is portable.
Any Ideas about this?

Gontzal.


--

Message: 2
Date: Tue, 20 Jan 2015 11:06:24 +0100
From: Tarnyko tarn...@tarnyko.net
To: Gontzal Uriarte txasato...@gmail.com
Cc: vala-list@gnome.org
Subject: Re: [Vala] Windows compiling; Error with GSettings usen
FileChooser.
Message-ID: e1ydvhy-00021x...@s15847124.domainepardefaut.fr
Content-Type: text/plain; charset=utf-8; format=flowed

Hi Gontzal,

This usually means GTK+'s schemas have not been correctly installed. Try
this :

glib-compile-schemas share\glib-2.0\schemas

when the schemas folder contains the
org.gtk.Settings.FileChooser.gschema.xml file.

Regards,
Tarnyko

Gontzal Uriarte writes:


Hello!
I hate windows
But there is no way, when all my school teaches using it!!!
I have finished one free program in Genie. Is like a Interactive Activity
Book but offline. (there is a lot of them online)
named kataderno (see at gitorious)
Ubuntu instalers for teachers book constructor
https://www.dropbox.com/s/xr71tia01ofiiq3/katadernoconstructor_1.0-1_i386.deb?dl=0
and learners book
https://www.dropbox.com/s/ce0ts4tlaw2l8xr/katadernouser_1.0-1_i386.deb?dl=0
.
I have compiled for windows with Tarnyko's tools (ValaWinPKG). All went all
right, but when the program want to show a
Filechooser... Blop... error message: Glib-gio-ERROR No GSettings schemas
are installed on the system.

Note: My application is portable.
Any Ideas about this?

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


--

Subject: Digest Footer

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


--

End of vala-list Digest, Vol 86, Issue 5

Ok...thanks Tarnyko!!. I have created a new directory in the portable 
app directory named:shaere/glib-2.0/schemas and there i have compiled 
the schemas as you write.

I goes!!!
thanks!!
But, i have another one question may be in other question mail.
Thanks!!
Gontzal.
___
vala-list mailing list
vala-list@gnome.org
https://mail.gnome.org/mailman/listinfo/vala-list


[Vala] How to implement gtk textview auto scroll?

2015-01-22 Thread 张诚
Hi:

I'm using Vala to write a serialport tool...

the window class implement the observer and the serialport class as the
subject, so i need the textview could auto scroll to the end...

right now, my solution is :

1.when serialport data coming, insert the data at the end of the
textbuffer

public void data_report(uint8[] data, int size)
{
Gtk.TextIter iter;

textbuffer_output.get_end_iter(out iter);

textbuffer_output.insert(ref iter, (string)data, size);
}

2. in the textview's size_allocate event, scroll to the end

[GtkCallback]
public void on_textview_output_size_allocate(Gtk.Allocation
allocation)
{
Gtk.TextIter iter;

textbuffer_output.get_end_iter(out iter);

textview_output.scroll_to_iter(iter, 0, false, 0, 0);
}

it works well under the windows with msys2's gtk3's bundle, but it will
crash under ubuntu 14.04 if the data report fast...

   (magicom:3547): Gtk-WARNING **: Invalid text buffer iterator: either the
iterator is uninitialized, or the characters/pixbufs/widgets in the buffer
have been modified since the iterator was created.
You must use marks, character numbers, or line numbers to preserve a
position across buffer modifications.
You can apply tags and insert marks without invalidating your iterators,
but any mutation that affects 'indexable' buffer contents (contents that
can be referred to by character offset)
will invalidate all outstanding iterators
coredump
___
vala-list mailing list
vala-list@gnome.org
https://mail.gnome.org/mailman/listinfo/vala-list