gtk4.git
10 years agoUpdated Hebrew po-properties translation
Yosef Or Boczko [Thu, 16 Jul 2015 09:59:49 +0000 (12:59 +0300)]
Updated Hebrew po-properties translation

10 years agoUpdated Hebrew translation
Yosef Or Boczko [Thu, 16 Jul 2015 09:54:42 +0000 (12:54 +0300)]
Updated Hebrew translation

10 years agoUpdated Hebrew translation
Yosef Or Boczko [Thu, 16 Jul 2015 09:44:56 +0000 (12:44 +0300)]
Updated Hebrew translation

10 years agoUpdated Spanish translation
Daniel Mustieles [Thu, 16 Jul 2015 08:41:16 +0000 (10:41 +0200)]
Updated Spanish translation

10 years agoUpdated Spanish translation
Daniel Mustieles [Thu, 16 Jul 2015 08:40:58 +0000 (10:40 +0200)]
Updated Spanish translation

10 years agoUpdated POTFILES.in and POTFILES.skip
Piotr Drąg [Thu, 16 Jul 2015 04:49:33 +0000 (06:49 +0200)]
Updated POTFILES.in and POTFILES.skip

10 years agotests: Remove testplacesview test
Benjamin Otte [Thu, 16 Jul 2015 04:37:37 +0000 (06:37 +0200)]
tests: Remove testplacesview test

The GtkPlacesView widget was made private, so we can't create it in a
testcase.

10 years agotests: Fix gcc complaints about testfilechooser
Benjamin Otte [Thu, 16 Jul 2015 04:25:46 +0000 (06:25 +0200)]
tests: Fix gcc complaints about testfilechooser

10 years agoheaderbar: Get rid of get_path_for_child()
Benjamin Otte [Thu, 16 Jul 2015 01:22:40 +0000 (03:22 +0200)]
headerbar: Get rid of get_path_for_child()

Instead, reorder CSS nodes.

10 years agoheaderbar: Finish widget setup before showing it.
Benjamin Otte [Tue, 14 Jul 2015 23:51:01 +0000 (01:51 +0200)]
headerbar: Finish widget setup before showing it.

10 years agoheaderbar: forall() the button boxes in the right order
Benjamin Otte [Tue, 14 Jul 2015 20:27:13 +0000 (22:27 +0200)]
headerbar: forall() the button boxes in the right order

10 years agoheaderbar: Remove unused variables in private struct
Benjamin Otte [Tue, 14 Jul 2015 16:02:48 +0000 (18:02 +0200)]
headerbar: Remove unused variables in private struct

10 years agotoolbar: Switch from get_path_for_child() to css node managing
Benjamin Otte [Sun, 12 Jul 2015 21:11:24 +0000 (23:11 +0200)]
toolbar: Switch from get_path_for_child() to css node managing

10 years agocssnode: Add gtk_css_node_reverse_children()
Benjamin Otte [Sun, 12 Jul 2015 21:11:11 +0000 (23:11 +0200)]
cssnode: Add gtk_css_node_reverse_children()

10 years agocssnode: Change API of some functions
Benjamin Otte [Sun, 12 Jul 2015 19:39:49 +0000 (21:39 +0200)]
cssnode: Change API of some functions

gtk_css_node_set_after/before() are now called
gtk_css_node_insert_after/before().

This brings them in line with other similar APIs (ie GtkListStore). And
it allows easier usage of the API (see changes to gtkbox.c).

10 years agofilechooserwidget: use places view to manage fixed devices
Georges Basile Stavracas Neto [Tue, 14 Jul 2015 17:48:49 +0000 (14:48 -0300)]
filechooserwidget: use places view to manage fixed devices

Previous patch modified places sidebar widget to stop handling
fixed devices by adding an "Other Locations..." item. Up to now,
however, these changes are isolated from each other since the
bundled file manager widgets ignore the sidebar requests for
external management of fixed devices and networks.

To fix that, make the file chooser widget be aware of the
GtkPlacesSidebar::show-other-locations signal and, when requested,
show places view to manage the fixed devices and networks.

