API: gdk: Change get_drag_window() API
The previous function gdk_drag_get_protocol_for_display() took native window handles, so it had to be changed. Because it didn't do what it was named to do (it didn't return a protocol even though it was named get_protocol) and because it doesn't operate on the display anymore but on the actual window, it's now called gdk_window_get_drag_protocol().
This commit is contained in:
		| @ -2556,13 +2556,6 @@ gdk_x11_display_error_trap_pop_ignored (GdkDisplay *display) | ||||
|   gdk_x11_display_error_trap_pop_internal (display, FALSE); | ||||
| } | ||||
|  | ||||
| extern GdkAppLaunchContext *_gdk_x11_display_get_app_launch_context (GdkDisplay *display); | ||||
| extern GdkNativeWindow      _gdk_x11_display_get_drag_protocol      (GdkDisplay *display, | ||||
|                                                                      GdkNativeWindow  xid, | ||||
|                                                                      GdkDragProtocol *protocol, | ||||
|                                                                      guint           *version); | ||||
|  | ||||
|  | ||||
| /** | ||||
|  * gdk_x11_set_sm_client_id: | ||||
|  * @sm_client_id: the client id assigned by the session manager when the | ||||
| @ -2665,7 +2658,6 @@ gdk_x11_display_class_init (GdkX11DisplayClass * class) | ||||
|   display_class->supports_composite = gdk_x11_display_supports_composite; | ||||
|   display_class->list_devices = gdk_x11_display_list_devices; | ||||
|   display_class->get_app_launch_context = _gdk_x11_display_get_app_launch_context; | ||||
|   display_class->get_drag_protocol = _gdk_x11_display_get_drag_protocol; | ||||
|   display_class->get_cursor_for_type = _gdk_x11_display_get_cursor_for_type; | ||||
|   display_class->get_cursor_for_name = _gdk_x11_display_get_cursor_for_name; | ||||
|   display_class->get_cursor_for_pixbuf = _gdk_x11_display_get_cursor_for_pixbuf; | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Benjamin Otte
					Benjamin Otte