Commit Graph

2284 Commits

Author SHA1 Message Date
Colin Walters
cedab08018 Search executables as well
We want "gedit" to find GEdit, which doesn't contain its name in either
the name or description.

svn path=/trunk/; revision=85
2008-11-25 23:50:00 +00:00
Colin Walters
258834ed8f Add hardcoded default applications list taken from online.gnome.org
The previous list of all applications in a random order was obviously
temporary.  This patch improves things by adding a static list, taken
from the online.gnome.org/applications data.

In the future we will either have a vendor-chosen static list, or
a fully dynamic system.

http://bugzilla.gnome.org/show_bug.cgi?id=562184

svn path=/trunk/; revision=84
2008-11-25 19:58:49 +00:00
Owen Taylor
c12de59864 Add a concept of "going modal" by grabbing the keyboard
shell-global.[ch]: Replace shell_global_focus_stage()
  with shell_global_grab_keyboard()/shell_global_ungrab_keyboard()
main.js: Add startModal()/endModal() functions to go modal and
  undo that.
run_dialog.js overlay.js main.js: Use startModal() for the overlay
  and for the run dialog.

http://bugzilla.gnome.org/show_bug.cgi?id=561880

svn path=/trunk/; revision=83
2008-11-24 19:07:18 +00:00
Owen Taylor
8a9b138c2e Add a bg-color property to ShellTrayManager
shell_tray_manager.c: Add a bg-color property and implement it
 by setting a 1x1 pixmap of the right color as the background.

 Also, make the colormap of the tray manager window match that
 of the socket. That should (untested) make transparency work
 properly if the tray icon supports it.

panel.js: Set the bg-color property of the tray manager to
 match the panel.

http://bugzilla.gnome.org/show_bug.cgi?id=561872

svn path=/trunk/; revision=82
2008-11-24 19:07:15 +00:00
Owen Taylor
1d1028adef Improve overlay mode's window scaling
Add a layout for 5 windows and slightly increase the scale factor
for 3 and 4 windows.

Patch from Natan Yellin
http://bugzilla.gnome.org/show_bug.cgi?id=561947

svn path=/trunk/; revision=81
2008-11-23 04:23:34 +00:00
Owen Taylor
1fb2585d8f Tweak the animation when the overlay comes up
- Make the time a bit longer (now that we control timing in Tweener
  better it actually takes the time we specify)
- Use easeOutQuad so that we get a "soft landing" into position
- Move the anchor point of the Desktop to NorthEast to reduce jitter

svn path=/trunk/; revision=80
2008-11-23 04:12:37 +00:00
Owen Taylor
9b822402b9 Use a Tweener "Frame Ticker" with a ClutterTimeline backend
Call Tweener.setFrameTicker() with a custom object that bridges to
ClutterTimeline to get new frame notifications. Combined with a
hack to dynamically adjust the frame ticker's frame rate when
Clutter drops frames, this means that our animations play in the
intended time even if rendering is too slow to maintain a full
60HZ frame rate.

http://bugzilla.gnome.org/show_bug.cgi?id=561745

svn path=/trunk/; revision=79
2008-11-23 04:12:34 +00:00
Dan Winship
19671ad349 implement a basic switch_workspace animation using Tweener. #561835
svn path=/trunk/; revision=78
2008-11-21 21:34:10 +00:00
Colin Walters
07877e7a7a Fix app event handling
We need to hook up to events on the group, and not set higher level
actors to be reactive.

svn path=/trunk/; revision=77
2008-11-21 20:45:35 +00:00
Colin Walters
54329a65b2 Use _deactivate rather than hide so we correctly reset input area
svn path=/trunk/; revision=76
2008-11-21 20:45:33 +00:00
Colin Walters
0f019b9ee2 Fix application layout to use parent relative coordinates
We were previously incorrectly assuming origin relative here.

svn path=/trunk/; revision=75
2008-11-21 20:01:15 +00:00
Dan Winship
aa61fdbc53 revert some broken bits from previous patch that weren't supposed to have
been committed

svn path=/trunk/; revision=74
2008-11-21 15:33:00 +00:00
Dan Winship
f5091e92e4 remove some cruft
svn path=/trunk/; revision=73
2008-11-21 15:10:11 +00:00
Colin Walters
dbf984a888 Rename MENU_ -> APPDISPLAY_ to correspond with other renames
svn path=/trunk/; revision=72
2008-11-21 15:08:34 +00:00
Colin Walters
ee743394f6 Monitor applications directory, not toplevel
svn path=/trunk/; revision=71
2008-11-21 15:06:43 +00:00
Dan Winship
7dba934b96 add the initial framework of a window management interface. #561724
svn path=/trunk/; revision=70
2008-11-21 14:02:09 +00:00
Dan Winship
06bde9cc98 fix import ordering
svn path=/trunk/; revision=69
2008-11-21 13:54:25 +00:00
Colin Walters
c928b64648 Merge branch 'appmenu'
svn path=/trunk/; revision=68
2008-11-21 00:53:11 +00:00
Marina Zhurakhinskaya
7cad9a7ca0 Add a convenience function for setting an image for ClutterTexture based on GdkPixbuf.
svn path=/trunk/; revision=67
2008-11-21 00:39:14 +00:00
Colin Walters
4840b813ca Fix up previous change; connect to signals correctly
svn path=/trunk/; revision=66
2008-11-20 15:47:13 +00:00
Colin Walters
a62b215b06 Convert run dialog to gjs signals
svn path=/trunk/; revision=65
2008-11-20 15:40:44 +00:00
Owen Taylor
44dde535e0 Bug 561588 – New run dialog
Add a new clutter-based "Run Dialog" and trigger that off of Alt-F2
instead of running a gnome-terminal instance.

