Emmanuele Bassi
567f6373c8
build: Clean the uninstalled introspection GIR files
...
We need to remove them from the build when cleaning them.
Additionally, this automatically adds them to the Git ignore file.
2016-10-31 16:30:10 +00:00
Juan Pablo Ugarte
50056d804b
gdk/Makefile.am: fixed glsl resources extra dist files.
...
Use the same wildcard partern used to generate gdk.gresource.xml to include files in EXTRA_DIST var.
2016-10-31 10:15:05 -03:00
Benjamin Otte
d028667fc6
display: Actually initialize variables
...
Forgot to add this in d249e77bcb
.
2016-10-29 18:10:26 +02:00
Benjamin Otte
d249e77bcb
API: screen: Remove gdk_screen_is_composited()
...
Switch code to use gdk_display_is_composited() instead.
The new code also doesn't use a vfunc to query the property but rather
requires the backend to call set_composited()/set_rgba() to change the
value.
2016-10-29 04:49:47 +02:00
Benjamin Otte
42d8142cc7
API: gdk: Add gdk_display_is_rgba() and gdk_display_is_composited()
...
Also add properties for those two properties.
The first property is equivalent to checking if an RGBA visual exists,
the 2nd is equivalent to gdk_screen_is_composited().
2016-10-29 04:49:47 +02:00
Chun-wei Fan
b960008955
GDK-Win32/4.0: Improve GL on Windows
...
Update the GDKGL implementation:
-Allow legacy contexts to be created.
-Use finer-grained attributes to ask for a pixel format when possible,
which also adds support for anti-aliasing
In fact the changes here are required for GTKGL to work properly on
Windows for 4.x.
Note that creation of gles contexts is not done here, as the system does
not support such contexts directly on Windows, but only through means such
as ANGLE, which is a totally different issue here.
https://bugzilla.gnome.org/show_bug.cgi?id=773528
2016-10-28 15:56:49 +08:00
Chun-wei Fan
fcecec1a9d
GDK/Win32: Deal with leftovers from removal of GdkWindow items
...
We need to further remove items for the removal of:
-GdkWindow->depth (commit 6cc94ff
)
-gdk_window_get_visual()/GdkWindow->visual (commit f420dc7
)
-GDK visual query APIs (commit 45c0379
)
https://bugzilla.gnome.org/show_bug.cgi?id=773299
2016-10-28 15:56:36 +08:00
Benjamin Otte
45c0379f87
API: gdk: Remove visual querying APIs
...
They are unused, only work on the default display anyway and visuals are
on their way out.
2016-10-28 05:22:50 +02:00
Benjamin Otte
f420dc7456
API: gdk: Remove gdk_window_get_visual()
...
With it, remove window->visual.
2016-10-28 05:22:49 +02:00
Benjamin Otte
6cc94ff176
gdk: Remove GdkWindow.depth member variable
...
It's unused.
2016-10-28 05:22:32 +02:00
Benjamin Otte
cd67c0d7cc
window: Add a GdkWindow:display property
...
... and make it an explicit property of the window struct instead of
looking it up in the visual.
2016-10-28 04:45:35 +02:00
Benjamin Otte
56b25e2574
x11: Remove code that temporarily unsets the background
...
We don't set a background anymore, so we don't need to temporarily unset
it.
2016-10-27 06:37:02 +02:00
Benjamin Otte
dd105f3db8
gdk: Remove gdk_window_set_invalidate_handler()
...
It's not used anymore.
2016-10-27 05:03:06 +02:00
Benjamin Otte
b1f61b6fcc
gdk: Add deprecation guards around deprecated function
2016-10-27 05:03:06 +02:00
Matthias Clasen
42a5608af6
Fix the build
...
Copy-paste error.
2016-10-26 10:45:04 -04:00
Matthias Clasen
9aa1257bd0
GdkWindow: Use the seat to enumerate devices
...
GdkDeviceManager is going away.
2016-10-26 10:36:32 -04:00
Matthias Clasen
7fa09a3e3a
quartz: Stop using gdk_device_manager_list_devices
...
The function has been deprecated.
2016-10-26 10:36:32 -04:00
Matthias Clasen
35fda80a4b
x11: Stop using gdk_device_manager_list_devices
...
The function has been deprecated.
2016-10-26 10:36:32 -04:00
Matthias Clasen
d2d209865b
broadway: Stop using gdk_device_manager_list_devices
...
The function is deprecated.
2016-10-26 10:36:32 -04:00
Alexander Larsson
723b588b5d
Make gdk.la and gsk.la a noninst helper library
...
This merged gtk, gdk and gsk into one library, making it possible to
have internal private APIs between gtk them, as well as producing more
efficient code.
https://bugzilla.gnome.org/show_bug.cgi?id=773100
2016-10-26 16:34:15 +02:00
Chun-wei Fan
4b3c0314dd
gdk/win32/gdkevents-win32.c: Avoid gdk_device_manager_get_core_pointer()
...
This function has been removed, so replace it with gdk_seat_get_pointer().
https://bugzilla.gnome.org/show_bug.cgi?id=773299
2016-10-26 18:54:51 +08:00
Chun-wei Fan
2ba64e0b62
MSVC builds: Support MSVC 2013 and later
...
We now need C99 features from the compiler which are only supported by
Visual Studio 2013 and later, so drop the MSVC 2008~2012 projects, and make
the baseline supported Visual Studio version be 2013. Update the build files
as a result.
2016-10-26 16:46:38 +08:00
Rico Tzschichholz
b4c37bfff8
visual: Remove deprecated API
2016-10-26 10:12:58 +02:00
Rico Tzschichholz
e0b1f2e5f4
Remove deprecated gdk_display_open_default_libgtk_only
2016-10-26 10:06:23 +02:00
Matthias Clasen
cbe1337aa1
Revert "Remove gdk_device_grab/ungrab from the API"
...
This reverts commit efc37d0855
.
Turns out we need to clean up the dnd code some more, first.
2016-10-25 21:24:37 -04:00
Matthias Clasen
f350e346e4
Drop the deprecated gdk_device_manager_get_client_pointer
2016-10-25 21:06:25 -04:00
Matthias Clasen
efc37d0855
Remove gdk_device_grab/ungrab from the API
...
These are still used in a few places internally,
so make them private.
2016-10-25 20:03:34 -04:00
Matthias Clasen
5e4a05e5b7
Remove deprecated gdk_window_get_pointer
2016-10-25 19:45:48 -04:00
Matthias Clasen
1396d6c92a
Remove some more deprecated display API
...
gdk_display_get_pointer, gdk_display_get_window_at_pointer and
gdk_display_warp_pointer have long been deprecated.
2016-10-25 19:31:24 -04:00
Matthias Clasen
ee7ddefce9
Remove deprecated gdk_display_list_devices
2016-10-25 16:04:01 -04:00
Matthias Clasen
dcda9c3d8c
Remove deprecated GDK_DISPLAY_OBJECT macro
2016-10-25 16:02:07 -04:00
Matthias Clasen
e041345fcb
Remove the last uses of GDK_DISPLAY_OBJECT
...
This is an obsolete macro.
2016-10-25 16:01:50 -04:00
Matthias Clasen
e642909823
Remove deprecated display ungrab functions
2016-10-25 15:56:52 -04:00
Matthias Clasen
6b231af45e
Remove deprecated gdk_app_launch_context_set_display
2016-10-25 15:52:57 -04:00
Matthias Clasen
5cb3fc4c4f
Drop deprecated gdk_display_get_screen
2016-10-25 15:35:44 -04:00
Matthias Clasen
0ba67021a9
Remove an unused function
...
This function is no longer used, now that offscreen windows are gone.
2016-10-25 15:32:02 -04:00
Matthias Clasen
4f1e06380c
Remove deprecated gdk_app_launch_context_new
2016-10-25 15:27:42 -04:00
Matthias Clasen
78d0876c46
Remove deprecated gdk_display_get_n_screens
2016-10-25 15:21:46 -04:00
Alexander Larsson
70935f0952
Drop support for offscreen GdkWindows
...
These complicate a lot of GdkWindow internals to implement features
that not a lot of apps use, and will be better achieved using gsk.
So, we just drop it all.
2016-10-25 09:54:37 +02:00
Rico Tzschichholz
639898000e
gdkwindow: Remove deprecated API
2016-10-24 12:22:32 +02:00
Rico Tzschichholz
7630c86468
gdk: Remove deprecated gdk_cairo_set_source_color
2016-10-24 10:36:55 +02:00
Rico Tzschichholz
e528819d00
gdk: Remove deprecated gdk_add_option_entries_libgtk_only and gdk_pre_parse_libgtk_only
2016-10-24 10:33:51 +02:00
Rico Tzschichholz
b19fe8f4e0
gdk: Remove deprecated gdk_threads_set_lock_functions
2016-10-24 10:33:17 +02:00
Rico Tzschichholz
b12e3b5cf2
gdk: Remove deprecated gdk_get_display
2016-10-24 10:33:17 +02:00
Rico Tzschichholz
16ded8d47b
gdk: Remove deprecated {keyboard,pointer}_{grab,ungrab} API
2016-10-24 10:33:11 +02:00
Rico Tzschichholz
02d500ac70
cursor: Remove deprecated API
2016-10-24 09:18:53 +02:00
Emmanuele Bassi
8e85f55240
gl: Check whether use_es is positive
...
Now that the use_es field is an int with a possible negative value, we
cannot use it its truth value directly; we need to check if it's a
positive value, instead.
2016-10-22 02:40:08 +01:00
Emmanuele Bassi
31c05771e9
gl: Set legacy bit depending on OpenGL version
...
GDK defaults to asking for an OpenGL 3.2 Core Profile, but if we get a
legacy profile from the underlying windowing system, the OpenGL version
will be fixed to 3.0. If that happens, we need to set the legacy bit on
the GdkGLContext, since that bit will be used to determine the version
and type of GLSL shaders that will be used by application and toolkit
code alike.
2016-10-22 02:40:08 +01:00
Emmanuele Bassi
b878ec7f2f
gdk/gl: Allow autodetection for GL/GLES
...
If the GdkGLContext was not explicitly instructed to use or not GLES, we
can detect whether the underlying API is going to be desktop GL or GLES.
https://bugzilla.gnome.org/show_bug.cgi?id=773180
2016-10-21 11:39:24 -04:00
Adam Jackson
627867863f
gdk: Don't second-guess whether a context is GLES
...
We've already set ->use_es correctly at context creation time, all this
can possibly do is change our mind about what kind of GL we're using.
Signed-off-by: Adam Jackson <ajax@redhat.com>
https://bugzilla.gnome.org/show_bug.cgi?id=773180
2016-10-21 11:39:24 -04:00