Commit Graph

44233 Commits

Author SHA1 Message Date
Federico Mena Quintero
60f8794d7e GtkFileChooserEntry: move the cursor after the user chooses a completion from the list
https://bugzilla.gnome.org/show_bug.cgi?id=756450
2016-03-10 16:03:26 -06:00
Federico Mena Quintero
efd52319a5 GtkFileChooserEntry: regenerate the completions if the dir_part changes
Consider this bug:

1. Open a file chooser; switch it to $HOME

2. Start typing "~/Dow" with some file that *does* exist in your $HOME

3. Delete the inline-completion selection (e.g. the "nloads" after "~/Down").

4. While you are at "~/Dow_" hit Tab.  No completion will occur.

This happens because of the following.

Say the GtkFileChooserEntry is in the process of loading $HOME,
because _set_base_folder() was called.  If the entry contains no text,
then the FULL_PATH_COLUMN of the file system model will be set to
unprefixed filenames from $HOME, like

  .ssh/
  Documents/
  Downloads/
  somefile.txt

Later we avoid reloading the folder if g_file_equal(old_folder, new_folder).

However, the FULL_PATH_COLUMN gets populated in completion_store_set()
out of the actual filenames that GIO returned, plus the chooser_entry->dir_part.

If the user starts typing "~/Dow" then dir_part changes to "~/", *but*
the folder won't be reloaded since it is also $HOME.  However, the completion
machinery assumes that FULL_PATH_COLUMN will contain prefixed entries like

  ~/.ssh/
  ~/Documents/
  ~/Downloads/
  ~/somefile.txt

So, we add an invariant that chooser_entry->dir_part and
chooser_entry->current_folder_file must change at the same time, and
must not get out of sync:  If any of them changes, then the
completions are regenerated.
2016-03-10 15:37:36 -06:00
Matthias Clasen
c762310578 3.18.9 3.18.9 2016-03-09 22:01:04 -05:00
Takao Fujiwara
ed816e6283 Set VirtualBox USB Tablet to GDK_SOURCE_MOUSE
The virtual host assigns the name of the mouse device to
"VirtualBox USB Tablet" in VirtualBox and we'd use that device as mouse.
If not, GtkTooltip is not enabled.

https://bugzilla.gnome.org/show_bug.cgi?id=763017
2016-03-09 22:00:18 -05:00
Matthias Clasen
676565ae1a x11: More fake tablet blacklisting
Sigh.

Now that we've neutered the QEMU USB tablet, I'm finding that
spice is doing just the same nonsense. It has a fake "spice vdagent
tablet". Blacklist that as well.
2016-03-09 22:00:18 -05:00
Jonas Ådahl
926f82e52e gdk: Compress window state events
If there are already a window state event for a given window queued
when the window state is changed, drop that event and queue a new event
with a changed_mask based on the state before last event that was queue
without compression.

https://bugzilla.gnome.org/show_bug.cgi?id=762468
2016-03-09 22:00:18 -05:00
Matthias Clasen
d93d777d99 x11: Trap errors around an XRandr call
Apparently, we can get X errors here. Ignore them.
https://bugzilla.gnome.org/show_bug.cgi?id=762907
2016-03-09 22:00:18 -05:00
fiddlerwoaroof
3e624869d5 Check if XRRGetOutputInfo returned a null pointer.
Fixes bug 763023: in certain circumstances, XRRGetOutputInfo will return
a null pointer.  This commit adds a check to detect and handle this
return value.
2016-03-09 22:00:18 -05:00
GNOME Translation Robot
83c990238a Updated Scottish Gaelic translation 2016-03-08 20:24:41 +00:00
Matej Urbančič
d99581f49c Updated Slovenian translation 2016-03-05 22:36:56 +01:00
Matej Urbančič
781909fc9b Updated Slovenian translation 2016-03-05 22:33:41 +01:00
Carlos Garnacho
1d0ca716a1 x11: Avoid setting has_pointer_focus if a EWMH compliant WM is present
This is mostly useful to have focus behave sanely on lack of WM, so avoid
any check there if we're positive there is a WM handling focus.

https://bugzilla.gnome.org/show_bug.cgi?id=677329
2016-02-24 12:53:19 -05:00
William Hua
305568f70b x11: don't apply scaling factor twice
The fallback behaviour of get_work_area () divides the
screen width and height by the window scaling factor, but
those values are already scaled down.

https://bugzilla.gnome.org/show_bug.cgi?id=761474
2016-02-24 17:15:37 +00:00
Matthias Clasen
fe0a4aed27 3.18.8 3.18.8 2016-02-24 00:03:51 -05:00
Matthias Clasen
4b7eab187c x11: Some cleanups to the multihead initialization
The significant change here is a memory leak fix in init_xrandr15.
The rest of the changes makes init_xrandr13 and init_xrandr15 more
parallel, and simplifies init_multihead.
2016-02-23 07:40:15 -05:00
Marco Trevisan (Treviño)
8419f894d6 X11, GdkScreen: properly implement init_randr15 including output name
https://bugzilla.gnome.org/show_bug.cgi?id=762319
2016-02-23 07:40:15 -05:00
Matthias Clasen
8605fcf2d9 file chooser: Avoid nonworking search+save combinations
With the location entry up in the header bar in save mode, we can
end up with the search model being in use when the user types in
the location entry. In this case, we don't make the Save button
sensitive as we should.

