Rename "OneBar" to "dash-to-panel"

This commit is contained in:
jderose9
2016-12-23 11:32:23 -05:00
parent eb3905d956
commit ad45f1003b
7 changed files with 56 additions and 29 deletions

4
.gitignore vendored
View File

@@ -1,7 +1,7 @@
.~
*~
gschemas.compiled
onebar@jderose9.github.com.zip
dash-to-panel@jderose9.github.com.zip
*.mo
po/onebar.pot
po/dash-to-panel.pot
Settings.ui.h

View File

@@ -1,6 +1,6 @@
# Basic Makefile
UUID = onebar@jderose9.github.com
UUID = dash-to-panel@jderose9.github.com
BASE_MODULES = extension.js stylesheet.css metadata.json COPYING README.md
EXTRA_MODULES = convenience.js taskbar.js secondaryMenu.js windowPreview.js prefs.js Settings.ui
#EXTRA_MEDIA = logo.svg
@@ -11,7 +11,7 @@ ifeq ($(strip $(DESTDIR)),)
else
INSTALLBASE = $(DESTDIR)/usr/share/gnome-shell/extensions
endif
INSTALLNAME = onebar@jderose9.github.com
INSTALLNAME = dash-to-panel@jderose9.github.com
# The command line passed variable VERSION is used to set the version string
# in the metadata and in the generated zip-file. If no VERSION is passed, the
@@ -31,21 +31,21 @@ clean:
extension: ./schemas/gschemas.compiled $(MSGSRC:.po=.mo)
./schemas/gschemas.compiled: ./schemas/org.gnome.shell.extensions.onebar.gschema.xml
./schemas/gschemas.compiled: ./schemas/org.gnome.shell.extensions.dash-to-panel.gschema.xml
glib-compile-schemas ./schemas/
potfile: ./po/onebar.pot
potfile: ./po/dash-to-panel.pot
mergepo: potfile
for l in $(MSGSRC); do \
msgmerge -U $$l ./po/onebar.pot; \
msgmerge -U $$l ./po/dash-to-panel.pot; \
done;
./po/onebar.pot: $(TOLOCALIZE) Settings.ui
./po/dash-to-panel.pot: $(TOLOCALIZE) Settings.ui
mkdir -p po
xgettext -k_ -kN_ -o po/onebar.pot --package-name "OneBar" $(TOLOCALIZE)
xgettext -k_ -kN_ -o po/dash-to-panel.pot --package-name "Dash To Panel" $(TOLOCALIZE)
intltool-extract --type=gettext/glade Settings.ui
xgettext -k_ -kN_ --join-existing -o po/onebar.pot Settings.ui.h
xgettext -k_ -kN_ --join-existing -o po/dash-to-panel.pot Settings.ui.h
./po/%.mo: ./po/%.po
msgfmt -c $< -o $@
@@ -79,6 +79,6 @@ _build: all
lf=_build/locale/`basename $$l .mo`; \
mkdir -p $$lf; \
mkdir -p $$lf/LC_MESSAGES; \
cp $$l $$lf/LC_MESSAGES/onebar.mo; \
cp $$l $$lf/LC_MESSAGES/dash-to-panel.mo; \
done;
sed -i 's/"version": -1/"version": "$(VERSION)"/' _build/metadata.json;

View File

