Commit Graph

159 Commits

Author SHA1 Message Date
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
Giovanni Campagna
f14ae5f3c9 workspace-indicator: remove debug spew 2012-03-01 21:10:41 +01:00
Giovanni Campagna
1463a6481e dock: update for gnome-shell API changes
Shell.get_event_state() was removed, use direct .get_state()
instead.
2012-03-01 21:05:14 +01:00
Giovanni Campagna
0a9be8fc82 workspace-indicator: drop the "shorter" style class
It makes it appear different from other popup menus, which looks
strange.
2012-03-01 21:05:14 +01:00
Giovanni Campagna
ef95c7e4e7 apps-menu: update for Clutter/St API changes
Some StContainer API was removed to accomodate clutter deprecations.
Adapt apps-menu to that.
2012-02-28 19:18:22 +01:00
Giovanni Campagna
0bb2184efb workspace-indicator: add preferences dialog
Add a simple pref dialog to configure workspace name, similar to
the one available for GNOME 2.
2012-02-24 11:23:59 +01:00
Giovanni Campagna
0c5564fe55 workspace-indicator: fix focus after workspace change
meta_workspace_activate() expects the timestamp of the user action.
Not sure where that true came from.
2012-02-13 23:06:59 +01:00
Giovanni Campagna
53ee4c096e i18n: Updated Italian translation 2012-02-13 18:56:25 +01:00
Giovanni Campagna
5754e2db58 example: add settings and preference dialogs
This continues turning "example" in a real gnome-shell extension
tutorial, showing how to create GSettings using Convenience and
how to build a simple preference dialog by subclassing GtkGrid
and binding GObject properties to GSettings.
2012-02-13 18:55:15 +01:00
Giovanni Campagna
468ed6cfe6 auto-move-windows: introduce configuration dialog
Using the new configuration framework from gnome-shell, add
a simple tree view to configure the automatic moving rules.
2012-02-13 18:55:15 +01:00
Giovanni Campagna
245ab96a27 alternate-tab: move to the new configuration system
Since 3.3.5, gnome-shell offers an integrated configuration tool
for extensions, which can be used by adding a new "prefs" module.
Replace the old modal dialog with a new gtk dialog, which also allows
to configure the new highlight-selected setting.
2012-02-13 18:55:15 +01:00
Giovanni Campagna
1dca3fecaa alternate-tab: optionally highlight selected window in workspace&icons mode
Optionally, bring the selected window to front before dismissing
the popup, in a manner similar to cycle-windows keybinding (but
without the rendering artifacts, and without application grouping).

Based on a patch by Pallai Roland <dap@magex.hu>
2012-02-10 15:22:07 +01:00
Giovanni Campagna
9b6374881d all: port to the new class framework
A long due update, since this was merged in gjs and core shell.
We no longer need to mess with __proto__ and prototype, and can
use decent syntax for true object oriented programming.
(This affects all except xrandr-indicator, since I want to port
that to GDBus too, using the new bindings right from the start)
2012-02-10 15:16:46 +01:00
Giovanni Campagna
2388b8738f dock: refactor and clean up code
Modified to avoid global settings variables, that were updated
unpredictably. Removed the inital show effect and placing the dock
at primary.y at startup (causing a big and often unexpected jump).
Ported to the new class framework, which should mean cleaner code.
2012-02-10 15:16:16 +01:00
Giovanni Campagna
775bd5a86a alternate-tab: shuffle and update code around a bit
Mode selection was cleaned up, settings dialog was moved to a
separate file (in preparation for GTK replacement), all classes
were moved to Lang.Class. No big code changes though.
2012-02-09 18:43:29 +01:00
Giovanni Campagna
3630228cac all: port to the new convienence module
Retrieve Convenience from the extension helper object (Me), and
pass no arguments to initTranslations and getSettings (since the
metadata has all that is required)
2012-02-09 18:43:28 +01:00
Giovanni Campagna
9ebfd1f495 build system: factor out setting schema generation
Introduce a common settings.mk file, which is included in extensions
that need GSettings, to ensure that conventions are respected, and
necessary fixes can be applied from one place.
2012-02-08 18:01:00 +01:00
Giovanni Campagna
dfca68062c build system: add additional automatic metadata
Add "gettext-domain", "extension-id" (containing the base part of the
UUID) and "gschemabase" (which, combined with "extension-id", gives
the GSettings schema) to metadata.json, autogenerated by the build
system.
2012-02-08 18:00:56 +01:00
Giovanni Campagna
8bc650ae19 windowsNavigator: improve the appearance of tooltips
Based on a patch by Simon Friis Vindum <simonfv@mail.com>
2012-02-06 21:18:39 +01:00
Giovanni Campagna
46fe71d1b8 native-window-placement: remove debug color
Apparently, in some situations (or themes) it can result in red
overlays.
2012-02-06 21:18:39 +01:00
Giovanni Campagna
29b0d0d96b native-window-placement: respect button layout
If the user configures the window buttons on the left, the X button
in the overview should be moved accordingly.
2012-02-06 21:18:31 +01:00
Giovanni Campagna
037a65c3d1 windowsNavigator: allows input from the keypad
Based on a patch by Simon Friis Vindum <simonfv@mail.com>
2012-02-06 16:42:34 +01:00
Giovanni Campagna
c49c20fe38 user-theme: fix enable after disable
In disable(), _settings was cleared, despite being created in
init(), therefore a subsequent enable() would find it null.
2012-01-11 17:41:28 +01:00
Giovanni Campagna
1d10cdf600 Fix translations
Adds missing files to POTFILES and mark a string for translation
in places-menu
2011-12-27 15:28:24 +01:00
Giovanni Campagna
7dd6b5e112 alternative-status-menu: make it coexist with other extensions
Instead of destroying the whole menu and recreating it, find the
right position and just destroy/recreate the items we care about.