Having two entries in the dialog is somewhat confusing anyway,
so just stop the search when the user starts typing in the location
entry.

https://bugzilla.gnome.org/show_bug.cgi?id=761757
2016-02-23 07:40:15 -05:00
Matthias Clasen
1378d6e073 file chooser: Use the right model when getting the selection
We don't need to make assumptions about which model is currently
used since gtk_tree_selection_get_selection hands us the model.

https://bugzilla.gnome.org/show_bug.cgi?id=761757
2016-02-23 07:40:15 -05:00
Руслан Ижбулатов
5ecf734226 Don't do remote checks on NULL files
Calling _gtk_file_consider_as_remote() with a NULL argument
results in warnings being thrown.

Note that query->priv->location being NULL is a state that does
not seem to be invalid by itself.

This could happen if you do search-as-you-type in a filechooser,
which has a filter that does not match anything *and* the current
"place" selected is "Recent".

https://bugzilla.gnome.org/show_bug.cgi?id=761552
2016-02-23 07:40:15 -05:00
Matthias Clasen
244ac50e98 file chooser: Make Escape close the dialog
In some situations (no header bar, save mode), hitting Escape
would not do anything because the entry ate the key event.
Fix this by telling the entry to only handle Escape when there
is something to do, such as switching back to the path bar.

https://bugzilla.gnome.org/show_bug.cgi?id=761026
2016-02-23 07:40:15 -05:00
Allin Cottrell
8986d5b064 Fix Quartz Full Screen Crash. 2016-02-21 16:23:50 -08:00
John Ralls
d5e257d1e4 Fix typo. 2016-02-21 16:23:41 -08:00
Matthias Clasen
4331ff2939 box: Fix rtl allocation with center widget
The code for adjusting the center widget allocation in case
of uneven sides never worked right in RTL. This was finally
noticed for tabs with close button, which commonly use a
centered label.
2016-02-20 16:46:49 -05:00
Matthias Clasen
7fc1fcde1e assistant: Add margin to action area
We are no longer setting a margin on the content area, so put
one on the action area itself to prevent the buttons from touching
the edge.

https://bugzilla.gnome.org/show_bug.cgi?id=762315
2016-02-20 11:29:28 -05:00
GNOME Translation Robot
d80a44eb3b Updated Scottish Gaelic translation 2016-02-18 13:38:54 +00:00
Frederic Crozat
5d218939a3 Revert "Translate GDK_KEY_KP_Decimal according to locale"
This reverts commit bfedc3bafe.

Too much controversy for this minor improvement.
See https://bugzilla.gnome.org/show_bug.cgi?id=756751
2016-02-16 17:20:28 +01:00
Colomban Wendling
322c4e1698 treeview: Make sure the editing widget's top left is always visible
https://bugzilla.gnome.org/show_bug.cgi?id=761838
2016-02-14 15:01:06 +01:00
John Ralls
53ee00f790 Fix Quartz clipboard image retrieval.
It does no good to iterate through a series of mime types to call a
function when the eventually-called function,
_gtk_quartz_get_selection_data_from_pasteboard() in this case, gives the
wrong answer and stops the iteration on all but one especially if that
one isn't first.

The one is "image/tiff" and the quartz pasteboard function will return
any image type Quartz knows about for it, so lose the iteration and use
only "image/tiff".
2016-02-11 14:09:15 -08:00
Chun-wei Fan
5d5651a51f Visual Studio builds: Drop gtk-query-settings project
The gtk-query-settings tool was only added in 3.19.x, so we ought not try
to build it here.  Oops :|, ought to check closer before trying to cherry-pick.

Issue reported by Ignacio Casal Quinteiro.
2016-02-03 01:31:14 +08:00
Alexandre Franke
85fb4c1c0a Updated French translation 2016-02-02 16:32:30 +00:00
Matthias Clasen
78b8192408 3.18.7 3.18.7 2016-01-27 23:25:10 -05:00
Matthias Clasen
b700ce0429 Update expected output of the a11y tests
This is the result of the message dialog title change.
2016-01-27 23:25:10 -05:00
Matthias Clasen
6aec92607f Update README.glade
Update the README.glade file to use current .ui file
names and locations as example.
2016-01-27 22:17:30 -05:00
Olav Vitters
9ba7278e7c Add an XSetting for primary button warps slider
This will be used by xsettings-kde to ensure GTK+3.x programs behave
consistently.

https://bugzilla.gnome.org/show_bug.cgi?id=688524
2016-01-27 22:17:30 -05:00
Ray Strode
c3696f7adb wayland: __NR_memfd_create instead of SYS_memfd_create
It looks like the gnome-continuous headers haven't quite
caught up yet, so try __NR_memfd_create instead.