https://bugzilla.gnome.org/show_bug.cgi?id=752034

10 years agoplacessidebar: add Other Locations item
Georges Basile Stavracas Neto [Tue, 14 Jul 2015 17:47:42 +0000 (14:47 -0300)]
placessidebar: add Other Locations item

Places sidebar is a widget that enabled the user to select
XDG directories, bookmarks and mounted network locations,
as well as manages permanent and removable devices.

The new design that aims to look less clutered makes the
sidebar display only removable devices, as well as mounted
networks, bookmarks and XDG directories, and delegates the
management of permanent devices such as hard drive partitions
to GtkPlacesView, a newly introduced widget for this specific
purpose.

To delegate it, add an "Other Locations..." item to notify
when the permanent devices manager is required. Besides that,
don't show these fixes devices on the sidebar itself, as they
are not supposed to be handled by the sidebar anymore.

https://bugzilla.gnome.org/show_bug.cgi?id=752034

10 years agoplacesview: add view for fixed drives and networks
Georges Basile Stavracas Neto [Tue, 14 Jul 2015 17:45:37 +0000 (14:45 -0300)]
placesview: add view for fixed drives and networks

Places sidebar shows XDG directories, mounted and unmounted devices,
connected networks, bookmarks and actions like 'Connect to server'
and 'Insert location', which causes the sidebar to grow very quickly
and look cluttered. Because of that, new mockups for the sidebar try
to simplify it.

To make the sidebar simpler, the new mockups propose that it should
only handle connected networks and removable devices such as flash
drives and USB devices, and delegates other devices for external
widgets through the 'Other Locations' item.

To handle fixed devices and manage network connections, add a new
widget named GtkPlacesView, based on Nautilus mockups to keep
consistency between GNOME file management tools - in this case,
between Nautilus and the bundled Gtk's file chooser.

https://bugzilla.gnome.org/show_bug.cgi?id=752034

10 years agoRevert "x11: Query pointer devices' scroll valuators on toplevel enter events"
Carlos Garnacho [Wed, 15 Jul 2015 19:19:25 +0000 (21:19 +0200)]
Revert "x11: Query pointer devices' scroll valuators on toplevel enter events"

This reverts commit 77b8495bc4e51826afa451914d6a3b0df1b62a24.

The commit broke more scenarios than fixed, better to go back to square one.

10 years agoGdkDisplayX11: Properly translate server timestamps from _NET_WM_FRAME_* messages
Owen W. Taylor [Wed, 15 Jul 2015 16:38:38 +0000 (12:38 -0400)]
GdkDisplayX11: Properly translate server timestamps from _NET_WM_FRAME_* messages

When using frame times from _NET_WM_FRAME_DRAWN and _NET_WM_FRAME_TIMINGS, we
were treating them as local monotonic times, but they are actually extended-precision
versions of the server time, and need to be translated to monotonic times in the
case where the X server and client aren't running on the same system.

This fixes rendering stalls when using X over a remote ssh connection.
https://bugzilla.gnome.org/show_bug.cgi?id=741800

10 years agoplaces sidebar: Handle menu key
Matthias Clasen [Wed, 15 Jul 2015 05:44:31 +0000 (01:44 -0400)]
places sidebar: Handle menu key

It is good practice to handle the menu key and Shift-F10 to
allow keyboard-driven use of context menus.

10 years agomir: don't ensure_surface if window not visible
William Hua [Mon, 13 Jul 2015 12:55:43 +0000 (08:55 -0400)]
mir: don't ensure_surface if window not visible

10 years agomir: don't warn if transient_for is NULL
William Hua [Thu, 9 Jul 2015 19:59:29 +0000 (15:59 -0400)]
mir: don't warn if transient_for is NULL

10 years agomir: add more default settings under mir
William Hua [Thu, 9 Jul 2015 19:05:45 +0000 (15:05 -0400)]
mir: add more default settings under mir

