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
Kristian Rietveld
046ca498de
dnd-quartz: get hot spot from device offset for surface and use this
2010-10-19 14:07:39 +02:00
Kristian Rietveld
8ac7f64123
dnd-quartz: take hot spot into account when setting up drag
2010-10-19 14:07:39 +02:00
Kristian Rietveld
f27d7bdea5
Implement gtk_drag_set_icon_surface in gtkdnd-quartz
2010-10-17 10:30:46 +02:00
Benjamin Otte
ffa5587fb3
dnd-quartz: Get rid of gdk_drawable_get_size() usage
2010-09-26 15:11:44 +02:00
Benjamin Otte
1d3f6b30b0
API: Rename gtk_cairo_paint_*() to gtk_paint_*()
...
Large patch, but just renaming.
Indentation should still mostly be correct because I took care of
keeping the indentation for this function name.
2010-09-26 15:11:42 +02:00
Benjamin Otte
b0f078ba43
dnd-quartz: Connect to draw func for dnd hilight
2010-09-26 15:11:40 +02:00
Benjamin Otte
9f47be2216
gtk: gdk_drawable_get_screen/visual => gdk_window_get_screen/visual
2010-09-26 15:11:33 +02:00
Benjamin Otte
3ba78fed2a
API: Remove the ability to set the dnd icon from a pixmap
2010-09-26 15:11:11 +02:00
Kristian Rietveld
31cd439385
Use accessor functions to access GtkWidget
2010-09-13 16:39:55 +02:00
Javier Jardón
0a07e9733b
gtk/: fully remove gtkalias hacks
...
https://bugzilla.gnome.org/show_bug.cgi?id=623845
2010-07-10 02:51:26 +02:00
Christian Dywan
605705fd6b
Remove deprecated gtk_drag_set_default_icon
2010-05-03 01:39:49 +02:00
Javier Jardón
16a59ad912
Deprecate widget flag: GTK_WIDGET_REALIZED
...
Use gtk_widget_get_realized() instead
https://bugzilla.gnome.org/show_bug.cgi?id=69872
2010-03-03 20:41:05 +01:00
Javier Jardón
1fe7d3cefd
Deprecate widget flag: GTK_WIDGET_MAPPED
...
Use gtk_widget_get_mapped() instead.
https://bugzilla.gnome.org/show_bug.cgi?id=69872
2010-03-03 20:19:03 +01:00
Javier Jardón
64f526d34e
Deprecate widget flag: GTK_WIDGET_SENSITIVE
...
Use gtk_widget_get_sensitive() instead
https://bugzilla.gnome.org/show_bug.cgi?id=69872
2010-03-01 05:59:23 +01:00
Javier Jardón
4f78f70b15
Deprecate widget flag: GTK_WIDGET_DRAWABLE
...
Use gtk_widget_is_drawable() instead.
https://bugzilla.gnome.org/show_bug.cgi?id=69872
2010-03-01 04:55:55 +01:00
Paul Davis
7767dae9cf
Small memory fix
2010-01-22 21:09:10 +01:00
Christian Dywan
bb1824c131
Deprecate flag macros for toplevel, state, no window and composite child
...
Deprecate widget flag macros GTK_WIDGET_STATE, GTK_WIDGET_SAVED_STATE,
GTK_WIDGET_FLAGS, GTK_WIDGET_TOPLEVEL, GTK_WIDGET_NO_WINDOW and
GTK_WIDGET_COMPOSITE_CHILD.
Also deprecate the type macros GTK_WIDGET_TYPE, GTK_OBJECT_TYPE_NAME and
GTK_OBJECT_TYPE which have become redundant.
Instances of GTK_WIDGET_TOPLEVEL are replaced with gtk_widget_is_toplevel,
GTK_WIDGET_TYPE is replaced with G_OBJECT_TYPE, GTK_WIDGET_COMPOSITE_CHILD
is replaced with use of the "composite-child" property and uses of
GTK_WIDGET_NO_WINDOW are adjusted to use gtk_widget_get_has_window.
Uses of GTK_WIDGET_SAVED_STATE and GTK_WIDGET_FLAGS inside GtkWidget are
changed to direct flag usage.
Documentation is updated to refer to gtk_widget_set_has_window and
gtk_widget_get_has_window.
Gail and tests are updated as well.
Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=69872
2010-01-04 07:57:05 +01:00
Kristian Rietveld
5886e5cff2
Plug leaks in quartz implementation of gtk_drag_begin_idle()
2010-01-01 21:28:16 +01:00
Kristian Rietveld
c049c6a385
Rework a previous commit to not crash in addition to fixing leaks
...
The target list/entry to pasteboard entry conversions return a NSSet
now instead of NSArray.
2010-01-01 21:28:16 +01:00
Kristian Rietveld
f91907101d
Fix memory management of types array
...
Also add autorelease pool to gtk_drag_begin_idle().
2009-12-30 14:18:33 +01:00
Kristian Rietveld
a4145bfeef
Bug 588449 - DnD doesn't work on GDK/Quartz
...
Patch from Paul Davis. This gets the basics of drag and drop properly
working on Mac OS X.
2009-09-30 15:07:37 +02:00
Richard Hult
7cf03f2fd2
Implement, patch from Paul Davis.
...
2008-11-12 Richard Hult <richard@imendio.com>
* gtk/gtkdnd-quartz.c: (gtk_drag_set_icon_pixmap): Implement,
patch from Paul Davis.
svn path=/trunk/; revision=21785
2008-11-12 15:39:33 +00:00
Sven Neumann
b699ac5853
gtk/gtkaccellabel.c gtk/gtkaction.c gtk/gtkclist.c gtk/gtkcolorbutton.c
...
2008-08-12 Sven Neumann <sven@gimp.org>
* gtk/gtkaccellabel.c
* gtk/gtkaction.c
* gtk/gtkclist.c
* gtk/gtkcolorbutton.c
* gtk/gtkctree.c
* gtk/gtkdialog.c
* gtk/gtkdnd-quartz.c
* gtk/gtkdnd.c
* gtk/gtkentry.c
* gtk/gtkfilechooserdefault.c
* gtk/gtkfilesel.c
* gtk/gtkgamma.c
* gtk/gtkiconview.c
* gtk/gtkkeyhash.c
* gtk/gtklabel.c
* gtk/gtkmenu.c
* gtk/gtkmenubar.c
* gtk/gtkpaned.c
* gtk/gtkrecentchooserdialog.c
* gtk/gtkrecentchooserutils.c
* gtk/gtkselection.c
* gtk/gtksizegroup.c
* gtk/gtktextbtree.c
* gtk/gtktextbuffer.c
* gtk/gtktextview.c
* gtk/gtktoolbar.c
* gtk/gtktreemodel.c
* gtk/gtkuimanager.c
* gtk/gtkwindow-decorate.c
* gtk/gtkwindow.c: use canonical signal names in some more places
that I missed earlier. Also changed this in the documentation and
comments.
svn path=/trunk/; revision=21094
2008-08-12 14:37:03 +00:00
Sven Neumann
4c33ae06be
gtk/gtkdnd-quartz.c gtk/gtkdnd.c gtk/gtkentry.c gtk/gtkfilesel.c
...
2008-08-11 Sven Neumann <sven@gimp.org>
* gtk/gtkdnd-quartz.c
* gtk/gtkdnd.c
* gtk/gtkentry.c
* gtk/gtkfilesel.c
* gtk/gtkimcontextsimple.c
* gtk/gtkimmulticontext.c
* gtk/gtkoptionmenu.c
* gtk/gtkplug.c
* gtk/gtkrecentchooserdefault.c
* gtk/gtkscrolledwindow.c
* gtk/gtksocket-x11.c: use canonical signal names in some more
places that I missed earlier.
svn path=/trunk/; revision=21069
2008-08-11 13:36:15 +00:00
Sven Neumann
2a95978506
gtk/gtkaboutdialog.c gtk/gtkcellrendereraccel.c gtk/gtkcellrenderercombo.c
...
2008-08-11 Sven Neumann <sven@gimp.org>
* gtk/gtkaboutdialog.c
* gtk/gtkcellrendereraccel.c
* gtk/gtkcellrenderercombo.c
* gtk/gtkcellrendererspin.c
* gtk/gtkcellrenderertext.c
* gtk/gtkclipboard.c
* gtk/gtkcolorsel.c
* gtk/gtkcombo.c
* gtk/gtkcombobox.c
* gtk/gtkdnd-quartz.c
* gtk/gtkdnd.c
* gtk/gtkentry.c
* gtk/gtkentrycompletion.c
* gtk/gtkfilechooserbutton.c
* gtk/gtkfilechooserdefault.c
* gtk/gtkfilechooserentry.c
* gtk/gtkfontsel.c
* gtk/gtkinputdialog.c
* gtk/gtkmenutoolbutton.c
* gtk/gtkpathbar.c
* gtk/gtktooltip.c: use canonical signal names in
g_signal_connect().
svn path=/trunk/; revision=21060
2008-08-11 09:17:49 +00:00