If that doesn't work, i'll likely just add in a fallback
code path.
2016-01-27 22:17:30 -05:00
Ray Strode
12d5e7d1f2 wayland: use memfd_create instead of open in tmpdir
The tmpdir is used for a wide assortment of things, and
can easily fill up. If it fills then desktop will start
crashing with SIGBUS errors.

This commit changes the shm pool allocation code, to use
memfd_create, instead, so the shared memory files will
be anonymous and not associated with /tmp

https://bugzilla.gnome.org/show_bug.cgi?id=761095
2016-01-27 22:17:30 -05:00
Matthias Clasen
b3506ede35 path bar: Don't hide arrows
Changing the visibility of child widgets in size-allocate does
not work well with out current allocation and layout machinery.
To avoid the visual fallout, just keep the arrow buttons visible
and only change their sensitivity.

https://bugzilla.gnome.org/show_bug.cgi?id=754868
2016-01-27 22:17:30 -05:00
Sebastien Lafargue
b8b61514a0 GtkColorChooser: make set_rgba work in editor mode
When using the color chooser in editor mode,
gtk_color_chooser_set_rgba need to be propaged
to the editor

https://bugzilla.gnome.org/show_bug.cgi?id=761005
2016-01-27 22:17:30 -05:00
Carlos Garnacho
8f3d613f79 GtkTreeView: Update prelight row after revalidating rows
It might have changed (eg. after a row being expanded, and the child
rows revalidated), so just update it here based on the last pointer
position.

Based on a patch by Maxim Reznik <reznikmm@gmail.com>

https://bugzilla.gnome.org/show_bug.cgi?id=760891
2016-01-27 22:17:30 -05:00
Matthias Clasen
444fcaffc0 wayland: Don't hardcode /tmp
As pointed out in https://bugzilla.gnome.org/show_bug.cgi?id=760964,
we should use the GLib facilities for determining the preferred
location for temporary files.
2016-01-27 22:17:29 -05:00
Ray Strode
0443756f0f wayland: don't pass in width and height to create_shm_pool
create_shm_pool doesn't need the width or height, it just needs
the total size.  By passing it in, we're requiring it to redo
stride calculation unnecessarily.

This commit drops the width and height parameters and makes the
function just take the total size directly.

https://bugzilla.gnome.org/show_bug.cgi?id=760897
2016-01-27 22:17:29 -05:00
Ray Strode
6c192a8856 wayland: clean up stride calculation when creating shm surface
Right now, we assume the stride for the image surface needs to
be 4 byte aligned.  This is, in fact, true, but it's better to
ask cairo for the alignment requirement directly rather than
assume we know the alignment rules.

This commit changes the code to use cairo_format_stride_for_width
to calculate a suitable rowstride for pixman.

https://bugzilla.gnome.org/show_bug.cgi?id=760897
2016-01-27 22:17:29 -05:00
Ray Strode
385b7ae0c8 wayland: unlink shm file earlier in create function
create_shm_pool unlinks the temporary file a little,
too late. It should be unlinked before ftruncate()
is called for two reasons:

1) if ftruncate fails, the file is currently not
getting cleaned up at all
2) in theory, if the file is public some other process
could muck with it

This commit just moves the unlink call a little higher
up.

https://bugzilla.gnome.org/show_bug.cgi?id=760897
2016-01-27 22:17:29 -05:00
Matthias Clasen
39ea2982fc application: Protect against double shutdown
It is not something that can happen normally.
But if it does, we shouldn't crash.

https://bugzilla.gnome.org/show_bug.cgi?id=760680
2016-01-27 22:17:29 -05:00
Matt Watson
4accef4d14 widget: remove queue_resize in set_sensitive
Calling gtk_widget_propagate_state is enough to queue a resize if
needed

See da7a4089fe
2016-01-27 22:17:29 -05:00
Matthias Clasen
f83878c904 message dialog: Prevent empty title from being shown
We don't want to grow the titlebar by showing an empty label.
2016-01-27 22:17:29 -05:00
Dominique Leuenberger
964adb2a68 QEMU USB Tablet is not really a tablet - it's a trick
Unfortunately, Qemu gives us this confusing device to work with,
and the best we can do is filter it out based on its name.

https://bugzilla.gnome.org/show_bug.cgi?id=760445
2016-01-27 22:17:29 -05:00
Ting-Wei Lan
eb0f600785 broadway: Call setlocale in main function of broadwayd
It is required to correctly show translated messages on some locales.

https://bugzilla.gnome.org/show_bug.cgi?id=760416
2016-01-27 22:17:29 -05:00
Matthias Clasen
d4032f80ce Fix corner manipulation when growing rounded rects
This addresses problems with uneven border radius',
pointed out by Lapo.
2016-01-27 22:17:29 -05:00
Matthias Clasen
cc3bc75402 Fix rendering of unsymmetric borders
There was an errant path that threw off our clipping for
the top section of the border.

https://bugzilla.gnome.org/show_bug.cgi?id=722937
2016-01-27 22:17:29 -05:00