Re: [Vala] I need to print Gdk.NativeWindow as an actual value, how do I print it?
- From: Jan Hudec <bulb ucw cz>
- To: Arkadi Viner <arkashkin gmail com>
- Cc: vala-list gnome org
- Subject: Re: [Vala] I need to print Gdk.NativeWindow as an actual value, how do I print it?
- Date: Thu, 22 Apr 2010 20:55:25 +0200
On Thu, Apr 22, 2010 at 14:54:19 +0300, Arkadi Viner wrote:
By the way, in terminal it prints out:
(valide:3060): Gtk-CRITICAL **: gtk_socket_get_id: assertion
`GTK_WIDGET_ANCHORED (socket)' failed
Socket ID=0
The GTK_WIDGET_ANCHORED is checking whether there is a top-level window for
this widget. You apparently forgot to place the scrolled_window to
a top-level Gtk.Window. A widget must be descendant of top-level window to be
'realized', that is have a NativeWindow assigned.
On Thu, Apr 22, 2010 at 2:31 PM, Arkadi Viner <arkashkin gmail com> wrote:
private static Gtk.Socket sock;
sock = new Gtk.Socket();
sock.show();
this.scrolled_window.add_with_viewport(sock);
stdout.printf("Socket ID=%ld \n", (long)sock.get_id());
it prints - "Socket ID=0"
some how in Python, this line prints an actual number on a screen:
print "Socket ID=", socket.get_id()
How do I properly do it?
Thanks in advance.
_______________________________________________
vala-list mailing list
vala-list gnome org
http://mail.gnome.org/mailman/listinfo/vala-list
--
Jan 'Bulb' Hudec <bulb ucw cz>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]