Based on a patch by Andrea Santilli <andreasantilli@gmx.com>
2011-12-27 15:28:24 +01:00
Giovanni Campagna
4b76e797cf native-window-placement: update for latest gnome-shell changes
Recently gnome-shell changed the code to handle the window overlays
(to fix some bugs aboud the overlay flashing), which resulted in
invisible overlay with this extension. Fix by reimporting some code
from gnome-shell core.
2011-12-22 18:07:47 +01:00
Giovanni Campagna
631f88ff42 dock: dispose of settings before getting rid of it
Calling run_dispose on a GObject automatically disconnects all
signals, which is exactly what we need.
2011-12-22 15:15:16 +01:00
Giovanni Campagna
98b0a5e9ee dock: use core shell styling
Realign dock styling to core shell's dash, by using AppDisplay.AppIcon
directly instead of rewriting everything.
2011-12-20 19:52:25 +01:00
Giovanni Campagna
9b630b387c native-window-placement: remove grid positioning strategy
If one wants the extension, clearly he doesn't want the default
layout of windows, therefore it doesn't make sense to replicate
it and to keep settings for it.
2011-12-20 19:04:50 +01:00
Giovanni Campagna
5bf1339ef1 dock: restore strut management
When configured not to auto-hide, the dock should modify struts
so that it doesn't cover maximized windows.
2011-12-20 19:04:49 +01:00
Giovanni Campagna
fe052f0e69 dock: fix documentation and default value of hide-effect
In 3.2, the default hide effect is move, so make it the default
for 3.3 as well. Also, update the docs for this new value.
2011-12-19 16:33:30 +01:00
Norman L. Smith
ca19f18c8f Changed workspace indicator to use less panel space by displaying only high-lighted workspace number on panel.
Signed-off-by: Norman L. Smith <nls1729@gmail.com>
2011-12-14 00:08:29 +01:00
Giovanni Campagna
48d2d8789d drive-menu: use media-eject icon instead of media-optical
Most of time, this extension is used with pluggable USB drives
and keys. It doesn't make sense to show a CD for those.
2011-12-08 23:07:17 +01:00
Giovanni Campagna
6442791482 windowsNavigator: fix switching with azerty keyboards
Some keyboard layouts (in particular, azerty / french) require
pressing shift to obtain numerals. Therefore we should not cancel
the switch when shift is pressed.
Also, we should accept indifferently left or right modifiers.
2011-12-01 17:05:29 +01:00
Giovanni Campagna
3523728a61 workspace-indicator: fix removing the last workspace
When closing the last workspace, we could access an invalid
item, causing a TypeError and therefore leaving a stale "Workspace 2"
label.
2011-11-28 19:38:31 +01:00
Giovanni Campagna
ae41fceba9 alternative-status-menu: fix criticals when opening the menu
After enabling, the user menu was keeping a reference to a
destroyed actor, and then was updating it from signals. Updating
this (a StEntry) caused g_criticals because of a NULL ClutterText.
Instead we can null out the actor entirely, which will stop
the signal handler from doing any harm.
2011-11-24 17:03:48 +01:00
Giovanni Campagna
10aec91ebb Bump version to 3.3.2
To go with GNOME Shell 3.3.2, bump configure.ac, update NEWS and
mark all extensions to be only compatible with the unstable release.
2011-11-22 09:11:46 +01:00
Giovanni Campagna
1d22e73a44 alternate-tab: update for mutter API change
Main.wm.setKeybindingHandler has been replaced by
Meta.keybindings_set_custom_handler, which has also a different
signature.
2011-11-22 09:11:22 +01:00
Giovanni Campagna
3981d066e5 apps-menu: skip NoDisplay entries 2011-11-22 08:50:25 +01:00
Giovanni Campagna
7a6777f703 Remove all references to localedir from metadata.json
It is not used anymore, now that translations are bundled with
the extension. Also, in the zip files it ended up with my home
folder, which is not nice.
2011-11-20 00:40:20 +01:00
Giovanni Campagna
c5d79240fd Introduce a convenience module for initialization
Common code for retrieving translations and GSettings schemas has
been factored out into lib/convenience.js, which is part of
every extension installation.
Since that code relies on renames done at zip file creation time,
extensions can no longer be installed with "make install". Instead,
one should create the zip file and install it with the tweak-tool.
There is also a bash script, local-install.sh, that will install
everything in zip-files.
Also, since the GSettingsSchemaSource code is not yet in a stable
GLib release, extensions using GSettings have seen their stable
shell version removed.
2011-11-19 16:54:20 +01:00