Compare commits

..

3 Commits
3.9.2 ... 3.8.2

Author SHA1 Message Date
Giovanni Campagna
3c100c393a Bump version to 3.8.2
To go along GNOME Shell 3.8.2
2013-05-14 07:16:36 +02:00
Florian Müllner
2e1856ab34 window-list: Make bottom panel taller in classic mode
Consider additional borders in classic styling for the panel height.

https://bugzilla.gnome.org/show_bug.cgi?id=698169
2013-05-13 22:02:27 +02:00
Florian Müllner
0861745de4 window-list: Use notify::n-workspaces to recreate workspace menu
When the number of workspaces changes, we clear the existing menu
and recreate it based on the screen::n-workspaces property, so it
is slightly more correct to track changes to the property directly
instead of using the workspace-added/workspace-removed signals.
This change also fixes a corner case, where changes to the property
before workspaces are initialized are missed and we end up with the
wrong number of workspaces.

https://bugzilla.gnome.org/show_bug.cgi?id=699350
2013-04-30 21:54:54 +02:00
27 changed files with 55 additions and 98 deletions

15
NEWS
View File

@@ -1,16 +1,7 @@
3.9.2
3.8.2
=====
* apps-menu: appearance of the scrollbars was improved
* window-list is a little taller in classic mode (to account
for the workspace switcher)
* alternative-status-menu honors again the dconf configuration
* translation updates (sr)
3.9.1
=====
* updates to window-list, xrandr-indicator,
workspace-indicator, windowsNavigator for gnome-shell
changes
* window-list: fix styling in classic mode
* window-list: code cleanups
* translation updates (cs, es, lt, pl, pt_BR, sl)
3.8.1

View File