10 years agoUpdated Portuguese translation
Pedro Albuquerque [Wed, 15 Jul 2015 10:02:38 +0000 (10:02 +0000)]
Updated Portuguese translation

10 years agoUpdated Spanish translation
Daniel Mustieles [Wed, 15 Jul 2015 09:13:29 +0000 (11:13 +0200)]
Updated Spanish translation

10 years agofile chooser: Show progess spinner even if not empty
Matthias Clasen [Wed, 15 Jul 2015 04:15:44 +0000 (00:15 -0400)]
file chooser: Show progess spinner even if not empty

With the previous approach, we could only show the spinner
before we had any results. With the new approach, we can just
leave the timeout in place and always show the spinner until
the search is done.

10 years agofile chooser: Stop search when entry is cleared
Matthias Clasen [Wed, 15 Jul 2015 04:12:33 +0000 (00:12 -0400)]
file chooser: Stop search when entry is cleared

10 years agofile chooser: Refine search progress display
Matthias Clasen [Wed, 15 Jul 2015 04:03:09 +0000 (00:03 -0400)]
file chooser: Refine search progress display

Move the spinner to the search bar, so we can keep it around
until the search is over.

10 years agofile chooser: Be more careful with subtitles
Matthias Clasen [Wed, 15 Jul 2015 03:48:09 +0000 (23:48 -0400)]
file chooser: Be more careful with subtitles

We were showing things like "Searching in (null)" if the current
folder is not in the sidebar. Avoid that by falling back to using
current_folder.

Pointed out by Carlos Soriano.

10 years agoGtkApplication: avoid using stale timestamps
Ryan Lortie [Mon, 6 Jul 2015 18:08:11 +0000 (14:08 -0400)]
GtkApplication: avoid using stale timestamps

Avoid using a stale timestamp (from the last user interaction with the
application) when a message arrives from D-Bus requesting that a new
window be created.

In this case the most-correct thing that we can do is to use no
timestamp at all.

We modify gdk_x11_display_set_startup_notification_id() to allow a NULL
value to mean "reset everything" and then call this function
unconditionally on receipt of D-Bus activation requests.  The result
will be that a missing desktop-startup-id in the platform-data struct
will reset the timestamp.

Under their default configuration metacity and mutter will both map
windows presented with no timestamp in the foreground.  This could
result in false-positive, but there is very little we can do about that
without the original timestamp from the user event.

https://bugzilla.gnome.org/show_bug.cgi?id=752000

10 years agogtkframe: Don't queue a redraw on the entire widget every size allocate
Jasper St. Pierre [Wed, 15 Jul 2015 01:24:42 +0000 (18:24 -0700)]
gtkframe: Don't queue a redraw on the entire widget every size allocate

Lots of applications often use GtkFrame as a giant toplevel container,
and that means that they get size allocated often. When frames get size
allocated, they invalidate their entire widget tree, even if they
haven't changed size or anything like that happens at all. This is
because the shadow / label needs to be redrawn if the child changes
size. We can optimize this out and only mark ourselves for a redraw if
the child has actually changed its size.

10 years agoGtkButtonBox: remove spacing when buttons are linked
Lars Uebernickel [Wed, 8 Jul 2015 14:36:07 +0000 (16:36 +0200)]
GtkButtonBox: remove spacing when buttons are linked

GtkButtonBox adds the "linked" class to its style context when its
layout is set to GTK_BUTTONBOX_EXPAND. It shouldn't ever make sense to
have spacing between buttons in that case, as themes generally draw
linked elements with a continuous border.

Thus, always set spacing to 0 and ignore GtkDialog's button-spacing
style property when the layout is set to EXPAND.

Also remove the now-redundant css rules which set button-spacing to 0
for message dialogs.

https://bugzilla.gnome.org/show_bug.cgi?id=752131

10 years agorange: Tweak button bindings
Matthias Clasen [Mon, 13 Jul 2015 22:56:34 +0000 (18:56 -0400)]
range: Tweak button bindings

Change things around so that warp-to-click and jump-by-pages are
bound to left-click and shift-left-click, depending on the value
of gtk-primary-button-warps-slider. Autoscrolling is bound to
right-click.

