]>
Pileus Git - ~andy/gtk/log
Benjamin Otte [Mon, 20 Dec 2010 14:35:05 +0000 (15:35 +0100)]
x11: Move screen-specific API into gdkx11screen.h
Benjamin Otte [Mon, 20 Dec 2010 14:29:17 +0000 (15:29 +0100)]
x11: Move visual-specific API into gdkx11visual.h
Benjamin Otte [Mon, 20 Dec 2010 14:25:50 +0000 (15:25 +0100)]
x11: Move cursor API into gdkx11cursor.h
Benjamin Otte [Mon, 20 Dec 2010 14:22:50 +0000 (15:22 +0100)]
x11: Split out public window API into gdkx11window.h
Benjamin Otte [Mon, 20 Dec 2010 14:05:47 +0000 (15:05 +0100)]
API: gdk: gdk_display_warp_device() => gdk_device_warp()
warping devices has nothing to do with displays, so putting it there
seems weird.
Benjamin Otte [Mon, 20 Dec 2010 13:07:11 +0000 (14:07 +0100)]
gdk: Move gdk_cursor_get_image() to the base class
.. and make it call a vfunc on the cursor
Benjamin Otte [Mon, 20 Dec 2010 12:57:48 +0000 (13:57 +0100)]
x11: Remove duplicated docs
They're in gdk/gdkdisplay.c now.
Benjamin Otte [Mon, 20 Dec 2010 12:55:46 +0000 (13:55 +0100)]
x11: Don't keep the display around anymore
Use gdk_cursor_get_display() instead.
Benjamin Otte [Mon, 20 Dec 2010 12:47:35 +0000 (13:47 +0100)]
gdk: Move gdk_cursor_get_display() out of the backends
Now that we store the display inside the cursor, that change is obvious.
Benjamin Otte [Mon, 20 Dec 2010 12:45:31 +0000 (13:45 +0100)]
gdk: Make display a property of GdkCursor
Benjamin Otte [Mon, 20 Dec 2010 12:35:39 +0000 (13:35 +0100)]
gdk: Make cursor-type a property of the cursor
Benjamin Otte [Mon, 20 Dec 2010 02:27:05 +0000 (03:27 +0100)]
API: gdk: Deprecate gdk_cursor_ref() and gdk_cursor_unref()
Now that GdkCursor is a GObject, it doesn't need custom refcount
handling anymore.
Benjamin Otte [Mon, 20 Dec 2010 02:13:47 +0000 (03:13 +0100)]
testgtk: Use g_object_unref instead of gdk_cursor_unref
Benjamin Otte [Mon, 20 Dec 2010 02:59:58 +0000 (03:59 +0100)]
gtk-demo: Use g_object_unref instead of gdk_cursor_unref
Benjamin Otte [Mon, 20 Dec 2010 02:14:38 +0000 (03:14 +0100)]
gtk: Use g_object_unref instead of gdk_cursor_unref
Benjamin Otte [Mon, 20 Dec 2010 02:23:44 +0000 (03:23 +0100)]
gdk: Use g_object_(un)ref instead of gdk_cursor_(un)ref
Benjamin Otte [Mon, 20 Dec 2010 02:12:33 +0000 (03:12 +0100)]
x11: Use g_object_(un)ref instead of gdk_cursor_(un)ref
Benjamin Otte [Mon, 20 Dec 2010 02:09:31 +0000 (03:09 +0100)]
gdk: Make GdkCursor a GObject
Also port the X11 implementation. Win32 and Quartz need to be ported
still.
Benjamin Otte [Mon, 20 Dec 2010 01:20:48 +0000 (02:20 +0100)]
gdk: Move GdkCursor definition into a private header
Benjamin Otte [Mon, 20 Dec 2010 01:07:27 +0000 (02:07 +0100)]
x11: Move GdkCursorPrivate into the C file
Benjamin Otte [Mon, 20 Dec 2010 00:56:07 +0000 (01:56 +0100)]
x11: Use public API to access cursor's xcursor
Matthias Clasen [Fri, 17 Dec 2010 06:48:12 +0000 (01:48 -0500)]
Downgrade some Since tags
Matthias Clasen [Fri, 17 Dec 2010 05:46:04 +0000 (00:46 -0500)]
Add win32 implementation for foreign window functions
Matthias Clasen [Fri, 17 Dec 2010 05:43:07 +0000 (00:43 -0500)]
Drop sm_client_id implementation for Quartz
Matthias Clasen [Fri, 17 Dec 2010 05:41:55 +0000 (00:41 -0500)]
Drop sm_client_id win32 implementation
Matthias Clasen [Fri, 17 Dec 2010 05:04:17 +0000 (00:04 -0500)]
Reinstate the correct field value
Matthias Clasen [Fri, 17 Dec 2010 04:44:50 +0000 (23:44 -0500)]
Deal with property encoding functions
Move everything dealing with compound text to be X11 specific
Only gdk_text_property_to_utf8_list and gdk_utf8_to_string_target
are kept across backends, so add vfuncs for these.
Also, remove the non-multihead-safe variants of all these.
Matthias Clasen [Fri, 17 Dec 2010 02:45:57 +0000 (21:45 -0500)]
Avoid unnecessary use of gdk conversion routines
We can use use gtk_selection_data_get_uris, instead of
manually doing the conversion ourselves.
Matthias Clasen [Fri, 17 Dec 2010 01:25:32 +0000 (20:25 -0500)]
Add a vfunc for gdk_selection_convert
Matthias Clasen [Fri, 17 Dec 2010 01:10:11 +0000 (20:10 -0500)]
Add a vfunc for gdk_selection_property_get
Matthias Clasen [Fri, 17 Dec 2010 00:58:07 +0000 (19:58 -0500)]
Add a vfunc for gdk_selection_send_notify_for_display
Matthias Clasen [Fri, 17 Dec 2010 00:26:05 +0000 (19:26 -0500)]
Rename some private x11 backend functions to _gdk_x11
Matthias Clasen [Fri, 17 Dec 2010 00:22:44 +0000 (19:22 -0500)]
Add vfuncs for get/set_selection_owner
Matthias Clasen [Fri, 17 Dec 2010 00:00:01 +0000 (19:00 -0500)]
Add vfuncs for keyval and window property functions
The keyval functions should really be generic, and the window
property api should be completely revisited, but for now this
will allow us to proceed.
Matthias Clasen [Thu, 16 Dec 2010 16:33:43 +0000 (11:33 -0500)]
Drop g[dt]k_set_locale
These functions were essentially just calling setlocale anyway.
The X11 version was also setting a gdk_use_mb variable that
is not used anywhere.
Matthias Clasen [Fri, 17 Dec 2010 04:42:17 +0000 (23:42 -0500)]
Don't use gtk_set_locale
Matthias Clasen [Thu, 16 Dec 2010 06:21:49 +0000 (01:21 -0500)]
Add vfuncs for gdk_test apis
Matthias Clasen [Thu, 16 Dec 2010 05:37:39 +0000 (00:37 -0500)]
Add vfuncs for atoms
Matthias Clasen [Thu, 16 Dec 2010 05:08:42 +0000 (00:08 -0500)]
Add a vfunc for gdk_keymap_get_for_display
Matthias Clasen [Thu, 16 Dec 2010 04:49:31 +0000 (23:49 -0500)]
Rename private keymap symbols to _gdk_x11_keymap...
Matthias Clasen [Thu, 16 Dec 2010 04:35:15 +0000 (23:35 -0500)]
Rename the _gdk_xid_table functions
Matthias Clasen [Thu, 16 Dec 2010 04:18:38 +0000 (23:18 -0500)]
Remove gdk_net_wm_supports
This function is totally misnamed, only operates on the default
screen, and has a perfectly fine replacement in
gdk_x11_screen_supports_net_wm_hint.
Matthias Clasen [Thu, 16 Dec 2010 04:11:21 +0000 (23:11 -0500)]
Remove the --sync commandline option
Remove the --sync option and remove the possibility of backend-specific
commandline options altogether. --sync is being replaced by
a GDK_SYNCHRONIZE environment variable.
Matthias Clasen [Thu, 16 Dec 2010 03:45:37 +0000 (22:45 -0500)]
Remove unused _gdk_use_xshm global
Matthias Clasen [Thu, 16 Dec 2010 03:21:39 +0000 (22:21 -0500)]
Rename _gdk_window_move_resize_child
Rename _gdk_window_move_resize_child and _gdk_window_process_expose
to _gdk_x11.
Matthias Clasen [Thu, 16 Dec 2010 03:09:35 +0000 (22:09 -0500)]
Clean up gdkx.h a bit
Moving the direct-access redefinitions of various macros
to gdkprivate-x11.h and use that header throughout in x11/.
Also remove a workaround for a long-fixed X server bug.
Matthias Clasen [Thu, 16 Dec 2010 01:56:32 +0000 (20:56 -0500)]
drop dead function
Matthias Clasen [Thu, 16 Dec 2010 00:07:36 +0000 (19:07 -0500)]
Add a vfunc for _gdk_window_impl_new
Matthias Clasen [Wed, 15 Dec 2010 23:42:38 +0000 (18:42 -0500)]
Get rid of the _gdk_selection_property global
Matthias Clasen [Wed, 15 Dec 2010 22:55:04 +0000 (17:55 -0500)]
Rename _gdk_moveresize functions to _gdk_x11_moveresize
Matthias Clasen [Wed, 15 Dec 2010 22:48:13 +0000 (17:48 -0500)]
Drop gdkx_visual_get
The function is badly named, not multihead-safe, basically unused,
and has a better replacement with gdk_x11_screen_lookup_visual.
Matthias Clasen [Wed, 15 Dec 2010 22:45:05 +0000 (17:45 -0500)]
Rename _gdk_xgrab_ apis to _gdk_x11_window_
Matthias Clasen [Wed, 15 Dec 2010 22:38:48 +0000 (17:38 -0500)]
Rename _gdk_send_xevent to _gdk_x11_display_send_xevent
Matthias Clasen [Wed, 15 Dec 2010 22:32:29 +0000 (17:32 -0500)]
Rename _gdk_event_mask_table to _gdk_x11_event_mask_table
Matthias Clasen [Wed, 15 Dec 2010 19:49:23 +0000 (14:49 -0500)]
Multiple changes to reduce the amount of unprefixed symbols
The X11 backend exports a number of symbols which are _-prefixed
(so don't become part of the gdk api), but are not named in a
way to prevent accidental clashes between backends.
The one API change here is that the gdk_xid_table functions
have been removed - they did not server an purpose, since the
xid table only stores windows anyway, and we already have a
lookup-by-xid function for windows.
Benjamin Otte [Fri, 17 Dec 2010 23:41:13 +0000 (00:41 +0100)]
plug: Comment hack for xinput that used private x11 backend API
Matthias Clasen [Wed, 15 Dec 2010 17:25:38 +0000 (12:25 -0500)]
Move event source apis to gdk_x11
Reduces the changes of cross-backend collisions
Matthias Clasen [Wed, 15 Dec 2010 13:06:44 +0000 (08:06 -0500)]
Remove gdk_spawn functions
These functions were trivial g_spawn wrappers in all backends
except for X11, and they can be easily replaced by
g_app_info_create_for_commandline + GdkAppLaunchContext.
Matthias Clasen [Wed, 15 Dec 2010 07:38:43 +0000 (02:38 -0500)]
Don't use gdk_spawn
Replace the sole use of gdk_spawn in GTK+ by GAppInfo.
Matthias Clasen [Wed, 15 Dec 2010 07:37:52 +0000 (02:37 -0500)]
Work around issues with events without screens
Just use the default display for copy/free of event data.
Maybe the vfuncs should be moved to GdkDisplayManager.
Matthias Clasen [Wed, 15 Dec 2010 07:37:03 +0000 (02:37 -0500)]
Make GdkAppLaunchContext work again
We didn't set the display, ever. Add a construct-only property
for this purpose.
Matthias Clasen [Wed, 15 Dec 2010 07:05:05 +0000 (02:05 -0500)]
Consistently use per-display error traps in the X11 backend
Matthias Clasen [Wed, 15 Dec 2010 06:39:30 +0000 (01:39 -0500)]
Make gdk_window_{lookup,foreign_new}_for_display backend specific
At the same time, make GDK_IS_DISPLAY_X11 available in gdkx.h, and
add some exemplaric ifdefs to GTK+ code.
Matthias Clasen [Wed, 15 Dec 2010 05:37:40 +0000 (00:37 -0500)]
Add vfuncs for _gdk_windowing_event_data_{copy,free}
Matthias Clasen [Wed, 15 Dec 2010 04:49:42 +0000 (23:49 -0500)]
Go back to installing libgdk.so
Matthias Clasen [Wed, 15 Dec 2010 03:32:47 +0000 (22:32 -0500)]
Drop the --screen cmdline argument
Commandline arguments should go away altogether, but this one
goes first, since we then don't need to worry about
_gdk_windowing_substitute_screen_number anymore.
Matthias Clasen [Tue, 14 Dec 2010 01:46:00 +0000 (20:46 -0500)]
Add a vfunc for gdk_notify_startup_complete
At the same time, add a display api for this, since it really
is per-display.
Matthias Clasen [Tue, 14 Dec 2010 00:09:11 +0000 (19:09 -0500)]
Remove sm-client-id related functions from headers
Matthias Clasen [Mon, 13 Dec 2010 23:50:26 +0000 (18:50 -0500)]
Remove unused get_offsets functions from headers
Matthias Clasen [Mon, 13 Dec 2010 22:43:10 +0000 (17:43 -0500)]
Remove gdk_windowing_{get_device_state,window_at_device_position}
The !trusted workaround code is pushed down into the GdkDevice
subclasses, and we use the device vfuncs directly in gdkdisplay.c
Matthias Clasen [Mon, 13 Dec 2010 19:05:59 +0000 (14:05 -0500)]
Add a vfunc for _gdk_windowing_window_get_next_serial
Matthias Clasen [Mon, 13 Dec 2010 18:53:34 +0000 (13:53 -0500)]
Move warp functions to the frontend
There were already GdkDevice vfuncs for this.
Matthias Clasen [Mon, 13 Dec 2010 18:45:38 +0000 (13:45 -0500)]
Make gdk_set_sm_client_id X11-specific
This is really not a cross-platform API
Matthias Clasen [Mon, 13 Dec 2010 18:30:05 +0000 (13:30 -0500)]
Add vfuncs for process_updates_recurse and the before and after hooks
Matthias Clasen [Mon, 13 Dec 2010 17:36:35 +0000 (12:36 -0500)]
Add vfuncs for a bunch of cursor functionality to GdkDisplay
Javier Jardón [Sat, 11 Dec 2010 04:14:43 +0000 (23:14 -0500)]
Don't access GdkDisplay fields directly
Use accessors instead.
Matthias Clasen [Sat, 11 Dec 2010 05:14:53 +0000 (00:14 -0500)]
Explode gdkinternals.h into per-class private headers
At the same time, move some more class and instance structs
out of public headers.
Matthias Clasen [Sat, 11 Dec 2010 02:55:56 +0000 (21:55 -0500)]
Hide GdkDevice struct
Once its hidden, we can kill the GdkDevicePrivate struct too.
Matthias Clasen [Sat, 11 Dec 2010 02:55:41 +0000 (21:55 -0500)]
Move destroy_foreign comment
Matthias Clasen [Sat, 11 Dec 2010 02:42:55 +0000 (21:42 -0500)]
Weed out no longer needed declarations
Matthias Clasen [Sat, 11 Dec 2010 01:46:42 +0000 (20:46 -0500)]
Add a vfunc for _gdk_events_queue
Matthias Clasen [Sat, 11 Dec 2010 00:42:09 +0000 (19:42 -0500)]
Work toward turning GdkDisplayManager into a backend singleton
This commit hides the GdkDisplayManager instance and class structs,
adds vfuncs for listing displays, opening displays, and getting and
setting the default display. The X11 backend has a derived
GdkDisplayManagerX11.
The gdk_display_manager_get() function is responsible for deciding on
which of the compiled in backends to use. Currently, it consults the
GDK_BACKEND environment variable and falls back to x11.
Matthias Clasen [Fri, 10 Dec 2010 19:44:50 +0000 (14:44 -0500)]
Add per-target pc files back
Dropping those will be an unnecessary pain.
Matthias Clasen [Fri, 10 Dec 2010 19:06:13 +0000 (14:06 -0500)]
Add a vfunc to replace _gdk_windowing_window_destroy_foreign
All backends updated.
Matthias Clasen [Fri, 10 Dec 2010 17:56:56 +0000 (12:56 -0500)]
Add a vfunc for gdk_window_set_composited
Matthias Clasen [Fri, 10 Dec 2010 17:54:43 +0000 (12:54 -0500)]
Add a vfunc for gdk_window_set_composited
Matthias Clasen [Fri, 10 Dec 2010 17:42:03 +0000 (12:42 -0500)]
Match parameters between headers and doc comment
Matthias Clasen [Fri, 10 Dec 2010 17:13:25 +0000 (12:13 -0500)]
Make GdkDevice parallel-implementable
Use the grab and ungrab vfuncs from the frontend instead of the
_gdk_windowing wrappers, and move some things around accordingly.
Again, only the X11 backend has been updated, other backends
need to be updated to match.
Matthias Clasen [Fri, 10 Dec 2010 14:46:35 +0000 (09:46 -0500)]
Hide GdkScreen too
Matthias Clasen [Fri, 10 Dec 2010 19:46:40 +0000 (14:46 -0500)]
Don't access GdkScreen fields
Matthias Clasen [Fri, 10 Dec 2010 14:35:59 +0000 (09:35 -0500)]
Hide GdkDeviceManager and GdkDeviceManagerClass
And nuke GdkDeviceManagerPrivate at the same time. Again a commit
that only deals with the X11 backend, other backends will need to
catch up.
Matthias Clasen [Fri, 10 Dec 2010 14:06:52 +0000 (09:06 -0500)]
Move GdkVisual parallel-implementable
It turned out no vfuncs were necessary. I've decided to move
the screen member up to GdkVisual, since it is the same in all
backends. The X11 backend subclasses now, to add the X members
that it needs to keep track of. GdkVisual and GdkVisualClass
are hidden now.
Matthias Clasen [Fri, 10 Dec 2010 13:49:06 +0000 (08:49 -0500)]
Fully initialize the ClientMessage struct
Otherwise we run into warnings from xdnd_status_filter
Matthias Clasen [Fri, 10 Dec 2010 07:00:39 +0000 (02:00 -0500)]
Rename _gdk_dnd_init
Nonstatic backend-specific functions need an x11 in their name.
Matthias Clasen [Fri, 10 Dec 2010 06:27:10 +0000 (01:27 -0500)]
Add vtables for DND
This commit hides GdkDragContext and GdkDragContextClass, adds
vfuncs for most drag context functionality, and turns the X11 DND
implementation into GdkDragContextX11. We also add vfuncs to
GdkDisplay for gdk_drag_get_protocol and to GdkWindow for
gdk_drag_begin, and implemenet them for X11.
Other backends need similar treatment and are broken now.
Matthias Clasen [Tue, 14 Dec 2010 01:36:23 +0000 (20:36 -0500)]
Remove some direct access to GdkDragContext members
Matthias Clasen [Tue, 14 Dec 2010 00:09:11 +0000 (19:09 -0500)]
tests: Don't access GdkDragContext fields directly
Matthias Clasen [Fri, 10 Dec 2010 06:00:29 +0000 (01:00 -0500)]
Make abicheck work again
Matthias Clasen [Thu, 9 Dec 2010 06:08:05 +0000 (01:08 -0500)]
Make GdkAppLaunchContext display-dependent
Add a GdkDisplay::get_app_launch_context vfunc, and a
gdk_display_get_app_launch_context that for X11 returns a subclass.
For win32 and quartz, the implementations were trivial, so we
just return a new GdkAppLaunchContext without subclassing. Since
the type of the context now depends on the display,
gdk_app_launch_context_set_display is deprecated.
Matthias Clasen [Thu, 9 Dec 2010 05:02:35 +0000 (00:02 -0500)]
Move gdk_window_lookup to common code