forked from AuroraMiddleware/gtk
Merge branch 'quartz-missing-config-include-gtk4' into 'master'
macos: Fix missing gdk symbol exports for gtk dnd See merge request GNOME/gtk!39
This commit is contained in:
commit
48f68bb881
@ -16,6 +16,7 @@
|
||||
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#import "GdkQuartzNSWindow.h"
|
||||
#include "gdkquartzwindow.h"
|
||||
#include "gdkdnd-quartz.h"
|
||||
|
@ -17,6 +17,7 @@
|
||||
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#import "GdkQuartzView.h"
|
||||
#include "gdkquartzwindow.h"
|
||||
#include "gdkprivate-quartz.h"
|
||||
|
@ -16,6 +16,7 @@
|
||||
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "gdkdnd.h"
|
||||
#include "gdkquartzdnd.h"
|
||||
#include "gdkprivate-quartz.h"
|
||||
@ -27,7 +28,7 @@ G_DEFINE_TYPE (GdkQuartzDragContext, gdk_quartz_drag_context, GDK_TYPE_DRAG_CONT
|
||||
GdkDragContext *_gdk_quartz_drag_source_context = NULL;
|
||||
|
||||
GdkDragContext *
|
||||
gdk_quartz_drag_source_context ()
|
||||
gdk_quartz_drag_source_context_libgtk_only ()
|
||||
{
|
||||
return _gdk_quartz_drag_source_context;
|
||||
}
|
||||
|
@ -48,6 +48,9 @@ GType gdk_quartz_drag_context_get_type (void);
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
id gdk_quartz_drag_context_get_dragging_info_libgtk_only (GdkDragContext *context);
|
||||
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
GdkDragContext *gdk_quartz_drag_source_context_libgtk_only (void);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* __GDK_QUARTZ_DRAG_CONTEXT_H__ */
|
||||
|
@ -63,8 +63,6 @@ static GtkDragSourceInfo *gtk_drag_get_source_info (GdkDragContext *context,
|
||||
static void gtk_drag_drop_finished (GtkDragSourceInfo *info,
|
||||
GtkDragResult result);
|
||||
|
||||
extern GdkDragContext *gdk_quartz_drag_source_context (); /* gdk/quartz/gdkdnd-quartz.c */
|
||||
|
||||
struct _GtkDragSourceInfo
|
||||
{
|
||||
GtkWidget *source_widget;
|
||||
@ -228,7 +226,7 @@ gtk_drag_finish (GdkDragContext *context,
|
||||
guint32 time)
|
||||
{
|
||||
GtkDragSourceInfo *info;
|
||||
GdkDragContext* source_context = gdk_quartz_drag_source_context ();
|
||||
GdkDragContext* source_context = gdk_quartz_drag_source_context_libgtk_only ();
|
||||
|
||||
if (source_context)
|
||||
{
|
||||
@ -310,7 +308,7 @@ GtkWidget *
|
||||
gtk_drag_get_source_widget (GdkDragContext *context)
|
||||
{
|
||||
GtkDragSourceInfo *info;
|
||||
GdkDragContext* real_source_context = gdk_quartz_drag_source_context();
|
||||
GdkDragContext* real_source_context = gdk_quartz_drag_source_context_libgtk_only ();
|
||||
|
||||
if (!real_source_context)
|
||||
return NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user