davemds pushed a commit to branch master. http://git.enlightenment.org/enlightenment/modules/edgar.git/commit/?id=8bacfdf5bd9a52a16bf0312bd06e19b2445ddb4f
commit 8bacfdf5bd9a52a16bf0312bd06e19b2445ddb4f Author: Dave Andreoli <d...@gurumeditation.it> Date: Tue Mar 6 20:12:06 2018 +0100 Delete the ruler gadget It does not work well with the new E gadgets infra, and it was just a simple example --- GADGETS/ruler/Makefile | 36 ---------------- GADGETS/ruler/__init__.py | 28 ------------- GADGETS/ruler/images/icon.png | Bin 1293 -> 0 bytes GADGETS/ruler/images/ruler_horiz.png | Bin 13411 -> 0 bytes GADGETS/ruler/images/ruler_vert.png | Bin 14587 -> 0 bytes GADGETS/ruler/ruler.edc | 77 ----------------------------------- 6 files changed, 141 deletions(-) diff --git a/GADGETS/ruler/Makefile b/GADGETS/ruler/Makefile deleted file mode 100644 index 44eafb9..0000000 --- a/GADGETS/ruler/Makefile +++ /dev/null @@ -1,36 +0,0 @@ -# Simple Makefile for Enlightenment (edgar) gadgets - -# gadget specific config -GADGET_NAME = ruler -EXTRA_FILES = - - -# nothing should be changed below this point -GADGET_FILES = __init__.pyc $(GADGET_NAME).edj -prefix = $(shell pkg-config --variable=libdir enlightenment) -gadget_folder = ${prefix}/enlightenment/gadgets/$(GADGET_NAME) - -.PHONY: all install clean - -all: $(GADGET_FILES) $(EXTRA_FILES) - -install: all - @mkdir -p -v ${gadget_folder} - @cp --preserve=mode -v $(GADGET_FILES) $(EXTRA_FILES) $(gadget_folder) - -uninstall: all - @rm -rfv ${gadget_folder} - -clean: - @rm -fv *.edj *.pyc - - -EDJE_CC = edje_cc -EDJE_FLAGS = -v -id images/ -fd fonts/ - -%.edj: %.edc images/* - $(EDJE_CC) $(EDJE_FLAGS) $< - @chmod -v og+r $@ - -%.pyc: %.py - python3 -c "from py_compile import compile; compile('$<', '$@')" diff --git a/GADGETS/ruler/__init__.py b/GADGETS/ruler/__init__.py deleted file mode 100644 index 4a4fb4d..0000000 --- a/GADGETS/ruler/__init__.py +++ /dev/null @@ -1,28 +0,0 @@ -# This python file use the following encoding: utf-8 - -import sys -import os -import e - -from efl import evas - -__gadget_name__ = 'Ruler (HalloWorld)' -__gadget_vers__ = '0.1' -__gadget_auth__ = 'DaveMDS' -__gadget_mail__ = 'd...@gurumeditation.it' -__gadget_desc__ = 'All gadgets sets have a ruler...' -__gadget_vapi__ = 1 - - -class Gadget(e.Gadget): - - def __init__(self): - super().__init__() - - def instance_orient(self, obj, generic, specific): - super().instance_orient(obj, generic, specific) - - if generic == e.E_GADCON_ORIENT_VERT: - obj.signal_emit('gadget,orient,vert', '') - else: - obj.signal_emit('gadget,orient,horiz', '') diff --git a/GADGETS/ruler/images/icon.png b/GADGETS/ruler/images/icon.png deleted file mode 100644 index b0a8172..0000000 Binary files a/GADGETS/ruler/images/icon.png and /dev/null differ diff --git a/GADGETS/ruler/images/ruler_horiz.png b/GADGETS/ruler/images/ruler_horiz.png deleted file mode 100644 index fef303e..0000000 Binary files a/GADGETS/ruler/images/ruler_horiz.png and /dev/null differ diff --git a/GADGETS/ruler/images/ruler_vert.png b/GADGETS/ruler/images/ruler_vert.png deleted file mode 100644 index 02b4217..0000000 Binary files a/GADGETS/ruler/images/ruler_vert.png and /dev/null differ diff --git a/GADGETS/ruler/ruler.edc b/GADGETS/ruler/ruler.edc deleted file mode 100644 index 2db7a1e..0000000 --- a/GADGETS/ruler/ruler.edc +++ /dev/null @@ -1,77 +0,0 @@ -/** - * E17 Ruler Gadget (HalloWorld) - * - * This is the simplest gadget yo can do. - * Ruler will be used as reference, all off the gadgets features will be - * documented here.You can use this file as a skeleton for your new gadgets. - * - * All the thing that is labeled as API are part that must exist in every - * gadget. - * - */ - - -images { - image: "icon.png" COMP; - image: "ruler_horiz.png" COMP; - image: "ruler_vert.png" COMP; -} - - -collections { -/** - * API [e/gadget/icon] The group used for the icon of the gadget - */ - group { name: "e/gadgets/ruler/icon"; - parts { - part { name: "icon"; - description { - state: "default" 0.0; - aspect: 1.0 1.0; - aspect_preference: BOTH; - image { - normal: "icon.png"; - } - } - } - } - } - -/** - * API [e/gadget/main] The main group of the gadget - * This group is the one that is places on the screen. It's name must be - * e/gadget/main. - */ - group { name: "e/gadgets/ruler/main"; - parts { - part { name: "ruler"; - description { state: "default" 0.0; - min: 800 70; - max: 800 70; - image { - normal: "ruler_horiz.png"; - } - } - description { state: "vertical" 0.0; - min: 70 800; - max: 70 800; - image { - normal: "ruler_vert.png"; - } - } - } - } - programs { - program { signal: "gadget,orient,vert"; - source: ""; - action: STATE_SET "vertical" 0.0; - target: "ruler"; - } - program { signal: "gadget,orient,horiz"; - source: ""; - action: STATE_SET "default" 0.0; - target: "ruler"; - } - } - } -} --