199 Commits

Author SHA1 Message Date
Giovanni Campagna
2a64ee6993 alternative-status-menu: flip the default hibernate option
Many people complained that they can't make hibernate visible. Given
that using gsettings with extensions is not easy (you need --schemadir etc.),
just flip the default, and tell people that don't want it to change it
(or just core shell)
2012-11-20 16:37:20 +01:00
Giovanni Campagna
9d9ef27317 WindowsNavigator: fix with recent shell
Recently WindowsNavigator would just crash the shell upon entering
the overview. I'm not sure where the bug was, probably it was due to
the new window layout code.
2012-11-20 16:37:20 +01:00
Giovanni Campagna
785656d149 alternate-tab: don't show attached modal dialogs
Attached modal dialogs cannot be focused on their own, so the expected
interaction is to choose their parent instead.
2012-11-20 16:37:20 +01:00
Giovanni Campagna
f8ee696c7c alternate-tab: port to the new keybindings infrastructure
Keybindings were refactored in 3.7.2, to allow handling them
while the shell is modal, and now require a set of flags indicating
the "allowed modes"
2012-11-20 16:37:20 +01:00
Giovanni Campagna
9b04e6f44c PlacesMenu: ignore missing local bookmarks
If a local bookmark does not refer to an existing directory, ignore
it instead of showing a broken entry.
2012-11-16 20:29:56 +01:00
Giovanni Campagna
315aa82d15 PlacesMenu: support historical location for bookmarks file
Ubuntu is shipping with Nautilus 3.4 in 12.10, so the bookmarks file
was not moved to .config/gtk-3.0.
2012-11-16 20:29:51 +01:00
Giovanni Campagna
0bc41bcb1d native-window-placement: fix disabling the extension
The monkey patch was being reinstalled under the wrong name.
2012-11-11 19:26:56 +01:00
Giovanni Campagna
880758e470 PlacesMenu: don't fail for GIO errors getting the file name
Different GIO backends can fail in different ways trying to query
file infos. If that's the case, fail back to safe get_basename()
instead of crashing.
2012-11-07 17:43:17 +01:00
Giovanni Campagna
bfe7a760d1 NativeWindowPlacement: reduce the number of hacks to work better with 3.7.1
3.7 is brought some big changes in the window layout code, but I'm not
going to take advantage of them (as the assume some sort of row based layout).
Instead, just work around them in a way that makes the extension work
without major issues.
2012-10-26 17:20:41 +02:00
Giovanni Campagna
0d932f4b24 alternative-status-menu: update for 3.7
gnome-shell uses logind for suspending now. Take the occasion to
do some cleanups as well.
2012-10-26 17:20:41 +02:00
Giovanni Campagna
6c1dbe1ee1 places-menu: don't crash if a special directory or mount doesn't exists
Under broken configurations, it is possible that a special directory
is configured but does not exist. In that case, just skip the menu item
altogheter.
2012-10-26 17:20:41 +02:00
Giovanni Campagna
987409b742 Remove dock and gajim extensions from the repository
They're buggy, unmaintained, and nobody stepped up to fix them.
See full rationale at
https://mail.gnome.org/archives/gnome-shell-list/2012-August/msg00132.html

Anyone who's unhappy with this decision, please contact me and we
can arrange co-maintainership or ownership transfer.
2012-10-16 16:22:45 +02:00
Giovanni Campagna
dfcff4b297 DriveMenu: make it independent of PlacesDisplay
That module was removed from GNOME Shell 3.6, so reimplement for mounts
only, borrowing code and behaviour from the resident message tray source.
2012-10-08 19:42:28 +02:00
Giovanni Campagna
fa2840aee3 alternative-status-menu: fix for 3.6
Code was still refererring to the external screensaver instead of
activating the screenshield.
I feel like a genius for writing both modules and not noticing this
until after 3.6.0.
2012-10-08 19:09:13 +02:00
Giovanni Campagna
e48e1d0a38 alternate-tab: fix a warning about passing 0 to source_remove 2012-10-07 02:08:55 +02:00
Giovanni Campagna
39c221775e places-menu: recognize if apps-menu is present, and place to the right of it
If apps-menu is enabled at the same time as places-menu, the right order
is activities, apps-menu, places-menu, app-menu. Previously we used the
extension activation order to obtain this, but it's not reliable enough,
so make it explicit in code.
2012-09-06 19:41:13 +02:00
Giovanni Campagna
eda45e6072 places-menu: rework to be more similar to the Files sidebar
Let's go GNOME 3 style, and make a places menu that looks like the sidebar
in Files, with for subsections corresponding to default places, devices,
bookmarks and network mounts.
Among other things, this should fix the duplicate home or duplicate desktop
bookmark problem (as now we don't bookmarks that are same as the default
locations), and it makes us future proof for the removal of PlacesManager
in core shell.
2012-09-06 19:41:10 +02:00
Giovanni Campagna
fdad0263ec various: update for gnome-shell changes
The panel changed the way it builds the buttons outside the system
status area.
- Update alternative-status-menu to the new way of accessing panel
  contents.
