summaryrefslogtreecommitdiff
path: root/gtk/gtkclipboard.c
Commit message (Collapse)AuthorAgeFilesLines
* bgo#463773 - Handle a NULL display in gtk_clipboard_get_for_display() so ↵Federico Mena Quintero2009-05-121-0/+1
| | | | Flash won't hang
* Bug 557315 – stale clipboard target cacheMatthias Clasen2008-10-251-1/+10
| | | | | | | | | | | | 2008-10-25 Matthias Clasen <mclasen@redhat.com> Bug 557315 – stale clipboard target cache * gtk/gtkclipboard.c (gtk_clipboard_set_contents): Remove cached targets. Pointed out by Evan Stade svn path=/trunk/; revision=21713
* use canonical signal name.Paolo Borelli2008-08-121-3/+5
| | | | | | | | | | 2008-08-12 Paolo Borelli <pborelli@katamail.com> * gtk/gtkclipboard.c (gtk_clipboard_store): use canonical signal name. svn path=/trunk/; revision=21104
* gtk/gtkaccelgroup.c gtk/gtkactiongroup.c gtk/gtkcalendar.cSven Neumann2008-08-111-1/+1
| | | | | | | | | | | | | | | | | | 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
* gtk/gtkaboutdialog.c gtk/gtkcellrendereraccel.c gtk/gtkcellrenderercombo.cSven Neumann2008-08-111-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Use g_timeout_add_secondsMatthias Clasen2008-07-311-1/+1
| | | | svn path=/trunk/; revision=20921
* 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
* 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
* Add clipboard convenience helpers for URIs. Bug #537639.Christian Persch2008-06-191-0/+148
| | | | svn path=/trunk/; revision=20465
* Make finalizer more robustMatthias Clasen2007-12-281-14/+19
| | | | svn path=/trunk/; revision=19283
* Add docsMatthias Clasen2007-07-121-1/+12
| | | | svn path=/trunk/; revision=18454
* Use gtk_target_table_new_from_list and gtk_target_table_free instead ofChristian Persch2007-01-141-24/+6
| | | | | | | | | | 2007-01-14 Christian Persch <chpe@svn.gnome.org> * gtk/gtkclipboard.c: (gtk_clipboard_set_text), (gtk_clipboard_set_image): Use gtk_target_table_new_from_list and gtk_target_table_free instead of duplicating the code. Bug #396493. svn path=/trunk/; revision=17152
* Replace a lot of idle and timeout calls by the new gdk_threads api.Matthias Clasen2006-12-221-0/+4
| | | | | | | 2006-12-22 Matthias Clasen <mclasen@redhat.com> * *.c: Replace a lot of idle and timeout calls by the new gdk_threads api.
* Documentation additions and fixes.Matthias Clasen2006-06-291-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | 2006-06-28 Matthias Clasen <mclasen@redhat.com> * gtk/gtkprinter.c: * gtk/gtkprintunixdialog.c: * gtk/gtkprintoperationpreview.c: * gtk/gtkprintcontext.c (gtk_print_context_set_cairo_context): * gtk/gtklabel.c (gtk_label_set_line_wrap_mode): * gtk/gtkentry.c (gtk_entry_new): * gtk/gtkprintoperation.c (gtk_print_operation_set_custom_tab_label): * gtk/gtkclipboard.c (gtk_clipboard_wait_for_rich_text): Documentation additions and fixes. * gtk/gtkaspectframe.h: * gtk/gtkaboutdialog.c: * gtk/gtkcalendar.c: * gtk/gtkinputdialog.c: * gtk/gtk.symbols: Remove unnecessary includes. * gtk/gtkprogress.[hc]: * gtk/gtkitemfactory.[hc]: Don't unnecessarily use GTK_COMPILATION, remove unnecessary includes.
* More of the sameMatthias Clasen2006-05-141-1/+1
|
* More G_DEFINE_TYPE conversion.Matthias Clasen2006-05-031-17/+5
| | | | | | | | | | 2006-05-03 Matthias Clasen <mclasen@redhat.com> * gtk/gtkaccessible.c: * gtk/gtkclipboard.c: * gtk/gtkfilefilter.c: * gtk/gtkimmodule.c: * gtk/gtkmenubar.c: More G_DEFINE_TYPE conversion.
* Boilerplate reductionMatthias Clasen2006-05-021-17/+6
|
* Add infrastructure for copy/paste and DND of rich text for GtkTextBuffer.Michael Natterer2006-03-071-1/+196
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2006-03-07 Michael Natterer <mitch@imendio.com> Add infrastructure for copy/paste and DND of rich text for GtkTextBuffer. Fixes bug #324177. * gtk/gtktextbufferrichtext.[ch]: new files implementing a per-buffer registry of rich text formats. * gtk/gtk.h: #include gtktextbufferrichtext.h * gtk/gtktextbufferserialize.[ch]: new files implementing an internal serialization format that can handle all of a text buffer's tags and pixbufs. It's not useful for anything except tranfer between instances of GtkTextBuffer (Anders Carlsson). * gtk/Makefile.am: build the new files. * gtk/gtkclipboard.[ch]: added convenience APIs for rich text, just as they exist for plain text and pixbufs. * gtk/gtkselection.[ch]: added rich text convenience APIs here too. Return the target list from gtk_target_list_ref(). Register GtkTargetList as boxed type. Added gtk_target_table_new_from_list() and gtk_target_table_free(), which make converting between GtkTargetList and arrays of GtkTargetEntry considerably easier. * gtk/gtktextutil.[ch]: added _gtk_text_util_create_rich_drag_icon() which creates a fancy rich text icon (Matthias Clasen). * gtk/gtktextbuffer.[ch]: use all the new stuff above and implement copy and paste of rich text. Added APIs for getting the target lists used for copy and paste. Added public enum GtkTextBufferTargetInfo which contains the "info" IDs associated with the entries of the target lists. * gtk/gtktextview.c: use the new rich text APIs and GtkTextBuffer's new target list API to enable DND of rich text chunks. * gtk/gtk.symbols: export all the new symbols added. * tests/testtext.c: added rich text testing stuff.
* Applied patch from maemo-gtk that addresses many issues wrt displayMichael Natterer2005-11-101-8/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2005-11-10 Michael Natterer <mitch@imendio.com> Applied patch from maemo-gtk that addresses many issues wrt display migration and display closing (bug #85715). * gdk/gdkdisplay.c (gdk_display_dispose): don't just set the default display to NULL when it's closed. Instead set the most recently opened display as new default (if one exists). * gdk/gdkpango.c (on_renderer_display_closed): fixed signature of this callback. * gdk/gdkscreen.c (gdk_screen_dispose): check if the GCs still exist before unrefing them. * gdk/gdkwindow.c (_gdk_window_destroy_hierarchy): if the screen is closed, allow destruction of the root window. * gdk/x11/gdkdisplay-x11.c: moved some stuff from finalize() to dispose(), free stuff that was leaked before. * gdk/x11/gdkevents-x11.c (_gdk_x11_events_uninit_screen): check if the xsettings_client still exists before destroying it. * gdk/x11/gdkkeys-x11.c: added finalization and free the allocated X resources. * gdk/x11/gdkpixmap-x11.c: moved stuff from finalize() to new dispose() implementation. * gdk/x11/gdkscreen-x11.c: moved stuff from finalize() to dispose() and check if it still exists before unrefing it. Set their pointers to NULL/None *after* upchaining in dispose(), because X11 implementations of members of the parent class still need them for their own destruction. * gdk/x11/gdkvisual-x11.c: removed finalize() implementation which was g_error()ing when finalizing a visual. * gtk/gtkclipboard.c (gtk_clipboard_finalize): don't use get_clipboard_widget() because it would create the widget if it doesn't exist. Use g_object_get_data() directly instead. * gtk/gtktextdisplay.c (on_renderer_display_closed): fixed signature of this callback.
* Don't unref NULL. (#316828, Tor Lillqvist)Matthias Clasen2005-09-281-1/+3
| | | | | | | 2005-09-28 Matthias Clasen <mclasen@redhat.com> * gtk/gtkclipboard.c (request_image_received_func): Don't unref NULL. (#316828, Tor Lillqvist)
* Use gdk_atom_intern_static_string() where appropriate.Matthias Clasen2005-09-111-16/+16
| | | | | * gtk/*.c: Use gdk_atom_intern_static_string() where appropriate.
* Intern some more strings.Matthias Clasen2005-09-011-6/+7
| | | | | | | | | 2005-09-01 Matthias Clasen <mclasen@redhat.com> * gdk/*.c: Intern some more strings. * gtk/gtkintl.h: * gtk/*.c: Define an I_() macro and use it instead of the bulky g_intern_static_string().
* Also intern static strings passed to g_object_set_data()Matthias Clasen2005-08-311-4/+4
|
* Intern type names in code generated by glib-mkenums, too.Matthias Clasen2005-08-311-1/+1
| | | | | | | | | | | | | 2005-08-31 Matthias Clasen <mclasen@redhat.com> * gdk/Makefile.am: * gtk/Makefile.am: Intern type names in code generated by glib-mkenums, too. * gtk/*.c: * gdk/x11/*.c: * gdk/*.c: Intern type names before registering the type to avoid unnecessary copies.
* 2.8.2GTK_2_8_2Matthias Clasen2005-08-241-1/+9
|
* Don't leak atom names. (#311933, Peter Zelezny)Matthias Clasen2005-08-011-0/+4
| | | | | | | | 2005-08-01 Matthias Clasen <mclasen@redhat.com> * gtk/gtkclipboard.c (gtk_clipboard_set_image) (gtk_clipboard_set_text): Don't leak atom names. (#311933, Peter Zelezny)
* Don't accept n_targets == -1. (clipboard_unset): unref the old_data, notMatthias Clasen2005-03-301-1/+2
| | | | | | | | | | 2005-03-30 Matthias Clasen <mclasen@redhat.com> * gtk/gtkclipboard.c (gtk_clipboard_set_can_store): Don't accept n_targets == -1. (clipboard_unset): unref the old_data, not the user_data which we have just cleared. (#172038, Sven Neumann)
* Make PLT-reduction work with gcc4, and don't include everything inMatthias Clasen2005-03-201-1/+4
| | | | | | | | | | | | | | | | | | 2005-03-20 Matthias Clasen <mclasen@redhat.com> Make PLT-reduction work with gcc4, and don't include everything in gdkalias.h: * gtk/grk.symbols: Group symbols by header and source file. * gtk/makegtkalias.pl: Protect definitions by the same preprocessor symbols used to guard the headers. Move the alias declarations to a separate file which is produced when calling makegtkalias.pl -def * gdk/Makefile.am (gtkaliasdef.c): Add a rule to generate this file. * gtk/*.c: Include gtkalias.h after the other headers, include gtkaliasdef.c at the bottom. * gtk/*.h: Small cleanups.
* Fix links to freedesktop.org specs in the documentation.Matthias Clasen2005-02-211-2/+2
| | | | | | | | 2005-02-20 Matthias Clasen <mclasen@redhat.com> * gtk/gtkwindow.c: * gtk/gtkclipboard.c: Fix links to freedesktop.org specs in the documentation.
* Make the clipboard image API more robust (#162357, Torsten Schoenfeld):Matthias Clasen2004-12-281-1/+3
| | | | | | | | | | | | | | | | 2004-12-27 Matthias Clasen <mclasen@redhat.com> Make the clipboard image API more robust (#162357, Torsten Schoenfeld): * gtk/gtkclipboard.c (clipboard_image_received_func): Don't ref the pixbuf if it is NULL. * gtk/gtkselection.c (gtk_selection_data_set_pixbuf): NULL-terminate the varargs in the call to gdk_pixbuf_save_to_buffer(). (gtk_selection_data_get_pixbuf): Only use a pixbuf loader if there is data to load.
* Remove two more places where we were unconditionally setting "visible",Matthias Clasen2004-11-111-6/+16
| | | | | | | | | | | | | | 2004-11-11 Matthias Clasen <mclasen@redhat.com> * gtk/gtkuimanager.c (update_node): Remove two more places where we were unconditionally setting "visible", causing unnecessary notifications. * gtk/gtkclipboard.c (gtk_clipboard_get_for_display): (gtk_clipboard_get): Clarify the docs. (#156638, Torsten Schoenfeld) (gtk_clipboard_finalize): Warn if the clipboard is still in its displays clipboard list.
* Add api for image transfer via copy-and-paste (#156408)Matthias Clasen2004-10-311-10/+242
| | | | | | | | | | | | | | | 2004-10-31 Matthias Clasen <mclasen@redhat.com> Add api for image transfer via copy-and-paste (#156408) * gtk/gtkclipboard.c (gtk_clipboard_set_image) (gtk_clipboard_request_image, gtk_clipboard_wait_for_image) (gtk_clipboard_wait_is_image_available): New functions for image transfer. * gtk/gtkselection.h: * gtk/gtkselection.c (gtk_selection_data_targets_include_image): New function, similar to gtk_selection_data_targets_include_text().
* Don't hardwire the supported text targets here, useMatthias Clasen2004-10-291-8/+22
| | | | | | | | 2004-10-29 Matthias Clasen <mclasen@redhat.com> * gtk/gtkclipboard.c (gtk_clipboard_set_text): Don't hardwire the supported text targets here, use gtk_target_list_add_text_targets(). (#156404)
* Make targets const.Anders Carlsson2004-10-271-3/+3
| | | | | | | | 2004-10-28 Anders Carlsson <andersca@gnome.org> * gtk/gtkclipboard.c: (gtk_clipboard_set_can_store): * gtk/gtkclipboard.h: Make targets const.
* Silently ignore non-CLIPBOARD clipboards. (#156610, Christian Persch)Matthias Clasen2004-10-271-3/+4
| | | | | | | 2004-10-27 Matthias Clasen <mclasen@redhat.com> * gtk/gtkclipboard.c (gtk_clipboard_set_can_store): Silently ignore non-CLIPBOARD clipboards. (#156610, Christian Persch)
* New API to handle the clipboard manager.Anders Carlsson2004-10-251-18/+322
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-10-25 Anders Carlsson <andersca@imendio.com> * gdk/gdk.symbols: * gdk/gdkdisplay.h: * gdk/x11/gdkdisplay-x11.c: (gdk_display_supports_clipboard_persistence), (gdk_display_store_clipboard): New API to handle the clipboard manager. * gtk/gtk.symbols: * gtk/gtkclipboard.c: (gtk_clipboard_class_init), (gtk_clipboard_finalize), (selection_clear_event_cb), (clipboard_unset), (gtk_clipboard_set_text), (gtk_clipboard_request_targets), (gtk_clipboard_wait_for_targets), (clipboard_peek), (gtk_clipboard_owner_change), (gtk_clipboard_wait_is_target_available), (gtk_clipboard_store_timeout), (gtk_clipboard_set_can_store), (gtk_clipboard_selection_notify), (gtk_clipboard_store), (_gtk_clipboard_store_all): * gtk/gtkclipboard.h: Add API for clipboard persistence and implement it, also add gtk_clipboard_wait_is_target_available. * gtk/gtkmain.c: (gtk_main): Call _gtk_clipboard_store_all before exiting.
* Add hidden aliases for exported symbols which are used internally in orderMatthias Clasen2004-08-091-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Mon Aug 9 12:48:04 2004 Matthias Clasen <maclas@gmx.de> Add hidden aliases for exported symbols which are used internally in order to get rid of many PLT entries. (#145519, Arjan van de Ven) * gtk/Makefile.am: Add rules to generate gtk.def and from gtk.symbols, and make make check check the abi with abicheck.sh. (gtk_private_h_sources): Add gtkinternals.h (gtk_built_private_headers): Add gtkalias.h (gtk_extra_sources): Add gtk.symbols (EXTRA_DIST): Add makegtkalias.pl and abicheck.sh * gtk/gtk.symbols: New file. Definition of the GTK+ ABI. The file can be processed by cpp to filter out certain subsets of symbols. * gtk/abicheck.sh: New file. Script to check the actually symbols exported from libgtk-x11.2.0.so against the symbols found in gtk.symbols. * gtk/makegtkalias.pl: New file. Perl script to generate the header containing the alias definitions for internally used exported symbols from a list of symbols. * gtk/gtkinternals.h: New file. An uninstalled header listing symbols which must be exported for some reason and do not appear in any other header. * gtk/*.c: Include gtkalias.h
* Check for XFIXES extension.Matthias Clasen2004-05-181-38/+97
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-05-18 Matthias Clasen <mclasen@redhat.com> * configure.in: Check for XFIXES extension. * gdk/x11/gdkdisplay-x11.h (struct _GdkDisplayX11): Add a gboolean have_xfixes member. * gdk/x11/gdkdisplay-x11.c (gdk_display_open): Register XFIXES events and set have_xfixes. * gdk/gdkevents.h (GdkEventType): Add GDK_OWNER_CHANGE. (GdkEventOwnerChange): New event struct for owner change events. (GdkOwnerChange): New enum for the reason field of GdkEventOwnerChange. * gdk/x11/gdkevents-x11.c (gdk_event_translate): Translate XFixesSelectionNotify events into GdkEventOwnerChange events. * gdk/gdkdisplay.h: * gdk/x11/gdkdisplay-x11.c (gdk_display_supports_selection_notification): (gdk_display_request_selection_notification): New api to support selection ownership notification. * gtk/gtkclipboard.h: * gtk/gtkclipboard.c (_gtk_clipboard_handle_event): New private api to handle owner change events. (clipboard_peek): Refactored out the body of gtk_clipboard_get_for_display() for use in _gtk_clipboard_handle_event(). * gtk/gtkmain.c (gtk_main_do_event): Handle GDK_OWNER_CHANGE events by calling _gtk_clipboard_handle_event().
* Correctly initialize targets. (#139883, John Finlay)Matthias Clasen2004-04-231-1/+2
| | | | | | | 2004-04-23 Matthias Clasen <mclasen@redhat.com> * gtk/gtkclipboard.c (gtk_clipboard_wait_for_targets): Correctly initialize targets. (#139883, John Finlay)
* Fixes #136082 and #135265, patch by Morten Welinder.Federico Mena Quintero2004-03-061-0/+1
| | | | | | | | | | 2004-03-05 Federico Mena Quintero <federico@ximian.com> Fixes #136082 and #135265, patch by Morten Welinder. * configure.in: Use AC_SYS_LARGEFILE. * */*.c: #include <config.h>
* Add chains to the parent's ::finalize() handler (#134901, Morten Welinder,Matthias Clasen2004-02-221-0/+2
| | | | | | | | | | | | | | | | | | | | Sun Feb 22 03:03:29 2004 Matthias Clasen <maclas@gmx.de> * gtk/gtkaction.c: (gtk_action_finalize): * gtk/gtkclipboard.c: (gtk_clipboard_finalize): * gtk/gtkentrycompletion.c: (gtk_entry_completion_class_init), (gtk_entry_completion_finalize): * gtk/gtkfilechooserwidget.c: (gtk_file_chooser_widget_finalize): * gtk/gtkfilesystemmodel.c: (gtk_file_system_model_class_init), (gtk_file_system_model_finalize): * gtk/gtkicontheme.c: (gtk_icon_theme_class_init), (gtk_icon_theme_finalize): * gtk/gtktextchild.c: (gtk_text_child_anchor_finalize): * gtk/gtkuimanager.c: (gtk_ui_manager_class_init), (gtk_ui_manager_finalize): * modules/input/gtkimcontextxim.c: (gtk_im_context_xim_finalize): Add chains to the parent's ::finalize() handler (#134901, Morten Welinder, patch by Jan Arne Petersen)
* Update freedesktop.org clipboard doc link. Patch from Andrew MoiseManish Singh2004-01-031-6/+6
| | | | | | | Sat Jan 3 11:39:42 2004 Manish Singh <yosh@gimp.org> * gtk/gtkclipboard.c: Update freedesktop.org clipboard doc link. Patch from Andrew Moise (#130462).
* Add GtkClipboardTargetReceivedFunc, gtk_clipboard_request_targets() andMatthias Clasen2003-12-241-0/+104
| | | | | | | | Wed Dec 24 01:12:53 2003 Matthias Clasen <maclas@gmx.de> * gtk/gtkclipboard.[hc]: Add GtkClipboardTargetReceivedFunc, gtk_clipboard_request_targets() and gtk_clipboard_wait_for_targets(). (#101774, Dom Lachowicz)
* Data constness fixes. (#75754)Matthias Clasen2002-12-101-2/+2
|
* Document 2.2 API additions.Matthias Clasen2002-11-281-0/+4
|
* Deprecation cleanupManish Singh2002-10-091-23/+20
| | | | | | | | Wed Oct 9 16:52:53 2002 Manish Singh <yosh@gimp.org> * gtk/gtkclipboard.[ch] gtk/gtkeditable.[ch] gtk/gtkgc.c gtk/gtkoptionmenu.[ch] gtk/gtkselection.c gtk/gtksizegroup.[ch]: Deprecation cleanup
* declare parent_class staticjacob berkman2002-10-011-1/+1
| | | | | | | 2002-10-01 jacob berkman <jacob@ximian.com> * gtk/gtkinvisible.c: * gtk/gtkclipboard.c: declare parent_class static
* preserve ordering from gtk_tree_selection_foreach when returning filenamesManish Singh2002-09-251-1/+1
| | | | | | | | | | | Tue Sep 24 23:33:48 2002 Manish Singh <yosh@gimp.org> * gtk/gtkfilesel.c: preserve ordering from gtk_tree_selection_foreach when returning filenames for gtk_file_selection_get_selections (#86567) * gtk/gtkclipboard.c: GtkClipboard struct should have a GObject in it, not a GObjectClass
* Make a GObject (#75970, James Henstridge)Owen Taylor2002-09-241-1/+75
| | | | | | Tue Sep 24 18:18:36 2002 Owen Taylor <otaylor@redhat.com> * gtk/gtkclipboard.[ch]: Make a GObject (#75970, James Henstridge)