- 18 Nov, 2010 8 commits
-
-
Owen W. Taylor authored
Frame types will form the bases of shadow classes, which are strings, so export the to-string function so that we can do the conversion uniformly. https://bugzilla.gnome.org/show_bug.cgi?id=592382
-
Owen W. Taylor authored
Add a public function to get the frame type for a window; the code is refactored from existing code in core.c. https://bugzilla.gnome.org/show_bug.cgi?id=592382
-
Owen W. Taylor authored
Move meta_window_appears_focused() into the public window.h so we can use it to change the shadow type. https://bugzilla.gnome.org/show_bug.cgi?id=592382
-
Owen W. Taylor authored
The basic MetaShadowFactory type is moved to a public header, while the functions to fetch and paint shadows are kept private. The public object will be used for configuration of shadows by plugins. https://bugzilla.gnome.org/show_bug.cgi?id=592382
-
-
Owen W. Taylor authored
For attached modal dialogs, we want the shadow to fade out at the top as if the window was glued to the parent at the top. Add a shadow-top-fade property to MetaWindowActor and the corresponding parameter to meta_shadow_factory_get_shadow(). The internal implementation of MetaShadow is adjusted to work in terms of an "inner border" and "outer border" instead of doing the calculations in terms of an aggregate border and the spread of the shadow. The old way of doing things gets clumsy when the top_fade distance is added in as well. https://bugzilla.gnome.org/show_bug.cgi?id=592382
-
Owen W. Taylor authored
Add a new frame type META_FRAME_TYPE_ATTACHED which is used for attached modal dialogs. The theme format version is bumped to 3.2, and attached windows can have borders defined in a metacity-theme-3.xml as: <window version=">= 3.2" type="attached" style_set="[name]"/> If no style is defined for "attached", drawing will fall back to the "border" type. https://bugzilla.gnome.org/show_bug.cgi?id=592382
-
Owen W. Taylor authored
The current shadow code just uses a single fixed texture (the Gaussian blur of a rectangle with a fixed blur radius) for drawing all window shadows. This patch adds the ability * Implement efficient blurring of arbitrary regions by approximating a Gaussian blur with multiple box blurs. * Detect when multiple windows can use the same shadow texture by converting their shape into a size-invariant MetaWindowShape. * Add properties shadow-radius, shadow-x-offset, shadow-y-offset, shadow-opacity to allow the shadow for a window to be configured. * Add meta_window_actor_paint() and draw the shadow directly from there rather than using a child actor. * Remove TidyTextureFrame, which is no longer used https://bugzilla.gnome.org/show_bug.cgi?id=592382
-
- 13 Nov, 2010 2 commits
-
-
Gheyret T.Kenji authored
-
Gheyret T.Kenji authored
-
- 11 Nov, 2010 1 commit
-
-
Javier Jardón authored
-
- 09 Nov, 2010 1 commit
-
-
Khaled Hosny authored
-
- 08 Nov, 2010 1 commit
-
-
Owen W. Taylor authored
-
- 03 Nov, 2010 1 commit
-
-
Matthias Clasen authored
The size_request vfunc is going to be dropped in GTK3; replace the usage in MetaAccelLabel and MetaPreview with get_preferred_width/get_preferred_height vfuncs. https://bugzilla.gnome.org/show_bug.cgi?id=633352
-
- 31 Oct, 2010 1 commit
-
-
Petr Kovář authored
-
- 28 Oct, 2010 4 commits
-
-
Owen W. Taylor authored
In GTK+ 3, it's mandatory to have a GdkDevice in a synthesized event, so fill in the pointer device for the events we synthesize and forward to GTK+. Since gdk_event_set_device() only works for allocated events, we need to switch to gdk_event_new() rather than using stack allocated events. https://bugzilla.gnome.org/show_bug.cgi?id=633401
-
Owen W. Taylor authored
Now that we create MetaWindow objects for override-redirect windows, we need to check all key press events to see if they are on GTK+ widgets, not just events that don't match a MetaWindow. This fixes a problem with alt-Tab stealing grabs away from the window menu. https://bugzilla.gnome.org/show_bug.cgi?id=633398
-
Owen W. Taylor authored
With client side windows, mixing GDK event delivery with explicit calls to XUngrabPointer() can result in GDK losing button release events it expects to get. This means that GDK thinks there is an implicit grab in effect when there is none and send events to the wrong window. Avoid this by bypassing GDK's event handling for most mouse events. We do a simplified conversion of the X event into a GdkEvent and send it to directly to libgtk for delivery. We make an exception when a GDK grab is already in effect - this is needed for the correct operation of menus. http://bugzilla.gnome.org/show_bug.cgi?id=599181
-
Florian Müllner authored
While the Meego developers agreed to switching mutter to GTK+-3.0 unconditionally a while ago, Canonical used a GTK+-2.0 build for their Unity project. As Canonical now announced a switch to compiz as their window manager, there is no longer a reason to maintain GTK+-2.0 compatibility. https://bugzilla.gnome.org/show_bug.cgi?id=633133
-
- 27 Oct, 2010 1 commit
-
-
Owen W. Taylor authored
-
- 26 Oct, 2010 1 commit
-
-
Fran Diéguez authored
-
- 25 Oct, 2010 3 commits
-
-
Dan Winship authored
meta_display_process_key_event() always looks up events based on the "default" keysym for the keycode, so we should do the same here. This fixes, eg, the lookup of Shift-Alt-Tab (which would otherwise be unrecognized because the keysym would be XK_ISO_Left_Tab rather than XK_Tab). https://bugzilla.gnome.org/show_bug.cgi?id=632155
-
Giovanni Campagna authored
In ui/fixedtip.c, use g_signal_connect instead of g_signal_connect_swapped since we're not using the data pointer (and for clarity). At the same time, ensure that both the GTK2 and the GTK3 code paths have the correct signature for the handler. https://bugzilla.gnome.org/show_bug.cgi?id=633051
-
Yinghua Wang authored
-
- 24 Oct, 2010 1 commit
-
-
- 23 Oct, 2010 4 commits
-
-
Owen W. Taylor authored
The code for defining a color as a constant had broken logic: it would try to parse the color first as an double, then as an integer; the second attempt would produce an error about overwriting the already-set-GError. Then it would clear the error and store the constant as a color. Use the fact that colors have to start with a letter or #, divide the space of constants into: - Integers - Doubles - Colors so we get good error messages. Based on a patch by William Jon McCann <jmccann@redhat.com>. Note that this breaks the ability to specify an integer constant as identical to another integer constant (the same didn't work for doubles.) I think this was an accidental side effect of the code and not something that was intentional or people were relying on https://bugzilla.gnome.org/show_bug.cgi?id=632116
-
Owen W. Taylor authored
Remove --allow-unprefixed option to the scanner, and fix resulting problems: * theme.h and boxes.h are split into a main -header and a private header that includes stuff that is not generally useful and hard to introspect. Merge theme-parser.h into theme.h. * meta_display_get_atom() and meta_window_get_window_type_atom() are marked as (skip) * Fix annotation: (element-type Strut) => (element-type Meta.Strut) https://bugzilla.gnome.org/show_bug.cgi?id=632494
-
Owen W. Taylor authored
Move all objects and functions namespaced with Mutter into the Meta namespace to get a single consistent namespace. Changes that aren't simply changing mutter to meta: MutterWindow => MetaWindowActor mutter_get_windows => meta_get_window_actors mutter_plugin_get_windows => meta_plugin_get_window_actors https://bugzilla.gnome.org/show_bug.cgi?id=628520
-
Owen W. Taylor authored
In many places, MetaRegion was being used entirely internally, rather than for gtk2/gtk3 compatibility. In these cases, it's simpler to just depend on cairo-1.10 (for both gtk2 and gtk3) and use cairo_region_t. The few places where we did need GDK compatibility (GdkEvent.region and gdk_window_shape_combine_mask) are replaced with a combination of converting GdkRegion to cairo_region_t and conditional code. https://bugzilla.gnome.org/show_bug.cgi?id=632474
-
- 20 Oct, 2010 1 commit
-
-
Dan Winship authored
Also, add an assertion to init_bindings() to keep it from getting out of sync again in the future. https://bugzilla.gnome.org/show_bug.cgi?id=632149
-
- 11 Oct, 2010 1 commit
-
-
Nickolas Lloyd authored
This patch fixes the drawing of <arc> theme elements to appear in the desired orientation https://bugzilla.gnome.org/show_bug.cgi?id=631487
-
- 06 Oct, 2010 2 commits
-
-
Owen W. Taylor authored
Simplify the code by noting that when we have square end-caps, the results of generic line path give the right pixel-aligned rectangle for horizontal/vertical lines. Add comments and remove some extra braces. https://bugzilla.gnome.org/show_bug.cgi?id=630426
-
BearOso authored
-
- 05 Oct, 2010 2 commits
-
-
Colin Walters authored
This is the primary target for GNOME 3, so it makes sense to have it be the default.
-
Colin Walters authored
The GNOME Shell jhbuild doesn't include libcanberra atm, so if we find an old one (as is in F14) it will fail with a newer GTK3.
-
- 04 Oct, 2010 2 commits
-
-
Owen W. Taylor authored
-
Owen W. Taylor authored
An accidental removal of $$pwd was causing Meta-<version>.gir to be generated in srcdir.
-
- 02 Oct, 2010 2 commits
-
-
William Jon McCann authored
Fixes an assertion when the wrong icon can't be found.
-
Benjamin Otte authored
This code adapts mutter to the latest changes to GTK in http://git.gnome.org/browse/gtk+/commit/?id=872ef111ecabf6cd4453590b1e17afd3c9757f28 that remove the dest argument from gdk_pixbuf_get_from_window() and gdk_pixbuf_get_from_surface(). It also removes the dest argument from meta_gdk_pixbuf_get_from_pixmap() to match. The function is internal and the argument wasn't used. https://bugzilla.gnome.org/show_bug.cgi?id=631147
-
- 30 Sep, 2010 1 commit
-
-
Florian Müllner authored
-