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
031cf86b83
wayland: Require wayland-client 1.1.90
...
This has the new methods required for buffer scaling.
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
Alexander Larsson
1b1f2b4b52
configure: Add buildtime check for cairo_surface_set_device_scale
...
We will need this for the window scale support, but its not yet
in a stable cairo release (or even on a master yet), so we make
this optional.
2013-07-03 14:34:13 +02:00
Alexander Larsson
c9b52d8820
pixel-cache: Refresh pixel cache on window scale factor changes.
2013-07-03 14:34:13 +02:00
Alexander Larsson
6bf32999b1
widget: Track when the window scale factor changes and notify
...
The scale-factor property on the widgets will be notified, and the
scale will change on the style property, causing us to pick up
new css assets.
2013-07-03 14:34:13 +02:00
Michael Natterer
c0ea0b5aad
gtk: add gtk_widget_get_scale_factor()
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
Piotr Drąg
96abd26501
Updated POTFILES.skip
2013-07-03 00:05:34 +02:00
Alexander Larsson
2a81d6f396
listbox: Use new private model, remove priv pointer
2013-07-02 13:44:17 +02:00
Alexander Larsson
06a808cf2a
stack: Use new private model, remove priv pointer
2013-07-02 13:43:20 +02:00
Alexander Larsson
09d22284f7
revealer: Use new private model, remove priv pointer
2013-07-02 13:42:43 +02:00
Matthias Clasen
6aa1d69978
Fix a copy-paste error
2013-07-01 13:18:22 -04: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
Alexander Larsson
970edd7e25
Fix typo in Makefile.am
2013-07-01 15:00:19 +02:00
Chun-wei Fan
fb6f34e499
Include crypt(3) implementation for MSVC
...
This adds a crypt(3) implementation for use with broadwayd as Visual Studio
does not support crypt(3) out of the box.
The public domain implementation is taken from the following URL,
http://michael.dipperstein.com/crypt/ , where AFAICT this implementation
would not be subject to licensing restrictions that would prevent it from
being bundled.
2013-07-01 14:52:45 +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
Matthias Clasen
7702c6a512
Add GtkHeaderBar to the a11y tests
2013-06-30 22:33:12 -04:00
Matthias Clasen
2941196f84
Add GtkStack and GtkStackSwitcher to the a11y tests
2013-06-30 22:33:12 -04:00
Matthias Clasen
e11039a973
Add GtkListBox to the a11y tests
2013-06-30 22:33:12 -04:00
William Jon McCann
a9e82cd46a
Deprecate and ignore gtk-enable-tooltips setting
...
It is enabled by default except on touch input devices.
2013-06-30 14:28:02 -04: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
William Jon McCann
3d5d3e8eae
Fix a couple of deprecation warnings related to stock items
2013-06-30 13:14:18 -04:00
William Jon McCann
c6ca2374cc
Deprecate and ignore gtk-im-status-style and gtk-im-preedit-style
2013-06-30 12:57:44 -04:00
William Jon McCann
d1817e7a5d
Add deprecation warnings to GTK_STOCK macros
2013-06-30 12:33:22 -04:00
William Jon McCann
6f83657288
Fix the build
...
Remove references to removed files
2013-06-30 11:30:37 -04:00
William Jon McCann
4d6f9d280f
Add xpadding around the image in message dialogs
2013-06-30 11:19:50 -04:00
William Jon McCann
c96a1c4980
Deprecate GtkAction and GtkUIManager
...
It is recommended to use GAction et al and GtkBuilder.
2013-06-30 11:19:50 -04:00
William Jon McCann
32ce8fa60a
Remove deprecated UIManager from the demo
2013-06-30 11:19:50 -04:00
William Jon McCann
f7f46b9155
Port print-editor test to GtkBuilder from UIManager
2013-06-30 11:19:50 -04:00
Sébastien Wilmet
158451b1ab
textiter: better document "tag" functions
...
https://bugzilla.gnome.org/show_bug.cgi?id=703313
2013-06-30 10:38:25 +02:00
Matthias Clasen
2741672cf1
Add GtkListBox to the widget gallery
2013-06-30 01:28:37 -04:00
Matthias Clasen
8b9370d194
Add missing GtkSearchEntry API to the docs
2013-06-30 01:02:46 -04:00
Matthias Clasen
587fb5efa1
GtkSearchBar: formatting trivia
2013-06-30 00:50:29 -04:00
Matthias Clasen
c6daaa16c9
GtkHeaderBar: documentation improvements
...
Add some more information about title allocation.
2013-06-30 00:27:45 -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
Benjamin Otte
f0a8d11563
reftests: Add a reftest for the expand change in GtkBox
...
The change was introduced in 80513aa2c7
See that commit for details.
2013-06-30 03:39:09 +02:00
Matthias Clasen
39f95f1b9b
Add a --direction option to gtk-reftest
...
gtk_test_init() hardcodes the locale to "C", so the --direction
option is useful to check reftests in rtl.
2013-06-29 20:03:29 -04:00