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

10 years agoAdd a getter for the directory to file system model
Matthias Clasen [Thu, 2 Jul 2015 23:12:22 +0000 (16:12 -0700)]
Add a getter for the directory to file system model

This will allow us to aovid reloading if the directory is
unchanged.

10 years agofile chooser: Clean up enum handling
Matthias Clasen [Thu, 2 Jul 2015 21:47:30 +0000 (14:47 -0700)]
file chooser: Clean up enum handling

Use g_settings_get_set_enum to handle the clock and date format
settings.

10 years agofile chooser: Code cleanups
Matthias Clasen [Thu, 2 Jul 2015 21:36:00 +0000 (14:36 -0700)]
file chooser: Code cleanups

Shorten excessively long field names.

10 years agofile chooser: Consistently clear model caches
Matthias Clasen [Thu, 2 Jul 2015 21:31:29 +0000 (14:31 -0700)]
file chooser: Consistently clear model caches

This was not done for all models in all places, leading to e.g.
icon theme updates not applying correctly to search results.

10 years agofile chooser: Add a way to toggle time display
Matthias Clasen [Thu, 2 Jul 2015 17:44:19 +0000 (10:44 -0700)]
file chooser: Add a way to toggle time display

10 years agofile chooser: remove a stale comment
Matthias Clasen [Thu, 2 Jul 2015 15:32:39 +0000 (08:32 -0700)]
file chooser: remove a stale comment

10 years agofile chooser: Improve time and date formatting
Matthias Clasen [Thu, 2 Jul 2015 09:37:59 +0000 (02:37 -0700)]
file chooser: Improve time and date formatting

Use the same formats as nautilus, and put date and time in
separate cells, so they are neatly aligned.

10 years agofile chooser: Don't allow resorting recent files
Matthias Clasen [Thu, 2 Jul 2015 09:10:05 +0000 (02:10 -0700)]
file chooser: Don't allow resorting recent files

They are inherently sorted by access time.

10 years agofile chooser: Use access time for recent files
Matthias Clasen [Wed, 1 Jul 2015 21:04:17 +0000 (14:04 -0700)]
file chooser: Use access time for recent files

Use access time for sorting the recent files, and show it in
the list instead of mtime.

10 years agofile chooser: Add and use a model search engine
Matthias Clasen [Wed, 1 Jul 2015 19:51:20 +0000 (12:51 -0700)]
file chooser: Add and use a model search engine

This search engine reuses the GFileInfo that is already loaded
for the file list, to ensure that hits from the current directory
always appear promptly.

10 years agotestfilechooser: Disable the terrible preview
Matthias Clasen [Thu, 2 Jul 2015 23:23:48 +0000 (16:23 -0700)]
testfilechooser: Disable the terrible preview

It makes testing the intended user experience harder.

10 years agofile chooser: Don't show recent in save mode
Matthias Clasen [Wed, 1 Jul 2015 15:40:15 +0000 (08:40 -0700)]
file chooser: Don't show recent in save mode

Don't show Recent in the sidebar when we are in save mode.
We also ignore the startup-mode = recent in save mode now - we
don't want to populate the file list with recent files if Recent
is not on the sidebar. If you really want to go there, you can
still enter recent:// in the location entry.

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

10 years agofile chooser: Add Ctrl-F as search shortcut
Matthias Clasen [Mon, 29 Jun 2015 15:40:14 +0000 (08:40 -0700)]
file chooser: Add Ctrl-F as search shortcut

This is what nautilus uses, and is more discoverable than the
somewhat easter-egg Alt-S, which is still supported.

10 years agofile chooser: Make search shortcut toggle
Matthias Clasen [Mon, 29 Jun 2015 15:39:22 +0000 (08:39 -0700)]
file chooser: Make search shortcut toggle

This is more in line with having a toggle button for search,
and it matches what we do e.g. in nautilus.

10 years agofile chooser: Tweak bindings in save mode
Matthias Clasen [Sat, 27 Jun 2015 19:54:49 +0000 (15:54 -0400)]
file chooser: Tweak bindings in save mode

In save modes, the entry is really more for entering a name than
entering a full location, so don't go there eagerly when '.', '/'
or '~' are pressed. Make Ctrl-L work better in this mode too.

10 years agofile chooser: Trigger location entry not just from file list
Matthias Clasen [Sat, 27 Jun 2015 19:23:24 +0000 (15:23 -0400)]
file chooser: Trigger location entry not just from file list

Use the same code that brings up the location entry on '/',
'~' or '.' also when the focus is not on the file list. This
prevents those key presses on the sidebar from ending up in
the search entry.