To achieve this, reorganize gtk_range_multipress_gesture_pressed
so that the functions are clearly separated.

10 years agoUpdated Spanish translation
Daniel Mustieles [Mon, 13 Jul 2015 08:51:18 +0000 (10:51 +0200)]
Updated Spanish translation

10 years agoUpdated Spanish translation
Daniel Mustieles [Mon, 13 Jul 2015 08:51:05 +0000 (10:51 +0200)]
Updated Spanish translation

10 years agoGtkSettings: Fix a documentation typo
Kalev Lember [Sun, 12 Jul 2015 18:18:17 +0000 (20:18 +0200)]
GtkSettings: Fix a documentation typo

10 years agorange: Trivial field ordering
Matthias Clasen [Sun, 12 Jul 2015 05:53:36 +0000 (01:53 -0400)]
range: Trivial field ordering

10 years agorange: Add a stepper alternative
Matthias Clasen [Sun, 12 Jul 2015 05:36:17 +0000 (01:36 -0400)]
range: Add a stepper alternative

Make shift right-click on the trough start autoscrolling. The
autoscrolling is similar to the way steppers operate now, with
the difference that we vary the scrolling speed based on the
distance of the pointer from the widget.

10 years agorange: switch secondary and middle button on steppers
Matthias Clasen [Sun, 12 Jul 2015 04:23:32 +0000 (00:23 -0400)]
range: switch secondary and middle button on steppers

Clicking on steppers does different things depending on which
button you use. We used to scroll to the end on secondary click
and use high-speed autoscrolling on middle-click. Switch these
two around, since the scroll-to-end functionality is less likely
to be useful, and the seconary button makes the autoscrolling
more easily available.

10 years agofont chooser: Remove a stray notify
Matthias Clasen [Thu, 9 Jul 2015 14:10:10 +0000 (09:10 -0500)]
font chooser: Remove a stray notify

This was forgotten when I changed to font map to not be a
property.

10 years agofile chooser: Clean up unused includes
Matthias Clasen [Thu, 9 Jul 2015 01:47:47 +0000 (21:47 -0400)]
file chooser: Clean up unused includes

10 years agofile chooser: Remove some obsoltete code
Matthias Clasen [Thu, 9 Jul 2015 01:37:47 +0000 (21:37 -0400)]
file chooser: Remove some obsoltete code

We no longer have editable rows in the list, so no need to
check for them anymore.

10 years agofile chooser: Fix multi-selection
Matthias Clasen [Thu, 9 Jul 2015 01:31:40 +0000 (21:31 -0400)]
file chooser: Fix multi-selection

Even if we only ever hit the code with a singleton selection,
calling gtk_tree_selection_get_selected is not ok if the tree
selection mode allows multi-selection. Replace all calls to
gtk_tree_selection_get_selected in the file chooser code with
callback loops iterating over the selection. This problem
was introduced with the recently added rename and delete
menuitems.

10 years agofile chooser: Do less work
Matthias Clasen [Thu, 9 Jul 2015 01:09:23 +0000 (21:09 -0400)]
file chooser: Do less work

We only need to update the sensitivity of the context menu
items rihgt before we are going to pop it up. Everything else
is pointless work.

10 years agofile chooser: Avoid doing excess work
Matthias Clasen [Thu, 9 Jul 2015 01:06:58 +0000 (21:06 -0400)]
file chooser: Avoid doing excess work

Whenever we change directories, we unset the model, and then
we set a new model. This causes several emissions of
GtkTreeSelection::changed, for each of which we do a bunch
of work to update the path bar, the location entry, etc.

We can savely ignore some of these signals, and do less work.

10 years agoTrivial code cleanup
Matthias Clasen [Thu, 9 Jul 2015 00:32:03 +0000 (20:32 -0400)]
Trivial code cleanup

10 years agofile chooser: Avoid animations when setting up
Matthias Clasen [Thu, 9 Jul 2015 00:15:07 +0000 (20:15 -0400)]
file chooser: Avoid animations when setting up

