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

10 years agowidget: don't call gtk_style_context_set_background()
Cosimo Cecchi [Wed, 1 Jul 2015 20:05:45 +0000 (13:05 -0700)]
widget: don't call gtk_style_context_set_background()

We don't need to do this here anymore, since widgets typically render
their backgrounds now.

10 years agolayout: add a comment for gtk_style_context_set_background()
Cosimo Cecchi [Wed, 1 Jul 2015 21:32:12 +0000 (14:32 -0700)]
layout: add a comment for gtk_style_context_set_background()

And wrap it with G_GNUC_IGNORE_DEPRECATIONS.
Unfortunately we can't stop rendering the background altogether here.
Also, refactor some common code in a single function.

10 years agofixed: add a comment for gtk_style_context_set_background()
Cosimo Cecchi [Thu, 4 Jun 2015 01:02:34 +0000 (18:02 -0700)]
fixed: add a comment for gtk_style_context_set_background()

And wrap it with G_GNUC_IGNORE_DEPRECATIONS.
Unfortunately we can't stop rendering the background altogether here.
Also, gtk_style_context_set_background() should really be called every
time the style is updated. Fix that.

10 years agowindow: don't call gtk_style_context_set_background()
Cosimo Cecchi [Sun, 28 Jun 2015 05:54:42 +0000 (22:54 -0700)]
window: don't call gtk_style_context_set_background()

10 years agosocket: don't call gtk_style_context_set_background()
Cosimo Cecchi [Sat, 27 Jun 2015 20:15:41 +0000 (13:15 -0700)]
socket: don't call gtk_style_context_set_background()

10 years agotoolitemgroup: don't use gtk_style_context_set_background()
Cosimo Cecchi [Sat, 27 Jun 2015 19:59:59 +0000 (12:59 -0700)]
toolitemgroup: don't use gtk_style_context_set_background()

10 years agotextview: don't call gtk_style_context_set_background()
Cosimo Cecchi [Sat, 27 Jun 2015 19:58:04 +0000 (12:58 -0700)]
textview: don't call gtk_style_context_set_background()

10 years agorevealer: don't call gtk_style_context_set_background()
Cosimo Cecchi [Sat, 27 Jun 2015 19:54:50 +0000 (12:54 -0700)]
revealer: don't call gtk_style_context_set_background()

10 years agotoolpalette: don't call gtk_style_context_set_background()
Cosimo Cecchi [Sat, 27 Jun 2015 19:52:58 +0000 (12:52 -0700)]
toolpalette: don't call gtk_style_context_set_background()

10 years agoviewport: don't call gtk_style_context_set_background()
Cosimo Cecchi [Sat, 27 Jun 2015 19:50:50 +0000 (12:50 -0700)]
viewport: don't call gtk_style_context_set_background()

10 years agotreeview: don't call gtk_style_context_set_background()
Cosimo Cecchi [Sat, 27 Jun 2015 19:48:57 +0000 (12:48 -0700)]
treeview: don't call gtk_style_context_set_background()

10 years agoplug: don't call gtk_style_context_set_background()
Cosimo Cecchi [Fri, 5 Jun 2015 22:37:34 +0000 (15:37 -0700)]
plug: don't call gtk_style_context_set_background()

10 years agopaned: don't call gtk_style_context_set_background()
Cosimo Cecchi [Thu, 4 Jun 2015 01:27:34 +0000 (18:27 -0700)]
paned: don't call gtk_style_context_set_background()

10 years agooverlay: don't call gtk_style_context_set_background()
Cosimo Cecchi [Thu, 4 Jun 2015 01:22:28 +0000 (18:22 -0700)]
overlay: don't call gtk_style_context_set_background()

10 years agooffscreenwindow: don't call gtk_style_context_set_background()
Cosimo Cecchi [Thu, 4 Jun 2015 01:21:56 +0000 (18:21 -0700)]
offscreenwindow: don't call gtk_style_context_set_background()

10 years agomenushell: don't call gtk_style_context_set_background()
Cosimo Cecchi [Thu, 4 Jun 2015 01:21:16 +0000 (18:21 -0700)]
menushell: don't call gtk_style_context_set_background()

10 years agomenu: don't call gtk_style_context_set_background()
Cosimo Cecchi [Thu, 4 Jun 2015 01:18:56 +0000 (18:18 -0700)]
menu: don't call gtk_style_context_set_background()

10 years agolistbox: don't call gtk_style_context_set_background()
Cosimo Cecchi [Thu, 4 Jun 2015 01:17:27 +0000 (18:17 -0700)]
listbox: don't call gtk_style_context_set_background()

10 years agoiconview: don't call gtk_style_context_set_background()
Cosimo Cecchi [Thu, 4 Jun 2015 01:14:06 +0000 (18:14 -0700)]
iconview: don't call gtk_style_context_set_background()

10 years agoflowbox: don't set gtk_style_context_set_background()
Cosimo Cecchi [Thu, 4 Jun 2015 01:04:15 +0000 (18:04 -0700)]
flowbox: don't set gtk_style_context_set_background()

