summaryrefslogtreecommitdiff
path: root/gtk/gtkclipboard-quartz.c
Commit message (Collapse)AuthorAgeFilesLines
* quartz: Copy annotationsMatthias Clasen2014-11-301-0/+132
| | | | Better than juggling introspection sources in the Makefile.
* docs: use apostrophes in *n'tWilliam Jon McCann2014-02-071-1/+1
|
* Bug 651224 - Potential NULL display ptr from quartz ↵John Ralls2013-09-281-1/+3
| | | | gtk_clipboard_wait_for_contents
* quartz: Fix call to missing symbolCarlos Garnacho2013-04-091-1/+1
| | | | | | | | This patch can be considered a leftover of commit 6f607fc8b4cd , replace the no longer existing function with the GDK function meant to replace it. This was noticeable on regular clipboard operations in quartz
* quartz: merge the clipboard storing code from gtk-2-24Michael Natterer2013-01-171-2/+65
|
* quartz: make setting_same_owner member of GtkClipboardOwner @publicMichael Natterer2012-12-171-0/+1
| | | | | to fix the build, thanks to parafin for the patch. (cherry picked from commit e3e055f8551ac8ee033f361261c849c612554184)
* Fix compilation on MacOSX TigerJohn Ralls2012-12-101-2/+2
| | | | | | 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.
* quartz: fix crash in the recent clipboard "fix", and really fix itMichael Natterer2012-12-071-19/+36
| | | | | | | | | | | | | | | | We must not release the GtkClipboardOwner in pasteboardChangedOwner becaue we don't own a reference to ourselves (NSPasteboard does). Instead, release the owner right after setting it, transferring ownership to NSPasteboard Also, fix repeated setting of the same owner by keeping the owner around in GtkCLipboard, and re-use it if "user_data" doesn't change. To avoid clipboard_unset()ting our own contents in the process, add an ugly "setting_same_owner" boolean to GtkClipboardOwner, set it during re-setting the same owner, and avoid calling clipboard_unset() from pasteboardChangedOwner if it's TRUE. (cherry picked from commit 4a8df7a33c298d22bf78b947d0e861fc03ec70e1)
* Bug 626499 - GtkClipboard unnotified on change of OS X pasteboard ownerMichael Natterer2012-12-041-22/+41
| | | | | | | | | | | pasteboardChangedOwner is not called as reliably as we'd want to get it, so keep track of [pasteboard changeCount] and drop clipboard ownership when a change happened. Also better unset the clipboard content redundantly in a few places rather than missing one, and reorder the code in gtk_clipboard_set_contents() so that the new aggressive unsetting won't unset the clipboard under our feet when we call [pasteboard declareTypes]. (cherry picked from commit f2b74db5dcbd28a1e27431f413c66d2a5d50b2bd)
* Remove empty doc commentsMatthias Clasen2012-09-231-170/+0
| | | | | These confuse gtk-doc. All these functions are documented in gtkclipboard.c
* Copy in annotations missing from gtkdnd-quartz and gtkclipboard-quartzJohn Ralls2012-08-221-0/+169
|
* Change FSF AddressJavier Jardón2012-02-271-3/+1
|
* Bug 508601 - Copying from GTK+ applications causes crashKristian Rietveld2011-07-251-3/+4
| | | | | | | In GtkClipboardOwner pasteboard:provideDataForType do not call _gtk_quartz_set_selection_data_for_pasteboard() is selection_data.length is smaller than 0. The function relies on having a positive length, since it stores the length in a uint ...
* gtkclipboard-quartz: use accessors and add missing includeKristian Rietveld2010-12-221-1/+2
|
* gtk/: fully remove gtkalias hacksJavier Jardón2010-07-101-4/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=623845
* Rework a previous commit to not crash in addition to fixing leaksKristian Rietveld2010-01-011-5/+9
| | | | | The target list/entry to pasteboard entry conversions return a NSSet now instead of NSArray.
* Fix memory management of types arrayKristian Rietveld2009-12-301-1/+1
| | | | Also add autorelease pool to gtk_drag_begin_idle().
* Remove duplicate doc comments.Matthias Clasen2009-11-271-360/+1
| | | | These can only serve to confuse gtk-doc.
* Bug 554141 – uninitialized data use/free in gtkclipboard-quartz.cRichard Hult2008-09-291-1/+1
| | | | | | | | | | | 2008-09-29 Richard Hult <richard@imendio.com> Bug 554141 – uninitialized data use/free in gtkclipboard-quartz.c * gtk/gtkclipboard-quartz.c: (gtk_clipboard_wait_for_contents): Patch from Jon A. Cruz to initialize the allocated selection data. svn path=/trunk/; revision=21540
* Add another missing symbol.Richard Hult2008-08-151-0/+17
| | | | | | | | | 2008-08-15 Richard Hult <richard@imendio.com> * gtk/gtkclipboard-quartz.c (gtk_clipboard_wait_is_uris_available): Add another missing symbol. svn path=/trunk/; revision=21135
* gtk/gtkaccelgroup.c gtk/gtkactiongroup.c gtk/gtkcalendar.cSven Neumann2008-08-111-2/+2
| | | | | | | | | | | | | | | | | | 2008-08-11 Sven Neumann <sven@gimp.org> * gtk/gtkaccelgroup.c * gtk/gtkactiongroup.c * gtk/gtkcalendar.c * gtk/gtkcelleditable.c * gtk/gtkclipboard-quartz.c * gtk/gtkclipboard.c * gtk/gtkcolorbutton.c * gtk/gtkcolorsel.c * gtk/gtkcontainer.c * gtk/gtkcurve.c: use canonical signal names. svn path=/trunk/; revision=21068
* Implement missing functions.Richard Hult2008-08-101-0/+31
| | | | | | | | | 2008-08-10 Richard Hult <richard@imendio.com> * gtk/gtkclipboard-quartz.c: (gtk_clipboard_wait_for_uris), (gtk_clipboard_request_uris): Implement missing functions. svn path=/trunk/; revision=21053
* Revert name changeCody Russell2008-07-011-1/+1
| | | | svn path=/trunk/; revision=20724
* Practically everything changed.Cody Russell2008-06-301-1/+1
| | | | | | | | | | | | | 2008-06-30 Cody Russell <bratsche@gnome.org> * Practically everything changed. Change all references of GIMP Toolkit (and variations of it) to GTK+ Toolkit, showing no mercy at all to our beloved ancestry. (#540529) svn path=/trunk/; revision=20709
* Patch from Christian Dywan to clean up selection data setting.Richard Hult2008-06-261-11/+10
| | | | | | | | | | | | 2008-06-26 Richard Hult <richard@imendio.com> * gtk/gtkclipboard-quartz.c: (gtk_clipboard_wait_for_contents): * gtk/gtkquartz.c: (_gtk_quartz_get_selection_data_from_pasteboard), (_gtk_quartz_set_selection_data_for_pasteboard): Patch from Christian Dywan to clean up selection data setting. svn path=/trunk/; revision=20690
* Include "config.h" instead of <config.h> Command used: find -nameJohan Dahlin2008-06-221-1/+1
| | | | | | | | | | | | 2008-06-21 Johan Dahlin <jdahlin@async.com.br> * *.[ch]: Include "config.h" instead of <config.h> Command used: find -name \*.[ch]|xargs perl -p -i -e 's/^#include <config.h>/#include "config.h"/g' Rubberstamped by Mitch and Tim svn path=/trunk/; revision=20669
* Remove unused variables. (gtk_clipboard_set_contents),Richard Hult2008-02-131-15/+36
| | | | | | | | | | | | | 2008-02-13 Richard Hult <richard@imendio.com> * gtk/gtkclipboard-quartz.c: (gtk_clipboard_wait_for_contents): Remove unused variables. (gtk_clipboard_set_contents), (gtk_clipboard_get_owner), (clipboard_unset), (gtk_clipboard_request_targets): Notify the previous clipboard owner when the owner changes. Fixes bug #493406. svn path=/trunk/; revision=19560
* Use GSlice for GtkSelectionData. (#515060, Christian Persch)Matthias Clasen2008-02-121-1/+1
| | | | | | | | | | | | 2008-02-12 Matthias Clasen <mclasen@redhat.com> * gtk/gtkclipboard-quartz.c: * gtkquartz.c: * gtkselection.c: Use GSlice for GtkSelectionData. (#515060, Christian Persch) svn path=/trunk/; revision=19533
* Fix bug #486369, by passing the selection info along when pasting.Richard Hult2007-11-031-7/+32
| | | | | | | | | | 2007-11-03 Richard Hult <richard@imendio.com> * gtk/gtkclipboard-quartz.c: (clipboard_owner_destroyed), (gtk_clipboard_set_contents), (clipboard_unset): Fix bug #486369, by passing the selection info along when pasting. svn path=/trunk/; revision=18965
* Apply a patch by Behdad Esfahbod to reduce relocations. (#359053)Matthias Clasen2006-10-031-1/+1
| | | | | | | 2006-10-03 Matthias Clasen <mclasen@redhat.com> * gtk/*.c, gdk/*.c: Apply a patch by Behdad Esfahbod to reduce relocations. (#359053)
* Commit a patch by Behdad to fix typos, omissions and other errors in theMatthias Clasen2006-09-101-2/+1
| | | | | | | | 2006-09-10 Matthias Clasen <mclasen@redhat.com> * Commit a patch by Behdad to fix typos, omissions and other errors in the symbol aliasing, and add checks for local PLT entries. (#354687, Behdad Esfahbod)
* Reindent.Richard Hult2006-07-191-0/+6
| | | | | | | | | 2006-07-19 Richard Hult <richard@imendio.com> * gtk/gtkdnd-quartz.c (register_types): Reindent. * gtk/gtkclipboard-quartz.c (gtk_clipboard_set_contents): Add autorelease pool.
* Implement some more stubs for pygtk, bug #346713.Richard Hult2006-07-091-0/+11
| | | | | | | | | | | 2006-07-09 Richard Hult <richard@imendio.com> * gdk/quartz/gdkgeometry-quartz.c: * gdk/quartz/gdkmain-quartz.c: * gdk/quartz/gdkpixmap-quartz.c: * gdk/quartz/gdkwindow-quartz.c: * gtk/gtkclipboard-quartz.c: Implement some more stubs for pygtk, bug #346713.
* Make the poll func work with real file descriptors. We do this by creatingAnders Carlsson2006-03-271-2/+0
| | | | | | | | | | | | | | | | | 2006-03-27 Anders Carlsson <andersca@imendio.com> * gdk/quartz/gdkevents-quartz.c: (select_thread_func): (got_fd_activity): (poll_func): (gdk_event_translate): Make the poll func work with real file descriptors. We do this by creating a thread which calls poll and then signals the main thread using a run loop source. * gtk/gtkclipboard-quartz.c: (-[GtkClipboardOwner pasteboard:provideDataForType:]): Remove debugging output
* Add new files.Anders Carlsson2006-03-211-0/+1264
2006-03-21 Anders Carlsson <andersca@imendio.com> * gtk/Makefile.am: Add new files. * gtk/gtkclipboard-quartz.c: Added. * gtk/gtkdnd-quartz.c: Added. * gtk/gtkquartz.c: Added. * gtk/gtkquartz.h: Added. Add dnd and clipboard implementations.