- Update apps-menu to the new way of adding items to the panel.
- Move places-menu to the left now that it is possible without hacks.
2012-09-05 00:50:35 +02:00
Giovanni Campagna
c5181cda46 alternate-tab: make the highlight square again
Fixes a regression from a78a16b4a7
2012-09-05 00:50:35 +02:00
Giovanni Campagna
6a74326a61 place-menu: use symbolic icons for places
This makes us more consisten with the other menus and with the sidebar
in Files.
Also, reduce the icon size to 16px, same as the other menus.
2012-09-05 00:50:35 +02:00
Giovanni Campagna
48d4956ee0 Port all extensions to the new symbolic icon handling
St.IconType was removed from master, St.Icon users are expected to add '-symbolic'
themselves.
2012-09-05 00:50:35 +02:00
Giovanni Campagna
0ab46d5c70 xrandr-indicator: port to 2012
Someone left this poor extension in the last century.
Port to GDBus, port to Lang.Class, port to addSettingsAction, port to new
symbolic icon handling.
2012-09-05 00:50:35 +02:00
Giovanni Campagna
cd7d9aa2a4 Auto-move-windows: don't manage workspaces if they're not dynamic
The workspace management done by auto-move-windows is semi-dynamic,
in that it collects empty workspaces at the end, and ensures there
is always one free.
This is undesirable when the user explicitly choose static
workspaces in the tweak tool or in dconf-editor.
2012-09-05 00:50:35 +02:00
Giovanni Campagna
ea3d27c311 SystemMonitor: left align the indicator container
MessageTray.actor now has ClutterBinLayout layout manager, so we need
to tell it esplicitly where to place us.
2012-09-05 00:50:35 +02:00
Giovanni Campagna
d1d099fbbf alternate-tab: don't crash if a window is not associated with an app
A dialog for which the parent application is closed may end up without
an app. In that case, show only the thumbnail, or if showing icons only,
show a missing icon.
2012-08-29 02:05:02 +02:00
Giovanni Campagna
45da997dd3 alternate-tab: don't assume that at least two windows exist
Initial selection would go out of the array bounds if only one window
existed.
2012-08-29 02:05:02 +02:00
Giovanni Campagna
5ca52e89d5 windowsNavigator: update for gnome-shell changes
The ViewSelector was refactored for modekill feature. Update
accordingly.
2012-08-22 16:19:33 +02:00
Giovanni Campagna
dd26111c04 systemMonitor: add tooltips to the indicators
Currently it's hard to find what the indicator mean, without any
label. Add a tooltip, shamelessly copied from js/ui/dash.js in
core shell.
2012-08-22 16:13:52 +02:00
Giovanni Campagna
f40e7109e5 systemMonitor: update for gnome-shell changes
gnome-shell 3.5.90 has a new, bigger, message-tray. Restyle the
systemMonitor appropriately to blend in.
2012-08-22 16:13:52 +02:00
Giovanni Campagna
5cb3e1877a native-window-placement: update for gnome-shell changes
Workspace.positionWindows semantics changed, so the function
we want to override is now _realPositionWindows.
2012-08-22 16:13:52 +02:00
Giovanni Campagna
a78a16b4a7 alternate-tab: respect aspect ratio for window thumbnails
It is weird if 16:9 thumbnails get turned into squares. Instead,
center them.

