Commit Graph

8 Commits

Author SHA1 Message Date
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
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
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
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
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
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
Giovanni Campagna
2962768a6f Make extensions translatable
Introduce a translation domain, gnome-shell-extensions, and use it
in extensions that have user-facing strings, instead of abusing
of translations provided by gnome-shell.
Also includes an example translation for italian, and bump the
required version for xrandr-indicator.

Depends on GNOME bug 621017.
2011-02-07 23:06:33 +01:00
Giovanni Campagna
ec6bbef28a Initial commit.
Creating the standard Autotools infrastructure and adding the
first extensions (the Hello, World! provided by the wizard).
2011-01-12 18:07:35 +01:00