Commit Graph

1096 Commits

Author SHA1 Message Date
Colin Walters
c64ab6dbe2 Kill off libgnomeshell-introspect again, this time with garlic and a stake
svn path=/trunk/; revision=47
2008-11-14 21:26:03 +00:00
Colin Walters
418450d938 Link tidy against clutter-0.8
svn path=/trunk/; revision=46
2008-11-14 21:26:00 +00:00
Colin Walters
b0837419c0 Use new --program arg from g-i, clean up build accordingly
* configure.ac: Look for paths to all the g-i tools, and
also get the full path to metacity
* src/Makefile.am: Remove noinst library, not necessary now

svn path=/trunk/; revision=45
2008-11-14 21:25:58 +00:00
Dan Winship
8c61d46586 Import part of the notification area applet, and use it to add a
notification are to the panel. A bit warty, but we don't know how we want
the final UI to look anyway. (The fact that transparency doesn't work is
a known bug.)

svn path=/trunk/; revision=44
2008-11-14 17:21:56 +00:00
Owen Taylor
d8f9d1a448 Move AC_DISABLE_STATIC before AM_PROG_LIBTOOL
Fix warning (and problem?) if AC_DISABLE_STATIC occurs after
AM_PROG_LIBTOOL.

svn path=/trunk/; revision=43
2008-11-12 21:35:17 +00:00
Owen Taylor
f8db7689af Experimentally add build infrastructure and a few Tidy widgets
For experimenting with using tidy, import TidyButton and TidyGrid
(+ dependencies) into our source tree and set up build machinery
to build them and build a typelib for them.

The sources are build right into libgnome-shell.so, so the Shell.gir
and Tidy.gir actually point to the same shared library.

src/Makefile-tidy.am: Build libtidy-1.0.la
src/Makefile.am: Include built tidy into gnome-shell.la and
  build Tidy-1.0.typelib

