Matthias Clasen
5b2236e3d7
Add a Since annotation to gdk_device_get_last_event_window
2014-03-12 23:04:37 -04:00
Owen W. Taylor
40b6d907bf
Use GDK's current window tracking when synthesizing events in GTK+
...
Add gdk_device_get_last_event_window(), and use to implement the window
tracking we need for synthesizing crossing events for sensitivity changes
and gtk grabs, rather than keeping the information in qdata and updating
it based when GTK+ gets events.
https://bugzilla.gnome.org/show_bug.cgi?id=726187
2014-03-12 23:03:53 -04:00
Owen W. Taylor
1ff2161431
gdk_cairo_surface_create_from_pixbuf: Add missing (allow-none) annotation
...
The window is allowed to be %NULL
2014-03-12 11:50:55 -04:00
Ryan Lortie
ff0c470e34
broadway: remove unused libcrypt
...
eb1ab0dac2
removed support for authentication
based on crypt()-hashed passwords but it didn't remove the header.
Finish up with the removal.
This allows the broadway backend to build on FreeBSD (which has no
crypt.h).
https://bugzilla.gnome.org/show_bug.cgi?id=726149
2014-03-12 00:17:09 -04:00
Jasper St. Pierre
fb51bbc565
wayland: Clean up a bit
2014-03-10 13:40:04 -04:00
Jasper St. Pierre
05b8609f80
wayland: Move some code around
2014-03-10 13:40:04 -04:00
Jasper St. Pierre
c92a16fcf5
wayland: Fix submenu positioning
...
window->x / window->y are in "root window coordinates", e.g. relative
to the topmost toplevel. However, the coordinates in get_xdg_popup are
relative to the passed-in surface, so we need to do the reverse
translation here.
2014-03-10 13:40:04 -04:00
Owen W. Taylor
99ac2f5c49
Fix font size when gdk_x11_display_set_window_scale() is used
...
We have a hack in the XSETTINGS code to substitute gtk-xft-dpi
with gdk-unscaled-dpi unless the screen has a fixed window scale,
in which case we just use gtk-xft-dpi.
But if the screen is changed to have a fixed window scale, then
the substituted value of gdk-unscaled-dpi will stick around until
the next (coincidental) change to XSETTINGS. To fix this, force
an immediate reread of the XSETTINGS property when
gdk_x11_display_set_window_scale() is used.
https://bugzilla.gnome.org/show_bug.cgi?id=725754
2014-03-06 23:20:00 -05:00
Benjamin Otte
32a420b7d6
broadway: Print a useful error message
...
.. instead of the generic "failed to open display".
2014-03-05 21:03:36 +01:00
Matthias Clasen
7fae042208
Deprecate GdkEventVisibility and ::visibility-notify-event
...
These don't really work anymore in a composited world.
Lets make it official.
https://bugzilla.gnome.org/show_bug.cgi?id=481073
2014-03-03 21:39:03 -05:00
Benjamin Otte
e9aa5a9822
gdkwindow: Call function instead of copying its code
...
gdk_window_get_origin() is just a variant of
gdk_window_get_root_coords() after all.
2014-02-28 03:09:23 +01:00
Jasper St. Pierre
0f212b5fb7
gdkwindow: Always pass the impl window to GdkWindowImpl::get_root_coords
...
The point of GdkWindowImpl::get_root_coords is to translate the passed
in coordinates against the passed-in impl window. For a child window,
in fact, window->abs_x and window->abs_y already track the child
window's coordinates against the impl window.
If we pass in a child window, and backends don't explicitly get the impl
window from it, we'll double-count the child window.
Really, we should *always* be passing impl windows to backends, and
never child windows. However, I'm a bit worried for regressions late
in the cycle if we want to fix up the rest of the callers, like
gdk_window_get_geometry, so I'm only going to touch get_root_coords
for now after careful review of all the backends.
2014-02-27 21:06:35 -05:00
Jasper St. Pierre
b922e0e213
Remove the return value of GdkWindowImpl::get_root_coords
...
It's unused by callers, and the historical return values are
undocumented, so just remove it now.
2014-02-27 21:06:35 -05:00
Jasper St. Pierre
056ca21e2f
wayland: Seal up a non-declared public member
2014-02-27 17:33:09 -05:00
Jasper St. Pierre
7d67530982
wayland: Remove old, outdated comment
2014-02-27 17:00:56 -05:00
Jasper St. Pierre
08d0bedb28
wayland: Fix margins at startup
...
GtkWindow calls set_shadow_width then maps the window, meaning
that we never set the margin. Save it when we set and then set
it when we create the XDG surface.
2014-02-27 16:55:02 -05:00
Giovanni Campagna
ad2f96ff48
Gdk: fix wrong user_data handling in resize_cairo_surface()
...
Instead of destroying the surface in the backend if this is
unable to resize, let the core code do it, and do it properly.
Based on a patch by Benjamin Otte.
https://bugzilla.gnome.org/show_bug.cgi?id=725172
2014-02-26 00:04:41 +01:00
Jasper St. Pierre
084c2feb7e
wayland: Don't destroy the cairo surface when resizing it
...
The code in GDK is incredibly broken and nobody is quite sure what's
right-side-up and what's upside down, but this breaks mutter-wayland
now, so let's remove it. It might leak, but we should probably do a
full restructuring of GDK drawing to fix it.
2014-02-23 16:07:38 -05:00
Rui Matos
6ea4bf8a9d
wayland: Fix gdk_window_wayland_resize_cairo_surface()
...
Like in other backends (except X) we can't resize cairo image surfaces
so let's sync the code here with what the other backends do.
This prevents the painting machinery above us to paint on the wrong
buffer.
https://bugzilla.gnome.org/show_bug.cgi?id=724968
2014-02-23 18:40:29 +01:00
Matthias Clasen
6dcf6e0f3b
Be more careful to change state atomically
...
This avoids temporary states of maximized+tiled that
we otherwise report.
2014-02-22 22:24:20 -05:00
Paolo Borelli
e34d9eafed
Do not leak cairo_region
2014-02-21 21:11:21 +01:00
William Jon McCann
469d333aa2
docs: use Returns: consistently
...
Instead of Return value:
2014-02-19 18:56:05 -05:00
Jasper St. Pierre
7fbcff8d71
xdg-shell: Update for focused_set / focused_unset rename
2014-02-18 16:48:42 -05:00
Jasper St. Pierre
6845eade49
wayland: Update to new xdg-shell pinging standards
2014-02-18 16:47:34 -05:00
Matthias Clasen
c779b42476
Docs: use // for comments in examples
...
Without sgml mode, we can't escape /* as /* anymore,
so just switch to // for comments in examples.
2014-02-14 23:34:22 -05:00
Ting-Wei Lan
3e02f52031
Do not return things from a void function
...
Reported in https://bugzilla.gnome.org/show_bug.cgi?id=724008
Author: Ting-Wei Lan <lantw44@gmail.com>
2014-02-12 22:48:19 -05:00
Matthias Clasen
3459a0a273
Revert "Introduce API to get the preferred visual"
...
This reverts commit 2b95d1a34e
.
Conflicts:
gdk/gdkscreen.c
2014-02-10 22:15:28 -05:00
Matthias Clasen
d326507978
Revert "Use gdk_screen_get_preferred_visual()"
...
This reverts commit 30fa1426cf
.
See the bugs
https://bugzilla.gnome.org/show_bug.cgi?id=724067
https://bugzilla.gnome.org/show_bug.cgi?id=723740
for the issues that are the reason for this revert.
2014-02-10 22:12:53 -05:00
Matthias Clasen
7f6a964c47
Docs: Remove all entities and turn off sgml mode
...
With all element markup gone, it is time to turn off
sgml mode, and get rid of entities as well.
2014-02-09 17:58:07 -05:00
Jasper St. Pierre
bfe8a354cd
wayland: Add support for set_shadow_width
2014-02-07 19:33:17 -05:00
Jasper St. Pierre
c52e710dc8
wayland: Add support for delete event
2014-02-07 18:30:12 -05:00
Jasper St. Pierre
b14e86fad2
wayland: Remove edges from configure
2014-02-07 18:30:07 -05:00
Jasper St. Pierre
1859d7631b
gdkthreads: Update documentation
2014-02-07 18:01:16 -05:00
William Jon McCann
13998c55e7
docs: use proper quotations instead of '*'
2014-02-07 14:22:39 -05:00
William Jon McCann
a4b5929e81
docs: use apostrophe in *'re
2014-02-07 13:37:09 -05:00
William Jon McCann
285d216d3e
docs: use apostrophe in *'ll
2014-02-07 13:35:54 -05:00
William Jon McCann
e34bd4137d
docs: use apostrophes in *n't
2014-02-07 13:32:47 -05:00
William Jon McCann
f0000b2f3d
docs: use more apostrophes
2014-02-07 13:26:12 -05:00
William Jon McCann
7a208fbbf3
docs: use proper apostrophe
...
https://wiki.gnome.org/Design/OS/Typography
2014-02-07 13:06:10 -05:00
William Jon McCann
f116f0071e
docs: use links instead of <xref>
2014-02-07 11:13:11 -05:00
William Jon McCann
0ce016650b
docs: Use markup for links
2014-02-07 09:42:12 -05:00
Matthias Clasen
8e797c1195
Wayland: Set gtk-dialogs-use-header
...
Since we don't have a setting for this, hardcode the value
for now.
2014-02-06 22:51:05 -05:00
Jasper St. Pierre
e583e3ebce
gdkwindow-wayland: Make function order match listener order
2014-02-06 14:29:18 -05:00
William Jon McCann
6abe7a7094
docs: use markdown instead of <note>
2014-02-06 08:01:49 -05:00
William Jon McCann
47469eb296
Use proper quotes in gdk
2014-02-05 15:08:42 -05:00
William Jon McCann
3b3d8ca456
docs: Use "#" for refsect2 instead of ##
2014-02-04 21:00:58 -05:00
William Jon McCann
c6ef8bdc9c
docs: don't use <para id="">
2014-02-04 20:21:05 -05:00
William Jon McCann
9ecc35ec68
docs: don't use <orderedlist>
2014-02-04 19:45:36 -05:00
William Jon McCann
a22358c0c0
docs: use ` instead of <literal>
2014-02-04 18:24:29 -05:00
William Jon McCann
76447c3512
docs: use quotes instead of <firstterm>
2014-02-04 18:10:11 -05:00
William Jon McCann
2dcbe27a06
docs: don't use <option>
2014-02-04 17:48:33 -05:00
William Jon McCann
ff8864cbf3
docs: use a code block instead of <screen>
2014-02-04 17:31:17 -05:00
William Jon McCann
9ff678c37f
docs: replace another envar that sneaked in
2014-02-04 17:25:37 -05:00
William Jon McCann
bf7afa48f8
docs: replace all figures with headings and images
2014-02-04 17:20:43 -05:00
William Jon McCann
63e887e165
docs: replace all <examples> with markdown headings
2014-02-04 16:58:54 -05:00
William Jon McCann
9f99f567c8
docs: use markdown instead of inlinegraphic tags
2014-02-04 16:58:53 -05:00
William Jon McCann
8d6717097c
docs: Use markdown for ulinks
2014-02-04 16:58:53 -05:00
William Jon McCann
50e06e11ee
docs: use markdown instead of <filename> tags
2014-02-04 16:58:53 -05:00
William Jon McCann
a479ee5de5
docs: use markdown for <envar> tags
2014-02-04 16:58:53 -05:00
Matthias Clasen
30fa1426cf
Use gdk_screen_get_preferred_visual()
...
When creating windows, and when returning a widgets
visual, use the new API to get the preferred visual.
2014-02-04 13:15:47 -05:00
Matthias Clasen
2b95d1a34e
Introduce API to get the preferred visual
...
Unless GDK_RGBA=0 is set, this will be the RGBA visual.
The new function is called gdk_screen_get_preferred_visual().
https://bugzilla.gnome.org/show_bug.cgi?id=630217
2014-02-04 13:15:46 -05:00
Matthias Clasen
15060a8f24
Revert "gdk: enable rgba visuals by default"
...
This reverts commit a2ccb6601e
.
This turns out to break GtkStatusIcon, and invalidates
the documentation of gdk_screen_get_system_visual().
2014-02-04 13:15:46 -05:00
Alexander Larsson
cc5752aff4
gdkwindow: Fix gdk_window_set_child_shapes()
...
This did the reverse of what it should, making the shape be
the part where the children were *not*.
2014-02-04 12:03:03 +01:00
Adam Jackson
cc517f116a
X11: Decode extension names in the error handler
...
This commit uses the Xlib cache to obtain the name of the X extension
for the request that caused the error.
https://bugzilla.gnome.org/review?bug=723555
2014-02-03 20:14:13 -05:00
Jasper St. Pierre
8061df1544
gdkwindow-wayland: Obey Wayland buffer semantics
...
We can't destroy buffers if they're in-use by the compositor. Well,
technically we can, but that is considered undefined by Wayland and
mutter won't cope with it very well -- it simply kills the client.
To solve this, we need to delay the destroy operation until the
compositor tells us that it's released the buffer. To do this, hold
an extra ref on the cairo surface as long as the surface is in-use
by the compositor.
2014-02-03 19:08:45 -05:00
Matthias Clasen
245c385ae7
Docs: Don't use note elements
...
In most cases, the text itself makes the message clear enough.
2014-02-02 01:22:14 -05:00
Matthias Clasen
30cc1512e6
Docs: Use markdown for lists
...
This greatly reduces the amount of xml in the docs.
2014-02-02 01:07:39 -05:00
Matthias Clasen
09d1b28249
docs: Convert to markdown
...
Specifically, switch to using markdown syntax for sections.
2014-02-02 00:30:27 -05:00
Jasper St. Pierre
c08b315c32
gdkwindow-wayland: Erm, put the DESTROYED check in the right spot...
2014-01-31 16:43:49 -05:00
Jasper St. Pierre
98d1b5464d
gdkwindow-wayland: Bail out early if we get a frame callback when destroying our window
...
This prevents warnings like
(gtk3-demo:14948): Gdk-CRITICAL **: _gdk_frame_clock_thaw: assertion 'GDK_IS_FRAME_CLOCK (clock)' failed
(gtk3-demo:14948): Gdk-CRITICAL **: gdk_frame_clock_get_timings: assertion 'GDK_IS_FRAME_CLOCK (frame_clock)' failed
We need to do this, as the compositor might have already sent us a frame
event, in-flight, at the same time we destroy our window. In this case, we'll
receive the then-in-flight "done" event, and then warn as we try to look
up the frame clock on a destroyed window.
2014-01-31 16:25:27 -05:00
Jasper St. Pierre
78169aa192
gdkwindow-x11: Fix compile warning
...
It doesn't actually matter, since we don't pass any real attributes
anyway, but this should be the correct type...
2014-01-31 14:34:13 -05:00
Jasper St. Pierre
533a1306cf
gdkwindow: Use an InputOnly window for focus_window
...
For XWayland, this is somewhat important to prevent a dummy XWayland surface
being made for all clients that connect...
https://bugzilla.gnome.org/show_bug.cgi?id=723390
2014-01-31 14:23:47 -05:00
William Jon McCann
48b359ea53
docs: Work around cpp complaining about comments in docs in the standard way
...
https://bugzilla.gnome.org/show_bug.cgi?id=723119
2014-01-29 12:45:49 -05:00
William Jon McCann
4c8bd8e7cf
docs: Identify examples that are C code
...
https://bugzilla.gnome.org/show_bug.cgi?id=723119
2014-01-29 12:45:49 -05:00
William Jon McCann
768bc44081
docs: use |[ ]| instead of <programlisting></programlisting>
...
https://bugzilla.gnome.org/show_bug.cgi?id=723119
2014-01-29 12:45:49 -05:00
William Jon McCann
2d003553e8
docs: don't use <emphasis>
...
It is a little heavy handed. The text can speak for itself.
2014-01-28 02:02:05 -05:00
William Jon McCann
0a1d276f4f
docs: don't use <type> tags
...
Use # syntax where appropriate.
2014-01-28 00:21:26 -05:00
William Jon McCann
bf35c77f14
docs: use () instead of <function> tags
2014-01-27 23:08:08 -05:00
William Jon McCann
4872ee75e6
docs: don't use structfield tags
2014-01-27 19:59:58 -05:00
William Jon McCann
22586ea7c2
docs: use #*-struct instead of <structname>
2014-01-27 19:59:55 -05:00
Ignacio Casal Quinteiro
e1b874b44f
win32: remove useless comment since we do not support win98 anymore
2014-01-27 14:39:53 +01:00
Ignacio Casal Quinteiro
254d35af29
win32: handle again gtk-font-name
...
This code is ugly but it seems to do the work
2014-01-27 09:47:21 +01:00
John Ralls
489dfa9389
Bug 711298 - "Edit Scheduled Transaction" window way too modal
...
Put dialogs and utility windows in the same level as normal and
toolbar windows so that Gtk can control their stacking instead of
forcing them, rather unnaturally, to be on top of all other windows,
even other application windows, even when another application has
focus.
2014-01-24 15:22:55 -08:00
William Jon McCann
a2ccb6601e
gdk: enable rgba visuals by default
...
Unless GDK_RGBA=0 is set.
https://bugzilla.gnome.org/show_bug.cgi?id=630217
2014-01-23 11:51:51 -05:00
William Jon McCann
31532ca42f
docs: fix typo in signal link
2014-01-21 18:57:41 -05:00
William Jon McCann
0320610387
docs: fix docs link
2014-01-21 18:57:41 -05:00
William Jon McCann
916f1c0fd6
docs: fix style-updated link
2014-01-21 18:57:41 -05:00
William Jon McCann
10f25501f4
docs: fix link to even structures info
2014-01-21 18:57:41 -05:00
William Jon McCann
07535e9682
docs: remove reference to function that doesn't exist
2014-01-20 18:27:29 -05:00
William Jon McCann
8a0b4471b8
docs: fix typo in function name
2014-01-20 18:27:29 -05:00
William Jon McCann
64ffd759af
docs: fix typo in parameter name
2014-01-20 18:27:29 -05:00
William Jon McCann
ed68d3f9de
docs: fix typo in type name
2014-01-20 18:27:29 -05:00
William Jon McCann
df989e3a27
docs: use GDK_KEY_* names in docs
2014-01-20 18:27:29 -05:00
William Jon McCann
4be68e518d
docs: fix typos in class names
2014-01-20 18:27:29 -05:00
William Jon McCann
5735e8e09d
docs: remove reference to nonexistant api
...
Refers to an uncommitted part of
https://bugzilla.gnome.org/show_bug.cgi?id=696001
2014-01-20 18:27:29 -05:00
William Jon McCann
8a05d86802
docs: fix typo in function name
2014-01-20 18:27:29 -05:00
William Jon McCann
3be4b46967
docs: zero is a literal not a type link
2014-01-20 18:27:29 -05:00
William Jon McCann
e1be5e2956
docs: fix typo in doc syntax
2014-01-20 18:27:29 -05:00
William Jon McCann
af5ea79f3a
docs: fix typo in type name
2014-01-20 18:27:29 -05:00
William Jon McCann
43bd9f210c
docs: fix typo in type name
2014-01-20 18:27:28 -05:00