Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gnome3.4 #6

Merged
merged 5 commits into from
Sep 4, 2012
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,20 @@ Supports custom button layouts and css theming!

<table>
<tr>
<td><img src="https://github.com/mathematicalcoffee/Gnome-Shell-Window-Buttons-Extension/raw/master/screenshot.png" alt="Screenshot" /></td>
<td><img src="https://raw.github.com/cfclavijo/Gnome-Shell-Window-Buttons-Extension/gnome3.4/screenshot.png" alt="Screenshot" /></td>
</tr>
<tr>
<td>Current (14/Aug/2012) themes, top-to-bottom: default, Ambiance, Radiance, Zukwito, Zukwito-Dark</td>
<td>Current (31/Aug/2012) themes, top-to-bottom: default, Ambiance, Ambiance-Blue, Radiance, Zukwito, Zukwito-Dark</td>
</tr>
</table>

Configure with `gnome-shell-extension-prefs` (GNOME 3.4) or by editing `extension.js` (GNOME 3.2).

Author: biox (Josiah Messiah)
Maintainer: mathematical.coffee <mathematical.coffee@gmail.com>
Maintainers: mathematical.coffee <mathematical.coffee@gmail.com>
arkan duthrey <arkan1313@gmail.com>

Note - the [mathematicalcoffee fork](https://github.com/mathematicalcoffee/Gnome-Shell-Window-Buttons-Extension) of this extension is where development happens, and it all then gets pushed to the original [biox repository](https://github.com/biox/Gnome-Shell-Window-Buttons-Extension).
Note - This is a fork of the original repository, hopefully later on I'll push my changes to [biox repository](https://github.com/biox/Gnome-Shell-Window-Buttons-Extension)

Installation
------------
Expand Down
Binary file modified screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions window_buttons@biox.github.com/extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,11 @@ WindowButtons.prototype = {
break;
}

// if overview is active won't show the buttons
if(Main.overview.visible){
show = false;
}

// if the actors already match `show` don't do anything.
if (show === this.leftActor.visible &&
show === this.rightActor.visible) {
Expand Down Expand Up @@ -530,6 +535,9 @@ WindowButtons.prototype = {
_connectSignals: function () {
let showbuttons = this._settings.get_enum(WA_SHOWBUTTONS);

this.overviewShowing = Main.overview.connect('shown', Lang.bind(this, this._windowChanged));
this.overviewHiding = Main.overview.connect('hidden', Lang.bind(this, this._windowChanged));

// if we are always showing the buttons then we don't have to listen
// to window events
if (showbuttons === ShowButtonsWhen.ALWAYS) {
Expand Down Expand Up @@ -582,6 +590,9 @@ WindowButtons.prototype = {
},

_disconnectSignals: function () {
Main.overview.disconnect(this.overviewShowing);
Main.overview.disconnect(this.overviewHiding);

if (this._windowTrackerSignal) {
Shell.WindowTracker.get_default().disconnect(this._windowTrackerSignal);
}
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
46 changes: 46 additions & 0 deletions window_buttons@biox.github.com/themes/Ambiance-Blue/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
.box-bin { }

.button-box {
spacing: 2px;
}

.window-button {
width: 19px;
height: 24px;
}

.minimize {
background-image: url("minimize_focused_normal.png");
}

.minimize:hover {
background-image: url("minimize_focused_prelight.png");
}

.minimize:active {
background-image: url("minimize_focused_pressed.png");
}

.maximize {
background-image: url("maximize_focused_normal.png");
}

.maximize:hover {
background-image: url("maximize_focused_prelight.png");
}

.maximize:active {
background-image: url("maximize_focused_pressed.png");
}

.close {
background-image: url("close_focused_normal.png");
}

.close:hover {
background-image: url("close_focused_prelight.png");
}

.close:active {
background-image: url("close_focused_pressed.png");
}