Matthias Clasen
8dd8c4a9de
GdkMonitor: Fix refresh-rate property
...
We were using g_value_set_boolean for an integer property.
2016-05-02 12:42:13 -04:00
Руслан Ижбулатов
b579fa82fe
Use default VFS, not a local one (it has no network)
2016-05-02 14:45:44 +00:00
Matthias Clasen
9a03fc906a
Fix gtk_paned_set_position to set position_set consistently
...
As pointed out in https://bugzilla.gnome.org/show_bug.cgi?id=765676 ,
we were failing to set position_set if the position did not change.
2016-05-02 07:42:06 -04:00
Carlos Soriano
264b2b78cd
testnotebookdnd: add one GtkListBox as tab content
...
To make sure we test regressions on widgets that bubble up motion
handling and can trigger the motion handling code path on GtkNotebook.
https://bugzilla.gnome.org/show_bug.cgi?id=764395
2016-05-02 13:17:48 +02:00
Carlos Soriano
ddb0740a21
gtknotebook: avoid tab dnd from content
...
Before commit 6c1bee2377
we were setting an attribute of GtkNotebook
to track the pressed button if the pressed button happened on the
tab itself.
Later in the motion handling code we were checking whether the private
pressed button attribute was set or not in order to handle a tab dnd
or not.
In commit 6c1bee2377
the code changed and set the pressed button
variable unconditionally, which means, a motion event from within the
tab content triggered a tab reordering.
This happened only if the children hierarchy have a widget that bubbles
up both button press event, which sets the private pressed button
attribute; and motion events, which started the tab dnd checking the
private pressed button attribute.
A widget that experienced the regression was GtkListBox.
In order to fix it, set the button pressed variable only when it press
the tab itself, not the content.
https://bugzilla.gnome.org/show_bug.cgi?id=764395
2016-05-02 13:17:48 +02:00
Руслан Ижбулатов
bab628beb2
GtkPlacesView: check for network:// URI support before using it
...
Specifically, this URI is not supported on Windows, but GFile will
do its "best" and turn it into GLocalFile("$pwd/network"), with
spectacularly bad results.
https://bugzilla.gnome.org/show_bug.cgi?id=765858
2016-05-01 19:04:18 +00:00
Carlos Garnacho
cb6b5e4017
gdkevents: Free motion events discarded by motion compression
...
Those should be freed together with their list link.
2016-05-01 20:05:56 +02:00
Matthias Clasen
73e799474a
dnd: Make sure to free a stashed event
...
I am not sure if this happens in practice, but better to be safe.
2016-05-01 13:26:35 -04:00
Matthias Clasen
0fe0ee897d
gesture: Don't leak stashed events
...
These events were never freed.
2016-05-01 13:26:35 -04:00
Matthias Clasen
a047269428
Avoid copying an event
...
Not a big deal, but we can be a bit more efficient when generating
grab-broken events.
2016-05-01 13:26:35 -04:00
Matthias Clasen
a7ee3a6d80
Small docs improvement
...
Cross reference from gdk_event_get_keycode to
gdk_event_get_scancode.
2016-05-01 13:26:35 -04:00
Matthias Clasen
8041c012fe
Drop unused macros
...
These have been sitting here forever, unused. Time to drop them
2016-05-01 13:26:35 -04:00
Matthias Clasen
6baac526b9
x11: drop a useless list
...
We were keeping all the event sources in a list, only to remove
them at the end of their life. Not useful.
2016-05-01 13:26:35 -04:00
Matthias Clasen
75e44c50ed
wayland: drop a useless list
...
We were keeping all the event sources in a list, only to remove
them at the end of their life. Not useful.
2016-05-01 13:26:35 -04:00
Matthias Clasen
de894f38b5
Fix the build
...
I forgot to add an include here.
2016-05-01 13:26:35 -04:00
Matthias Clasen
a829b26de1
wayland: Tag the event source with the acutal display name
2016-05-01 10:52:31 -04:00
Matthias Clasen
55ea6e4dcc
wayland: Make gdk_display_get_name work
...
It should just return the same as gdk_screen_make_display_name.
2016-05-01 10:51:41 -04:00
Matthias Clasen
309c6dfaf8
css: Use setters for font size and family
...
This avoid creating pango font descriptions all the time, when
the gtk-font-name setting hasn't actually changed.
2016-05-01 01:10:59 -04:00
Matthias Clasen
71d6816817
settings: Add setters for font family and size
2016-05-01 01:10:33 -04:00
Matthias Clasen
449732446b
treeview: Use getter for gtk-enable-animations
2016-05-01 00:40:23 -04:00
Matthias Clasen
8457dff08a
switch: Use getter for gtk-enable-animations
2016-05-01 00:40:08 -04:00
Matthias Clasen
df72478375
stack: Use getter for gtk-enable-animations
2016-05-01 00:39:55 -04:00
Matthias Clasen
5ee745dfee
scrolled window: Use getter for gtk-enable-animations
2016-05-01 00:39:34 -04:00
Matthias Clasen
ff0107a4ac
Use getter for gtk-enable-animations
2016-05-01 00:39:18 -04:00
Matthias Clasen
9d038df7de
popover: Use getter for gtk-enable-animations
2016-05-01 00:39:03 -04:00
Matthias Clasen
e502702dd4
Use a variable consistently
2016-04-30 23:15:20 -04:00
Matthias Clasen
417eb0ad9c
Use a better hash for arcs
2016-04-30 22:39:58 -04:00
Matthias Clasen
e5de6dd8b1
css: Use a getter for the enable-animations setting
2016-04-30 22:39:58 -04:00
Matthias Clasen
28625c16c0
dnd: Use a getter for the drag threshold
2016-04-30 22:39:58 -04:00
Matthias Clasen
8e62cee075
Add a few settings getters
2016-04-30 22:39:58 -04:00
Matthias Clasen
4151b6715c
Trivial whitespace fix
2016-04-30 21:06:38 -04:00
Matthias Clasen
98f16fdf7a
Use the new getter
...
This avoids the use of generic api in the per-event code path.
2016-04-30 20:59:16 -04:00
Matthias Clasen
7f4b575fc3
gdk: Add a private getter for GdkDevice::input-mode
2016-04-30 20:52:23 -04:00
Matthias Clasen
172093db8c
Add a forgotten deprecation
...
gdk_display_get_screen is marked as deprecated in the docs.
2016-04-30 16:46:11 -04:00
Руслан Ижбулатов
3a095ad454
W32: support cairo library in non-standard locations
...
When checking for cairo_win32_surface_create_with_format in -lcairo,
temporarily put CAIRO_LIBS into LIBS so that AC_CHECK_LIB() can
find it in weird places like /usr/local/lib, where gcc would not look
on its own.
https://bugzilla.gnome.org/show_bug.cgi?id=765793
2016-04-29 15:56:54 +00:00
GNOME Translation Robot
15dbf35fd8
Updated Scottish Gaelic translation
2016-04-29 08:41:50 +00:00
Руслан Ижбулатов
2655d929fe
W32: reword the error about required cairo version
...
1.14.x series does not contain the functionality needed by GTK+.
Advise to use 1.15.x (1.15.2 is available) or 1.16.x (yet to be released).
https://bugzilla.gnome.org/show_bug.cgi?id=765790
2016-04-29 07:06:02 +00:00
Matthias Clasen
7afc6b1fd5
settings: Cache xsettings
...
Instead of calling out to gdk every time an XSetting is requested,
cache the value (we already have the property_values array
anyway).
https://bugzilla.gnome.org/show_bug.cgi?id=765579
2016-04-28 23:29:43 -04:00
Matthias Clasen
2148708917
box gadget: Redo expand flag handling
...
We only keep one align flag per child, so it seems odd to
keep separate h/v expand flags. Just keep one expand flag
and interpret it according to orientation. Allow setting
the expand flag for child widgets too, though, so we can
make widget expand without interfering with the recursive
widget expand flag.
Update all callers.
Use the new possibility of expanding child widgets to make
the label of check and radio buttons expand. This fixes
unexpected behavior of these widgets in RTL in some places.
https://bugzilla.gnome.org/show_bug.cgi?id=765742
2016-04-28 21:59:34 -04:00
Matthias Clasen
8a308dd072
expander: Reverse alignments in RTL
...
Flip alignments of the title gadget children.
2016-04-28 21:59:34 -04:00
Matthias Clasen
8bf148b006
check button: Reverse alignments in RTL
...
Flip alignments for the box gadget children.
2016-04-28 21:59:34 -04:00
Matthias Clasen
2919e344ca
box gadget: allow reversing alignments
...
In RTL, we want to interpret GTK_ALIGN_START and _END
in the opposite way. Since we don't give gadgets a text
direction, just allow setting an align_reverse flag
to the box gadget.
2016-04-28 21:59:34 -04:00
Lapo Calamandrei
71c1e86e62
Adwaita: refactor levelbar styling.
2016-04-28 15:45:12 +02:00
Rico Tzschichholz
0f1e42cd80
broadway: Fix include rules in gdkbroadwaymonitor.h
...
Fixes 044109c8c7
2016-04-28 10:20:15 +02:00
Daniel Mustieles
394fe0e675
Updated Spanish translation
2016-04-28 08:06:10 +00:00
Matthias Clasen
952d0fd23f
window: Stop using gdk_screen_get_n_monitors
2016-04-27 23:18:16 -04:00
Matthias Clasen
03d70f1636
settings: Stop comparing screen numbers
...
There is only one screen.
2016-04-27 23:18:16 -04:00
Matthias Clasen
f5d6688d3e
window: Stop using screen width/height
2016-04-27 23:18:16 -04:00
Matthias Clasen
6ae2c24bde
treeview: Stop using screen width/height
...
Popups should always be placed relative to a monitor.
2016-04-27 23:18:16 -04:00
Matthias Clasen
29396a1e5e
label: Stop using screen width/height
...
Popups should always be placed relative to a monitor.
2016-04-27 23:18:16 -04:00