[Pkg-mozext-commits] [all-in-one-sidebar] 05/49: Major: Fix #7 addons marked as disabled
David Prévot
taffit at moszumanska.debian.org
Fri Sep 19 16:46:32 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository all-in-one-sidebar.
commit 5812f1690653f1f6c76225c409faf674b3d71632
Author: Ingo Wennemaring <github at addonlab.com>
Date: Sat Aug 3 13:13:32 2013 +0200
Major: Fix #7 addons marked as disabled
---
content/addons.xml | 213 --------------------------------------------------
skin/css/addons.css | 2 +-
skin/less/addons.less | 9 ---
3 files changed, 1 insertion(+), 223 deletions(-)
diff --git a/content/addons.xml b/content/addons.xml
deleted file mode 100644
index 8168899..0000000
--- a/content/addons.xml
+++ /dev/null
@@ -1,213 +0,0 @@
-<?xml version="1.0"?>
-
-<!DOCTYPE page [
- <!ENTITY % extensionsDTD SYSTEM "chrome://mozapps/locale/extensions/extensions.dtd"> %extensionsDTD;
-]>
-
-<bindings xmlns="http://www.mozilla.org/xbl"
- xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
- xmlns:xbl="http://www.mozilla.org/xbl">
-
- <binding id="richlistitem" extends="chrome://mozapps/content/extensions/extensions.xml#addon-generic">
- <content>
- <xul:hbox anonid="warning-container" align="center"
- class="warning">
- <xul:image class="warning-icon"/>
- <xul:label anonid="warning" flex="1"/>
- <xul:label anonid="warning-link" class="text-link"/>
- <xul:button anonid="warning-btn" class="button-link"/>
-
- <xul:spacer flex="5000"/> <!-- Necessary to allow the message to wrap -->
- </xul:hbox>
- <xul:hbox anonid="error-container" align="center"
- class="error">
- <xul:image class="error-icon"/>
- <xul:label anonid="error" flex="1"/>
- <xul:label anonid="error-link" class="text-link"/>
- <xul:spacer flex="5000"/> <!-- Necessary to allow the message to wrap -->
- </xul:hbox>
-
- <xul:hbox anonid="pending-container" align="left"
- class="pending">
- <xul:image class="pending-icon"/>
- <xul:label anonid="pending" flex="1"/>
- <xul:spacer flex="5000"/> <!-- Necessary to allow the message to wrap -->
- <xul:vbox align="end">
- <xul:button anonid="restart-btn" class="button-link"
- label="&addon.restartNow.label;"
- oncommand="document.getBindingParent(this).restart();"/>
- <xul:button anonid="undo-btn" class="button-link"
- label="&addon.undoAction.label;"
- tooltipText="&addon.undoAction.tooltip;"
- oncommand="document.getBindingParent(this).undo(); /*AiOS_Addons.hideNotification();*/"/>
- </xul:vbox>
- </xul:hbox>
-
- <xul:hbox>
-
- <xul:vbox align="center" pack="start" class="icon-container">
- <xul:image anonid="icon" class="icon"/>
- </xul:vbox>
- <xul:vbox flex="1">
- <xul:hbox align="start">
- <xul:vbox flex="1">
- <xul:hbox class="name-container">
- <xul:label anonid="name" class="name" crop="end" flex="1"
- xbl:inherits="value=name,tooltiptext=name"/>
- <xul:label anonid="version" class="version"/>
-
- <xul:label class="disabled-postfix" value="&addon.disabled.postfix;"/>
- <xul:label class="update-postfix" value="&addon.update.postfix;"/>
- <xul:spacer flex="5000"/> <!-- Necessary to make the name crop -->
- </xul:hbox>
- <xul:hbox>
- <xul:label anonid="creator" class="creator"/>
- <xul:spacer flex="1" />
- <xul:label anonid="date-updated" class="date-updated" unknown="&addon.unknownDate;" />
- </xul:hbox>
- </xul:vbox>
- </xul:hbox>
-
- <xul:hbox flex="1" orient="vertical" class="aios-container">
- <xul:vbox flex="1">
- <xul:hbox align="center" class="description-container">
- <xul:label flex="1" anonid="description" class="description" crop="end"/>
- <xul:button anonid="details-btn" class="details button-link"
- label="&addon.details.label;"
- tooltiptext="&addon.details.tooltip;"
- oncommand="document.getBindingParent(this).showInDetailView();"/>
- <xul:spacer flex="5000"/> <!-- Necessary to make the description crop -->
- </xul:hbox>
- <xul:vbox anonid="relnotes-container" class="relnotes-container">
-
- <xul:label class="relnotes-header" value="&addon.releaseNotes.label;"/>
- <xul:label anonid="relnotes-loading" value="&addon.loadingReleaseNotes.label;"/>
- <xul:label anonid="relnotes-error" hidden="true"
- value="&addon.errorLoadingReleaseNotes.label;"/>
- <xul:vbox anonid="relnotes" class="relnotes"/>
- </xul:vbox>
- <xul:hbox pack="start">
- <xul:button anonid="relnotes-toggle-btn" class="relnotes-toggle"
- hidden="true" label="&cmd.showReleaseNotes.label;"
- tooltiptext="&cmd.showReleaseNotes.tooltip;"
- showlabel="&cmd.showReleaseNotes.label;"
- showtooltip="&cmd.showReleaseNotes.tooltip;"
- hidelabel="&cmd.hideReleaseNotes.label;"
- hidetooltip="&cmd.hideReleaseNotes.tooltip;"
- oncommand="document.getBindingParent(this).toggleReleaseNotes();"/>
- </xul:hbox>
- </xul:vbox>
-
- <xul:vbox>
- <xul:hbox class="status-container" pack="end">
- <xul:hbox anonid="checking-update" hidden="true">
- <xul:image class="spinner"/>
- <xul:label value="&addon.checkingForUpdates.label;"/>
- </xul:hbox>
- <xul:vbox anonid="update-available" class="update-available"
- hidden="true" align="end">
- <xul:checkbox anonid="include-update" class="include-update"
- label="&addon.includeUpdate.label;" checked="true"
- oncommand="document.getBindingParent(this).onIncludeUpdateChanged();"/>
- <xul:hbox align="center">
-
- <xul:label class="update-available-notice"
- value="&addon.updateAvailable.label;"/>
- <xul:button anonid="update-btn" class="addon-control update"
- label="&addon.updateNow.label;"
- tooltiptext="&addon.updateNow.tooltip;"
- oncommand="document.getBindingParent(this).upgrade();"/>
- </xul:hbox>
- </xul:vbox>
- <xul:hbox anonid="install-status" class="install-status"
- hidden="true"/>
- </xul:hbox>
- <xul:hbox anonid="control-container" class="control-container"
- pack="end">
- <xul:button anonid="preferences-btn"
- class="addon-control preferences"
- label="&cmd.showPreferencesWin.label;"
- tooltiptext="&cmd.showPreferencesWin.tooltip;"
- oncommand="document.getBindingParent(this).showPreferences();"/>
- <xul:button anonid="enable-btn" class="addon-control enable"
- label="&cmd.enableAddon.label;"
- oncommand="document.getBindingParent(this).userDisabled = false;"/>
-
- <xul:button anonid="disable-btn" class="addon-control disable"
- label="&cmd.disableAddon.label;"
- oncommand="document.getBindingParent(this).userDisabled = true;"/>
- <xul:button anonid="remove-btn" class="addon-control remove"
- label="&cmd.uninstallAddon.label;"
- oncommand="document.getBindingParent(this).uninstall();"/>
- </xul:hbox>
- </xul:vbox>
- </xul:hbox>
- </xul:vbox>
- </xul:hbox>
- </content>
-
- <!-- Datum im kurzen Format ohne Tag am Anfang -->
- <implementation>
- <method name="_updateDates">
- <body><![CDATA[
- function formatDate(aDate) {
- return Cc["@mozilla.org/intl/scriptabledateformat;1"]
- .getService(Ci.nsIScriptableDateFormat)
- .FormatDate("",
- Ci.nsIScriptableDateFormat.dateFormatShort,
- aDate.getFullYear(),
- aDate.getMonth() + 1,
- aDate.getDate()
- );
- }
-
- if (this.mAddon.updateDate)
- this._dateUpdated.value = formatDate(this.mAddon.updateDate);
- else
- this._dateUpdated.value = this._dateUpdated.getAttribute("unknown");
- ]]>
- </body>
- </method>
-
- <method name="showInDetailView">
- <parameter name="aEvent"/>
- <body><![CDATA[
- if(this.getAttribute("aiosOpenPrefs")) this.removeAttribute("aiosOpenPrefs");
- else gViewController.loadView("addons://detail/" + encodeURIComponent(this.mAddon.id));
- ]]>
- </body>
- </method>
- </implementation>
-
- <handlers>
- <handler event="click" button="0"><![CDATA[
- switch (event.detail) {
- case 2:
- this.setAttribute("aiosOpenPrefs", true);
- this.showPreferences();
- break;
- }
- ]]>
- </handler>
- </handlers>
-
- </binding>
-
-
- <binding id="textlink" extends="chrome://global/content/bindings/text.xml#text-link">
-
- <implementation implements="nsIAccessibleProvider">
- <method name="open">
- <parameter name="aEvent"/>
- <body>
- <![CDATA[
- top.gBrowser.loadOneTab(this.href);
- aEvent.preventDefault();
- ]]>
- </body>
- </method>
- </implementation>
-
- </binding>
-
-</bindings>
\ No newline at end of file
diff --git a/skin/css/addons.css b/skin/css/addons.css
index 49e676c..1266739 100644
--- a/skin/css/addons.css
+++ b/skin/css/addons.css
@@ -1 +1 @@
-page[aios-inSidebar]{padding:0}page[aios-inSidebar]>hbox{-moz-box-orient:vertical}page[aios-inSidebar] #categories{margin:0;padding:1px 1px 0 1px}page[aios-inSidebar] .category,page[aios-inSidebar] .category:not([disabled]){height:auto;margin:0 1px 1px 0;padding:2px}page[aios-inSidebar] .category-icon{margin:0}page[aios-inSidebar] #category-search[disabled="true"],page[aios-inSidebar] #category-availableUpdates[disabled="true"],page[aios-inSidebar] #category-recentUpdates[disabled="true" [...]
\ No newline at end of file
+page[aios-inSidebar]{padding:0}page[aios-inSidebar]>hbox{-moz-box-orient:vertical}page[aios-inSidebar] #categories{margin:0;padding:1px 1px 0 1px}page[aios-inSidebar] .category,page[aios-inSidebar] .category:not([disabled]){height:auto;margin:0 1px 1px 0;padding:2px}page[aios-inSidebar] .category-icon{margin:0}page[aios-inSidebar] #category-search[disabled="true"],page[aios-inSidebar] #category-availableUpdates[disabled="true"],page[aios-inSidebar] #category-recentUpdates[disabled="true" [...]
\ No newline at end of file
diff --git a/skin/less/addons.less b/skin/less/addons.less
index 36990e6..91df33c 100644
--- a/skin/less/addons.less
+++ b/skin/less/addons.less
@@ -86,10 +86,6 @@ page[aios-inSidebar] {
margin: 0;
padding: 0;
}
-
- #view-port richlistbox richlistitem {
- -moz-binding: url("chrome://aios/content/addons.xml#richlistitem");
- }
/* @end */
@@ -238,11 +234,6 @@ page[aios-inSidebar] {
/* @group Detail-Ansicht */
#detail-view {
-
- .text-link {
- -moz-binding: url("chrome://aios/content/addons.xml#textlink");
- }
-
vbox {
font-size: 1em;
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/all-in-one-sidebar.git
More information about the Pkg-mozext-commits
mailing list