There is no need to animate things when we are just setting up
the startup mode, so disable transitions in the revealer and
the stack. Pointed out by Carlos Soriano

10 years agofile chooser: Ensure we update subtitles
Matthias Clasen [Wed, 8 Jul 2015 21:42:34 +0000 (17:42 -0400)]
file chooser: Ensure we update subtitles

Notify the ::subtitle property when modes change that may
affect it. Also ensure that we update the location mode when
we switch back to the pathbar.

10 years agocssnode: Only queue_validate() when node is visible
Benjamin Otte [Fri, 10 Jul 2015 19:34:41 +0000 (21:34 +0200)]
cssnode: Only queue_validate() when node is visible

This avoids running animations in hidden toplevels.

10 years agocssnode: Only invalidate sibling nodes if changed node is visible
Benjamin Otte [Fri, 10 Jul 2015 19:34:06 +0000 (21:34 +0200)]
cssnode: Only invalidate sibling nodes if changed node is visible

10 years agoUpdated Portuguese translation
Pedro Albuquerque [Fri, 10 Jul 2015 08:37:25 +0000 (08:37 +0000)]
Updated Portuguese translation

10 years agoAdded an additional explanation and code snippet for GtkImageMenuItem.c
Eric Williams [Tue, 7 Jul 2015 18:54:32 +0000 (14:54 -0400)]
Added an additional explanation and code snippet for GtkImageMenuItem.c

https://bugzilla.gnome.org/show_bug.cgi?id=752093

10 years agoAdded a more meaningful description for /deprecated/gtkimagemenuitem.c
Eric Williams [Tue, 7 Jul 2015 17:12:52 +0000 (13:12 -0400)]
Added a more meaningful description for /deprecated/gtkimagemenuitem.c

https://bugzilla.gnome.org/show_bug.cgi?id=752088

10 years agoplaces sidebar: Fix rows getting 'lost' when dnd fails
Matthias Clasen [Wed, 8 Jul 2015 03:16:09 +0000 (23:16 -0400)]
places sidebar: Fix rows getting 'lost' when dnd fails

There was some code that lead to the places sidebar loosing track
of the row being dragged if a motion event came in between letting
go of the button and the drag snap-back animation ending. This would
cause us to not show the row again, giving the appearance that it
was 'lost'.

https://bugzilla.gnome.org/show_bug.cgi?id=751448

10 years agotesttoolbar: Don't expand rows that shouldn't be expanded
Benjamin Otte [Tue, 7 Jul 2015 19:38:59 +0000 (21:38 +0200)]
testtoolbar: Don't expand rows that shouldn't be expanded

10 years agoframe: Remove get_path_for_child implementation
Benjamin Otte [Tue, 7 Jul 2015 16:53:10 +0000 (18:53 +0200)]
frame: Remove get_path_for_child implementation

As far as I can read the code it added the .frame style class to the
GtkFrame element. But GtKFrame already has a .frame style class these
days.

10 years agoactionbar: Remove get_path_for_child implementation
Benjamin Otte [Tue, 7 Jul 2015 16:16:39 +0000 (18:16 +0200)]
actionbar: Remove get_path_for_child implementation

It wasn't used because CSS walks the widget->parent chain, so it'd only
ever call this func for priv->revealer.

10 years agocss: text-decoration-style is not inherited
Benjamin Otte [Tue, 7 Jul 2015 15:51:31 +0000 (17:51 +0200)]
css: text-decoration-style is not inherited

10 years agoSimplify Xft setting fallback
Matthias Clasen [Wed, 8 Jul 2015 00:39:45 +0000 (20:39 -0400)]
Simplify Xft setting fallback

If we don't find Xft values in the X resource db, simply fall
back to the values that are hardcoded in /etc/X11/Xresources
anyway. Extra trickery with likely-made-up screen dimensions
is not going to yield better results, and only makes for a
deeper rabbit hole when debugging.

