Commit Graph

87 Commits

Author SHA1 Message Date
Giovanni Campagna
cb50830d26 native-window-placement: fix a bunch of typos related to disable()
This only appeared after testing. Plus we were missing init() also.
2011-08-22 22:50:44 +02:00
Giovanni Campagna
871049b9f2 xrandr-indicator: don't reference a non existing property
I was planning to add global.stage_xwindow, back when this was
written for core. Then this became an extension, but the reference
staid there.
We could use clutter_x11_get_stage_window(), if that wasn't marked
(skip). For now, let's just 0 (it is correct anyway, as we want
the dialog to be system modal)
2011-08-22 22:48:30 +02:00
Giovanni Campagna
2d82dcbafa example: log initialization, enabling and disabling
This way the example extension can be used for debugging the
extension system.
2011-08-18 19:38:54 +02:00
Giovanni Campagna
ba16a8e0d8 dock: update to new gnome-shell API
Main.chrome was replaced by Main.layoutManager, and main() was
replaced by init()
2011-08-18 19:38:10 +02:00
Giovanni Campagna
f0a19173c1 apps-menu: fix for live disable
There is no .destroy() method on SystemStatusButton. Instead we
need to destroy manually the icon and the menu.
Also add the missing init() function.
2011-08-18 19:37:14 +02:00
Giovanni Campagna
d7e13b4abd alternative-status-menu: fix for live disable
After recreating the menu, we need to update the visibility of
items affected by lockdown, and we need to update the presence
indicator.
2011-08-18 19:35:47 +02:00
Giovanni Campagna
61e62987fb windowsNavigator: port to new extension API
main() has been replaced by init(), enable() and disable()
2011-08-18 16:22:47 +02:00
Giovanni Campagna
f8e40f2dde native-window-placement: port to new extension API
main() has been replaced by init(), enable() and disable()
It should disable, but it is likely I overlooked something.
2011-08-18 16:22:45 +02:00
Giovanni Campagna
5f299e109b auto-move-windows: port to new extension API
main() has been replaced by init(), enable() and disable()
I'm not sure it actually disables, it should unless you have more
extensions messing with the same methods.
2011-08-18 16:20:49 +02:00
Giovanni Campagna
5d26fc2e71 Merge branch 'master' into extension-live-disable
Conflicts:
	extensions/apps-menu/extension.js
2011-08-18 15:36:50 +02:00
Giovanni Campagna
ab4436e728 various extensions: port to new ShellAppSystem API
shell_app_system_get_app() was renamed to lookup_app(), and
shell_app_activate() was renamed to shell_app_activate_full().
2011-08-17 13:55:27 +02:00
Giovanni Campagna
7e97c1440b apps-menu: adapt to gnome-shell API changes
When libgnome-menus became introspectable, ShellAppSystem was
modified to better adapt to GMenu. Adapt to those changes in the
extension as well.
2011-08-17 13:50:39 +02:00
Giovanni Campagna
1eb245c514 user-theme: port to new extension API
main() has been	replaced by init(), enable() and disable()
2011-08-02 23:35:37 +02:00
Giovanni Campagna
231e1f610a systemMonitor: port to new extension API
main() has been	replaced by init(), enable() and disable()
2011-08-02 23:33:58 +02:00
Giovanni Campagna
765905f5b8 gajim: port to new extension API
main() has been	replaced by init(), enable() and disable()
when disabling, all sources and notifications associated with gajim
contacts are automatically closed
2011-08-02 23:33:25 +02:00
Giovanni Campagna
aa38aa1e9e alternative-status-menu: port to new extension API
main() has been	replaced by init(), enable() and disable()
possibly not working, a better infrastructure for monkey patching
would be helpful
2011-08-02 23:32:51 +02:00
Giovanni Campagna
67dc01ea36 example: port to new extension API
main() has been	replaced by init(), enable() and disable()
2011-08-02 23:32:35 +02:00
Giovanni Campagna
e4c977146a alternate-tab: port to new extension API
main() has been	replaced by init(), enable() and disable()
at the same time, ensure that all keybindings are correctly taken
(even though alt-tab and alt-shift-tab have the same effect right
now)
2011-08-02 23:31:46 +02:00
Giovanni Campagna
1c4252720d dock: port to new extension API
main() has been replaced by init(), enable() and disable()
not sure if it works, could cause memory leaks if disabling, because
of uncollectable cycles
2011-08-02 23:30:38 +02:00
Giovanni Campagna
6a33fd077d apps-menu, places-menu, drive-menu: port to new extension API
main() has been replaced by init(), enable() and disable()
committing together as changes are very similar in nature
2011-08-02 23:29:27 +02:00
Giovanni Campagna
2732f6d2c2 workspace-indicator: port to new extension API
main() has been replaced by init(), enable() and disable()
2011-08-02 23:28:44 +02:00
Giovanni Campagna
5115abcf54 xrandr-indicator: port to new extension API
main() has been replaced by init(), enable() and disable()
2011-08-02 23:28:22 +02:00
Giovanni Campagna
0597577d08 xrandr-indicator: remove gjs version
Now that we require 3.1.4 shell (which itself requires a new enough
gjs), there is no point in asking for a specific gjs version.
2011-08-01 17:29:43 +02:00
Giovanni Campagna
fa4ac23a4d windowNavigator: fix workspace switching
Apparently, clutter_event_get_key_unicode() is not reliable for
numeric keys, and fails above 2. Let's use clutter_event_get_key_symbol()
and fix it.
2011-08-01 17:25:24 +02:00
Stefano Facchini
30ab8c5841 Tweak the workspace gaps in order to have a constant aspect ratio
https://bugzilla.gnome.org/show_bug.cgi?id=655432
2011-08-01 15:52:25 +02:00
Giovanni Campagna
23613f32c7 Fix mentions of shell_global_get_primary_monitor()
This method has been removed, and replaced by Main.layoutManager.primaryMonitor