@@ -1 +1,28 @@
# gnome-onebar
# Dash to Panel
Screenshot forthcoming.
## An icon-only taskbar for the GNOME Shell
An icon-only taskbar for the Gnome Shell. This extension moves the dash into the gnome main panel (top bar) to behave as an icon-only task manager similar to that found in KDE Plasma and Windows 7+.
## Installation from source
The extension can be installed directly from source, either for the convenience of using git or to test the latest development version. Clone the desired branch with git
<pre>git clone https://github.com/jderose9/dash-to-panel.git</pre>
or download the branch from github. A simple Makefile is included. Then run
<pre>make
make install
</pre>
to install the extension in your home directory. A Shell reload is required <code>Alt+F2 r Enter</code> and the extension has to be enabled with *gnome-tweak-tool* or with *dconf*.
## Bug Reporting
Bugs should be reported to the Github bug tracker [https://github.com/jderose9/dash-to-panel/issues](https://github.com/jderose9/dash-to-panel/issues).
## License
Dash to Panel Gnome Shell extension is distributed under the terms of the GNU General Public License,
version 2 or later. See the COPYING file for details.
## Credits
The bulk of the code in this extension comes from [Dash-to-Dock](https://micheleg.github.io/dash-to-dock/index.html).
This extension leverages the work for [ZorinOS Taskbar](https://github.com/ZorinOS/zorin-taskbar) used in [ZorinOS](https://zorinos.com/) to allow the dash from [Dash-to-Dock](https://micheleg.github.io/dash-to-dock/index.html) to be embedded in the Gnome main panel.

View File

@@ -50,7 +50,7 @@ function init() {
}
function enable() {
settings = Convenience.getSettings('org.gnome.shell.extensions.onebar');
settings = Convenience.getSettings('org.gnome.shell.extensions.dash-to-panel');
panel = Main.panel;
container = panel._leftBox;
appMenu = panel.statusArea['appMenu'];

View File

@@ -1,9 +1,9 @@
{
"extension-id": "onebar",
"uuid": "onebar@jderose9.github.com",
"name": "OneBar",
"description": "Win7 style taskbar",
"extension-id": "dash-to-panel",
"uuid": "dash-to-panel@jderose9.github.com",
"name": "Dash to Panel",
"description": "An icon-only taskbar for the Gnome Shell. This extension moves the dash into the gnome main panel (top bar) to behave as an icon-only task manager similar to that found in KDE Plasma and Windows 7+.",
"shell-version": [ "3.20", "3.22" ],
"url": "https://github.com/jderose9/onebar",
"gettext-domain": "onebar"
"url": "https://github.com/jderose9/dash-to-panel",
"gettext-domain": "dash-to-panel"
}

View File

@@ -28,7 +28,7 @@ const Gdk = imports.gi.Gdk;
const Lang = imports.lang;
const Mainloop = imports.mainloop;
const Gettext = imports.gettext.domain('onebar');
const Gettext = imports.gettext.domain('dash-to-panel');
const _ = Gettext.gettext;
const N_ = function(e) { return e };
@@ -42,7 +42,7 @@ const Settings = new Lang.Class({
Name: 'TaskBar.Settings',
_init: function() {
this._settings = Convenience.getSettings('org.gnome.shell.extensions.onebar');
this._settings = Convenience.getSettings('org.gnome.shell.extensions.dash-to-panel');
this._rtl = (Gtk.Widget.get_default_direction() == Gtk.TextDirection.RTL);

View File

@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<schemalist gettext-domain="gnome-shell-extensions">
<enum id='org.gnome.shell.extensions.onebar.clickAction'>
<enum id='org.gnome.shell.extensions.dash-to-panel.clickAction'>
<value value='0' nick='skip'/>
<value value='1' nick='minimize'/>
<value value='2' nick='launch'/>
@@ -9,12 +9,12 @@
</enum>
<!-- this is mean to Match StSide. LEFT and RIGHT actual position in reversed in
rtl languages -->
<enum id='org.gnome.shell.extensions.onebar.position'>
<enum id='org.gnome.shell.extensions.dash-to-panel.position'>
<value value='0' nick='BOTTOM'/>
<value value='1' nick='TOP'/>
</enum>
<schema path="/org/gnome/shell/extensions/onebar/" id="org.gnome.shell.extensions.onebar">
<key name="panel-position" enum="org.gnome.shell.extensions.onebar.position">
<schema path="/org/gnome/shell/extensions/dash-to-panel/" id="org.gnome.shell.extensions.dash-to-panel">
<key name="panel-position" enum="org.gnome.shell.extensions.dash-to-panel.position">
<default>'BOTTOM'</default>
<summary>Panel position</summary>
<description>Panel is shown on the Bottom or Top of the screen.</description>
@@ -52,22 +52,22 @@
<default>true</default>
<summary>Activate only one window</summary>
</key>
<key name="click-action" enum="org.gnome.shell.extensions.onebar.clickAction">
<key name="click-action" enum="org.gnome.shell.extensions.dash-to-panel.clickAction">
<default>'cycle-windows'</default>
<summary>Action when clicking on a running app</summary>
<description>Set the action that is executed when clicking on the icon of a running application</description>
</key>
<key name="shift-click-action" enum="org.gnome.shell.extensions.onebar.clickAction">
<key name="shift-click-action" enum="org.gnome.shell.extensions.dash-to-panel.clickAction">
<default>'minimize'</default>
<summary>Action when shit+clicking on a running app</summary>
<description>Set the action that is executed when shift+clicking on the icon of a running application</description>
</key>
<key name="middle-click-action" enum="org.gnome.shell.extensions.onebar.clickAction">
<key name="middle-click-action" enum="org.gnome.shell.extensions.dash-to-panel.clickAction">
<default>'launch'</default>
<summary>Action when clicking on a running app</summary>
<description>Set the action that is executed when middle-clicking on the icon of a running application</description>
</key>
<key name="shift-middle-click-action" enum="org.gnome.shell.extensions.onebar.clickAction">
<key name="shift-middle-click-action" enum="org.gnome.shell.extensions.dash-to-panel.clickAction">
<default>'launch'</default>
<summary>Action when clicking on a running app</summary>
<description>Set the action that is executed when shift+middle-clicking on the icon of a running application</description>