10 years agofile chooser: Open location entry on '.'
Matthias Clasen [Sat, 27 Jun 2015 19:06:25 +0000 (15:06 -0400)]
file chooser: Open location entry on '.'

Typing ./ is a fairly common practice to enter a location
relative to the cwd, so make this open the location entry.

10 years agoRevert "file chooser: Open location entry more easily"
Matthias Clasen [Sat, 27 Jun 2015 17:44:58 +0000 (13:44 -0400)]
Revert "file chooser: Open location entry more easily"

This reverts commit e6c1cbc88ebbf51dcf4ca2b4b0016c81808d7889.

10 years agoRevert "file chooser: Don't start search too eagerly"
Matthias Clasen [Sat, 27 Jun 2015 17:44:26 +0000 (13:44 -0400)]
Revert "file chooser: Don't start search too eagerly"

This reverts commit f126157bfa9e8a550067fa169de24697add028bb.

10 years agofile chooser: Improve keynav
Matthias Clasen [Sat, 27 Jun 2015 16:23:48 +0000 (12:23 -0400)]
file chooser: Improve keynav

Some internal containers were erroneously taking focus, interrupting
the flow of tab keynav, and using arrow keynav to go from the file
list to the sidebar did not work anymore, after the recent sidebar
rewrite.

10 years agofile chooser: Give the location column more space
Matthias Clasen [Sat, 27 Jun 2015 16:05:04 +0000 (12:05 -0400)]
file chooser: Give the location column more space

Giving it 15 characters makes it at least fit "Documents" without
ellipsizing.

10 years agofile chooser: Sort search results better
Matthias Clasen [Sat, 27 Jun 2015 06:22:23 +0000 (02:22 -0400)]
file chooser: Sort search results better

Set a default sort function that sorts results from the
current folder first.

10 years agofile chooser entry: Capture Escape and emit :hide-entry
Matthias Clasen [Sat, 27 Jun 2015 05:40:04 +0000 (01:40 -0400)]
file chooser entry: Capture Escape and emit :hide-entry

Make the file chooser entry optionally capture Escape
and emit a signal. Make the file chooser widget hide the
entry on that signal and go back to the path bar.
This gives us a two-level undo:
location entry -> path bar -> dialog close.
When the location entry is permanently displayed in the
header for save mode, we still let the first Escape close
the dialog.

10 years agofile chooser: Make Escape work in search entry
Matthias Clasen [Sat, 27 Jun 2015 05:23:16 +0000 (01:23 -0400)]
file chooser: Make Escape work in search entry

Arrange things so that hitting Escape during a running
search stops the search, but leaves the search results
around, and hitting Escape again leaves the search mode.

10 years agofile chooser: Make location column work better
Matthias Clasen [Sat, 27 Jun 2015 05:07:32 +0000 (01:07 -0400)]
file chooser: Make location column work better

The location column did not work for search results in recent://.
Fix that by looking at the target uri in this case. Show the location
column in recent mode. And make it more similar to nautilus by
showing the full path if it is not below $HOME.

10 years agofile chooser: Make search in recent work
Matthias Clasen [Sat, 27 Jun 2015 04:21:53 +0000 (00:21 -0400)]
file chooser: Make search in recent work

All that was needed here was to set the query location.

10 years agofile chooser dialog: Put save entry into header
Matthias Clasen [Sat, 27 Jun 2015 04:08:57 +0000 (00:08 -0400)]
file chooser dialog: Put save entry into header

When we have a header bar, put a save entry there and
make the file chooser use it.

10 years agofile chooser widget: Allow external save entry
Matthias Clasen [Sat, 27 Jun 2015 04:07:59 +0000 (00:07 -0400)]
file chooser widget: Allow external save entry

Prepare the file chooser to use an external entry in
save mode, instead of the builtin one.

10 years agofile chooser: Update sidsebar when entry goes away
Matthias Clasen [Sat, 27 Jun 2015 02:13:33 +0000 (22:13 -0400)]
file chooser: Update sidsebar when entry goes away

10 years agofile chooser: Use icon for create folder button
Matthias Clasen [Sat, 27 Jun 2015 01:50:00 +0000 (21:50 -0400)]
file chooser: Use icon for create folder button

This follows the latest mockups.

10 years agofile chooser dialog: Show a subtitle
Matthias Clasen [Sat, 27 Jun 2015 01:15:55 +0000 (21:15 -0400)]
file chooser dialog: Show a subtitle

Use the new "subtitle" property of the file chooser widget
to display a subtitle in the headerbar, if we have one.

