Commit Graph

3443 Commits

Author SHA1 Message Date
Owen W. Taylor
9c8074535c Change Meta.Direction.Top to Meta.Side.TOP
Handle MetaSide being split from MetaDirection. The enums have
the same numeric values for the corresponding values, so this
change is only a cleanup.
2009-03-17 17:14:24 -04:00
Owen W. Taylor
384b88910a Call a global variable in our jhbuildrc _libdir not libdir
jhbuild will complain if there are unknown variables not prefixed
with _ in the jhbuildrc, so rename libdir to _libdir.
2009-03-17 16:09:06 -04:00
Owen W. Taylor
bd2fecc222 Add commented out workaround for #571240
jhbuildrc-gnome-shell: Remove obsolete setting of
   os.environ['INSTALL'] - setting installprog is the modern way
   to do it.
jhbuildrc-custom-example: Show how to override installprog to
  work around #571240 on Arch Linux.
2009-03-14 18:22:39 -04:00
Dan Winship
8087e6aee6 make gnome-shell runnable from an install 2009-03-12 10:04:47 -04:00
Dan Winship
e01efd3635 Make "make distcheck" work, and verify that we're disting all the javascript 2009-03-12 10:04:25 -04:00
Marina Zhurakhinskaya
30a9c6b2f4 Don't reset the page selection if the results have changed while the user
was browsing exiting results

This is most noticeable when viewing results in xephyr, and then opening
a document in your regular session. But it could also be noticeable if
downloading a new file completes while the user is in the overlay.

This patch also moves the call to _displayMatchedItems() to _redisplay
instead of making it in both _setDefaultList() and _doSearchFilter().
2009-03-11 17:56:22 -04:00
Marina Zhurakhinskaya
39eb563687 Bug 574697 - Slide the workspaces back in if the user starts dragging a document or an application item in the expanded display mode
Sliding the workspaces back in when the user starts dragging an item in the
expanded display mode allows the user to select a workspace in which the item
should be launched and stay in the overlay mode.

This patch adds code to dnd.js that handles notifying actors when a drag item is being dragged over them. Overlay code uses such notification to unset expanded display modes and trigger sliding in of the workspaces.

If the drag is cancelled the drag item snaps back to its source or disappears at the original position of its source if the source is no longer displayed.
2009-03-11 15:41:33 -04:00
Colin Walters
c570795ac7 exit () on JavaScript exceptions
This is better than being in a wedged state.  See the comment
for more argument.
2009-03-10 17:53:05 -04:00
Colin Walters
947303cc0b Use the use_lib64 jhbuild variable to pick the correct libdir
Fixes multilib systems with 32 bit devel packages installed.
2009-03-10 16:25:53 -04:00
Marina Zhurakhinskaya
8aa56e373f Bug 574691 – Stay in the overlay mode after drag and drop
Just calling launch() on the item instead of activate(), launches the item but doesn't close the overlay mode.
2009-03-10 13:37:01 -04:00
Dan Winship
508d6021da Fix another s/$(libdir)/$(META_LIB_DIR)/ when building Shell-0.1.typelib 2009-03-10 13:03:20 -04:00
Dan Winship
ab663d62e4 Remove references to files that no longer exist 2009-03-10 13:01:04 -04:00
Dan Winship
1048ae898b fix CLEANFILES: it's Shell-0.1.gir, not Shell-1.0.gir 2009-03-10 13:00:36 -04:00
Dan Winship
d7a23b7e31 Bug 573413 – libmozjs linking broken on Ubuntu
Patch gnome-shell.in to work around Ubuntu xulrunner bug in the same
way our .jhbuildrc does
2009-03-10 11:19:38 -04:00
Marina Zhurakhinskaya
5af37f140e Bug 574117 - Allow paging through the application and document results in the overlay
Add a display control that contains page numbers for the result
pages and is shown in the expanded results view. All of the page selection and
switching is handled by the GenericDisplay which exposes a displayControl
actor, which is then displayed by the Sideshow.
2009-03-09 16:52:11 -04:00
Colin Walters
8b1f732228 Make Escape key close More... modes before closing overlay entirely
This matches what I'd expect at least.
2009-03-06 13:06:39 -05:00
Owen W. Taylor
3066f60efc Handle applications without descriptions
ClutterText doesn't accept NULL for text, so pass in "" explicitly
if the description is null or undefined.

(Mentioned in Bug 573404)
2009-02-27 11:35:31 -05:00
Owen W. Taylor
cb4ad9a963 Fix behavior of More... links by adding a Link class
We had problems because the More links were reacting on press but
other elements were reacting on release. (Often the link would trigger
*and* an item.) Just connecting to ::button-release-event on
ClutterText gives a stuck grab (since ClutterText gets the press
but not the release), so we need more complicated code that we
encapsulate into a new class.