10 years agogtksidebarrow: remove unused property
Carlos Soriano [Tue, 7 Jul 2015 20:57:51 +0000 (22:57 +0200)]
gtksidebarrow: remove unused property

The sensitive property was a workaround which commit
3f8982a0cd7b779fe023bbd fixed.
Just remove it now that is not necessary.

10 years agogtkrevealer: fix preferred width calculation
Carlos Soriano [Tue, 7 Jul 2015 20:47:10 +0000 (22:47 +0200)]
gtkrevealer: fix preferred width calculation

A typo which was using minimum_width for natural_width and viceversa.

10 years agoFix a minor typo
Piotr Drąg [Tue, 7 Jul 2015 19:51:55 +0000 (21:51 +0200)]
Fix a minor typo

10 years agoUpdated Polish translation
Piotr Drąg [Tue, 7 Jul 2015 18:26:24 +0000 (20:26 +0200)]
Updated Polish translation

10 years agogdkwindow-quartz: partial aspect ratio support
Tom Schoonjans [Mon, 6 Jul 2015 15:34:37 +0000 (17:34 +0200)]
gdkwindow-quartz: partial aspect ratio support

Support was added for GDK_HINT_ASPECT in
gdk_quartz_window_set_geometry_hints though with one restriction:
min_aspect and max_aspect have to be equal, which I believe corresponds
to the most common usage. A warning will be printed if this condition is
not met but min_aspect will be used anyway.

10 years agotestgmenu: use the menu binding code
Ryan Lortie [Mon, 6 Jul 2015 13:40:48 +0000 (09:40 -0400)]
testgmenu: use the menu binding code

The menu tracker does a better job of this than we can, so move over to
using it instead.

This fixes issues with './testgmenu --import' not properly displaying
the language submenu.

https://bugzilla.gnome.org/show_bug.cgi?id=752016

10 years agogtkdnd: Fix introspection annotations in some functions
Carlos Garnacho [Tue, 7 Jul 2015 10:50:14 +0000 (12:50 +0200)]
gtkdnd: Fix introspection annotations in some functions

The GdkEvent field is nullable on gtk_drag_begin*, and gtk_drag_cancel()
is a method, like the rest of the DnD API.

10 years agogtkdnd: Account for setting a same icon helper
Carlos Garnacho [Mon, 6 Jul 2015 17:33:49 +0000 (19:33 +0200)]
gtkdnd: Account for setting a same icon helper

g_set_object() will take care of ref'ing before destroying the previous
instance, which might actually be the same pointer.

https://bugzilla.gnome.org/show_bug.cgi?id=751401

10 years agoUpdated Portuguese translation
Pedro Albuquerque [Tue, 7 Jul 2015 05:25:12 +0000 (05:25 +0000)]
Updated Portuguese translation

10 years agofile chooser: Add a shortcut to focus the sidebar
Matthias Clasen [Tue, 7 Jul 2015 04:24:19 +0000 (00:24 -0400)]
file chooser: Add a shortcut to focus the sidebar

Alt+P used to do this in the gtk2 filechooser (well, sometimes).
Add this back as a key binding.

https://bugzilla.gnome.org/show_bug.cgi?id=720684

10 years agoplace sidebar: Make removing bookmarks work again
Matthias Clasen [Tue, 7 Jul 2015 03:21:51 +0000 (23:21 -0400)]
place sidebar: Make removing bookmarks work again

This was accidentally broken in ae8c07c67cfa83d967 when I
forgot to switch the sense of a condition.

10 years agofile chooser: Make delete confirmation match nautilus
Matthias Clasen [Tue, 7 Jul 2015 03:03:56 +0000 (23:03 -0400)]
file chooser: Make delete confirmation match nautilus

No need to diverge here.

10 years agofile chooser: Separate out delete and trash
Matthias Clasen [Tue, 7 Jul 2015 02:57:40 +0000 (22:57 -0400)]
file chooser: Separate out delete and trash

We only ever show one of the two context menu items (and we prefer
Move to Trash over Delete). Only use the confirmation dialog when
deleting.