src/tidy/*: Add some source files from Tidy

svn path=/trunk/; revision=42
2008-11-12 21:09:27 +00:00
Owen Taylor
536bc24f61 Remove workarounds for mutual imports problems
Now that gjs Bug #558741 is fixed, we can import Main directly from
the toplevel of overlay.js/panel.js without causing problems.

svn path=/trunk/; revision=41
2008-11-09 18:01:59 +00:00
Owen Taylor
6a0c6a5df6 Fix stacking order in the overlay
When showing windows in the overlay, stack them in the same order as
they are on the screen. This improves the animation (the starting point
is now the current layout!) and also the case where we have a lot
of windows and just overlap them diagonally.

svn path=/trunk/; revision=40
2008-11-08 19:33:35 +00:00
Owen Taylor
f546d92033 Hide the group containing the windows while overlay is up
When we are animating the overlay, we don't want to be continually
redrawing the (obscured) window actors.

src/shell-global.c: Add 'window-group' property to expose the group
  holding the window actors.
js/ui/overlay.js: Hide the window group while the overlay is up.

svn path=/trunk/; revision=39
2008-11-08 19:33:33 +00:00
Owen Taylor
ffed9df171 Add dummy return values to metacity-symbols.c
Make sure that all functions in metacity-symbols.c with a return value
return something so that the compilation is clean.

svn path=/trunk/; revision=38
2008-11-08 15:49:01 +00:00
Owen Taylor
5de283b448 Remove over a leftover debug log statement
svn path=/trunk/; revision=37
2008-11-08 00:46:44 +00:00
Colin Walters
19070be3ba Run gnome-terminal on alt-f2
svn path=/trunk/; revision=36
2008-11-07 18:42:23 +00:00
Owen Taylor
ac6ff95040 Make clicking on windows in the overlay activate the windows
Hook up activating windows in the overlay now that we have
MetaWindow GObject'ified and exposed to gobject-introspection.

svn path=/trunk/; revision=35
2008-11-07 17:14:26 +00:00
Dan Winship
8da8fd76ca specify geometries on the test clients so they don't end up with their title
bars under the panel

svn path=/trunk/; revision=34
2008-11-06 17:44:01 +00:00
Colin Walters
4b9844bdee Disable bug buddy; otherwise we just hang on crash instead of restarting old panel
svn path=/trunk/; revision=33
2008-11-06 15:10:57 +00:00
Owen Taylor
03b8843f9e Improve window handling in overview mode
* For small window counts, lay the windows out according to a
  predefined scheme. For larger window counts, continue putting
  the windows along the diagonal as before, but do it a bit better.
* Special case the desktop window and use it as the background
  of the window area.
* Add a little translucency to windows
* Use tweener to animate everything into place
* Clean up - add constants and break things into multiple methods

svn path=/trunk/; revision=32
2008-11-06 14:00:14 +00:00
Mikkel Kamstrup Erlandsen
0f966eabbf Autodetect where the 'pidof' command lives and enable optional verbose logging inside start-replace
scripts/start-replace: Detect if 'pidof' lives in /sbin, /bin, or /usr/bin. Add conditional verbose logging if -v is passed on the command line
scripts/launcher.py: Add method is_verbose() to Launcher class

svn path=/trunk/; revision=31
2008-11-04 22:40:52 +00:00
Johan Dahlin
e86920147b Use = instead of == for comparision. (dash compatibility)
svn path=/trunk/; revision=30
2008-11-04 18:07:07 +00:00
Owen Taylor
e82e60f71b Don't override XAUTHORITY until after we run Xephyr
Don't override the setting of XAUTHORITY when running Xephyr,
since then we may not be able to connect to the host display.
Instead pass in the local auth file via the -auth command
line argument.

An alternate fix would be to use 'xauth merge' to merge the
existing XAUTHORITY file into our local file.

svn path=/trunk/; revision=29
2008-11-03 21:39:41 +00:00
Owen Taylor
a569063e4f Fix location of libmozjs.so for Ubuntu
/usr/lib/xulrunner-<version>/lib in the previous patch
was wrong, should be /usr/lib/xulrunner-<version>. Also,
fix comment.

svn path=/trunk/; revision=28
2008-11-03 21:11:28 +00:00
Owen Taylor
2ba8aaafca Don't overwrite existing LD_LIBRARY_PATH when running g-ir-compiler
When running g-ir-compiler, augment LD_LIBRARY_PATH with the current
directory, rather than overwriting it entirely.

svn path=/trunk/; revision=27
2008-11-03 20:41:25 +00:00
Owen Taylor
39184955e5 Work around libmozjs not being in ld.so.conf on Ubuntu
In our jhbuildrc, add the path containing libmozjs.so on Ubuntu to
to LD_LIBRARY_PATH. The path is heuristically derived from pkg-config
output.

svn path=/trunk/; revision=26
2008-11-03 20:33:14 +00:00
Owen Taylor
9d15b7c9e1 Install our typelib privately inside $(pkglibdir)
Installing the plugin typelib into $(libdir)/girepository is
non-sensical since no other program would want to reference it.
Move it to $(pkglibdir)/girepository instead. (Will need to set
environment variables to find it when we make installed operation
work.)

svn path=/trunk/; revision=25
2008-11-02 04:18:43 +00:00
Owen Taylor
e624b2a241 First stab at showing windows in the overlay
shell-global.[ch]: Add shell_global_get_windows() to get
  the list of all MutterWindow for the  screen
Makefile.am: Include the metacity typelib so that we can
  reference the MutterWindow type
js/ui/overlay.js: Cascade the open windows, scaled down
  in the overlay

svn path=/trunk/; revision=24
2008-11-02 04:18:41 +00:00
Owen Taylor
1ce78680b1 start-in-Xepyhr: add xeyes and xlogo to initial session
With one window, it's hard to see window management behavior,
add xeyes and xlogo as well as xterm.

svn path=/trunk/; revision=23
2008-11-02 04:18:38 +00:00
Owen Taylor
0a2a65e810 Pass the right number of arguments to exit()
When using gdb to quit the panel, pass the right number of arguments
to exit(), so that gdb calls it instead of erroring out.

svn path=/trunk/; revision=22
2008-11-02 04:18:36 +00:00
Owen Taylor
ce969f7bb4 Include errors in what we print out without -v
Change the debug topics in the non-verbose case from just
JS LOG to JS LOG and JS ERROR.

svn path=/trunk/; revision=21
2008-11-02 03:27:11 +00:00
Owen Taylor
b81733d9e4 Fix --debug option to default to gdb
When --debug is specified, pick up the default value for
--debug-command of 'gdb --args' correctly.

svn path=/trunk/; revision=20
2008-11-02 03:03:00 +00:00
Johan Dahlin
758e083caf Draw a border around the panel. Move it to -1,-1 and make the width+2 so we only see the border at the bottom
svn path=/trunk/; revision=19
2008-11-02 03:00:45 +00:00
Owen Taylor
e81ed61a38 Add --debug and --verbose options to launcher scripts
Factor out a common Launcher class from start-in-Xepyhr and
start-replace that handles option parsing and launching gnome-shell,
and add options:

 -v/--verbose: Unless specified, suppress most gjs debug output
 -g/--debug: If specified run under gdb
 --debug-command: Run under some other debugging (strace/valgrind/etc.)
     Implies -g

svn path=/trunk/; revision=18
2008-11-01 23:55:49 +00:00
Owen Taylor
4a651471e3 Build metacity-clutter after gir-repository
Once we add introspection information to metacity-clutter, we need
to make sure that we build it after gir-repository (and thus
gobject-introspection.)

svn path=/trunk/; revision=17
2008-11-01 22:56:53 +00:00
Owen Taylor
276cb9d8b9 Add start-replace script
Add a script to start gnome-shell replacing metacity and gnome-panel.
When gnome-shell exits, gnome-panel and metacity are restarted.

svn path=/trunk/; revision=16
2008-11-01 19:45:00 +00:00
Owen Taylor
baf6cf0dc5 Build clutter before gir-repository
We need to build gir-repository after clutter so that the
typelib for clutter is built; add a dependency.

svn path=/trunk/; revision=15
2008-11-01 15:58:13 +00:00
Owen Taylor
9e45cf84fb First cut at activities overlay
When the user clicks on "Activities", adjust the input shape
to the whole screen and show a black overlay group. Actually, the
black should be *beneath* the window actors and the overlay group
transparent so we can fade in the black while leaving the windows
unfaded, visible, but shrunk and rearranged.

svn path=/trunk/; revision=14
2008-10-31 23:09:46 +00:00
Owen Taylor
0cea92e46a Clean up initial appearance a bit
Set a less strange background color than white and remove the
"Yessir. The compositor is running" message from the overlay.

svn path=/trunk/; revision=13
2008-10-31 18:29:42 +00:00
Owen Taylor
9c4d104630 Add annotations to fix return-value transfer for shell_global_get()
Default transfership for a GObject return value is 'full', override
it to 'none' for a singleton getter.

svn path=/trunk/; revision=12
2008-10-31 18:24:29 +00:00
Owen Taylor
6b9379a938 Switch the HH:MM:SS second clock to HH:MM
less updates == less debug spew.

svn path=/trunk/; revision=11
2008-10-31 18:12:03 +00:00
Owen Taylor
96963520da Add a very simple first-pass top panel
Add a top panel with a label "Activities" you can click on and
a HH:MM:SS clock. (A little more and we'll be caught up to gnome-0.9.)

svn path=/trunk/; revision=10
2008-10-31 18:09:20 +00:00
Owen Taylor
136dbbb41f Add shell_global_set_stage_input_area() to header file
shell_global_set_stage_input_area() wasn't in the header file
so it wasn't introspected; add it.

svn path=/trunk/; revision=9
2008-10-31 18:05:19 +00:00
Owen Taylor
7d6896a669 Add ShellGlobal.stage property
Add a property to get the root stage for the scene graph.

svn path=/trunk/; revision=8
2008-10-31 18:04:38 +00:00
Owen Taylor
dec83013fc Add an xevent_filter method to our plugin
By default, mutter doesn't pass events to clutter. We need to add an
xevent_filter method to our plugin and do that ourselves.

svn path=/trunk/; revision=7
2008-10-31 18:02:52 +00:00
Owen Taylor
2fd4c9058d Extend ShellGlobal object with more properties
* Add screen-width, screen-height, overlay-group properties
* Add set_stage_input_area() function
* Fix main.js to rotate DRAFT properly

svn path=/trunk/; revision=6
2008-10-31 15:20:54 +00:00
Owen Taylor
3d0966315e Add gjs as a dependency of gnome-shell
svn path=/trunk/; revision=5
2008-10-31 15:18:18 +00:00
Owen Taylor
cbacd17c05 Use --mutter-plugins instead of --clutter-plugins
Command line option to metacity has been changed, match that.

svn path=/trunk/; revision=4
2008-10-31 12:41:01 +00:00
Owen Taylor
d6dae414a4 Add jhbuild setup script and moduleset
gnome-shell.modules: moduleset to build gnome-shell and dependencies

gnome-shell-build-setup.sh: Script to set up a jhbuild for gnome-shell,
  modelled after and partially copied from gtk-osx-build-setup.sh
jhbuildrc-gnome-shell: ~/.jhbuildrc for the build
jhbuildrc-custom-example: Example ~/.jhbuildrc-custom

svn path=/trunk/; revision=3
2008-10-31 05:25:28 +00:00
Owen Taylor
4ba985b484 Initial commit
A plugin for metacity-clutter (mutter) that initializes Javascript
and via Javascript adds an object to the mutter scene graph.

src/gnome-shell-plugin.c: metacity-clutter-plugin
src/shell-global.[ch]: Simple global-information object
js/: Directory for javascript
scripts/start-in-Xephyr: Launch metacity with our plugin
  "nested" within an Xephy X server

svn path=/trunk/; revision=2
2008-10-31 04:22:44 +00:00