gtk4.git
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

10 years agofile chooser: Allow deleting files
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

10 years agofile chooser: Allow renaming files
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

10 years agoFix up some whitespace mishap
Matthias Clasen [Sun, 5 Jul 2015 00:30:47 +0000 (20:30 -0400)]
Fix up some whitespace mishap

10 years agofile chooser: Redo the trailing space warning
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.

10 years agoplaces sidebar: Fix memory handling of rename popover
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.

10 years agoStrip leading and trailing whitespace from filechooser save filenames
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

10 years agoWarn for whitespace at beginning or end of new folder names
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

10 years agodocs: Drop deprecated symbolic icon names
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.

10 years agocontainer: Update the add() warning
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.

10 years agoUpdated Portuguese translation
Pedro Albuquerque [Sat, 4 Jul 2015 07:54:42 +0000 (07:54 +0000)]
Updated Portuguese translation

10 years agoUpdated Portuguese translation
Pedro Albuquerque [Sat, 4 Jul 2015 07:47:04 +0000 (07:47 +0000)]
Updated Portuguese translation

10 years agofile chooser: Make Ctrl-L work in search mode
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.

10 years agofile chooser dialog: Make button not take focus
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.

10 years agofile chooser: Make unsetting save entry work
Matthias Clasen [Sat, 4 Jul 2015 02:45:58 +0000 (22:45 -0400)]
file chooser: Make unsetting save entry work

Fix an overzealous assertion.

10 years agofile chooser dialog: Make action changes work
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.

10 years agofile chooser: Cleanups
Matthias Clasen [Sat, 4 Jul 2015 00:53:54 +0000 (20:53 -0400)]
file chooser: Cleanups

10 years agotestfilechooser: Add a --local-only flag
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.

10 years agofile chooser: Don't show Trash in save 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...

10 years agoGtkPlacesSidebar: Allow hiding Trash
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.

10 years agoGtkTreeViewColumn: Fix a documentation typo
Matthias Clasen [Fri, 3 Jul 2015 16:24:23 +0000 (09:24 -0700)]
GtkTreeViewColumn: Fix a documentation typo

10 years agofile chooser: Improve column sizing
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.

10 years agofile chooser: Remove a wrong assumption
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.

10 years agofile chooser: Don't show Enter Location in sidebar
Matthias Clasen [Fri, 3 Jul 2015 14:47:50 +0000 (07:47 -0700)]
file chooser: Don't show Enter Location in sidebar

Following the file chooser mockups.

10 years agofile chooser: Update empty state for search
Matthias Clasen [Fri, 3 Jul 2015 06:16:19 +0000 (23:16 -0700)]
file chooser: Update empty state for search

Follow the mockups more.

10 years agofile chooser: Add search progress
Matthias Clasen [Fri, 3 Jul 2015 06:08:59 +0000 (23:08 -0700)]
file chooser: Add search progress

Show a spinner if no search reasults have shown up yet and
the search is still going, after 2 seconds.

10 years agofile chooser: Set fixed sort functions for recent and search
Matthias Clasen [Fri, 3 Jul 2015 05:35:49 +0000 (22:35 -0700)]
file chooser: Set fixed sort functions for recent and search

10 years agofile chooser: Improve location column formatting
Matthias Clasen [Fri, 3 Jul 2015 05:19:05 +0000 (22:19 -0700)]
file chooser: Improve location column formatting

10 years agofile chooser: Improve the mode switching operation
Matthias Clasen [Thu, 2 Jul 2015 23:12:55 +0000 (16:12 -0700)]
file chooser: Improve the mode switching operation

Avoid reloading models unnecessarily, e.g. when the user
switches to search and back without starting a search.
Keep the current list contents visible until a search is
actually started. Also, synchronize any changes in the
column layout with the corresponding model changes.