Patch sent by Miguel Aguilar <zodiac_es@yahoo.es>
2011-08-01 15:45:40 +02:00
Giovanni Campagna
002b1b5d07 alternate-tab: more alternative implementations
Now alternate-tab shows a dialog on first usage, allowing to choose
between native behavior (app icons from all worskpaces), app icons
from current workspace only and window thumbnails only.

Patch written by Joachim Bargsten <dev@bargsten.org>
2011-08-01 15:38:28 +02:00
Giovanni Campagna
438bfe6b34 workspace-indicator: show a dot next to current workspace
In the menu, next to current workspace, show a dot, following the
pattern of other menus in the shell. Includes more whitespace
changes than I'd like.
2011-07-13 02:02:42 +02:00
Erick Pérez Castellanos
20094e43c5 New extension: workspace-indicator
This extension shows a menu in the status area that indicates
current workspace and allows for quick switching, similar to the
workspace-indicator applet in GNOME 2.
2011-07-13 01:29:03 +02:00
Giovanni Campagna
bbc00e5c3d dock: implement autohiding
Now it is possible to configure in GSettings if the dock should be
visible at all time or it should autohide when not needed. If
autohiding, it animates, and the effect is itself configurable, as
well as his duration.
Based on a patch by Miguel Aguilar <zodiac_es@yahoo.es>
2011-07-13 00:55:08 +02:00
Giovanni Campagna
dd4ccca358 Fix mentions of shell_global_get_primary_monitor()
This method has been removed from master, and replaced by
Main.layoutManager.primaryMonitor
2011-07-09 16:14:08 +02:00
Alessandro Crismani
9a8704203b AutoMoveWindows: show overview when the last window workspace is closed
Using the auto move window the overview is not shown when the last
window on the last workspace is closed, instead the workspace before is
activated. This differs from the core gnome-shell's behaviour. Fix the
extension to show the ovreview instead of changing workspace when the
last window is closed on the last workspace. The fix is basically merged
from gnome-shell master.

Summarizing, the behaviour is now:
- The last window is closed on any workspace but the last: do nothing
- The last window is closed on the last workspace: show the overview
  instead of switching to the "upper" workspace

https://bugzilla.gnome.org/show_bug.cgi?id=651586
2011-07-09 15:59:45 +02:00
Alessandro Crismani
68629ea7a6 Auto Move Windows: open overview when last window is closed
Using the auto move window the overview is not shown when the last
window on a workspace is closed, instead the workspace before is
activated. Fix the extension to show the ovreview instead of changing
workspace when the last window is closed. The fix is basically merged
from gnome-shell master.

https://bugzilla.gnome.org/show_bug.cgi?id=651586
2011-07-09 15:56:58 +02:00
malcolmlewis
048e29f3ed Fix zero-length warning for stylesheets
rpmlint emits a warning if you install a zero-lenght file. Fix that
by adding a comment in each empty file.

