William Hua [Thu, 9 Jul 2015 19:59:29 +0000 (15:59 -0400)]
mir: don't warn if transient_for is NULL
William Hua [Thu, 9 Jul 2015 19:05:45 +0000 (15:05 -0400)]
mir: add more default settings under mir
Pedro Albuquerque [Wed, 15 Jul 2015 10:02:38 +0000 (10:02 +0000)]
Updated Portuguese translation
Daniel Mustieles [Wed, 15 Jul 2015 09:13:29 +0000 (11:13 +0200)]
Updated Spanish translation
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.
Matthias Clasen [Wed, 15 Jul 2015 04:12:33 +0000 (00:12 -0400)]
file chooser: Stop search when entry is cleared
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.
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.
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
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.
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
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.
Daniel Mustieles [Mon, 13 Jul 2015 08:51:18 +0000 (10:51 +0200)]
Updated Spanish translation
Daniel Mustieles [Mon, 13 Jul 2015 08:51:05 +0000 (10:51 +0200)]
Updated Spanish translation
Kalev Lember [Sun, 12 Jul 2015 18:18:17 +0000 (20:18 +0200)]
GtkSettings: Fix a documentation typo
Matthias Clasen [Sun, 12 Jul 2015 05:53:36 +0000 (01:53 -0400)]
range: Trivial field ordering
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.
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.
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.
Matthias Clasen [Thu, 9 Jul 2015 01:47:47 +0000 (21:47 -0400)]
file chooser: Clean up unused includes
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.
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.
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.
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.
Matthias Clasen [Thu, 9 Jul 2015 00:32:03 +0000 (20:32 -0400)]
Trivial code cleanup
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
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.
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.
Benjamin Otte [Fri, 10 Jul 2015 19:34:06 +0000 (21:34 +0200)]
cssnode: Only invalidate sibling nodes if changed node is visible
Pedro Albuquerque [Fri, 10 Jul 2015 08:37:25 +0000 (08:37 +0000)]
Updated Portuguese translation
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
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
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
Benjamin Otte [Tue, 7 Jul 2015 19:38:59 +0000 (21:38 +0200)]
testtoolbar: Don't expand rows that shouldn't be expanded
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.
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.
Benjamin Otte [Tue, 7 Jul 2015 15:51:31 +0000 (17:51 +0200)]
css: text-decoration-style is not inherited
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.
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.
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.
Piotr Drąg [Tue, 7 Jul 2015 19:51:55 +0000 (21:51 +0200)]
Fix a minor typo
Piotr Drąg [Tue, 7 Jul 2015 18:26:24 +0000 (20:26 +0200)]
Updated Polish translation
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.
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
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.
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
Pedro Albuquerque [Tue, 7 Jul 2015 05:25:12 +0000 (05:25 +0000)]
Updated Portuguese translation
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
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.
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.
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.
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.
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.
Matthias Clasen [Tue, 7 Jul 2015 01:35:03 +0000 (21:35 -0400)]
wip: reshuffle name checks
Matthias Clasen [Tue, 7 Jul 2015 00:57:11 +0000 (20:57 -0400)]
file chooser: Remove unused field
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.
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.
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
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
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.
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
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, ...
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
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.
Benjamin Otte [Sun, 5 Jul 2015 22:21:03 +0000 (00:21 +0200)]
cssselector: Report finer granularity for position changes
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.
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.
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
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
Paolo Borelli [Sun, 5 Jul 2015 20:05:33 +0000 (22:05 +0200)]
css: support text-decoration-color
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.
Paolo Borelli [Sun, 5 Jul 2015 16:59:27 +0000 (18:59 +0200)]
css: add support for text-decoration-line
Paolo Borelli [Sun, 5 Jul 2015 08:48:40 +0000 (10:48 +0200)]
entry: add css letter-spacing
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.
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
Dimitris Spingos [Sun, 5 Jul 2015 23:28:20 +0000 (02:28 +0300)]
Updated Greek translation
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
Pedro Albuquerque [Sun, 5 Jul 2015 10:02:44 +0000 (10:02 +0000)]
Updated Portuguese translation
Matthias Clasen [Sun, 5 Jul 2015 03:46:11 +0000 (23:46 -0400)]
file chooser: Allow deleting files
This is another often requestsed feature for save mode.
Based on a patch by John Beard,
https://bugzilla.gnome.org/show_bug.cgi?id=325150
Matthias Clasen [Sun, 5 Jul 2015 01:16:55 +0000 (21:16 -0400)]
file chooser: Allow renaming files
This has often been requested as a useful feature in save mode.
Based on a patch by John Beard,
https://bugzilla.gnome.org/show_bug.cgi?id=325150
Matthias Clasen [Sun, 5 Jul 2015 00:30:47 +0000 (20:30 -0400)]
Fix up some whitespace mishap
Matthias Clasen [Sun, 5 Jul 2015 00:12:00 +0000 (20:12 -0400)]
file chooser: Redo the trailing space warning
Redo this slightly differently, so we can keep all the simple
checks in one place. This will make it easier to reuse the code
for file renaming.
Matthias Clasen [Sun, 5 Jul 2015 02:32:06 +0000 (22:32 -0400)]
places sidebar: Fix memory handling of rename popover
We were freeing the same string twice here, leading to
badness.
Arc Riley [Wed, 1 Jul 2015 23:23:15 +0000 (16:23 -0700)]
Strip leading and trailing whitespace from filechooser save filenames
This makes a local copy of the file part of the entry to strip it transparently
Since this is assumed to be a mistake, the user is not notified.
https://bugzilla.gnome.org/show_bug.cgi?id=593372
Arc Riley [Wed, 1 Jul 2015 21:33:07 +0000 (14:33 -0700)]
Warn for whitespace at beginning or end of new folder names
The warning is not intended to disable the Create button and must only be shown
when the folder is not found, so this is implemented in the folder name exists
callback.
A "name" entry was added to FileExistsData to pass the filename to the callback
https://bugzilla.gnome.org/show_bug.cgi?id=751800
Emmanuele Bassi [Sat, 4 Jul 2015 18:33:23 +0000 (19:33 +0100)]
docs: Drop deprecated symbolic icon names
Do not suggest using icons that do not exist.
Emmanuele Bassi [Sat, 4 Jul 2015 18:30:22 +0000 (19:30 +0100)]
container: Update the add() warning
Now that gtk_widget_reparent() has been deprecated, we should not
suggest it.
Pedro Albuquerque [Sat, 4 Jul 2015 07:54:42 +0000 (07:54 +0000)]
Updated Portuguese translation
Pedro Albuquerque [Sat, 4 Jul 2015 07:47:04 +0000 (07:47 +0000)]
Updated Portuguese translation
Matthias Clasen [Sat, 4 Jul 2015 04:13:13 +0000 (00:13 -0400)]
file chooser: Make Ctrl-L work in search mode
There is no real reason to not allow this. The transition is
not quite as smooth as it should be, currently, but at least
it works.
Matthias Clasen [Sat, 4 Jul 2015 04:02:55 +0000 (00:02 -0400)]
file chooser dialog: Make button not take focus
Things work smoother, keynav-wise, if the search button does not
take focus on click.
Matthias Clasen [Sat, 4 Jul 2015 02:45:58 +0000 (22:45 -0400)]
file chooser: Make unsetting save entry work
Fix an overzealous assertion.
Matthias Clasen [Sat, 4 Jul 2015 02:45:15 +0000 (22:45 -0400)]
file chooser dialog: Make action changes work
We were not listening for action changes to update the
save entry.
Matthias Clasen [Sat, 4 Jul 2015 00:53:54 +0000 (20:53 -0400)]
file chooser: Cleanups
Matthias Clasen [Fri, 3 Jul 2015 16:51:38 +0000 (09:51 -0700)]
testfilechooser: Add a --local-only flag
This allows for easier testing of !local-only mode.
Matthias Clasen [Fri, 3 Jul 2015 16:51:03 +0000 (09:51 -0700)]
file chooser: Don't show Trash in save mode
You can't save there...
Matthias Clasen [Fri, 3 Jul 2015 16:49:00 +0000 (09:49 -0700)]
GtkPlacesSidebar: Allow hiding Trash
We will use this in the filechooser in save mode.
Matthias Clasen [Fri, 3 Jul 2015 16:24:23 +0000 (09:24 -0700)]
GtkTreeViewColumn: Fix a documentation typo
Matthias Clasen [Fri, 3 Jul 2015 16:22:39 +0000 (09:22 -0700)]
file chooser: Improve column sizing
Allow the name and location columns to be resized, but arrange
for their sizing to be reset when the column layout changes (either
by the location column appearing/disappearing, or by the time
column changing between mtime and atime. This gives a decent
compromise between good automatic sizing and user control.
Matthias Clasen [Fri, 3 Jul 2015 14:52:39 +0000 (07:52 -0700)]
file chooser: Remove a wrong assumption
The code for getting the selected files was assuming that
we are always in browse mode, and was causing warnings when
hitting Ctrl-L twice, right after opening the file chooser.
The fix is to simple use the model that is passed into the
callback.