Commit Graph

40418 Commits

Author SHA1 Message Date
Ignacio Casal Quinteiro
e2e37c772f statusicon: missed setting one uID 2015-02-21 16:02:03 +01:00
Arnav Singh
e17fb52cfc statusicon: fix crash storing pointer in UINT
https://bugzilla.gnome.org/show_bug.cgi?id=696505
2015-02-21 16:01:57 +01:00
Piotr Drąg
c724f4b57e Updated POTFILES.skip 2015-02-17 01:14:04 +01:00
Pier Luigi Fiorini
071447700e wayland: Do not require latest wl_seat
Some compositors might not offer wl_seat 4 resulting in GTK+ clients not
working on that compositor.

wl_seat 4 introduces keyboard repeat information, but when that information
is missing it is retrieved from settings, hence there's no reason to
require wl_seat 4.

This patch was tested against QtCompositor (5.5, dev branch)
and Weston 1.6.1.

Reviewed-by: Daniel Stone <daniels@collabora.com>

https://bugzilla.gnome.org/show_bug.cgi?id=744172
2015-02-15 18:37:02 -05:00
Benjamin Otte
77c27772c5 treeview: Don't create an overly large pixel cache
GPUs generally have problems when you create a 35000px wide surface.
Luckily X catches this and sends a BadAlloc. Which GTK immediately
abort()s on.

Testcase included.

https://bugzilla.redhat.com/show_bug.cgi?id=1163579
2015-02-15 18:31:06 -05:00
Matej Urbančič
8ad8cc703b Updated Slovenian translation 2015-02-14 21:00:08 +01:00
Necdet Yücel
1a9ed8c524 Updated Turkish translation 2015-02-14 17:06:03 +00:00
Matthias Clasen
e810cb8782 Revert "image: Optimize non-resize changes"
This reverts commit 82c21b1e93.

This change was causing problems in gnome-mines. Revert it
until we can figure out what exactly is going wrong there.
See https://bugzilla.redhat.com/show_bug.cgi?id=1190887
2015-02-11 11:24:28 -05:00
Lars Uebernickel
8842ee8579 css: use pre-3.16 gtk_css_style_property_register
This fixes the backport of the last commit.
2015-02-06 12:19:31 +01:00
Benjamin Otte
a4c837e09b css: Add -gtk-dpi CSS property hack
This property is necessary to ensure widgets automatically update after
the text scale factor is changed desktop-wide.

And if I'm already doing a property like this, I can make it
overridable. So now you can override the dpi per-widget with CSS like
GtkSwitch {
  -gtk-dpi: 48;
}
if you want to debug things.

Long-term, we want to get rid of this property and insist on dpi being
96 everywhere and people can change the font size to get larger fonts.
2015-02-06 12:02:36 +01:00
Matthias Clasen
e38943ad69 3.14.8 3.14.8 2015-01-31 13:34:46 -05:00
Matthias Clasen
8af9287808 Reduce symbolic icon warnings to a debug message
These icons are out there in the wild, and the warning causes
distcheck to fail. So, reduce it to a debug message.
2015-01-31 13:34:46 -05:00
Matthias Clasen
82c21b1e93 image: Optimize non-resize changes
Suggested by Owen in

https://bugzilla.gnome.org/show_bug.cgi?id=613833
2015-01-31 11:41:19 -05:00
Matias De lellis
eb0a76439c GtkSettings: Consider default settings for font hinting and antialias
Arrange things so that gtk-xdg-hinting==-1 and gtk-xfg-antialias==-1
end up as CAIRO_HINT_STYLE_DEFAULT and CAIRO_ANTIALIAS_DEFAULT in the
cairo font options.

This will not change anything on Linux desktops where xsettings will
always provide values different from -1. But on other platforms, we
can benefit from getting the platform-specific defaults in cairo.

Based on the first patch in:
https://bugzilla.gnome.org/show_bug.cgi?id=735316
2015-01-31 11:39:58 -05:00
Tom Hughes
4a5d06fb72 Resume events when disconnecting from a frame clock
If we are disconnecting from a frame clock that has paused event
processing and hasn't issued a resume yet make sure we resume the
events or they will stay blocked forever.

https://bugzilla.gnome.org/show_bug.cgi?id=742636
2015-01-31 11:39:35 -05:00
Matthias Clasen
70b4d11259 Robustness fixes for drag cancel animation
gtk_widget_get_frame_clock() can return NULL. Deal with that
by silently stopping the drag cancel animation in this case.
2015-01-31 11:38:58 -05:00
Matthias Clasen
c44d18e8c2 testnotebookdnd: Defer deletion to an idle
The code here was always a bit buggy: We removed the tab from
the notebook in a ::drag-data-received handler. But with
GTK_DEST_DEFAULT_DROP, that signal is emitted before we inform
the source side that the drag is finished. With its improved drag
handling, GtkNotebook now interprets this as a 'spontaneous'
removal of the tab being dragged, and cancels the drag, leading
to an unwanted cancel animation.