Patch from Sander Dijkhuis.

svn path=/trunk/; revision=64
2008-11-19 23:21:42 +00:00
Owen Taylor
840eb62397 Set a strut to prevent windows under the panel
Set a strut (a reserved region) at the top of the screen so that
windows don't get positioned under the panel. Do this on all
workspaces and redo it when the number of workspaces changes.
http://bugzilla.gnome.org/show_bug.cgi?id=561297

svn path=/trunk/; revision=63
2008-11-19 23:04:53 +00:00
Owen Taylor
71a35e495e Rename 'panel' local to 'me'
To match our style other places, use 'me' rather than 'panel' when
we want a substitute for 'this' that we can refer to from closures.

svn path=/trunk/; revision=62
2008-11-19 23:04:50 +00:00
Owen Taylor
48a2cca476 Add a 'screen' property to ShellGlobal
Add a screen property to ShellGlobal so Javascript code can get
access to the MetaScreen.

http://bugzilla.gnome.org/show_bug.cgi?id=561297

svn path=/trunk/; revision=61
2008-11-19 22:54:42 +00:00
Colin Walters
d2c734f197 Bump default screen size to 1024x748; current mininum
Right now the mockup is 1280x800.  We don't fit at all well into
800x600.  This patch bumps us up by default to 1024x768 which is
the lowest we're going to work at for now, until we get some more
intelligent resizing.

svn path=/trunk/; revision=60
2008-11-19 21:15:59 +00:00
Owen Taylor
8f615e833e Add shell_global_focus_stage()
Add a a method shell_global_focus_stage() to set the
input focus to the stage window, so that Clutter gets
keyboard events.

Adapted from patch in Bug 561299 from Colin Walters

svn path=/trunk/; revision=59
2008-11-19 19:54:17 +00:00
Marina Zhurakhinskaya
f81e9d3aaa Make sure we include staysPressed in the list of arguments to the Button object
, so that we don't end up ignoring minHeight.

svn path=/trunk/; revision=58
2008-11-19 19:25:51 +00:00
Marina Zhurakhinskaya
5b31ce3415 Switch all JavaScript variable names to firstWordLowerCase style to agree with the Style Guide.
svn path=/trunk/; revision=57
2008-11-19 19:23:24 +00:00
Marina Zhurakhinskaya
372021d05b Display a background rectangle for the desktop in the overlay mode when we don't have a desktop window from the file manager, which is the case when the preference for showing icons on the desktop is disabled by the user or we are running inside a Xephyr window.
svn path=/trunk/; revision=56
2008-11-18 01:33:03 +00:00
Owen Taylor
2253f8bf2c Build libtray and libtidy as uninstalled convenience libraries as intended
Move libtidy and libtray from lib_LTLIBRARIES to noinst_LTLIBRARIES; this keeps
automake from passing an -rpath when building them, which in turn convinces
libtool to build them as convenience libraries rather than shared objects.

svn path=/trunk/; revision=55
2008-11-18 01:13:53 +00:00
Owen Taylor
0c9468f139 Check that xulrunner-1.9-dev is installed ahead of time
On Debian and Ubuntu, if xulrunner-1.9-dev is not installed before starting jhbuild,
then things will break in mysterious ways, so check for that at the end of
gnome-shell-build-setup.sh.

Patch from Sander Dijkhuis.


svn path=/trunk/; revision=54
2008-11-18 00:45:32 +00:00
Marina Zhurakhinskaya
bc2cb8fb62 Add an extra background to the button that maintains the state of the pressed button color opacity. This ensures the highlighted button color will be based on the button color instead of the color of the item the button is added to.
svn path=/trunk/; revision=53
2008-11-17 22:32:28 +00:00
Marina Zhurakhinskaya
679365f1c1 Add a button object that highlights a button area when it is moused over and transitions it to a different color when the button is pressed in. Use this button object for the panel's "Activities" button.
Add some comments, TODO items, and type fixes to the code.

svn path=/trunk/; revision=52
2008-11-15 00:44:11 +00:00
Colin Walters
ab0f4df2b4 Use metacity for building Tidy-1.0.gir as well; fix up dependencies
svn path=/trunk/; revision=51
2008-11-14 22:47:33 +00:00
Colin Walters
6596010802 Tidy.gir also depends on the tidy sources, not the gnomeshell sources
svn path=/trunk/; revision=50
2008-11-14 22:06:50 +00:00
Colin Walters
1266956e56 Tidy-1.0.typelib depends on libtidy-1.0.la, not libgnomeshell.la
svn path=/trunk/; revision=49
2008-11-14 22:05:08 +00:00
Colin Walters
50dfb21d6f Ensure we clean out the .gir and .typelibs
svn path=/trunk/; revision=48
2008-11-14 21:52:48 +00:00
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