link.js: new "pseudo-widget" that implements a clickable link.
overlay.js: Use Link.Link for the More.. links

http://bugzilla.gnome.org/show_bug.cgi?id=573323
2009-02-26 18:07:25 -05:00
Dan Winship
6676260308 Don't try to respawn metacity and the panel if we didn't kill them.
Also, don't crash out of the python script if metacity-clutter crashes
2009-02-26 13:08:42 -05:00
Dan Winship
84aec28575 Make the gnome-shell script work without needing "jhbuild run" 2009-02-25 14:37:16 -05:00
Marina Zhurakhinskaya
b39bc62171 Destroy workspaces background when exiting overlay mode
Otherwise, we kept adding new backgrounds which was breaking the overlay mode when it was re-entered.
2009-02-25 14:01:39 -05:00
Marina Zhurakhinskaya
009a8b3a04 Connect to 'text-changed' signal in the overlay search box
Replace connecting to 'notify::text' in the overlay search box
by connecting to 'text-changed' signal made available by ClutterText in Clutter 0.9.
2009-02-25 13:31:41 -05:00
Marina Zhurakhinskaya
95c87f87fa Bug 573078 – Add better transitions when expanding the item displays
Add black backgrounds to each item display, as well as a black
background with a full-screen height to the workspaces display.

Update the expanded item display up front when 'More...' is clicked, and
reveal the additional items gradually when the other components of the overlay
slide away.

Raise the documents display up gradually as the applications display above it slides away.

Reverse the process when 'Less...' is clicked. First, gradually cover up additional items by other components, and then update the displays to contain fewer items.
2009-02-25 13:23:12 -05:00
Colin Walters
629c35bd2a Only try to kill gnome-panel if it's running
This avoids crashing if it's not.
2009-02-25 12:54:14 -05:00
Dan Winship
54a9b5ae4e Move LIBGL_ALWAYS_INDIRECT code to the right place 2009-02-24 14:59:32 -05:00
Dan Winship
c67289fa2c Update Fedora deps (Bug 572053) and reorganize/improve in general
Package checking now happens first, and checking for "curl" (and other
packages needed by the script itself) happens at the same time. I
tried to extract out a genericized list of what packages are needed,
and then reordered the packages for each distro to make it clear which
distros are missing some of the required packages in their lists
(currently, everything except Fedora)
2009-02-24 13:05:13 -05:00
Dan Winship
67092f807e Fix setting of LIBGL_ALWAYS_INDIRECT
(Previous commit mistakenly only set it in verbose mode due to a cut and
paste error.)
2009-02-23 16:45:38 -05:00
Dan Winship
0763f5bc42 Replace start-in-Xephyr/start-replace with a new single "gnome-shell" script
The new script runs in "replace" mode if you pass --replace, or if there
isn't already a panel running, and in "Xephyr" mode otherwise.
2009-02-23 16:16:20 -05:00
Owen W. Taylor
1fe32e30f5 Improve font appearance
- Force off text mipmapping - it isn't useful to us and causes
  problems with old (pre-GEM) Intel drivers.
- Set Pango font options explicitly to enable font hinting.
2009-02-23 14:53:18 -05:00
Owen W. Taylor
0f7abf96a7 Port to Clutter-0.9
tools/build/gnome-shell.modules: Point  at master branch of Clutter (0.9)
  and make gobject-introspection a dep of Clutter.
configure.ac src/Makefile.am: Use Clutter-0.9
js/ui/button.js js/ui/genericDisplay.js js/ui/overlay.js js/ui/panel.js
js/ui/runDialog.js js/ui/workspaces.js src/shell-status-menu.c:
  Use ClutterText instead of ClutterLabel and ClutterEntry
js/ui/workspaces.js js/ui/genericDisplay.js: Use ClutterClone instead
  of ClutterCloneTexture
src/shell-global.[ch]: Add Shell.get_event_key_symbol() to workaround
  unaccessibility of clutter_key_event_symbol() to use.
js/runDialog.js js/overlay.js: Use Shell.get_event_key_symbol() as
  appropriate.
2009-02-23 14:53:06 -05:00
Owen W. Taylor
6719c00f8a When centering, round to integer positions
Positioning actors at non-integer positions produces bad looking
text. Therefore, do centering as x + round((a-b)/2) rather than
x + (a-b)/2. (This does mean that centering will be less accurate
if an actor is scaled up by a lot, but it's pretty reasonable
to assume that scaling only occurs during an effect and static
displays are unscaled.)
2009-02-23 14:02:16 -05:00
Owen W. Taylor
f90523288d Port BigBox to Clutter-0.9
- include only <clutter/clutter.h>
- cogl_rectangle() takes x1/y1/x2/y2 instead of x/y/width/height
- cogl_color() renamed to cogl_set_source_color4ub()
- use explicit CoglMaterial in BigRectangle to combine a texture
  and a color.