The easiest fix is to just defer the tab removal to an idle.
2015-01-31 11:38:52 -05:00
Matthias Clasen
37751cd0fb notebook: Protect removal-from-within
When a tab is dropped, we have to remove it from the notebook to
insert it elsewhere. This is expected part of the tab dnd operation,
and we need to differentiate it from 'spontaneous' removals which
cause us to cancel the drag operation.
2015-01-31 11:38:43 -05:00
Matthias Clasen
267d8dc3fb notebook: Make dnd safe against tab disappearance
when the dragged tab is being removed during the drag operation,
we need to cancel the drag. To do so, we have to keep around
a reference to the drag context.

This should fix
https://bugzilla.gnome.org/show_bug.cgi?id=732051
2015-01-31 11:38:28 -05:00
Matthias Clasen
7b9a8958be notebook: Make reordering safe for tab disappearance
If the dragged tab is removed during reordering, we need to
call gtk_notebook_stop_reorder(), to clean up and bring the
remaining tabs back in order.
2015-01-31 11:38:19 -05:00
Matthias Clasen
62616a716f dnd: Allow programmatic drag cancellation
Add a gtk_drag_cancel() function that can be used on the
source side to cancel an ongoing drag operation. This can
be useful, e.g. if the data that is being dragged becomes
unavailable.

gtk_drag_cancel() will become public API in 3.16; we keep it
private here so we can use it from GtkNotebook.
2015-01-31 11:37:32 -05:00
Matthias Clasen
650c25e06c dnd: Make dest side safe against destroy
Use a weak pointer to clean up when the current drag destination
gets destroyed.
2015-01-31 11:35:52 -05:00
Matthias Clasen
90d42ef5cc file chooser button: Make dnd work as expected
Update the button contents when accepting a drop.

https://bugzilla.gnome.org/show_bug.cgi?id=743451
2015-01-31 11:35:41 -05:00
Garrett Regier
92263fd5b1 Fix VA marshaller for GtkWidget's "event-after" signal
Just a copy and paste typo from the "event" signal.

https://bugzilla.gnome.org/show_bug.cgi?id=743593
Signed-off-by: Garrett Regier <garrettregier@gmail.com>
2015-01-31 11:34:30 -05:00
Christian Persch
07b39b2140 GtkAboutDialog: Fix crash on link click
https://bugzilla.gnome.org/show_bug.cgi?id=743592
2015-01-31 11:34:21 -05:00
Alexander Larsson
14fca7522d gtktreeview: Fix horizontal grid lines
The clipping was wrong so it was not drawing grid lines
outside the visible area, which broke due to the pixel cache.
2015-01-31 11:33:22 -05:00
Mike Gorse
b2fe2da866 A11y: fix typo when initializing a container cell accessible
Gtk_container_cell_widget_set should chain up to its parent's set
function, not its parent's unset function. This was resulting in
accessibles being erroneously marked defunct after being created.
2015-01-31 11:33:11 -05:00
Matthias Clasen
fbb63e3e2d x11: Handle obsolete selection requests without crashing
The ICCCM says:

If the specified property is None, the requestor is an obsolete client.
Owners are encouraged to support these clients by using the specified
target atom as the property name to be used for the reply.

Lets do that, instead of crashing.

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

The previous fix for this issue in 732af31424 was incomplete.
2015-01-31 11:33:00 -05:00
Matthias Clasen
ecca2456b8 wayland: Don't claim to support selection notification
We don't support selection notification, so don't claim
we do, only to fail later.

https://bugzilla.gnome.org/show_bug.cgi?id=743229
2015-01-31 11:31:47 -05:00
Matthias Clasen
a096820883 Initialize variables
No need to risk valgrind complaints about initialized
values.

https://bugzilla.gnome.org/show_bug.cgi?id=743422
2015-01-31 11:31:36 -05:00
Matthias Clasen
959d1eff53 broadway: Only use abstract sockets when they are supported
GIO has a function to check whether abstract sockets are
supported, so use it. This should make broadway work on
Freebsd again.

https://bugzilla.gnome.org/show_bug.cgi?id=742980
2015-01-31 11:29:28 -05:00
Matthias Clasen
6231082839 Make Broadway work on freebsd
It seems that posix_fallocate gives an ENODEV error when
called on an fd opened with shm_open on freebsd. Fix up
the error check to only trigger if we get ENOSPC.

https://bugzilla.gnome.org/show_bug.cgi?id=742980
2015-01-31 11:29:21 -05:00
Maks Naumov
6ea86ef1c7 Fix event->button.y_root when using mouse buttons and dnd canceled
Signed-off-by: Maks Naumov <maksqwe1@ukr.net>

https://bugzilla.gnome.org/show_bug.cgi?id=742785
2015-01-31 11:25:34 -05:00
Maks Naumov
d237e04864 Fix save_hot_y init in gtk_drag_get_icon()
Signed-off-by: Maks Naumov <maksqwe1@ukr.net>

