[gtk-vnc] Turn on debug in javascript example program
- From: Daniel P. Berrange <dberrange src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk-vnc] Turn on debug in javascript example program
- Date: Sun, 21 Mar 2010 14:10:14 +0000 (UTC)
commit 965b695957824bfaacb77a5a0a4de0a37e24b849
Author: Daniel P. Berrange <berrange redhat com>
Date: Sun Mar 21 14:09:09 2010 +0000
Turn on debug in javascript example program
* src/Makefile.am: Include vncutil.h/.c in introspection processing
* examples/gvncviewer.js: Enable debugging
examples/gvncviewer.js | 5 ++++-
src/Makefile.am | 3 ++-
2 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/examples/gvncviewer.js b/examples/gvncviewer.js
index 6870e93..0860244 100755
--- a/examples/gvncviewer.js
+++ b/examples/gvncviewer.js
@@ -1,14 +1,17 @@
#!/usr/bin/gjs
const Vnc = imports.gi.GtkVnc;
+const GVnc = imports.gi.GVnc;
const Gtk = imports.gi.Gtk;
Gtk.init(0, null);
+GVnc.util_set_debug(true);
+
var win = new Gtk.Window({title: "GTK-VNC with JavaScript"});
var disp = new Vnc.Display();
win.add(disp);
disp.open_host("localhost", "5900");
win.show_all();
-Gtk.main();
\ No newline at end of file
+Gtk.main();
diff --git a/src/Makefile.am b/src/Makefile.am
index 645489a..1d2ebcc 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -195,7 +195,8 @@ GVNC_INTROSPECTION_SRCS = \
$(srcdir)/vncbaseframebuffer.h $(srcdir)/vncbaseframebuffer.c \
$(srcdir)/vnccursor.h $(srcdir)/vnccursor.c \
$(srcdir)/vncconnection.h $(srcdir)/vncconnection.c \
- $(builddir)/vncconnectionenums.h $(builddir)/vncconnectionenums.c
+ $(builddir)/vncconnectionenums.h $(builddir)/vncconnectionenums.c \
+ $(srcdir)/vncutil.h $(srcdir)/vncutil.c
GTK_VNC_INTROSPECTION_SRCS = \
$(srcdir)/vncimageframebuffer.h $(srcdir)/vncimageframebuffer.c \
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]