https://bugzilla.gnome.org/show_bug.cgi?id=656217
2012-08-22 15:35:33 +02:00
Giovanni Campagna
fb3df46a25 alternate-tab: rework again
Kill the mode switch distinction, and kill the old and unmaintained
Workspace&Icons mode.
Introduce instead configurability for the All&Thumbnails code, which
now independently allows choosing if only all windows or only those
from current workspace should be shown, and in which way (thumbnail,
icon, both).
All configuration settings changed, so the extension must be configured
again (although hopefully I chose reasonable defaults)
2012-08-18 02:40:20 +02:00
Giovanni Campagna
5e89c761ca alternate-tab: show an application icon overlaid to the thumbnails
In All&Thumbnails mode, show an application icon above the thumbnail,
for easier recognition of the window.
The old behaviour can be restored in the preferences dialog.
2012-08-07 23:22:25 +02:00
Giovanni Campagna
d12307991a alternate-tab: refactor All & Thumbnails
Split the two modes in two different modules, for easier maintenance.
Refactor the AllThumbnails code completely, by copying relevant
or useful code for gnome-shell directly instead of hacking around
it.
2012-08-07 23:22:19 +02:00
Giovanni Campagna
dd9b47e51e native-window-placement: fix undefined variable warning 2012-06-08 14:02:00 +02:00
Giovanni Campagna
279dd348e4 alternative-status-menu: update for current mockups
Core shell changed the user menu so that Power Off is no longer at
the end, and it's no longer hidden by Alt. Update the extension
so that it blends nicely with the core behavior, while still exposing
Suspend/Hibernate/Power Off as separate menu items.
2012-06-08 13:59:50 +02:00
Alejandro Piñeiro
338f742310 a11y: setting labels for Removable Drive Menu extension
This includes:
 * A proper name for the menu (using when exploring the top panel)
 * A proper label for each device item

https://bugzilla.gnome.org/show_bug.cgi?id=677228
2012-06-04 09:48:06 +02:00
Jasper St. Pierre
6e946fe702 drive-menu: Update to work with GNOME Shell git
https://bugzilla.gnome.org/show_bug.cgi?id=677289
2012-06-02 05:11:36 -04:00
Jasper St. Pierre
dca49d662d places-menu: Update to work with GNOME Shell git
https://bugzilla.gnome.org/show_bug.cgi?id=677289
2012-06-02 05:11:36 -04:00
Bastien Durel
c5fd578214 create actor at the right place, so there is no more clipping-out-of-screen problem
https://bugzilla.gnome.org/show_bug.cgi?id=664318
2012-05-07 23:06:17 +02:00
Giovanni Campagna
31ff2d4c97 auto-move-windows: make the suspend and hibernate items configurable
Desktop users rarely use suspend, and in general hibernate is
more trouble than it's worth to show at all times, so make their
visibility configurable in GSettings.
Supend defaults to true (since that's the GNOME 3 message anyway),
while hibernate is normally false. No UI is provided, since it's
unlikely that changing this is necessary.
2012-04-29 23:26:07 +02:00
Wepmaschda
d355424f22 native-window-placement: add WINDOW_AREA_TOP_GAP and place the windows bottom-center.
This keeps window captions and close buttons always visible.

https://bugzilla.gnome.org/show_bug.cgi?id=674338
2012-04-29 22:41:37 +02:00
Bastien Durel
dde7084711 Let user choose the monitor where to show dock 2012-04-29 22:35:24 +02:00
Giovanni Campagna
f77bf60bcb auto-move-windows/prefs: filter out apps that don't exist
Recognize if the desktop file no longer exists and remove its
entry in GSettings, instead of crashing because of a null GAppInfo.
2012-04-29 21:11:00 +02:00
Giovanni Campagna
e3f1091f2d dock: clip the actor to the primary monitor
In particular with the move effect, but also with others, the
dock could end up partially on the neighbor screen when hidden.
2012-04-28 18:28:36 +02:00
Giovanni Campagna
ffb3462d54 gajim: fix for missing FN field
The full name is not always present. If so, fallback to nickname
or Jabber ID.

Based on a patch by Łukasz Faber <nnidyu@annwn.eu>
2012-04-26 22:58:04 +02:00
Giovanni Campagna
e1c1fc73e2 windowsNavigator: only access tooltip if it's known to exist
Apparently, windowOverlay._text can be null sometimes. In that
case, do nothing instead of crashing.
2012-04-26 22:50:11 +02:00
Giovanni Campagna
5ca9f35a95 places-menu: fix allocation of the icon
Because the popup-menu min-width imposed by the theme was bigger
than the natural size of the menu, and because core shell code
cannot deal with that, the icon was not right aligned unless
"Removable devices" was showing.
Hack around that by setting span: -1, which pushes it to end of
the menu item.
2012-04-14 00:41:12 +02:00
Giovanni Campagna
ed9c17dfdd native-window-placement: update for gnome-shell API changes
St.Widget.get_default_direction() was replaced with
Clutter.get_default_text_direction() as part of the Clutter Apocalypses
2012-03-24 02:06:49 +01:00
bhuztez
82bd3efc73 windowsNavigator: do nothing when viewtab is not active
The keybindings should only kick-in when the "windows" tab is active,
otherwise it is confusing and could conflict with other combinations.
2012-03-03 02:11:25 +01:00