10 years agoplace sidebar: minor change
Matthias Clasen [Tue, 7 Jul 2015 01:59:10 +0000 (21:59 -0400)]
place sidebar: minor change

We generally prefer for loops to iterate over lists.

10 years agofile chooser: Allow rename-to-self
Matthias Clasen [Tue, 7 Jul 2015 01:39:39 +0000 (21:39 -0400)]
file chooser: Allow rename-to-self

When checking for a name clash for renaming, don't complain if the
name is unchanged. That's harmless.

10 years agowip: reshuffle name checks
Matthias Clasen [Tue, 7 Jul 2015 01:35:03 +0000 (21:35 -0400)]
wip: reshuffle name checks

10 years agofile chooser: Remove unused field
Matthias Clasen [Tue, 7 Jul 2015 00:57:11 +0000 (20:57 -0400)]
file chooser: Remove unused field

10 years agofile chooser: Clear search entry when it goes away
Matthias Clasen [Tue, 7 Jul 2015 00:50:08 +0000 (20:50 -0400)]
file chooser: Clear search entry when it goes away

Keeping the entry contents conflicts with type-to-search.

10 years agocss: support text-decoration-style
Paolo Borelli [Mon, 6 Jul 2015 18:03:54 +0000 (20:03 +0200)]
css: support text-decoration-style

The support is limited to underline single, double and wavy, which
is what pango has today.

10 years agowayland: print correct coordinates during DnD
Michael Catanzaro [Mon, 6 Jul 2015 16:21:41 +0000 (11:21 -0500)]
wayland: print correct coordinates during DnD

Convert wl_fixed values to floats for printing, rather than printing
them as non-meaningful integers.

https://bugzilla.gnome.org/show_bug.cgi?id=752025

10 years agogtkdnd: Traverse across insensitive widgets
Carlos Garnacho [Wed, 1 Jul 2015 16:46:30 +0000 (18:46 +0200)]
gtkdnd: Traverse across insensitive widgets

The current widget lookup code bails out on insensitive widgets, there's
however legit cases where we want DnD handled by a parent of the insensitive
widget, so just keep going upwards in that case.

We also use now the widget state flags, because get_sensitive() doesn't
propagate across hierarchies, so we could conceivably find a drop site
inside an insensitive widget.

https://bugzilla.gnome.org/show_bug.cgi?id=751793

10 years agogtkwindow: Only allow unrestricted positioning to text handle popovers
Carlos Garnacho [Mon, 6 Jul 2015 14:39:06 +0000 (16:39 +0200)]
gtkwindow: Only allow unrestricted positioning to text handle popovers

This behavior has been made optional on add_popover() time, text handles
will keep being able to overflow the window, in order to allow text
selection on views too close to the window edge.

Regular GtkPopovers are reinstaurated to the previous size positioning
logic though, that is, limited by the visible area of the window.

10 years agoscrolledwindow: Keep scrollbars out of GtkScrollable::get_border
Carlos Garnacho [Wed, 1 Jul 2015 20:24:03 +0000 (22:24 +0200)]
scrolledwindow: Keep scrollbars out of GtkScrollable::get_border

It looks a bit odd that scrollbars stay over treeview headers and
similar, seems nicer to just avoid the border regions.

https://bugzilla.gnome.org/show_bug.cgi?id=751805

10 years agocssmatcher: Make nth-child(odd) work on first line
Benjamin Otte [Mon, 6 Jul 2015 02:35:59 +0000 (04:35 +0200)]
cssmatcher: Make nth-child(odd) work on first line

.. instead of only on 3rd, 5th, 7th, ...

10 years agocssnode: Do finer-grained position invalidation
Benjamin Otte [Mon, 6 Jul 2015 02:29:09 +0000 (04:29 +0200)]
cssnode: Do finer-grained position invalidation

As a side effect, this should fix this bug:

https://bugzilla.gnome.org/show_bug.cgi?id=751910

10 years agocsstypes: Change NTH_CHILD and NTH_LAST_CHILD change propagation
Benjamin Otte [Mon, 6 Jul 2015 01:58:56 +0000 (03:58 +0200)]
csstypes: Change NTH_CHILD and NTH_LAST_CHILD change propagation