@@ -1,5 +1,5 @@
AC_PREREQ(2.63)
AC_INIT([gnome-shell-extensions],[3.9.2],[https://bugzilla.gnome.org/enter_bug.cgi?product=gnome-shell&component=extensions])
AC_INIT([gnome-shell-extensions],[3.8.2],[https://bugzilla.gnome.org/enter_bug.cgi?product=gnome-shell&component=extensions])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_AUX_DIR([config])

View File

@@ -4,7 +4,7 @@
"settings-schema": "@gschemaname@",
"gettext-domain": "@gettext_domain@",
"name": "AlternateTab",
"description": "Substitute Alt-Tab with a window based switcher that does not group by application.\nThis extension is part of Classic Mode and is officially supported by GNOME. Please do not report bugs using the form below, use GNOME Bugzilla instead.",
"description": "A replacement for Alt-Tab, allows to cycle between windows and does not group by application",
"original-authors": [ "jw@bargsten.org", "thomas.bouffon@gmail.com" ],
"shell-version": [ "@shell_current@" ],
"url": "@url@"

View File

@@ -76,8 +76,8 @@ function statusMenu_updateHaveHibernate() {
function statusMenu_updateSuspendOrPowerOff() {
this._suspendOrPowerOffItem.actor.hide();
extension.suspendItem.actor.visible = this._haveSuspend && extension.settings.get_boolean('allow-suspend');
extension.hibernateItem.actor.visible = this._haveHibernate && extension.settings.get_boolean('allow-hibernate');
extension.suspendItem.actor.visible = this._haveSuspend;
extension.hibernateItem.actor.visible = this._haveHibernate;
extension.powerOffItem.actor.visible = this._haveShutdown;
}
@@ -104,7 +104,7 @@ const Extension = new Lang.Class({
this.powerOffItem = null;
Convenience.initTranslations();
this.settings = Convenience.getSettings();
this._settings = Convenience.getSettings();
},
enable: function() {
@@ -145,7 +145,7 @@ const Extension = new Lang.Class({
this._previousUpdateSuspendOrPowerOff = statusMenu._updateSuspendOrPowerOff;
statusMenu._updateSuspendOrPowerOff = statusMenu_updateSuspendOrPowerOff;
this._settingsChangedId = this.settings.connect('changed', function() {
this._settingsChangedId = this._settings.connect('changed', function() {
statusMenu._updateSuspendOrPowerOff();
});
},
@@ -158,7 +158,7 @@ const Extension = new Lang.Class({
this.powerOffItem.destroy();
statusMenu.menu.disconnect(this._openStateChangedId);
this.settings.disconnect(this._settingsChangedId);
this._settings.disconnect(this._settingsChangedId);
statusMenu._updateSuspendOrPowerOff = this._previousUpdateSuspendOrPowerOff;
statusMenu._updateSuspendOrPowerOff();

View File

@@ -4,7 +4,7 @@
"settings-schema": "@gschemaname@",
"gettext-domain": "@gettext_domain@",
"name": "Alternative Status Menu",
"description": "Replaces GNOME Shell Status Menu with one showing Suspend/Hibernate and Power Off as separate items.",
"description": "Replaces GNOME Shell Status Menu with one showing Suspend/Hibernate and Power Off as separate items",
"shell-version": [ "@shell_current@" ],
"url": "@url@"
}

View File

@@ -424,7 +424,7 @@ const ApplicationsButton = new Lang.Class({
this.leftBox = new St.BoxLayout({ vertical: true });
this.applicationsScrollBox = new St.ScrollView({ x_fill: true, y_fill: false,
y_align: St.Align.START,
style_class: 'apps-menu vfade' });
style_class: 'vfade' });
this.applicationsScrollBox.set_policy(Gtk.PolicyType.NEVER, Gtk.PolicyType.AUTOMATIC);
let vscroll = this.applicationsScrollBox.get_vscroll_bar();
vscroll.connect('scroll-start', Lang.bind(this, function() {

View File

@@ -3,7 +3,7 @@
"uuid": "@uuid@",
"gettext-domain": "@gettext_domain@",
"name": "Applications Menu",
"description": "Add a category-based menu for applications.\nThis extension is part of Classic Mode and is officially supported by GNOME. Please do not report bugs using the form below, use GNOME Bugzilla instead.",
"description": "Add a gnome 2.x style menu for applications",
"original-authors": [ "e2002@bk.ru", "debarshir@gnome.org" ],
"shell-version": [ "@shell_current@" ],
"url": "@url@"

View File

@@ -1,7 +1 @@
.apps-menu:ltr {
padding-right: 3px;
}
.apps-menu:rtl {
padding-left: 3px;
}
/* none used*/

View File

@@ -4,7 +4,7 @@
"settings-schema": "@gschemaname@",
"gettext-domain": "@gettext_domain@",
"name": "Auto Move Windows",
"description": "Move applications to specific workspaces when they create windows.",
"description": "Move applications to specific workspaces when they create windows",
"shell-version": [ "@shell_current@" ],
"original-authors": [ "alessandro.crismani@gmail.com", "thomas.bouffon@gmail.com" ],
"url": "@url@"

View File

@@ -4,7 +4,7 @@
"settings-schema": "@gschemaname@",
"gettext-domain": "@gettext_domain@",
"name": "Default Minimize and Maximize",
"description": "Adds minimize and maximize buttons to the titlebar by default.\nThis extension is part of Classic Mode and is officially supported by GNOME. Please do not report bugs using the form below, use GNOME Bugzilla instead.",
"description": "Adds minimize and maximize buttons to the titlebar by default",
"original-authors": [ "debarshir@gnome.org" ],
"shell-version": [ "@shell_current@" ],
"url": "@url@"

View File

@@ -4,7 +4,7 @@
"settings-schema": "@gschemaname@",
"gettext-domain": "@gettext_domain@",
"name": "Removable Drive Menu",
"description": "A status menu for accessing and unmounting removable devices.",
"description": "A status menu for accessing and unmounting removable devices",
"shell-version": [ "@shell_current@" ],
"url": "@url@"
}

View File

@@ -4,7 +4,7 @@
"settings-schema": "@gschemaname@",
"gettext-domain": "@gettext_domain@",
"name": "Launch new instance",
"description": "Always launch a new instance when clicking in the dash or the application view.\nThis extension is part of Classic Mode and is officially supported by GNOME. Please do not report bugs using the form below, use GNOME Bugzilla instead.",
"description": "Always launch a new instance",
"shell-version": [ "@shell_current@" ],
"url": "@url@"
}

View File

@@ -4,7 +4,7 @@
"settings-schema": "@gschemaname@",
"gettext-domain": "@gettext_domain@",
"name": "Native Window Placement",
"description": "Arrange windows in overview in a more compact way.",
"description": "Arrange windows in overview in a more native way",
"shell-version": [ "@shell_current@" ],
"url": "@url@",
"original-authors": [ "wepmaschda@gmx.de" ]

View File

@@ -4,7 +4,7 @@
"settings-schema": "@gschemaname@",
"gettext-domain": "@gettext_domain@",
"name": "Places Status Indicator",
"description": "Add a menu for quickly navigating places in the system.\nThis extension is part of Classic Mode and is officially supported by GNOME. Please do not report bugs using the form below, use GNOME Bugzilla instead.",
"description": "Add a systems status menu for quickly navigating places in the system",
"shell-version": [ "@shell_current@" ],
"url": "@url@"
}

View File

@@ -4,7 +4,7 @@
"settings-schema": "@gschemaname@",
"gettext-domain": "@gettext_domain@",
"name": "Static workspaces",
"description": "Disable dynamic workspace management.\nThis extension is part of Classic Mode and is officially supported by GNOME. Please do not report bugs using the form below, use GNOME Bugzilla instead.",
"description": "Disable dynamic workspace management",
"original-authors": [ "fmuellner@gnome.org" ],
"shell-version": [ "@shell_current@" ],
"url": "@url@"

View File

@@ -6,6 +6,6 @@
"gettext-domain": "@gettext_domain@",
"original-author": "zaspire@rambler.ru",
"name": "SystemMonitor",
"description": "System monitor showing CPU and memory usage in the message tray.",
"description": "System Monitor",
"url": "@url@"
}

View File

@@ -4,7 +4,7 @@
"settings-schema": "@gschemaname@",
"gettext-domain": "@gettext_domain@",
"name": "User Themes",
"description": "Load shell themes from user directory.",
"description": "Load shell themes from user directory",
"shell-version": [ "@shell_current@" ],
"original-authors": [ "john.stowers@gmail.com" ],
"url": "@url@"

View File

@@ -413,9 +413,9 @@ const WorkspaceIndicator = new Lang.Class({
},
_updateIndicator: function() {
this.workspacesItems[this._currentWorkspace].setOrnament(PopupMenu.Ornament.NONE);
this.workspacesItems[this._currentWorkspace].setShowDot(false);
this._currentWorkspace = global.screen.get_active_workspace().index();
this.workspacesItems[this._currentWorkspace].setOrnament(PopupMenu.Ornament.DOT);
this.workspacesItems[this._currentWorkspace].setShowDot(true);
this.statusLabel.set_text(this._getStatusText());
},
@@ -442,7 +442,7 @@ const WorkspaceIndicator = new Lang.Class({
}));
if (i == this._currentWorkspace)
item.setOrnament(PopupMenu.Ornament.DOT);
item.setShowDot(true);
this.menu.addMenuItem(item);
this.workspacesItems[i] = item;

View File

@@ -4,7 +4,7 @@
"settings-schema": "@gschemaname@",
"gettext-domain": "@gettext_domain@",
"name": "Window List",
"description": "Display a window list at the bottom of the screen.\nThis extension is part of Classic Mode and is officially supported by GNOME. Please do not report bugs using the form below, use GNOME Bugzilla instead.",
"description": "Display a window list at the bottom of the screen",
"shell-version": [ "@shell_current@" ],
"url": "@url@"
}

View File

@@ -47,23 +47,11 @@ function enable() {
winInjections['hideTooltip'] = undefined;
Workspace.Workspace.prototype.showTooltip = function() {
if (this._tip == null || this._actualGeometry == null)
if (this._tip == null)
return;
this._tip.text = (this.metaWorkspace.index() + 1).toString();
// Hand code this instead of using _getSpacingAndPadding
// because that fails on empty workspaces
let node = this.actor.get_theme_node();
let padding = {
left: node.get_padding(St.Side.LEFT),
top: node.get_padding(St.Side.TOP),
bottom: node.get_padding(St.Side.BOTTOM),
right: node.get_padding(St.Side.RIGHT),
};
let area = Workspace.padArea(this._actualGeometry, padding);
this._tip.x = area.x;
this._tip.y = area.y;
this._tip.x = this._x;
this._tip.y = this._y;
this._tip.show();
this._tip.raise_top();
}

View File

@@ -6,6 +6,6 @@
"gettext-domain": "@gettext_domain@",
"original-author": "zaspire@rambler.ru",
"name": "windowNavigator",
"description": "Allow keyboard selection of windows and workspaces in overlay mode. <Ctrl>number selects a workspace, and <Alt>number selects a window.",
"description": "Allow keyboard selection of windows and workspaces in overlay mode",
"url": "@url@"
}

View File

@@ -66,9 +66,9 @@ const WorkspaceIndicator = new Lang.Class({
},
_updateIndicator: function() {
this.workspacesItems[this._currentWorkspace].setOrnament(PopupMenu.Ornament.NONE);
this.workspacesItems[this._currentWorkspace].setShowDot(false);
this._currentWorkspace = global.screen.get_active_workspace().index();
this.workspacesItems[this._currentWorkspace].setOrnament(PopupMenu.Ornament.DOT);
this.workspacesItems[this._currentWorkspace].setShowDot(true);
this.statusLabel.set_text(this._labelText());
},
@@ -98,7 +98,7 @@ const WorkspaceIndicator = new Lang.Class({
}));
if (i == this._currentWorkspace)
this.workspacesItems[i].setOrnament(PopupMenu.Ornament.DOT);
this.workspacesItems[i].setShowDot(true);
}
this.statusLabel.set_text(this._labelText());

View File

@@ -4,7 +4,7 @@
"settings-schema": "@gschemaname@",
"gettext-domain": "@gettext_domain@",
"name": "Workspace Indicator",
"description": "Put an indicator on the panel signaling in which workspace you are, and give you the possibility of switching to another one.",
"description": "Put an indicator on the panel signaling in which workspace you are, and give you the possibility of switching to another one",
"shell-version": [ "@shell_current@" ],
"original-authors": [ "erick.red@gmail.com" ],
"url": "@url@"

View File

@@ -94,7 +94,7 @@ const Indicator = new Lang.Class({
if (bitmask & allowedRotations) {
let item = new PopupMenu.PopupMenuItem(Gettext.gettext(name));
if (bitmask & currentRotation)
item.setOrnament(PopupMenu.Ornament.DOT);
item.setShowDot(true);
item.connect('activate', Lang.bind(this, function(item, event) {
/* ensure config is saved so we get a backup if anything goes wrong */
config.save();

View File

@@ -4,7 +4,7 @@
"settings-schema": "@gschemaname@",
"gettext-domain": "@gettext_domain@",
"name": "Monitor Status Indicator",
"description": "Add a system status menu for rotating monitors.",
"description": "Add a systems status menu for rotating monitors (overrides what is currently provided by gnome-settings-daemon)",
"shell-version": [ "@shell_current@" ],
"url": "@url@"
}

View File

@@ -8,16 +8,16 @@ msgstr ""
"Project-Id-Version: gnome-shell-extensions master\n"
"Report-Msgid-Bugs-To: http://bugzilla.gnome.org/enter_bug.cgi?product=gnome-"
"shell&keywords=I18N+L10N&component=extensions\n"
"POT-Creation-Date: 2013-04-19 19:12+0000\n"
"PO-Revision-Date: 2013-05-14 18:48+0200\n"
"POT-Creation-Date: 2013-02-20 11:19+0000\n"
"PO-Revision-Date: 2013-02-20 12:19+0200\n"
"Last-Translator: Мирослав Николић <miroslavnikolic@rocketmail.com>\n"
"Language-Team: Serbian <gnom@prevod.org>\n"
"Language: sr\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=4; plural=n==1? 3 : n%10==1 && n%100!=11 ? 0 : "
"n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n"
"Plural-Forms: nplurals=4; plural=n==1? 3 : n%10==1 && n%100!=11 ? 0 : n"
"%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n"
"X-Project-Style: gnome\n"
#: ../data/gnome-classic.desktop.in.h:1
@@ -86,15 +86,15 @@ msgstr "Укључује замрзавање"
msgid "Control the visibility of the Hibernate menu item"
msgstr "Управља видљивошћу ставке изборника замрзавања"
#: ../extensions/apps-menu/extension.js:39
#: ../extensions/apps-menu/extension.js:37
msgid "Activities Overview"
msgstr "Преглед активности"
#: ../extensions/apps-menu/extension.js:113
#: ../extensions/apps-menu/extension.js:95
msgid "Favorites"
msgstr "Омиљено"
#: ../extensions/apps-menu/extension.js:278
#: ../extensions/apps-menu/extension.js:189
msgid "Applications"
msgstr "Програми"
@@ -246,16 +246,12 @@ msgid "When to group windows"
msgstr "Када груписати прозоре"
#: ../extensions/window-list/org.gnome.shell.extensions.window-list.gschema.xml.in.h:2
#| msgid ""
#| "Decides when to group windows from the same application on the window "
#| "list. Possible values are \"never\" and \"always\"."
msgid ""
"Decides when to group windows from the same application on the window list. "
"Possible values are \"never\", \"auto\" and \"always\"."
"Possible values are \"never\" and \"always\"."
msgstr ""
"Одређује када ће бити груписани прозори истог програма у списку прозора. "
"Дозвољене вредности су „never“ (никад), „auto“ (аутоматски) и „always“ "
"(увек)."
"Дозвољене вредности су „never“ (никад) и „always“ (увек)."
#: ../extensions/window-list/prefs.js:30
msgid "Window Grouping"
@@ -266,10 +262,6 @@ msgid "Never group windows"
msgstr "Никад не групиши прозоре"
#: ../extensions/window-list/prefs.js:50
msgid "Group windows when space is limited"
msgstr "Групиши прозоре када је простор ограничен"
#: ../extensions/window-list/prefs.js:51
msgid "Always group windows"
msgstr "Увек групиши прозоре"

View File

@@ -8,16 +8,16 @@ msgstr ""
"Project-Id-Version: gnome-shell-extensions master\n"
"Report-Msgid-Bugs-To: http://bugzilla.gnome.org/enter_bug.cgi?product=gnome-"
"shell&keywords=I18N+L10N&component=extensions\n"
"POT-Creation-Date: 2013-04-19 19:12+0000\n"
"PO-Revision-Date: 2013-05-14 18:48+0200\n"
"POT-Creation-Date: 2013-02-20 11:19+0000\n"
"PO-Revision-Date: 2013-02-20 12:19+0200\n"
"Last-Translator: Miroslav Nikolić <miroslavnikolic@rocketmail.com>\n"
"Language-Team: Serbian <gnom@prevod.org>\n"
"Language: sr\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=4; plural=n==1? 3 : n%10==1 && n%100!=11 ? 0 : "
"n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n"
"Plural-Forms: nplurals=4; plural=n==1? 3 : n%10==1 && n%100!=11 ? 0 : n"
"%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n"
"X-Project-Style: gnome\n"
#: ../data/gnome-classic.desktop.in.h:1
@@ -86,15 +86,15 @@ msgstr "Uključuje zamrzavanje"
msgid "Control the visibility of the Hibernate menu item"
msgstr "Upravlja vidljivošću stavke izbornika zamrzavanja"
#: ../extensions/apps-menu/extension.js:39
#: ../extensions/apps-menu/extension.js:37
msgid "Activities Overview"
msgstr "Pregled aktivnosti"
#: ../extensions/apps-menu/extension.js:113
#: ../extensions/apps-menu/extension.js:95
msgid "Favorites"
msgstr "Omiljeno"
#: ../extensions/apps-menu/extension.js:278
#: ../extensions/apps-menu/extension.js:189
msgid "Applications"
msgstr "Programi"
@@ -246,16 +246,12 @@ msgid "When to group windows"
msgstr "Kada grupisati prozore"
#: ../extensions/window-list/org.gnome.shell.extensions.window-list.gschema.xml.in.h:2
#| msgid ""
#| "Decides when to group windows from the same application on the window "
#| "list. Possible values are \"never\" and \"always\"."
msgid ""
"Decides when to group windows from the same application on the window list. "
"Possible values are \"never\", \"auto\" and \"always\"."
"Possible values are \"never\" and \"always\"."
msgstr ""
"Određuje kada će biti grupisani prozori istog programa u spisku prozora. "
"Dozvoljene vrednosti su „never“ (nikad), „auto“ (automatski) i „always“ "
"(uvek)."
"Dozvoljene vrednosti su „never“ (nikad) i „always“ (uvek)."
#: ../extensions/window-list/prefs.js:30
msgid "Window Grouping"
@@ -266,10 +262,6 @@ msgid "Never group windows"
msgstr "Nikad ne grupiši prozore"
#: ../extensions/window-list/prefs.js:50
msgid "Group windows when space is limited"
msgstr "Grupiši prozore kada je prostor ograničen"
#: ../extensions/window-list/prefs.js:51
msgid "Always group windows"
msgstr "Uvek grupiši prozore"