10 years agoeventbox: don't call gtk_style_context_set_background()
Cosimo Cecchi [Thu, 4 Jun 2015 01:03:35 +0000 (18:03 -0700)]
eventbox: don't call gtk_style_context_set_background()

10 years agodrawingarea: don't call gtk_style_context_set_background()
Cosimo Cecchi [Thu, 4 Jun 2015 00:59:45 +0000 (17:59 -0700)]
drawingarea: don't call gtk_style_context_set_background()

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

10 years agoUpdated Portuguese translation
Pedro Albuquerque [Wed, 1 Jul 2015 21:57:37 +0000 (21:57 +0000)]
Updated Portuguese translation

10 years agobroadway: Implement maximization
Alexander Larsson [Fri, 26 Jun 2015 11:49:23 +0000 (13:49 +0200)]
broadway: Implement maximization

10 years agox11: Query pointer devices' scroll valuators on toplevel enter events
Carlos Garnacho [Tue, 23 Jun 2015 16:11:07 +0000 (18:11 +0200)]
x11: Query pointer devices' scroll valuators on toplevel enter events

We used to "invalidate" scroll valuators, so the next scroll event could
be used as the base for the next scroll deltas. This has the inconvenience
that it invariably consumes the first event received after enter and,
due to interactions with WM overeager passive button grabs, there's a
possibility we don't scroll at all if we receive interleaved "smooth
scroll" XI_Motion events and XI_Enter events (Normally triggered by regular
scroll wheels in mice).

In order to fix this, and at the expense of some sync-call overhead on
XI_Enter events (one XIQueryDevice call per slave device), query the
current scroll valuator state for all the slaves of the entered pointer,
so we do know beforehand the right base values. If new devices are plugged
while the pointer is on top of the client, the initialized scroll values
will match the valuators'.

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

10 years agoplacessidebar: Do not set as a "track motion" DnD site
Carlos Garnacho [Wed, 1 Jul 2015 16:50:22 +0000 (18:50 +0200)]
placessidebar: Do not set as a "track motion" DnD site

It has the unintended effect of picking the suggested action from the
context, which conflicts with the (possibly 0) status we set on our
::drag-motion handler.

Given this widget is not interested in listening to DnD from every
possible target, it is safe to just disable it.

10 years agoGtkWindow: don't increase the preferred size for empty windows if there is a size...
Christoph Reiter [Mon, 29 Jun 2015 11:46:36 +0000 (13:46 +0200)]
GtkWindow: don't increase the preferred size for empty windows if there is a size request set.

This fixes a reftest broken by commit 84e99b20ac806ee5f

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

10 years agox11: Avoid X error traps within server grabs
Carlos Garnacho [Tue, 30 Jun 2015 17:04:13 +0000 (19:04 +0200)]
x11: Avoid X error traps within server grabs

gdk_x11_device_xi2_window_at_position() may attempt to push/pop
a few error trap pairs while traversing the window tree. Move it
outside the server grab, and around the multiple XIQueryPointer
calls we may do here.

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

10 years agobroadway: Fix memleak in error case
Krzesimir Nowak [Tue, 30 Jun 2015 20:55:59 +0000 (22:55 +0200)]
broadway: Fix memleak in error case

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

10 years agoAdd gtk_widget_set_font_options and gtk_widget_get_font_options
Arc Riley [Tue, 30 Jun 2015 17:57:49 +0000 (10:57 -0700)]
Add gtk_widget_set_font_options and gtk_widget_get_font_options

This allows a widget to override global font_options, such as hinting and
subpixel order. The widget's PangoContext is updated when this is set.

Some update code from gtk_widget_update_pango_context was moved to
update_pango_context so that gtk_widget_update_pango_context runs it.

http://bugzilla.gnome.org/show_bug.cgi?id=751677

10 years agoswitch: add a style property for the switch height
Cosimo Cecchi [Mon, 29 Jun 2015 22:25:44 +0000 (15:25 -0700)]
switch: add a style property for the switch height

Instead of hardcoding an aspect ratio.
This will be replaced by min-height/max-height when we have them.

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

10 years agoUpdated Slovak translation
Dušan Kazik [Tue, 30 Jun 2015 10:20:51 +0000 (10:20 +0000)]
Updated Slovak translation

10 years agoUpdated Portuguese translation
Pedro Albuquerque [Mon, 29 Jun 2015 22:46:43 +0000 (22:46 +0000)]
Updated Portuguese translation

10 years agoUpdated Portuguese translation
Pedro Albuquerque [Mon, 29 Jun 2015 22:46:04 +0000 (22:46 +0000)]
Updated Portuguese translation

10 years agowindow: Don't send startup notifications for offscreen / popup windows
Jasper St. Pierre [Mon, 29 Jun 2015 21:16:49 +0000 (14:16 -0700)]
window: Don't send startup notifications for offscreen / popup windows

The WM isn't aware of O-R (popup) or offscreen windows. If somebody
maps an offscreen or a popup GTK+ window before the main window, we'll
complete the sequence before a "real" window is mapped. Make sure to
ignore these for startup notifies.