https://bugzilla.gnome.org/show_bug.cgi?id=742786
2015-01-31 11:25:34 -05:00
Carlos Garnacho
765902dbd6 win32: Don't check the position of a NULL device
This function is given a barely setup GdkEvent, so the GdkDevice field
is still unset, causing warnings and misbehaviors when the position
is queried for it.

Given that the wintab GTK+ code seems to rely somewhat hard on the wintab
device managing the pointer cursor, query the pointer position from the
pointer itself.

https://bugzilla.gnome.org/show_bug.cgi?id=743330
2015-01-28 17:02:57 +00:00
Carlos Garnacho
59c02b7f1c win32: Ensure we can create a window for wintab
The window used NULL as a parent window, which defaults internally to
using the root window of the default screen. But at the time wintab is
initialized, there is no default display/screen yet.

Fix this by retrieving this information from the given GdkDeviceManager,
so we don't have to wait for the display to be in place before
initialization.

https://bugzilla.gnome.org/show_bug.cgi?id=743330
2015-01-28 17:02:56 +00:00
Lars Uebernickel
420d7414bf Also bundle icons in status/ as resources 2015-01-28 14:52:36 +00:00
Lars Uebernickel
90a253758d gtkimagemenuitem: create widget for action icons lazily
GtkImageMenuItem always packs a GtkImage when it is synced with a
related action. This is unnecessary when the action doesn't have an icon
set and results in excess padding when a GtkImageMenuItem is put in a
menu bar (GtkUIManager does this).

Fix this by not creating the GtkImage for icon-less actions.

https://bugzilla.gnome.org/show_bug.cgi?id=742181
2015-01-19 09:01:29 -05:00
Lars Uebernickel
9466e8926d Menu items: force loading 16x16 icons
GtkIconTheme doesn't scale icons beyond the size specified in the theme
anymore. This can result in arbitrarily large menu items when a theme
only provides large icons.

Force icons to always be 16x16 to ensure that menu items always have the
same height.

https://bugzilla.gnome.org/show_bug.cgi?id=741259
2015-01-19 08:59:25 -05:00
Nelson Benítez León
7c31af26e5 gtkplacessidebar: insert bookmark by dnd in correct position
Add needed COLUMN INDEX to "new bookmark" row based on previous
bookmark index plus one.

Fixes bug 742727
2015-01-14 18:38:24 -05:00
Carlos Garnacho
485ab7a3d9 widget: Free the controller list on finalize()
If this is done on dispose(), the widget may be destroyed (and its
controllers list NULLified) within _gtk_widget_run_controllers(),
causing warnings/crashes when it just tried to hop on the next
controllers.

Freeing the controllers here should be a safety net for implementations,
so it also makes sense to do this late. The widgets that choose to
free their controllers on dispose can still do so, and get
_gtk_widget_remove_controller() called for these as an indirect result.
2015-01-14 17:44:03 +01:00
Carlos Garnacho
75659b2b60 listbox: Free the multipress gesture on finalize 2015-01-14 17:43:54 +01:00
Carlos Garnacho
02108abfa4 event-controller: Chain up on dispose 2015-01-14 17:43:42 +01:00
Sveinn í Felli
ac97bfde80 Updated Icelandic translation 2015-01-13 13:44:08 +00:00
Maks Naumov
2a98e4ace5 Properly check result of g_utf8_get_char_validated()
g_utf8_get_char_validated() may return -1 or -2
return type is gunichar(guint32)

Therefore such checks like 'gunichar < 0' or 'gunichar > 0'
are always 'false' or 'true'(except when gunichar == 0).

Signed-off-by: Maks Naumov <maksqwe1@ukr.net>

https://bugzilla.gnome.org/show_bug.cgi?id=742774
2015-01-11 15:47:31 -05:00
Maks Naumov
05c0a487ad Fix check for 'y' padding in gtk_cell_renderer_set_padding()
Signed-off-by: Maks Naumov <maksqwe1@ukr.net>

https://bugzilla.gnome.org/show_bug.cgi?id=742764
2015-01-11 15:35:01 -05:00
Matthias Clasen
66888cedec Remove an unused define 2015-01-11 15:24:11 -05:00
Maks Naumov
579e47bc66 Properly ignore BadWindow and BadDrawable in get_child_info_handler()
Signed-off-by: Maks Naumov <maksqwe1@ukr.net>

https://bugzilla.gnome.org/show_bug.cgi?id=742771
2015-01-11 15:23:54 -05:00
Matthias Clasen
6429a66258 Deal with absence of org.gnome.desktop.interface schema
This should fully address
https://bugzilla.gnome.org/show_bug.cgi?id=742664
in the 3.14 branch.
2015-01-11 14:07:10 -05:00
Matthias Clasen
ab31b0d1aa 3.14.7 3.14.7 2015-01-10 22:00:13 -05:00