From 9a7293a2f3c9eae5a38b8075657f6bfd44f06a52 Mon Sep 17 00:00:00 2001 From: Manish Sinha Date: Mon, 2 Apr 2012 02:00:50 +0530 Subject: Remove Eye of GNOME Datasource as it now uses GtkRecentManager --- configure.ac | 8 +--- eog/Makefile.am | 19 -------- eog/README | 11 ----- eog/zeitgeist.eog-plugin | 9 ---- eog/zeitgeist_plugin.py | 122 ----------------------------------------------- 5 files changed, 1 insertion(+), 168 deletions(-) delete mode 100644 eog/Makefile.am delete mode 100644 eog/README delete mode 100644 eog/zeitgeist.eog-plugin delete mode 100644 eog/zeitgeist_plugin.py diff --git a/configure.ac b/configure.ac index 288c007..b6822a2 100644 --- a/configure.ac +++ b/configure.ac @@ -63,7 +63,7 @@ AC_ARG_ENABLE([all-plugins], AC_MSG_NOTICE([Requested to enable all plugins: ${all_plugins}]) # The full list of plugins -allowed_plugins="bzr chrome eog geany vim emacs tomboy telepathy xchat rhythmbox firefox totem-libzg firefox-36-libzg monodevelop thunderbird" +allowed_plugins="bzr chrome geany vim emacs tomboy telepathy xchat rhythmbox firefox totem-libzg firefox-36-libzg monodevelop thunderbird" # currently disabled = "epiphany" # npapi-plugin has a template Makefile.am, but don't use it directly @@ -101,8 +101,6 @@ for plugin in ${used_plugins}; do continue fi ;; - eog) - ;; rhythmbox) ;; rhythmbox-popular) @@ -306,10 +304,6 @@ if test "x${PLUGINS}" != "x" ; then extra_subdirs="${extra_subdirs} npapi-plugin" continue 2 ;; - eog) - AC_CONFIG_FILES([eog/Makefile]) - continue 2 - ;; firefox) AC_CONFIG_FILES([ firefox/Makefile diff --git a/eog/Makefile.am b/eog/Makefile.am deleted file mode 100644 index dd4358c..0000000 --- a/eog/Makefile.am +++ /dev/null @@ -1,19 +0,0 @@ -PLUGIN_FILES = zeitgeist.eog-plugin zeitgeist_plugin.py - -eogplugindir = $(libdir)/eog/plugins -dist_eogplugin_DATA = $(PLUGIN_FILES) - -# we want to allow also local install -EOG_PLUGIN_HOME_DIR = ~/.gnome2/eog/plugins - -local-install: - mkdir -p $(EOG_PLUGIN_HOME_DIR) - cp $(PLUGIN_FILES) $(EOG_PLUGIN_HOME_DIR) - -local-uninstall: - for f in $(PLUGIN_FILES); \ - do \ - echo remove $$f; \ - rm -f $(EOG_PLUGIN_HOME_DIR)/$$f; \ - done - diff --git a/eog/README b/eog/README deleted file mode 100644 index cd1167c..0000000 --- a/eog/README +++ /dev/null @@ -1,11 +0,0 @@ -Zeitgeist plugin to the EOG Image Viewer -**************************************** - -To use this plugin: - -* Install Zeitgeist 0.3 (or greater) so that the python library is available system-wide. -* Run the install.sh script which will copy the plugin to '~/.gnome2/eog/plugins'. -* Launch EOG, choose Edit -> Preferences, and select the Zeitgeist plugin on the Plugin tab. - -To update plugin changes: -* Run the install.sh script to recopy the plugin files. diff --git a/eog/zeitgeist.eog-plugin b/eog/zeitgeist.eog-plugin deleted file mode 100644 index 0ab0358..0000000 --- a/eog/zeitgeist.eog-plugin +++ /dev/null @@ -1,9 +0,0 @@ -[Plugin] -Module=zeitgeist_plugin -IAge=2 -Loader=python -Name=Zeitgeist -Description=Inform Zeitgeist about your activity -Authors=Markus Korn -Copyright=Copyright © 2009 Markus Korn -Website=http://launchpad.net/~thekorn diff --git a/eog/zeitgeist_plugin.py b/eog/zeitgeist_plugin.py deleted file mode 100644 index 6b4cd0b..0000000 --- a/eog/zeitgeist_plugin.py +++ /dev/null @@ -1,122 +0,0 @@ -# -.- coding: utf-8 -.- - -# Zeitgeist -# -# Copyright © 2009 Markus Korn -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU Lesser General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This program 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 Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public License -# along with this program. If not, see . - -import eog -import gobject -import time - -from zeitgeist.client import ZeitgeistClient -from zeitgeist.datamodel import Event, Subject, Interpretation, Manifestation - -try: - CLIENT = ZeitgeistClient() -except RuntimeError, e: - print "Unable to connect to Zeitgeist, won't send events. Reason: '%s'" %e - CLIENT = None - -class ZeitgeistPlugin(eog.Plugin): - - def __init__(self): - eog.Plugin.__init__(self) - self.__current_image = dict() - self.__run = True - self.last_image = None - self.last_origin = None - - def activate(self, window): - if CLIENT is not None: - gobject.timeout_add(500, self.get_image, window) - if CLIENT.get_version() >= [0, 3, 2, 999]: - CLIENT.register_data_source("9375", "Eye of GNOME", "", - [Event.new_for_values(actor="application://eog.desktop")] - ) - window.connect("destroy", self.deactivate, window) - - def get_image(self, window): - image = window.get_image() - - if image and image is not self.__current_image.get(window, None): - self.__current_image[window] = image - file_obj = image.get_file() - - if file_obj.get_uri == self.last_image: - subject = Subject.new_for_values( - uri=file_obj.get_uri(), - interpretation=unicode(Interpretation.IMAGE), - manifestation=unicode(Manifestation.FILE_DATA_OBJECT), - origin=file_obj.get_parent().get_uri(), - text = file_obj.get_uri().split("/")[-1] - #~ mimetype="", #TBD - ) - event = Event.new_for_values( - timestamp=int(time.time()*1000), - interpretation=unicode(Interpretation.MODIFY_EVENT), - manifestation=unicode(Manifestation.USER_ACTIVITY), - actor="application://eog.desktop", - subjects=[subject,] - ) - CLIENT.insert_event(event) - else: - if self.last_image: - subject = Subject.new_for_values( - uri= self.last_image, - interpretation=unicode(Interpretation.IMAGE), - manifestation=unicode(Manifestation.FILE_DATA_OBJECT), - origin=file_obj.get_parent().get_uri(), - text = self.last_image.split("/")[-1] - #~ mimetype="", #TBD - ) - event = Event.new_for_values( - timestamp=int(time.time()*1000), - interpretation=unicode(Interpretation.LEAVE_EVENT), - manifestation=unicode(Manifestation.USER_ACTIVITY), - actor="application://eog.desktop", - subjects=[subject,] - ) - CLIENT.insert_event(event) - print "LEAVE", self.last_image - subject = Subject.new_for_values( - uri=file_obj.get_uri(), - interpretation=unicode(Interpretation.IMAGE), - manifestation=unicode(Manifestation.FILE_DATA_OBJECT), - origin=file_obj.get_parent().get_uri(), - text = file_obj.get_uri().split("/")[-1] - #~ mimetype="", #TBD - ) - event = Event.new_for_values( - timestamp=int(time.time()*1000), - interpretation=unicode(Interpretation.ACCESS_EVENT), - manifestation=unicode(Manifestation.USER_ACTIVITY), - actor="application://eog.desktop", - subjects=[subject,] - ) - CLIENT.insert_event(event) - self.last_image = file_obj.get_uri() - self.last_origin = file_obj.get_parent().get_uri() - print "ACCESS", self.last_image - - return self.__run - - def deactivate(self, window, *args): - print "unloading zeitgeist plugin for %r..." %window - self.__run = False - try: - del self.__current_image[window] - except KeyError: - pass -- cgit v1.2.3