Philip Chimento
df0e5cc8e6
quartz: Fix crash when realizing GtkOffscreenWindow
...
GtkOffscreenWindow doesn't have a NSView or NSWindow, so return NULL if
passed one of those.
Closes : #379
2018-10-19 05:38:28 +01:00
Christoph Reiter
342aee304a
macos: export gdk_quartz_drag_source_context()
...
It's used in the gtk dnd code but not exported in gdk.
Append a "_libgtk_only" suffix as with other internal exports and
export the symbol.
See #32
2018-03-01 14:35:05 +01:00
Christian Hergert
0b88d7976c
quartz: fix quartz build
...
The quartz backend has its own implementation of these that
collide since the gtkdragdest.c extraction.
https://bugzilla.gnome.org/show_bug.cgi?id=764712
2016-04-24 03:50:22 -07:00
Matthias Clasen
a5a51e325d
quartz: Fix up dnd code
...
Copy changes to drag highlight drawing from gtkdnd.c to gtkdnd-quartz.c.
https://bugzilla.gnome.org/show_bug.cgi?id=763808
2016-03-21 11:56:17 -04:00
Christoph Reiter
558fb1ecdd
gtkdnd-quartz: fix gtk_drag_begin_internal
...
gtk_drag_begin_internal was changed to take a GtkImageDefinition
instead of a GtkIconHelper. This adjusts the quartz variant
accordingly.
https://bugzilla.gnome.org/show_bug.cgi?id=759607
2016-01-01 15:05:23 +01:00
Benjamin Otte
7f93858ccc
Stop using gtk_icon_size_lookup_for_settings()
...
Use the equivalent gtk_icon_size_lookup() instead.
2015-12-02 00:29:31 +01:00
Benjamin Otte
7a154d9acd
dnd: Add gtk_drag_set_icon_definition()
...
... and use it for entry icons.
As a side effect, icons dragged from entries will now resize to DND
size.
2015-12-02 00:29:30 +01:00
Benjamin Otte
415030d25f
dnd: Split GtkDragSourceSite into its own file
2015-11-25 20:31:27 +01:00
Christoph Reiter
ee3397388f
dnd-quartz: fix missing icon helper include
2015-11-25 20:27:21 +01:00
Benjamin Otte
2bee73c1f9
dnd: Just pass iconhelper instead of whole DragSourceSite
...
Simplifies the code.
2015-11-25 16:32:40 +01:00
Christoph Reiter
4b23ba53c5
quartz dnd: add hidpi support for gtk_drag_set_icon_surface()
...
Instead of storing the dnd icon as a pixbuf store it
as a cairo surface and transfer the device scale
when converting it to a NSImage. In the pixbuf/stock/named
setters convert to a surface instead (no hidpi support yet)
2015-07-27 17:28:14 +02:00
Christoph Reiter
5003b5873a
quartz dnd: fix drag icon position relative to cursor position
...
The y axis is reversed on osx
2015-07-27 17:27:51 +02:00
Patrick Griffis
ee73e27fd7
quartz: Fix building
...
Broken by 6d04183c5d
and 6ac07a2e85
2015-07-27 09:33:32 -04:00
Matthias Clasen
6ac07a2e85
quartz: Implement NO_TARGET drag result
...
This is necessary to make notebook tab DND work.
https://bugzilla.gnome.org/show_bug.cgi?id=752638
2015-07-26 02:10:47 -04:00
John Ralls
13c303fec5
Bug 745957 - GTK+/Quartz >= 3.14.8: Symbol not found: _gtk_drag_cancel
...
Implement gtk_drag_cancel, made public in c160ba069
and 62616a71
, in
gtkdnd-quartz.c.
2015-05-31 11:59:34 -07:00
Matthias Clasen
bbb3f6a2db
quartz: Copy annotations
...
Better than juggling introspection sources in the Makefile.
2014-11-30 17:20:38 -05:00
Matthias Clasen
7f6a964c47
Docs: Remove all entities and turn off sgml mode
...
With all element markup gone, it is time to turn off
sgml mode, and get rid of entities as well.
2014-02-09 17:58:07 -05:00
William Jon McCann
e34bd4137d
docs: use apostrophes in *n't
2014-02-07 13:32:47 -05:00
William Jon McCann
7a208fbbf3
docs: use proper apostrophe
...
https://wiki.gnome.org/Design/OS/Typography
2014-02-07 13:06:10 -05:00
William Jon McCann
2a45418b67
docs: use proper quotes
2014-02-05 15:08:42 -05:00
John Ralls
d0065270ac
Fix double-free introduced in f86dc163
2013-10-11 10:54:15 -07:00
John Ralls
9e0faf6a38
Implement gtk_drag_begin_with_coordinates () for quartz.
2013-10-10 15:37:27 -07:00
John Ralls
f86dc163b9
Quartz: Set the drag context target list
...
So that gdk_drag_context_list_targets() actually returns something.
2013-10-10 15:37:27 -07:00
John Ralls
b80625a425
Fix broken quartz build due to deprecation of gtkstock.h
2013-07-27 14:24:53 -07:00
Matthias Clasen
0aa57d26b5
Move wholly deprecated classes to gtk/deprecated/
...
We've recently a number of classes wholly. For these cases,
move the headers and sources to gtk/deprecated/ and adjust
Makefiles and includes accordingly.
Affected classes:
GtkAction
GtkActionGroup
GtkActivatable
GtkIconFactory
GtkImageMenuItem
GtkRadioAction
GtkRecentAction
GtkStock
GtkToggleAction
GtkUIManager
2013-07-19 21:39:47 -04:00
William Jon McCann
02c793f24a
Start migrating internals away from GtkStock
2013-06-24 22:20:49 -04:00
Kristian Rietveld
6f607fc8b4
quartz: move atom/pasteboard type conversions functions to GDK
...
(cherry picked from commit a269c2f8d2
)
2013-03-28 13:10:38 +01:00
John Ralls
796ae50064
Fix compilation on MacOSX Tiger
...
NSInteger isn't defined until MacOSX Leopard, so in the 3 files that
use it, include ../gdk/quartz/gdkquartz.h which provides a typedef when
needed.
2012-12-10 16:51:31 -08:00
John Ralls
398dc1cf27
Copy in annotations missing from gtkdnd-quartz and gtkclipboard-quartz
2012-08-22 14:39:11 -07:00
John Ralls
f2f26c2232
Don't include gtkplug.h in gtkdnd-quartz.c
...
Gtkplug is X11-only.
2012-05-18 14:00:28 -07:00
Kristian Rietveld
89f166b542
quartz: fix coordinates for synthesized event
...
Of course, we must pass coordinates in the NSWindow coordinate system
when creating an NSEvent. This fixes drag icon positioning and makes
the icon slide back to the correct position when the drag is
canceled.
2012-04-22 17:38:52 +02:00
Javier Jardón
9d0febc9a6
Change FSF Address
2012-02-27 17:06:11 +00:00
Matthias Clasen
585a6652d5
Use G_SOURCE_CONTINUE/REMOVE
...
Now that GLib provides these macros, we should use them
to make the code more readable.
2012-01-30 19:12:27 -05:00
Kristian Rietveld
64a38bdb82
quartz: fix coding style in quartz-version of gtk_drag_begin_internal
2011-11-20 20:15:32 +01:00
Kristian Rietveld
477b7f27e0
quartz: do not call gdk_drag_begin() twice
...
This makes drag and drop work again on Quartz.
2011-11-20 20:15:27 +01:00
John Ralls
085b98f470
[Quartz Bug 663182] NSImage throws an exception from _gtk_quartz_create_image_from_pixbuf()"
...
If a zero-sized NSImage calls lockfocus it throws an exception. Make sure that the image isn't zero-sized before calling lockfocus, and log a warning and return NULL if it is zero-sized.
Have the quartz version of gtk_drag_begin_idle return FALSE if the returned image is NULL.
2011-11-07 14:25:08 -08:00
John Ralls
42656dde57
Revert "[Quartz Bug 663182] NSImage throws an exception from _gtk_quartz_create_image_from_pixbuf()". Utterly screwed up. Sorry.
...
This reverts commit 8216324e4b
.
and commit 3243e6955c
.
2011-11-07 13:57:10 -08:00
John Ralls
3243e6955c
Fix accidental paste error in 8216324
2011-11-07 13:18:14 -08:00
John Ralls
8216324e4b
[Quartz Bug 663182] NSImage throws an exception from _gtk_quartz_create_image_from_pixbuf()
...
If _gtk_quartz_create_image_from_pixbuf is given a pixbuf with size 0, 0
or which produces an NSImage with size 0.0, 0.0, it throws an exception
which Gtk doesn't handle.
your changes. Lines starting
2011-11-07 13:11:18 -08:00
John Ralls
6906ab88bc
Bug 658767 - Drag and Drop NSEvent capture is racy
...
Create a synthetic NSMouseLeftDown to store in the GtkQuartzDragSourceInfo
rather than relying on the NSWindow's latest event being the right one (or the
right kind).
2011-10-09 11:24:41 -07:00
Kristian Rietveld
8ad3d2b296
Bug 657770 - Write to released memory in gtkdnd-quartz.c
...
Clear the Drag paste board just before the info->context is released.
This way the GtkDragSourceOwner is released just before the drag context
is and thus can pasteboard:provideDataForType: not accidentally access
an already released drag context
2011-10-09 10:37:21 -07:00
John Ralls
7cff8c4403
Quartz: gtk_drag_highlight_draw(): Set the GtkStyleContext to the widget.
...
Otherwise there's no actual context to save and restore.
2011-09-11 10:49:54 -07:00
Kristian Rietveld
88a18a28d5
quartz: Remove call to deprecated gdk_pointer_ungrab
2011-07-14 14:22:38 +02:00
John Ralls
86794ce008
Bug 653450 - gtkfilechooser crashes when added favorite
...
Ensure that display is set during drag-and-drop, and that string lists'
memory is zeroed after allocation to prevent g_strfreev() from
over-running.
2011-07-14 14:17:51 +02:00
Benjamin Otte
1483145806
API: image: Move private struct definitions into private header
...
They weren't privatized because the dnd code used them, too. But a
private header can allow the dnd code to be nasty, so go dnd code!
2011-02-08 08:58:49 +01:00
Carlos Garnacho
96d8f85dcc
Make DnD code use GtkStyleContext for the highlight rectangle.
2011-01-04 03:06:20 +01:00
Kristian Rietveld
07110a6170
quartz: we must provide a window on drag begin now
2010-12-23 14:17:42 +01:00
Kristian Rietveld
44d9fb2d71
gtkdnd-quartz: use accessors and add missing include
2010-12-22 17:47:03 +01:00
Matthias Clasen
07d49ee56a
Merge libgdk and libgtk
...
This commit does a number of things:
- remove some dead wchar configury from configure.ac and gdkconfig.h
- repurpose gdkconfig.h as header that contains GDK_WINDOWING_foo
macros for each included backend, include it in gdk.h and install
it in $includedir instead of below $libdir
- drop the backend from the library names
- build libgdk-3.0.la as a convenience lib and include it in libgtk-3.0.la
It does not yet enable building multiple backends at the same time.
2010-12-21 12:06:55 -05:00
Benjamin Otte
b0b9c9683b
dnd-quartz: gtk_widget_render_icon() => gtk_widget_render_icon_pixbuf()
2010-12-15 14:51:25 +01:00