10 years agoUpdated POTFILES.skip
Piotr Drąg [Mon, 29 Jun 2015 21:07:40 +0000 (23:07 +0200)]
Updated POTFILES.skip

10 years agosettings: Include pangofc-fontmap.h header on Wayland
nick [Mon, 29 Jun 2015 19:37:26 +0000 (20:37 +0100)]
settings: Include pangofc-fontmap.h header on Wayland

In case the X11 backend is not enabled, we still need to include the
pangofc-fontmap.h header file, as we use the Pango/FontConfig API in
both the X11 and Wayland case.

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

10 years agowayland: Return the right type atom on gdk_selection_property_get()
Carlos Garnacho [Mon, 29 Jun 2015 15:54:57 +0000 (17:54 +0200)]
wayland: Return the right type atom on gdk_selection_property_get()

We mistakenly forced the "STRING" type, which was able to confuse higher
layer helpers like gtk_selection_data_get_uris(). This fixes a crash
happening anytime a drop is attempted on a GtkPlacesSidebar.

10 years agowayland: Prepare against NULL selection owners on data_source requests
Carlos Garnacho [Mon, 29 Jun 2015 14:32:01 +0000 (16:32 +0200)]
wayland: Prepare against NULL selection owners on data_source requests

Currently, due to the lack of progress information in the Wayland DnD
protocol, we assume a DnD operation is finished after the first
data_source.send is finished (It's either that or leaving stuck grabs).

This however breaks previous assumptions that dest widgets can request
the data multiple times, even in response to GtkWidget::drag-motion.
This leaves us with a NULL owner for the DnD atom when we aren't
finished receiving wl_data_source events yet, causing a crash.

This commit fixes the crash, the behavior left is still far from
desirable though...

10 years agogtk3-demo: Group pango demos together
Matthias Clasen [Mon, 29 Jun 2015 05:46:53 +0000 (22:46 -0700)]
gtk3-demo: Group pango demos together

10 years agogtk3-demo: Add a fancy text demo
Matthias Clasen [Mon, 29 Jun 2015 05:43:27 +0000 (22:43 -0700)]
gtk3-demo: Add a fancy text demo

This demonstrates rendering text with a pattern instead of a
single color.

10 years agogtk-demo: Make the info bar example wrap
Matthias Clasen [Sun, 28 Jun 2015 14:21:45 +0000 (10:21 -0400)]
gtk-demo: Make the info bar example wrap

10 years agogtk-demo: Cosmetic changes
Matthias Clasen [Sun, 28 Jun 2015 13:23:28 +0000 (09:23 -0400)]
gtk-demo: Cosmetic changes

Clean up the code of many examples in minor ways, fix some memory
leaks, and avoid the use of dialogs where a regular toplevel works
just as well.

10 years agogtk-demo: Add a spin button example
Matthias Clasen [Sun, 28 Jun 2015 14:11:54 +0000 (10:11 -0400)]
gtk-demo: Add a spin button example

More or less copied from the spin button example in testgtk.

10 years agocssvalue: Change color transitions to run premultiplied
Benjamin Otte [Fri, 26 Jun 2015 19:08:04 +0000 (21:08 +0200)]
cssvalue: Change color transitions to run premultiplied

Previously, the unpremultiplied values from the GdkRGBA were taken. Now
we premultiply the color values as specified by the CSS specs.
This is only relevant when transitioning with translucent colors.

An example is the halfway transition between transparent (0, 0, 0, 0)
and white (1, 1, 1, 1). Previously, all 4 values where transitioned
separately and the result was semi-transparent gray (0.5, 0.5, 0.5,
0.5).
By depending on the alpha value, the result is now semi-transparent
white (1, 1, 1, 0.5) which is what one would naively expect.

New reftest: color-transition

10 years agocssvalue: Special case resulting color for transparency
Benjamin Otte [Fri, 26 Jun 2015 18:53:39 +0000 (20:53 +0200)]
cssvalue: Special case resulting color for transparency

Again, preparation for using premultiplied color transitions.

10 years agocssvalue: Restructure RGBA transitions
Benjamin Otte [Fri, 26 Jun 2015 17:06:02 +0000 (19:06 +0200)]
cssvalue: Restructure RGBA transitions

Split out a function to make the code clearer for the changes ahead.

10 years agowayland: Set the master device on the drop-side GdkDragContext
Carlos Garnacho [Fri, 26 Jun 2015 12:23:16 +0000 (14:23 +0200)]
wayland: Set the master device on the drop-side GdkDragContext

And force the ungrab on it, instead of the slave, in the case of
local DnD drop. This avoids confusions on the pointer events spawn
from DnD, as GDK doesn't think anymore those are from a slave device.
Most namely, it fixes the stuck grab when finishing DnD on the
same app it was started from.

10 years agowayland: Split handling of clipboard/DnD data offers
Carlos Garnacho [Tue, 7 Apr 2015 14:40:57 +0000 (16:40 +0200)]
wayland: Split handling of clipboard/DnD data offers

We currently only hold the last offer received, which is wrong, as both
are independent and have different life cycles.

This means we have to store per-selection wl_data_offer and targets, and
maintain these as appropriate from the clipboard/DnD specific entry points.