gget r58 - in trunk: data epiphany-extension



Author: johans
Date: Sat Aug  9 18:00:04 2008
New Revision: 58
URL: http://svn.gnome.org/viewvc/gget?rev=58&view=rev

Log:
Added Epiphany extension.

Added:
   trunk/epiphany-extension/   (props changed)
   trunk/epiphany-extension/Makefile
   trunk/epiphany-extension/README
   trunk/epiphany-extension/gget-epiphany.py
   trunk/epiphany-extension/gget.ephy-extension
Modified:
   trunk/data/org.gnome.gget.service.in

Modified: trunk/data/org.gnome.gget.service.in
==============================================================================
--- trunk/data/org.gnome.gget.service.in	(original)
+++ trunk/data/org.gnome.gget.service.in	Sat Aug  9 18:00:04 2008
@@ -1,3 +1,3 @@
 [D-BUS Service]
-Name=org.gnome.gget
+Name=org.gnome.GGet
 Exec= bindir@/gget

Added: trunk/epiphany-extension/Makefile
==============================================================================
--- (empty file)
+++ trunk/epiphany-extension/Makefile	Sat Aug  9 18:00:04 2008
@@ -0,0 +1,6 @@
+DEST := $(HOME)/.gnome2/epiphany/extensions/
+FILES := gget.ephy-extension gget-epiphany.py
+
+install:
+	mkdir --parents $(DEST)
+	cp $(FILES) $(DEST)

Added: trunk/epiphany-extension/README
==============================================================================
--- (empty file)
+++ trunk/epiphany-extension/README	Sat Aug  9 18:00:04 2008
@@ -0,0 +1,7 @@
+Installation
+============
+Simply copy gget.ephy-extension and gget-epiphany.py to
+~/.gnome2/epiphany/extensions. This can be done manually or by running
+'make install'.
+
+Then go to Tools->Extensions in Epiphany and enable GGet.

Added: trunk/epiphany-extension/gget-epiphany.py
==============================================================================
--- (empty file)
+++ trunk/epiphany-extension/gget-epiphany.py	Sat Aug  9 18:00:04 2008
@@ -0,0 +1,35 @@
+#!/usr/bin/env python2.5
+# -*- coding: utf-8 -*-
+
+# Copyright (C) 2008 Johan Svedberg <johan svedberg com>
+
+# This file is part of GGet.
+
+# GGet is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+
+# GGet is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with GGet; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
+
+import epiphany
+
+class GGetEpiphanyPlugin():
+    def __init__(self):
+        self.shell = epiphany.ephy_shell_get_default()
+        self.shell.connect("handle-content", self.__handle_content)
+
+    def __handle_content(self, shell, mime_type, uri):
+        print mime_type
+        print uri
+
+plugin = GGetEpiphanyPlugin()
+
+# vim: set sw=4 et sts=4 tw=79 fo+=l:

Added: trunk/epiphany-extension/gget.ephy-extension
==============================================================================
--- (empty file)
+++ trunk/epiphany-extension/gget.ephy-extension	Sat Aug  9 18:00:04 2008
@@ -0,0 +1,10 @@
+[Epiphany Extension]
+Name=GGet
+Description=Forward downloads to the GGet Download Manager
+Authors=Johan Svedberg <johan svedberg com>
+URL=http://live.gnome.org/GGet
+Version=1
+
+[Loader]
+Type=python
+Module=gget



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]