Signed-off-by: malcolmlewis <malcolmlewis@opensuse.org>

https://bugzilla.gnome.org/show_bug.cgi?id=654274
2011-07-09 15:06:01 +02:00
Giovanni Campagna
de173d0e1c Bump version to 3.1.3
To go with recently released GNOME Shell 3.1.3
Fixed gjs version and distcheck at the same time
2011-07-02 14:23:09 +02:00
Giovanni Campagna
939994d07d dock: fix showing in overview with gnome-shell master
Chrome module no longer updates the visibility of objects when
the overview is shown or hidden, so we need to do it ourselves.
2011-06-30 21:52:18 +02:00
Vamsi Krishna Brahmajosyula
bdbf44805d New Extension: applications menu on the panel 2011-05-31 22:03:34 +02:00
Giovanni Campagna
47b478df60 Revert "Add 3.0 to user-theme"
This reverts commit 60bc404d95.

master branch is for master gnome-shell, which is 3.0.1 and unstable.
gnome-3-0 branch is for stable shell, and has 3.0 for everything
which is supported by shell developers.
Next time, please ask me before committing.
2011-05-31 20:25:19 +02:00
John Stowers
60bc404d95 Add 3.0 to user-theme 2011-05-31 14:10:11 +12:00
Martin Dengler
72583b1bf6 fix undeclared file variable in user-theme/extension.js
Eliminates the warning message about assigning to an undeclared
variable when User Theme extension is used. Fixes BZ #651374.
2011-05-31 14:09:16 +12:00
Giovanni Campagna
63dd27c4f5 drive-menu: rework to use PlacesManager from the Shell
Rewrite to use similar code to that used by places-menu, and the
mounts shown by searching in the overview.
Should fix the issue in bug #650076 that prevented remounting the
drives after ejecting, and should be compatible with what Nautilus
does by default.
2011-05-23 23:25:02 +02:00
Marc Alcalà
41d9b71b26 Allow dock allows multiple positions in screen
Use GSettings to store configuration and make the dock position
customizabile. Currently, supported are left and right of the
primary monitor; more could be added in the future.

(Commit message edited by Giovanni Campagna)

https://bugzilla.gnome.org/show_bug.cgi?id=647394

Signed-off-by: Giovanni Campagna <gcampagna@src.gnome.org>
2011-05-23 22:42:07 +02:00
Giovanni Campagna
03660f45b1 drive-menu: do nothing if the drive is has no volume
If the drive is not partitioned, or the volume has not appeared yet,
return early from activate, to avoid an exception.
2011-05-12 19:40:52 +02:00
Giovanni Campagna
1a00ee38fe native-window-placement: make placement strategy a setting
Now it is possible to use GSettings to configure the placement
strategy (natural KDE-like or default grid) and whether to consolidate
the windows more tigthly, as well as the position of the window
captions.
2011-05-12 19:35:55 +02:00
Giovanni Campagna
2d1e3560b3 native-window-placement: update coding style and indentation
Mostly a whitespace patch, plus the removal of some commented out
code.
2011-05-12 18:58:30 +02:00
Giovanni Campagna
f24365520c New extension: native-window-placement
This extension employs an algorithm (taken from KDE) for layouting
the thumbnails in the overview that more closely reflects the positions
and relative sizes of the actual windows, instead of using a fixed
grid.
2011-05-12 18:42:53 +02:00
Giovanni Campagna
bfd107cef0 xrandr-indicator: require the right gjs version
xrandr-indicator makes the whole shell crash if the right gjs
features are missing, but instead of asking not to install it, we
can use gjs versioning.
2011-05-12 18:32:06 +02:00
Maxim Ermilov
30273d09df systemMonitor: new extension
https://bugzilla.gnome.org/show_bug.cgi?id=634080
2011-05-11 00:42:37 +04:00
Giovanni Campagna
b20cba35a8 places-menu: don't show "removable drives" if none is attached
Having an empty submenu is weird, it's better to hide it completely
in that case.
Plus a bunch of whitespace fixes.
2011-05-04 16:29:22 +02:00
Vamsi Krishna Brahmajosyula
a78e42e4fc New Extension: Places Menu Status Indicator
Signed-off-by: Vamsi Krishna Brahmajosyula <vamsikrishna.brahmajosyula@gmail.com>

https://bugzilla.gnome.org/show_bug.cgi?id=648724
2011-05-04 16:10:32 +02:00