- Remove defensive calls to cogl_enable(0) - cogl_enable() no
  longer exists (enable flags are part of the material)
- Use ClutterCairoTexture actor (from Clutter) rather than ClutterCairo
2009-02-23 14:02:16 -05:00
Owen W. Taylor
902c29aa0c Change TidyGrid to just include clutter/clutter.h
Including individual headers no longer works with Clutter-0.9.
2009-02-23 14:02:16 -05:00
Owen W. Taylor
d61401429e Remove the parts of Tidy that we aren't using
Remove TidyButton/TidyFrame and the utility classes they use.
We aren't using them and this avoids porting them to Clutter-0.9.
2009-02-23 14:02:16 -05:00
Marina Zhurakhinskaya
333fa611da Bug 572094 - Put sideshow sections into boxes, enable expanded item display for documents
Put sideshow sections into boxes so that we can slide them out with a single 'easeOutQuad' transition.

Handle expanding the documents section in the same fashion as we handle expanding the applications section.

Place "More..." labels inside Big Boxes with x_align set to Big.BoxAlignment.END so that we don't have to position them manually.
2009-02-20 11:57:30 -05:00
Marina Zhurakhinskaya
87f50c3f42 Fix up triggering search in the overlay.
Make sure to set this._searchQueued to true, so that we don't queue the search twice.

Remove an unused variable.
2009-02-20 11:53:25 -05:00
Jonathan Matthew
0eb4873ba0 Bug 572384 - can't select windows that are on all workspaces in the overlay
Workspace._onCloneSelected doesn't need to ask the window which
workspace it's on, it can just use its own workspaceNum field.
2009-02-20 00:02:49 +10:00
Colin Walters
7b2d333b2e Remove extraneous trailing paren accidentally introduced by c3c46786 2009-02-17 15:15:01 -05:00
Colin Walters
aaa846da17 Bug 571313 - Refocus search field every time overlay is shown
Before the run dialog was changing the focus, but because we were
only setting it once, we ended up with nothing focused after the run
dialog was destroyed.
2009-02-17 12:59:00 -05:00
Colin Walters
c3c4678635 Bug 571651 - Bind Alt-F1 to overlay
Previously it was bound to main menu, bind it to the overlay now.
2009-02-17 11:39:50 -05:00
Colin Walters
ac286a7722 Merge branch 'master' of ssh://walters@git.gnome.org/git/gnome-shell 2009-02-17 11:38:25 -05:00
Dan Winship
3d152f9c17 Fix the initial workspaces setup code. #571091
mutter_plugin_get_windows() returns NULL at plugin-initialization time,
so we have to wait until idle time to figure out which workspaces are
being used and remove the unused ones.

http://bugzilla.gnome.org/show_bug.cgi?id=571091
2009-02-16 14:35:18 -05:00
Frederic Crozat
2a57080756 Add mesa-demos dependency on Mandriva for glxinfo 2009-02-13 21:12:25 +01:00
Frederic Crozat
2a031b3a21 Add flex bison GL-devel zenity intltool for Mandriva packages 2009-02-13 21:03:16 +01:00
Colin Walters
9da734706c Add --sync option to enable X synchronization
This is useful for debugging.
2009-02-13 14:40:52 -05:00
Frederic Crozat
bb1d1cc48d Add more packages for Mandriva build and really call urpmi 2009-02-13 18:53:54 +01:00
Frederic Crozat
978fe62e3e Add support for Mandriva Linux 2009-02-13 18:21:51 +01:00
Owen W. Taylor
edcefc70aa Repoint modules for move to git.gnome.org
gobject-introspection, gir-repository, and gjs have moved to git; adjust
jhbuild moduleset accordingly.

Also remove example for setting your svn.gnome.org username since none
of the modules are there any more.
2009-02-12 18:04:05 -05:00
Colin Walters
85dae56a31 Bug 571203 - Handle spaces in overlay search
Previously we were stripping all whitespace.  Instead, just strip leading+trailing
whitespace, split the remaining search into individual terms which we search
for independently.

Items are grouped by the number of terms they match, then sorted
alphabetically.
2009-02-11 16:50:42 -05:00
Marina
2d3988c5fc Bug 570579: Redo the layout of overlay components
Divide the screen into a grid and use it to determine the layout of the overlay components in a more consistent manner.

Remove the 'Add workspace' control and slide the workspaces
display to the side without scaling it when switching to the 'More' mode.
2009-02-10 17:38:06 -05:00