[build] Add webkit
This commit is contained in:
parent
cde668fe77
commit
e83de1a37b
8
README
8
README
|
@ -39,6 +39,8 @@ SparkleShare currently requires:
|
||||||
- intltool
|
- intltool
|
||||||
- nautilus-python
|
- nautilus-python
|
||||||
- pygtk
|
- pygtk
|
||||||
|
- webkitgtk
|
||||||
|
- webkit-sharp
|
||||||
|
|
||||||
Run the service:
|
Run the service:
|
||||||
|
|
||||||
|
@ -54,8 +56,9 @@ For help:
|
||||||
|
|
||||||
Note:
|
Note:
|
||||||
|
|
||||||
SparkleShare creates its own RSA keypair in ~/.ssh and uses that for authentication.
|
SparkleShare creates its own RSA keypair in ~/.ssh and uses that for
|
||||||
Please mind this if you're planning to set up your own server by hand.
|
authentication. Please mind this if you're planning to set up your own server
|
||||||
|
by hand.
|
||||||
|
|
||||||
|
|
||||||
Build
|
Build
|
||||||
|
@ -71,6 +74,7 @@ To build SparkleShare you need:
|
||||||
- ndesk-dbus-glib-devel >= 0.6
|
- ndesk-dbus-glib-devel >= 0.6
|
||||||
- nautilus-python-devel
|
- nautilus-python-devel
|
||||||
- nant
|
- nant
|
||||||
|
- webkit-sharp-devel
|
||||||
|
|
||||||
You can build and install SparkleShare like this:
|
You can build and install SparkleShare like this:
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@ SUBDIRS = \
|
||||||
ASSEMBLY = SparkleShare
|
ASSEMBLY = SparkleShare
|
||||||
TARGET = exe
|
TARGET = exe
|
||||||
|
|
||||||
LINK = $(REF_SPARKLESHARE)
|
LINK = $(REF_SPARKLESHARE) -pkg:webkit-sharp-1.0
|
||||||
|
|
||||||
|
|
||||||
SOURCES = \
|
SOURCES = \
|
||||||
|
|
|
@ -21,6 +21,7 @@ using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
using System.Text.RegularExpressions;
|
using System.Text.RegularExpressions;
|
||||||
|
using WebKit;
|
||||||
|
|
||||||
namespace SparkleShare {
|
namespace SparkleShare {
|
||||||
|
|
||||||
|
@ -30,6 +31,7 @@ namespace SparkleShare {
|
||||||
private VBox LayoutVertical;
|
private VBox LayoutVertical;
|
||||||
private ScrolledWindow ScrolledWindow;
|
private ScrolledWindow ScrolledWindow;
|
||||||
private MenuBar MenuBar;
|
private MenuBar MenuBar;
|
||||||
|
private WebView WebView;
|
||||||
|
|
||||||
// Short alias for the translations
|
// Short alias for the translations
|
||||||
public static string _ (string s)
|
public static string _ (string s)
|
||||||
|
@ -184,7 +186,7 @@ namespace SparkleShare {
|
||||||
List <SparkleCommit> commits = new List <SparkleCommit> ();
|
List <SparkleCommit> commits = new List <SparkleCommit> ();
|
||||||
|
|
||||||
foreach (SparkleRepo repo in SparkleShare.Controller.Repositories) {
|
foreach (SparkleRepo repo in SparkleShare.Controller.Repositories) {
|
||||||
|
// Controller.GetCommits (LocalPath);
|
||||||
// Get commits from the repository
|
// Get commits from the repository
|
||||||
if (repo.LocalPath.Equals (LocalPath)) {
|
if (repo.LocalPath.Equals (LocalPath)) {
|
||||||
|
|
||||||
|
@ -479,13 +481,16 @@ namespace SparkleShare {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
WebView = new WebView ();
|
||||||
ScrolledWindow = new ScrolledWindow ();
|
ScrolledWindow = new ScrolledWindow ();
|
||||||
|
|
||||||
EventBox wrapper = new EventBox ();
|
EventBox wrapper = new EventBox ();
|
||||||
wrapper.ModifyBg (StateType.Normal, background_color);
|
wrapper.ModifyBg (StateType.Normal, background_color);
|
||||||
wrapper.Add (layout_vertical);
|
wrapper.Add (layout_vertical);
|
||||||
|
WebView.LoadHtmlString ("<b>test</b>", "");
|
||||||
|
|
||||||
ScrolledWindow.AddWithViewport (wrapper);
|
ScrolledWindow.AddWithViewport (WebView);
|
||||||
(ScrolledWindow.Child as Viewport).ShadowType = ShadowType.None;
|
(ScrolledWindow.Child as Viewport).ShadowType = ShadowType.None;
|
||||||
|
|
||||||
return ScrolledWindow;
|
return ScrolledWindow;
|
||||||
|
|
|
@ -55,6 +55,7 @@ namespace SparkleShare {
|
||||||
SetNormalState ();
|
SetNormalState ();
|
||||||
CreateMenu ();
|
CreateMenu ();
|
||||||
|
|
||||||
|
// TODO: Move all event hookups to SparkleUI
|
||||||
|
|
||||||
SparkleShare.Controller.FolderSizeChanged += delegate {
|
SparkleShare.Controller.FolderSizeChanged += delegate {
|
||||||
Application.Invoke (delegate {
|
Application.Invoke (delegate {
|
||||||
|
@ -296,6 +297,8 @@ namespace SparkleShare {
|
||||||
Menu.Add (status_menu_item);
|
Menu.Add (status_menu_item);
|
||||||
Menu.ReorderChild (status_menu_item, 0);
|
Menu.ReorderChild (status_menu_item, 0);
|
||||||
|
|
||||||
|
// TODO: relist the folders as well
|
||||||
|
|
||||||
Menu.ShowAll ();
|
Menu.ShowAll ();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
SUBDIRS = \
|
SUBDIRS = \
|
||||||
icons
|
icons \
|
||||||
|
html
|
||||||
|
|
||||||
EXTRA_DIST = \
|
EXTRA_DIST = \
|
||||||
sparkleshare-gnome.svg \
|
sparkleshare-gnome.svg \
|
||||||
|
@ -11,10 +12,10 @@ MAINTAINERCLEANFILES = \
|
||||||
Makefile.in
|
Makefile.in
|
||||||
|
|
||||||
install-data-local:
|
install-data-local:
|
||||||
$(mkinstalldirs) $(DESTDIR)$(datadir)/pixmaps
|
$(mkinstalldirs) $(pkgdatadir)/pixmaps
|
||||||
$(INSTALL_DATA) $(srcdir)/side-splash.png $(DESTDIR)$(datadir)/pixmaps/side-splash.png
|
$(INSTALL_DATA) $(srcdir)/side-splash.png $(pkgdatadir)/pixmaps/side-splash.png
|
||||||
$(INSTALL_DATA) $(srcdir)/sparkleshare-about.png $(DESTDIR)$(datadir)/pixmaps/sparkleshare-about.png
|
$(INSTALL_DATA) $(srcdir)/sparkleshare-about.png $(pkgdatadir)/pixmaps/sparkleshare-about.png
|
||||||
|
|
||||||
uninstall-hook:
|
uninstall-hook:
|
||||||
rm -f $(DESTDIR)$(datadir)/pixmaps/side-splash.png
|
rm -f $(pkgdatadir)/pixmaps/side-splash.png
|
||||||
rm -f $(DESTDIR)$(datadir)/pixmaps/sparkleshare-about.png
|
rm -f $(pkgdatadir)/pixmaps/sparkleshare-about.png
|
||||||
|
|
18
data/html/Makefile.am
Normal file
18
data/html/Makefile.am
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
EXTRA_DIST = \
|
||||||
|
day-entry.html \
|
||||||
|
event-entry.html \
|
||||||
|
event-log.html
|
||||||
|
|
||||||
|
MAINTAINERCLEANFILES = \
|
||||||
|
Makefile.in
|
||||||
|
|
||||||
|
install-data-local:
|
||||||
|
$(mkinstalldirs) $(pkgdatadir)/html
|
||||||
|
$(INSTALL_DATA) $(srcdir)/day-entry.html $(pkgdatadir)/html/day-entry.html
|
||||||
|
$(INSTALL_DATA) $(srcdir)/event-entry.html $(pkgdatadir)/html/event-entry.html
|
||||||
|
$(INSTALL_DATA) $(srcdir)/event-log.html $(pkgdatadir)/html/event-log.html
|
||||||
|
|
||||||
|
uninstall-hook:
|
||||||
|
rm -f $(pkgdatadir)/html/day-entry.html
|
||||||
|
rm -f $(pkgdatadir)/html/event-entry.html
|
||||||
|
rm -f $(pkgdatadir)/html/event-log.html
|
11
data/html/day-entry.html
Normal file
11
data/html/day-entry.html
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
<div class='day-entry'>
|
||||||
|
|
||||||
|
<div class='day-entry-header'>
|
||||||
|
<!-- $day-entry-header-->
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class='day-entry-content'>
|
||||||
|
<!-- $day-entry-content-->
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
11
data/html/event-entry.html
Normal file
11
data/html/event-entry.html
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
<div class='event-entry'>
|
||||||
|
|
||||||
|
<div class='event-entry-header'>
|
||||||
|
<!-- $event-entry-header-->
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class='event-entry-content'>
|
||||||
|
<!-- $event-entry-content-->
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
43
data/html/event-log.html
Normal file
43
data/html/event-log.html
Normal file
|
@ -0,0 +1,43 @@
|
||||||
|
<!doctype html>
|
||||||
|
<html>
|
||||||
|
|
||||||
|
<head>
|
||||||
|
|
||||||
|
<title>Event Log</title>
|
||||||
|
<link rel="stylesheet" media="screen" href="style.css" />
|
||||||
|
|
||||||
|
<style>
|
||||||
|
|
||||||
|
body {
|
||||||
|
background-color: <!-- $body-background-color -->;
|
||||||
|
color: <!-- $body-color -->;
|
||||||
|
font-size: <!-- $body-font-size -->;
|
||||||
|
}
|
||||||
|
|
||||||
|
small {
|
||||||
|
font-size: <!-- $small-font-size -->;
|
||||||
|
color: <!-- $small-color -->;
|
||||||
|
}
|
||||||
|
|
||||||
|
.day-entry-header {
|
||||||
|
background-color: <!-- $day-entry-header-background-color -->;
|
||||||
|
}
|
||||||
|
|
||||||
|
a {
|
||||||
|
color: <!-- $a-color -->;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
a:hover {
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
|
|
||||||
|
</style>
|
||||||
|
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<!-- $log-->
|
||||||
|
</body>
|
||||||
|
|
||||||
|
</html>
|
Loading…
Reference in a new issue