10 years agofile chooser widget: Expose a "subtitle" property
Matthias Clasen [Sat, 27 Jun 2015 01:14:37 +0000 (21:14 -0400)]
file chooser widget: Expose a "subtitle" property

Give the file chooser widget a "subtitle" property, which
contains a short string that explains the current mode.

10 years agoplaces sidebar: Add private api to get title
Matthias Clasen [Sat, 27 Jun 2015 01:13:00 +0000 (21:13 -0400)]
places sidebar: Add private api to get title

The places sidebar already does all the work to determine the
right label to use for the current location of the filechooser.
We want to use the same label in the headerbar subtitle, so
add some private API to get it.

10 years agofile chooser: More search rework
Matthias Clasen [Sat, 27 Jun 2015 00:02:31 +0000 (20:02 -0400)]
file chooser: More search rework

Drop the radio buttons for current location vs everywhere, and
always search in the current location.

10 years agoentrycompletion: no need to return boolean
Georges Basile Stavracas Neto [Fri, 3 Jul 2015 18:48:48 +0000 (15:48 -0300)]
entrycompletion: no need to return boolean

The boolean _gtk_entry_completion_resize_popup's return
value is not used anywhere, and only adds more complexity
for the method.

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

10 years agomir: fix mir pointer event to gdk translation
William Hua [Fri, 3 Jul 2015 16:11:19 +0000 (12:11 -0400)]
mir: fix mir pointer event to gdk translation

10 years agomir: ensure parent surface before creating child surface
William Hua [Thu, 2 Jul 2015 20:38:57 +0000 (16:38 -0400)]
mir: ensure parent surface before creating child surface

10 years agoignore size inc when maximized/fullscreen
Olivier Fourdan [Tue, 23 Jun 2015 09:54:48 +0000 (11:54 +0200)]
ignore size inc when maximized/fullscreen

Under Wayland, fullscreen/maximized windows may not cover the entire
area when a size increment is specified.

Ignore size increments for fullscreen/maximized windows just like most
window managers do under X11 so that windows with size increments can
still be fullscreen or fully maximized under Wayland as well.

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

10 years agodrawingarea: checks parent's draw() before call it
Víctor Manuel Jáquez Leal [Fri, 3 Jul 2015 07:54:34 +0000 (09:54 +0200)]
drawingarea: checks parent's draw() before call it

commit 6786c9d7 introduced a bug when a drawing area is used for
rendering videos, since GtkWidgetClass doesn't set a draw()
method by itself.

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

10 years agoFix warnings in the font options code
Matthias Clasen [Thu, 2 Jul 2015 06:36:29 +0000 (23:36 -0700)]
Fix warnings in the font options code

This code gets called before a screen is set.

10 years agoImprove the font options support
Matthias Clasen [Thu, 2 Jul 2015 02:15:56 +0000 (19:15 -0700)]
Improve the font options support

Instead of just overwriting the default options, merge the per-widget
font options with the defaults.

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

10 years agoAdd a testcase for font options
Matthias Clasen [Thu, 2 Jul 2015 02:14:58 +0000 (19:14 -0700)]
Add a testcase for font options

10 years agoGtkSwitch: fix a reentry issue
Matthias Clasen [Thu, 2 Jul 2015 01:02:57 +0000 (18:02 -0700)]
GtkSwitch: fix a reentry issue

The introduction of state broke some users which relied on
being able to set active in a notify::active handler.

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

10 years agogtkwindow: Reset maximize / fullscreen_initially on state changes
Jasper St. Pierre [Thu, 2 Jul 2015 00:25:23 +0000 (17:25 -0700)]
gtkwindow: Reset maximize / fullscreen_initially on state changes

Since 740bcf5, we use these properties to properly compute shadow widths
for unmapped windows. If a client calls gtk_window_maximize and a window
manager unmaximizes a window, we should draw borders, so we need to
reset these when we get the property notification.

10 years agowindow: don't override background every style_updated()
Cosimo Cecchi [Wed, 1 Jul 2015 21:01:07 +0000 (14:01 -0700)]
window: don't override background every style_updated()

This queues an unnecessary resize on the toplevel, and is not needed
anymore, now that GtkWidget does not call
gtk_style_context_set_background() on the window's GdkWindow anymore.

10 years agostylecontext: deprecate gtk_style_context_set_background()
Cosimo Cecchi [Sun, 28 Jun 2015 18:23:16 +0000 (11:23 -0700)]
stylecontext: deprecate gtk_style_context_set_background()

Nothing in GTK calls it anymore.