Alexander Larsson
83c5e354bd
wayland: Add custom create_similar_image implementation
...
The fallback method is used on other backends, but it caused
problems for wayland when it tried to create a surface for
the root window.
2013-07-03 16:03:25 +02:00
Alexander Larsson
e8b38fedbd
gdk: Convert mouse position to doubles, add new getters
...
We've long had double precision mouse coordinates on wayland (e.g.
when rotating a window) but with the new scaling we even have it on
X (and, its also in Xinput2), so convert all the internal mouse/device
position getters to use doubles and add new accessors for the
public APIs that take doubles instead of ints.
2013-07-03 14:39:25 +02:00
Alexander Larsson
867ba1df27
x11: Don't follow dpi and scale from xsettings when GDK_SCALE set
...
If things are hardcoded in the environment, that wins.
2013-07-03 14:36:05 +02:00
Alexander Larsson
4b9c08f48d
x11: Add Gdk/UnscaledDPI to override Xft/DPI
...
This lets use use a scaled Xft/DPI for old apps while not
blowing up the size of scaled windows. Only apps supporting
Gdk/WindowScaleFactor should supprt Gdk/UnscaledDPI.
2013-07-03 14:34:25 +02:00
Alexander Larsson
d89a98e31e
x11: Support the Gdk/WindowScalingFactor xsetting
...
This xsetting can be used to tell Gtk to use a specific window
scaling for the screen.
2013-07-03 14:34:14 +02:00
Alexander Larsson
525e5cff04
x11: Initial cut at supporting window scaling for X11
...
If you set GDK_SCALE=2 in the environment then all windows will be
scaled by 2. Its not an ideal solution as it doesn't handle
multi-monitors at different scales, and only affects gtk apps.
But it is a good starting points and will help a lot on HiDPI
laptops.
2013-07-03 14:34:14 +02:00
Alexander Larsson
ed4fcee4c6
wayland: Support gdk_window_get_scale
...
We track the list of outputs each window is on, and set the
scale to the largest scale value of the outputs. Any time the scale
changes we also emit a configure event.
2013-07-03 14:34:13 +02:00
Alexander Larsson
ce68a2f870
wayland: Implement gdk_screen_get_monitor_scale()
...
We bind to the newer version of the wl_output which supports
the new done and scale events, and if we use this to get the
scale for each monitor (defaulting to 1 if not supported).
2013-07-03 14:34:13 +02:00
Alexander Larsson
8524e0c150
gdk: Add gdk_cairo_surface_create_from_pixbuf
2013-07-03 14:34:13 +02:00
Alexander Larsson
04f83a56a2
gdk: add gdk_window_create_similar_image_surface
...
This lets us create image surfaces that render faster on specific windows.
It also supports creating scaled image surfaces.
2013-07-03 14:34:13 +02:00
Alexander Larsson
56bec0c70c
gdkwindow: Respect cairo surfaces with device scale
...
If a cairo_surface for a window has a device scale set we need
to respect this when creating a similar window. I.e. we want
to then automatically create a larger window which inherits
the scale from the original.
We also need to calculate a different device_offset if there
is a device_scale set.
2013-07-03 14:34:13 +02:00
Michael Natterer
d4607be003
quartz: Implement get_scale_factor() on screen and window
2013-07-03 14:34:13 +02:00
Alexander Larsson
30080faf2b
offscreenwindow: Handle window_scale
...
We create similar windows in the right way to get the
device scale right.
2013-07-03 14:34:13 +02:00
Michael Natterer
8ad851f725
add gdk_screen_ and gdk_window_get_scale_factor()
...
These report the internal scaling factor, mapping from UI pixels
to hardware pixels.
2013-07-03 12:27:10 +02:00
Alexander Larsson
995a7e95b9
win32: Remove unused functions
...
The _gdk_windowing_* stuff is not used anymore
2013-07-03 12:27:10 +02:00
Alexander Larsson
aa3f0f8ec9
quartz: Remove unused functions
...
The _gdk_windowing_* stuff is not used anymore
2013-07-03 12:27:10 +02:00
Alexander Larsson
09a975a765
gdk: Fix shaped toplevels
...
We need to apply the shape for toplevels that have a shape.
https://bugzilla.gnome.org/show_bug.cgi?id=702831
2013-07-01 15:34:15 +02:00
Chun-wei Fan
2268e9d6c9
Broadway: Allow Compilation on Windows/MSVC
...
-Don't include unistd.h unconditionally as it's not available in Visual
Studio, but include io.h where necessary.
-Avoid C99isms, and use _chsize_s in place of ftruncate when unistd.h is
not available (as in the case of Visual Studio)
2013-07-01 14:51:03 +02:00
Tarnyko
4b49c44b0a
win32: Make broadway build
2013-07-01 14:46:25 +02:00
William Jon McCann
85c0614707
Remove gtk-im-status-style and gtk-im-preedit-style from GDK as well
2013-06-30 13:45:43 -04:00
William Jon McCann
7ca327c9bb
Deprecate the unused gtk-file-chooser-backend setting
2013-06-30 13:44:24 -04:00
Matthias Clasen
894b1ae76a
Avoid integer overflow
...
Use g_malloc_n in gdk_cairo_set_source_pixbuf when allocating
a large block of memory, to avoid integer overflow.
Pointed out by Bert Massop in
https://bugzilla.gnome.org/show_bug.cgi?id=703220
2013-06-29 22:06:54 -04:00
Matthias Clasen
dfa2e91cd7
GdkScreenX11: Dispose visuals
...
If we let them hold onto their X resources until finalize,
it is too late.
2013-06-29 19:23:23 -04:00
Matthias Clasen
42e45f4f75
GdkVisualX11: Add a dispose implementation
...
We need to be able to drop X resources before finalization.
2013-06-29 19:22:51 -04:00
Matthias Clasen
459e10196d
GdkDeviceManagerXI2: chain up in constructed
...
Dispose does chain up, and the parent class' dispose expects
that the object has been fully constructed.
2013-06-29 19:21:28 -04:00
William Jon McCann
e779e04bc2
Deprecate and ignore gtk-icon-sizes setting
...
We don't have icons rendered at arbitrary sizes and we have better
APIs that aren't restricted to GtkIconSizes.
2013-06-26 18:04:27 -04:00
William Jon McCann
3e96625411
Remove the rest of gtk-touchscreen-mode
2013-06-26 15:35:47 -04:00
William Jon McCann
b26c74e5da
Deprecate and ignore gtk-menu-bar-accel setting
...
Use 'F10' by default.
2013-06-26 14:21:44 -04:00
William Jon McCann
aa78c888eb
Deprecate and ignore gtk-fallback-icon-theme
...
The standard icon themes have built in fallbacks.
2013-06-26 12:47:43 -04:00
William Jon McCann
b2e666bf8f
Deprecate and ignore the cursor blink settings
...
And hardcode them to reasonable values.
2013-06-26 12:32:31 -04:00
William Jon McCann
2d79334bb0
Deprecate and ignore gtk-can-change-accels
...
It is disabled by default
2013-06-26 12:00:42 -04:00
William Jon McCann
7e3a494fac
Deprecate and ignore gtk-enable-mnemonics and gtk-auto-mnemonics" properties
...
They are both enabled by default.
2013-06-26 11:16:12 -04:00
William Jon McCann
e8147d15f7
Deprecate and ignore gtk-menu-images setting
...
GtkImageMenuItem images can still be enabled selectively by the app author
using the always-show-image property on the item.
2013-06-26 10:53:09 -04:00
Rob Bradford
bfe87c44a8
wayland: Add missing symbol export
...
gdk_wayland_window_set_use_custom_surface was not being exported
correctly.
https://bugzilla.gnome.org/show_bug.cgi?id=695861
2013-06-26 15:09:51 +01:00
William Jon McCann
65c31629c3
Deprecate and ignore gtk-button-images setting
...
Button images can still be enabled selectively by the app author
using the always-use-image property on the button.
2013-06-26 09:15:22 -04:00
John Lindgren
5fa0da4200
window: Make process_updates faster
...
Only look at "impl" windows in gdk_window_process_updates_with_mode()
since these are the only ones we care about. This avoids a lot of
unnecessary calls to g_list_copy() and g_object_ref().
2013-06-26 10:03:51 +02:00
Alexander Larsson
c40155c8e6
gdkwindow: Don't recurse into clipped children when updating
...
We don't want to recurse into children that are clipped, as that is
wasted work. We handle this by moving the empty check to the top
of the function and only using the clipped region everywhere.
2013-06-25 10:07:49 +02:00
John Lindgren
6eea6ddcc3
Optimize gdk_x11_screen_supports_net_wm_hint()
...
Move the call to gdk_x11_atom_to_xatom_for_display() outside of the
search loop in gdk_x11_screen_supports_net_wm_hint(). In my test case
(running Audacious for about a minute), this reduced the total number of
hash table lookups performed from 370,000 to 230,000.
https://bugzilla.gnome.org/show_bug.cgi?id=702913
2013-06-23 21:25:26 +02:00
William Jon McCann
1b3f9df361
Remove rest of gtk-show-input-method-menu and gtk-show-unicode-menu
...
They are no longer used.
2013-06-21 08:59:32 -04:00
Michael Natterer
e5e17cf361
quartz: remove check for keymap changes from update_keymap()
...
The function is now only called when the keymap has actually
changed. bug #698183 .
(cherry picked from commit e62709da2e
)
2013-06-20 17:27:24 +02:00
Michael Natterer
bbe3554fa9
quartz: update the keymap only if the input method changed
...
and not on each keystroke, which for some IMs apparently caused a full
update on each keystroke, not just a check for changes. Patch from
Takuro Ashie, bug #698183 .
2013-06-20 17:09:37 +02:00
Aleksander Morgado
136f6b15be
win32: don't convert '\n' to '\r\n' when copying if it already is '\r\n'
...
https://bugzilla.gnome.org/show_bug.cgi?id=649390
2013-06-18 14:37:03 +02:00
Jani Välimaa
44b287a4ae
Ensure broadway backend links when using as-needed linking
...
Error message at:
http://pkgsubmit.mageia.org/uploads/failure/cauldron/core/release/20130617185755.wally.valstar.6794/log/gtk+3.0-3.9.4-1.mga4/build.0.20130617185804.log
<ovitters> mclasen_:
http://svnweb.mageia.org/packages/cauldron/gtk%2B3.0/current/SOURCES/gtk%2B-3.9.4-linking.patch?revision=444164&view=markup
<ovitters> mclasen_: gtk doesn't seem to link properly on Mageia
(as-needed thing probably)
<mclasen_> sure, looks fine
<ovitters> can I commit this?
<mclasen_> yes, please commit
2013-06-17 21:55:30 +02:00
Tarnyko
53a9311e2c
broadway: Add win32 support
2013-06-13 19:35:43 +02:00
Tarnyko
e2da2259ad
broadway: Support TCP displays
2013-06-13 19:12:46 +02:00
Tarnyko
d4dacc596f
broadway: Only use gio-unix on G_OS_UNIX
2013-06-13 18:15:10 +02:00
Tarnyko
050702494b
broadway: Remove unused includes
2013-06-13 18:09:32 +02:00
Tarnyko
b20d949470
broadway: Add configure checks for sys/mman.h
2013-06-13 18:01:44 +02:00
Benjamin Otte
7ce198ea6f
x11: Remove motif dnd leftovers
2013-06-13 15:31:35 +02:00
Руслан Ижбулатов
b0016252cf
Pass screen to visual init (no default screen is available yet)
...
https://bugzilla.gnome.org/show_bug.cgi?id=700444
2013-06-11 11:16:04 +02:00