For now assume that if those flags change for a node, they also changed
for all sibling nodes. This is not strictly true but simplifies
invalidation.

The reason it simplifies invalidation is that when removing or adding a
node, we can just invalidate the first node (for NTH_LAST_CHILD) and the
new node (for NTH_CHILD) and all the other nodes will be invalidated
automatically.

10 years agocssselector: Report finer granularity for position changes
Benjamin Otte [Sun, 5 Jul 2015 22:21:03 +0000 (00:21 +0200)]
cssselector: Report finer granularity for position changes

10 years agocsstypes: expand GtkCssChange enum
Benjamin Otte [Sun, 5 Jul 2015 20:45:34 +0000 (22:45 +0200)]
csstypes: expand GtkCssChange enum

Instead of GTK_CSS_CHANGE_POSITION we now have 4 values:
GTK_CSS_CHANGE_FIRST_CHILD, GTK_CSS_CHANGE_LAST_CHILD,
GTK_CSS_CHANGE_NTH_CHILD and GTK_CSS_CHANGE_NTH_LAST_CHILD

Nobody is using them directly yet.

10 years agogdkdisplay-x11: The leader window should be an input-only window
Jasper St. Pierre [Sun, 5 Jul 2015 22:45:49 +0000 (15:45 -0700)]
gdkdisplay-x11: The leader window should be an input-only window

This prevents it from creating a _NET_WM_USER_TIME_WINDOW, which can
confuse mutter / other window managers, and also me, when debugging.

10 years agopango: make merge_attrs return the merged list
Paolo Borelli [Sun, 5 Jul 2015 22:20:08 +0000 (00:20 +0200)]
pango: make merge_attrs return the merged list

This simplifies all the callers

10 years agocss: add shorthand text-decoration property
Paolo Borelli [Sun, 5 Jul 2015 21:24:49 +0000 (23:24 +0200)]
css: add shorthand text-decoration property

Note that for now we take into account only text-decoration-line
and text-decoration-color

10 years agocss: support text-decoration-color
Paolo Borelli [Sun, 5 Jul 2015 20:05:33 +0000 (22:05 +0200)]
css: support text-decoration-color

10 years agolinkbutton: use the text-decoration-line css
Paolo Borelli [Sun, 5 Jul 2015 17:31:28 +0000 (19:31 +0200)]
linkbutton: use the text-decoration-line css

Remove the custom add() implementation and use css to underline the
label.

10 years agocss: add support for text-decoration-line
Paolo Borelli [Sun, 5 Jul 2015 16:59:27 +0000 (18:59 +0200)]
css: add support for text-decoration-line

10 years agoentry: add css letter-spacing
Paolo Borelli [Sun, 5 Jul 2015 08:48:40 +0000 (10:48 +0200)]
entry: add css letter-spacing

10 years agolabel: add support for CSS letter-spacing property
Paolo Borelli [Sat, 4 Jul 2015 17:56:40 +0000 (19:56 +0200)]
label: add support for CSS letter-spacing property

Support letter-spacing CSS property on GtkLabel.
Reftest is included.

10 years agopango: move an utility function from gtklabel
Paolo Borelli [Sun, 5 Jul 2015 20:48:16 +0000 (22:48 +0200)]
pango: move an utility function from gtklabel

This will be used both by gtklabel and gtkentry

10 years agoUpdated Greek translation
Dimitris Spingos [Sun, 5 Jul 2015 23:28:20 +0000 (02:28 +0300)]
Updated Greek translation

10 years agoFix return value error in _gtk_file_system_model_get_directory
Ting-Wei Lan [Sun, 5 Jul 2015 19:26:48 +0000 (03:26 +0800)]
Fix return value error in _gtk_file_system_model_get_directory

10 years agoUpdated Portuguese translation
Pedro Albuquerque [Sun, 5 Jul 2015 10:02:44 +0000 (10:02 +0000)]
Updated Portuguese translation