[seed] Fix OSX build
- From: Robert Carr <racarr src gnome org>
- To: svn-commits-list gnome org
- Subject: [seed] Fix OSX build
- Date: Tue, 28 Apr 2009 12:34:16 -0400 (EDT)
commit df538f89ffe205d0757e8d1d802aead1a40a3ff8
Author: Robert Carr <racarr svn gnome org>
Date: Tue Apr 28 12:34:05 2009 -0400
Fix OSX build
---
configure.ac | 11 ++++++---
examples/browser/BrowserView.js | 2 +-
examples/vte-test.js | 40 +++++++++++++++++++-------------------
3 files changed, 28 insertions(+), 25 deletions(-)
diff --git a/configure.ac b/configure.ac
index 06eed0f..2a847e2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -85,10 +85,6 @@ case "$host_os" in
;;
esac
-PKG_CHECK_MODULES(WEBKIT, webkit-1.0)
-AC_SUBST(WEBKIT_CFLAGS)
-AC_SUBST(WEBKIT_LDFLAGS)
-
dnl =========================Introspection=====================================
PKG_CHECK_MODULES(GOBJECT_INTROSPECTION, gobject-introspection-1.0 >= 0.6.3)
AC_SUBST(GOBJECT_INTROSPECTION_CFLAGS)
@@ -232,6 +228,13 @@ case "$host_os" in
SEED_OSX_CFLAGS="-F/Applications/WebKit.app/Contents/Frameworks/10.5 -framework JavaScriptCore"
SEED_OSX_LDFLAGS="-F/Applications/WebKit.app/Contents/Frameworks/10.5 -framework JavaScriptCore"
;;
+ *)
+ PKG_CHECK_MODULES(WEBKIT, webkit-1.0)
+ AC_SUBST(WEBKIT_CFLAGS)
+ AC_SUBST(WEBKIT_LDFLAGS)
+ ;;
+
+
esac
AC_SUBST(SEED_OSX_CFLAGS)
AC_SUBST(SEED_OSX_LDFLAGS)
diff --git a/examples/browser/BrowserView.js b/examples/browser/BrowserView.js
index 2150725..30625f9 100644
--- a/examples/browser/BrowserView.js
+++ b/examples/browser/BrowserView.js
@@ -10,7 +10,7 @@ BrowserView = new GType({
{
// Private
var tab;
-
+
var update_title = function (web_view, web_frame, title)
{
if(title.length > 25)
diff --git a/examples/vte-test.js b/examples/vte-test.js
index a7341ea..28f3a42 100755
--- a/examples/vte-test.js
+++ b/examples/vte-test.js
@@ -5,31 +5,31 @@ Vte = imports.gi.Vte;
with (Gtk)
{
- init(null, null);
+ init(null, null);
+
+ var window = new Window();
+ window.signal.hide.connect(function () { Gtk.main_quit(); } );
- var window = new Window();
- window.signal.hide.connect(function () { Gtk.main_quit(); } );
+ var scroll = new ScrolledWindow();
- var scroll = new ScrolledWindow();
+ var vte = new Vte.Terminal();
+ vte.fork_command("/bin/bash");
+ vte.signal.child_exited.connect(function(){main_quit();});
+ vte.signal.window_title_changed.connect
+ (function(terminal)
+ {
+ window.set_title(terminal.get_window_title());
+ });
- var vte = new Vte.Terminal();
- vte.fork_command("/bin/bash");
- vte.signal.child_exited.connect(function(){main_quit();});
- vte.signal.window_title_changed.connect
- (function(terminal)
- {
- window.set_title(terminal.get_window_title());
- });
+ scroll.add(vte);
+ scroll.set_policy(PolicyType.AUTOMATIC,
+ PolicyType.AUTOMATIC);
- scroll.add(vte);
- scroll.set_policy(PolicyType.AUTOMATIC,
- PolicyType.AUTOMATIC);
+ window.add(scroll);
+ window.resize(600,400);
+ window.show_all();
- window.add(scroll);
- window.resize(600,400);
- window.show_all();
-
- main();
+ main();
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]