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
William Jon McCann
139b33aae5
docs: fix type in parameter type
2014-01-20 18:27:28 -05:00
William Jon McCann
201b093719
docs: remove link to missing example
...
Removed in e95490c15e
etc.
2014-01-20 18:27:28 -05:00
William Jon McCann
eecfa3eb20
docs: add docs for GtkFrameClock
2014-01-20 18:27:28 -05:00
William Jon McCann
ca61e63b2c
docs: fix docs for GDK_XID_TO_POINTER and GDK_POINTER_TO_XID
2014-01-20 18:27:28 -05:00
William Jon McCann
40b540c854
docs: fix typo in GDK_WINDOW_STATE_TILED
2014-01-20 18:27:28 -05:00
William Jon McCann
b99cd45c2b
docs: add missing scroll delta fields
2014-01-20 18:27:28 -05:00
William Jon McCann
00780017aa
docs: add missing GdkEvent field names
2014-01-20 18:27:28 -05:00
William Jon McCann
e3d81a99c6
docs: add missing docs for GDK_MODIFIER_RESERVED_*_MASK
2014-01-20 18:27:28 -05:00
William Jon McCann
83e8e38bd2
wayland: fix rename of wl_shell to xdg_shell
...
Regression from 9127087e1c
2014-01-20 14:37:33 -05:00
William Jon McCann
dc8439ee79
docs: add missing docs for GDK_WINDOWING_WAYLAND
2014-01-20 13:42:57 -05:00
Volker Sobek
a4d69e7f14
docs/comments: Fix spelling of 'explicitly'
...
This replaces all occurrences of 'explicitely' with 'explicitly'. Only
code comments and gtk-doc statements are affected.
https://bugzilla.gnome.org/show_bug.cgi?id=722429
2014-01-18 03:47:46 +01:00
Matthias Clasen
3701de14a1
Add a setting for dialog headers
...
This setting will let us keep traditional appearance
of dialogs on platforms where this is expected.
The new setting is called gtk-dialogs-use-header, backed
by the Gtk/DialogsUseHeader xsetting.
2014-01-17 17:52:08 -05:00
Tim Lunn
17b6819991
gdk: Don't leak GValue when xsetting is unknown
...
https://bugzilla.gnome.org/show_bug.cgi?id=722070
2014-01-13 22:20:28 -05:00
Matthias Clasen
7125cdc5ff
X11: Support keyboard-initiated move and resize operations
...
The EWMH defines _NET_WM_MOVERESIZE_SIZE_KEYBOARD and
_NET_WM_MOVERESIZE_MOVE_KEYBOARD for operations that are not
initiated by a button-press event. Allow using these by passing
a button of 0 to gdk_window_begin_move/resize_drag.
2014-01-12 22:25:19 -05:00
Matthias Clasen
5657b805d7
Some struct repacking
...
Save a few bytes here and there.
2014-01-12 22:25:19 -05:00
Andika Triwidada
0a768d274d
Changed obsolete FSF portal addresses to web address
...
Fixed https://bugzilla.gnome.org/show_bug.cgi?id=721530
2014-01-12 19:56:49 +07:00
Rico Tzschichholz
ed5d9b3c3e
x11: Add/Fix '(type *)' g-i annotations
2014-01-09 21:47:04 +01:00
William Hua
2a109250d5
Move get_key_equivalent() to gdk quartz utils.
...
https://bugzilla.gnome.org/show_bug.cgi?id=710351
2014-01-08 17:42:19 -05:00
Ryan Lortie
feedf46ddc
quartz: implement gdk_window_set_shadow_width()
...
Use the information to allow dragging windows all the way to the top of
the screen (ie: allow the top shadow to go under the menubar).
https://bugzilla.gnome.org/show_bug.cgi?id=720374
2014-01-06 15:27:28 -05:00
Ryan Lortie
394fe4b57e
quartz: fix manual window move
...
We need to have gdk skip standard processing of events when we are in
manual move in addition to manual resize.
https://bugzilla.gnome.org/show_bug.cgi?id=720357
2014-01-06 15:27:28 -05:00
Rico Tzschichholz
1f9da6675d
x11: Include missing public headers to GdkX11 gir build
2014-01-05 21:46:40 +01:00
Matthias Clasen
f759523a30
Deal with broken _NET_WORKAREA more gracefully
...
fvwm seems to have problems keeping _NET_WORKAREA in sync with
the number of desktops. Instead of reading garbage, silently use
the full screen as workarea for desktops that are not covered
by the _NET_WORKAREA property.
https://bugzilla.gnome.org/show_bug.cgi?id=698248
2014-01-04 15:15:00 -05:00
Matthias Clasen
c37e3b6316
x11: Avoid a possible memory leak in an error case
...
If _NET_WORKAREA is set to nonsensical values, we should still
free the memory before returning.
2014-01-04 15:13:51 -05:00
Matthias Clasen
8a42bb69aa
Trivial typo fix
2014-01-04 14:11:55 -05:00
Matthias Clasen
7e1a4800fa
Redo header bar decorations once more
...
Applications need a way to fix or adapt the decoration layout,
for situations like split header bars. Setting the layout from
the theme with a style property did not offer a good way to do
this, and the ::show-close-button property does not provide
fine-grained control.
To improve the situation, move the layout string to a property of
GtkHeaderBar which is backed by a setting. This allows platforms to
set a default button layout independent of the theme, while applications
can override the default.
The style GtkWindow style property is now deprecated and ignored.
2013-12-21 21:58:24 -05:00
Marek Kasik
ccd6e1ba47
gdkwindow: Don't add the same window to "update_windows" twice
...
This prevents passing of such window to another GMainLoop.
https://bugzilla.gnome.org/show_bug.cgi?id=711552
2013-12-18 18:15:01 +01:00
Matthias Clasen
af87a7e7c8
Fix make dist
2013-12-17 07:31:41 -05:00
Marek Kasik
1b032b18cc
gdkwindow: Handle references in "update_windows" list correctly
...
Since update_windows list is a static variable in GdkWindow.c which
contains pointers to windows which needs to be updated, it can happen
that it contains a pointer to a window even after quit from a gtk_main().
If another gtk_main() is called in the same process it tries to process
windows in the list which leads to a crash.
Correct reference count handling of added windows prevents such applications
from crash.
https://bugzilla.gnome.org/show_bug.cgi?id=711552
2013-12-16 17:58:04 +01:00
Bastien Nocera
4b42526e1f
gdkwindow: Use GdkWindowHints instead of guint for flags
...
https://bugzilla.gnome.org/show_bug.cgi?id=720342
2013-12-14 15:29:44 -05:00
Ryan Lortie
04897e5b09
gdk: add gdk_window_set_shadow_width()
...
And deprecate the X11-specific version of it.
We call this new API _set_shadow_width() and not _set_frame_extents()
because we already have a gdk_window_get_frame_extents() with a
different meaning and different type of value.
https://bugzilla.gnome.org/show_bug.cgi?id=720374
2013-12-12 23:53:47 -05:00
Jasper St. Pierre
e582404e90
wayland: Fix order of xdg-shell requests
2013-12-11 19:28:30 -05:00
Jasper St. Pierre
fe584b9f00
wayland: Update to latest xdg-shell.xml
2013-12-07 13:25:38 -05:00
Jasper St. Pierre
4844ef88db
wayland: Make sure to call use_unstable_version
2013-12-07 13:25:38 -05:00
Benjamin Otte
0bff206915
gdk: Add some return_if_fail() warnings
...
so we have a better chance of catching the correct cause of bugs like
https://bugzilla.gnome.org/show_bug.cgi?id=719977
2013-12-07 01:39:38 +01:00
Matthias Clasen
8fbda8efce
Don't distribute generated sources
...
This was causing problems when building 3.10.6 against an older
wayland.
2013-12-05 09:07:19 -05:00
Carlos Garnacho
f6c9a33841
x11: Handle XINotifyPassiveGrab/Ungrab in focus events
...
The focus handling code is shared between core and XI2 implementations,
so just handle the extra XI2 types for passive grabs. Those must be dealt
with in the same way than active grabs. Focus events with this crossing
mode could happen currently through the XIGrabFocusIn passive grab.
https://bugzilla.gnome.org/show_bug.cgi?id=719762
2013-12-04 21:22:23 -05:00
Carlos Garnacho
3dbabbd2e5
x11: Handle all XI2 crossing mode values in switch
...
This fixes potential assertions if a GTK+ app gets to receive
a XINotifyPassiveGrab/Ungrab pointer crossing event, currently
triggerable by XIGrabEnter passive grabs.
http://bugzilla.gnome.org/show_bug.cgi?id=719762
2013-12-04 21:22:23 -05:00
Matthias Clasen
e2745794b1
Revert "gdkwindow-x11: Don't set WM_TAKE_FOCUS if accept_focus is FALSE"
...
This reverts commit 809aab2c8e
.
2013-12-04 11:21:42 -05:00
Chun-wei Fan
901127243a
GDK-Win32: Ensure sources use UNIX line endings
...
This makes things more consistent with the other sources and makes patches
easier to apply cleanly.
2013-12-04 08:57:43 +08:00
Philip Withnall
c73bdb21b4
gdkwindow: Remove an unused assignment
...
The show variable is assigned to in both branches of an if block a
little further down.
Found with scan-build.
https://bugzilla.gnome.org/show_bug.cgi?id=712760
2013-12-02 10:51:07 +00:00
Philip Withnall
ad6f4926b6
gdkwindow: Remove an unused assignment
...
scale is only used if HAVE_CAIRO_SURFACE_SET_DEVICE_SCALE is defined.
Found with scan-build.
https://bugzilla.gnome.org/show_bug.cgi?id=712760
2013-12-02 10:51:07 +00:00
Benjamin Otte
1d2a070254
x11: Don't crash if a window is on an unmanaged screen
...
_gdk_x11_display_screen_for_xrootwin() can return NULL. If so, return
NULL from gdk_x11_window_foreign_new_for_display().
https://bugzilla.gnome.org/show_bug.cgi?id=709716
2013-11-25 21:14:34 +01:00
Carlos Garnacho
d1414211bf
x11: keep track of the screen pixel size by calculating the bounding box of monitors
...
This is so we always have the latest information given by XRandR (or other), and not
rely on Core protocol information that might not have been updated yet.
This is specially visible when a monitor is connected (less frequent) or disconnected
(much more frequent), callbacks on GdkScreen::monitors-changed that call
gdk_screen_get_width/height() could get the screen size previous to the monitor
rearrangement.
So in order to fix this, keep track of the latest monitors information, and calculate
the bounding box in order to know the screen size.
https://bugzilla.gnome.org/show_bug.cgi?id=715029
2013-11-25 17:19:46 +01:00
Philip Withnall
86b6170940
gdkwindow: Fix potential uses of uninitialised variables
...
Found with scan-build.
https://bugzilla.gnome.org/show_bug.cgi?id=712760
2013-11-24 21:20:44 +00:00