summaryrefslogtreecommitdiff
path: root/gtk/gtkselection.c
Commit message (Collapse)AuthorAgeFilesLines
* Accept a type of TARGETS instead of ATOM, too. Based on a patch by PengMatthias Clasen2009-01-191-1/+4
| | | | | | | | | * gtk/gtkselection.c (gtk_selection_data_get_targets): Accept a type of TARGETS instead of ATOM, too. Based on a patch by Peng Wu. svn path=/trunk/; revision=22141
* Typo fix.Christian Persch2008-11-291-1/+1
| | | | | | * gtk/gtkselection.c: Typo fix. svn path=/trunk/; revision=21827
* More of the sameMatthias Clasen2008-11-291-2/+2
| | | | svn path=/trunk/; revision=21823
* Add gtk_selection_data_get_selection to retrieve the sealed struct fieldTorsten Schönfeld2008-10-011-0/+18
| | | | | | GtkSelectionData.selection. svn path=/trunk/; revision=21564
* Update documentation for gtk_selection_data_get_data to match the changesWouter Bolsterlee2008-09-011-2/+0
| | | | | | | | | | | | 2008-09-01 Wouter Bolsterlee <wbolster@svn.gnome.org> * gtk/gtkselection.c: Update documentation for gtk_selection_data_get_data to match the changes introduced in -r21232 (the length parameter was removed). svn path=/trunk/; revision=21256
* Split gtk_selection_data_get_data into gtk_selection_data_get_data andMatthias Clasen2008-08-291-6/+19
| | | | | | | | | | | | 2008-08-29 Matthias Clasen <mclasen@redhat.com> * gtk/gtk.symbols: * gtk/gtkselection.[hc]: Split gtk_selection_data_get_data into gtk_selection_data_get_data and gtk_selection_data_get_length. Proposed by Owen Taylor. svn path=/trunk/; revision=21232
* Bug 549734 – gtk_selection_data_get_data prototype is wrongChristian Dywan2008-08-281-1/+1
| | | | | | | | | | | | | 2008-08-28 Christian Dywan <christian@imendio.com> Bug 549734 – gtk_selection_data_get_data prototype is wrong * gtk/gtkselection.[ch] (gtk_selection_data_get_data): make the 'length' argument of gtk_selection_data_get_data a 'gint', that's what it should be. svn path=/trunk/; revision=21229
* gtk/gtkaccellabel.c gtk/gtkaction.c gtk/gtkclist.c gtk/gtkcolorbutton.cSven Neumann2008-08-121-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* 2.13.5GTK_2_13_5Matthias Clasen2008-07-221-0/+10
| | | | svn path=/trunk/; revision=20888
* Don't do funny casts to avoid compiler warningsFederico Mena Quintero2008-07-181-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | 2008-07-18 Federico Mena Quintero <federico@novell.com> * demos/gtk-demo/changedisplay.c (find_toplevel_at_pointer): Don't do funny casts to avoid compiler warnings. * demos/gtk-demo/textview.c (easter_egg_callback): Likewise. * gtk/gtkmain.c (rewrite_event_for_grabs, gtk_get_event_widget): Likewise. * gtk/gtkmodules.c (load_module): Likewise. * gtk/gtkselection.c (gtk_selection_convert): Likewise. * gtk/gtktipsquery.c (gtk_tips_query_event): Likewise. * gtk/queryimmodules.c (query_module): Likewise. * tests/testgtk.c (create_gridded_geometry, create_key_lookup) (find_widget_at_pointer): Likewise. Signed-off-by: Federico Mena Quintero <federico@novell.com> svn path=/trunk/; revision=20862
* 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 missing Since: gtk-doc markup for newly added GSEAL API. Change allJohan Dahlin2008-06-201-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | 2008-06-20 Johan Dahlin <jdahlin@async.com.br> * gtk/gtkaccelgroup.c: * gtk/gtkcolorseldialog.c: * gtk/gtkcontainer.c: * gtk/gtkdialog.c: * gtk/gtkentry.c (gtk_entry_class_init): * gtk/gtkfontsel.c: * gtk/gtkhandlebox.c: * gtk/gtklayout.c: * gtk/gtkmenu.c (gtk_menu_class_init): * gtk/gtkmenuitem.c (gtk_menu_item_class_init): * gtk/gtkplug.c (gtk_plug_class_init): * gtk/gtkselection.c: * gtk/gtksocket.c: * gtk/gtktreeselection.c: * gtk/gtkwidget.c (gtk_widget_class_init): * gtk/gtkwindow.c: Add missing Since: gtk-doc markup for newly added GSEAL API. Change all Since: GSEAL-branch to Since: 2.14. svn path=/trunk/; revision=20639
* Remove superflous gtkselection accessors and merge _get_dataTim Janik2008-06-201-108/+8
| | | | svn path=/trunk/; revision=20628
* Implement gtk_selection_get_display, style fixesTim Janik2008-06-201-15/+41
| | | | svn path=/trunk/; revision=20627
* Seal GtkSelectionDataTim Janik2008-06-201-0/+160
| | | | svn path=/trunk/; revision=20619
* Bug 479384 – gtk_selection_data_targets_include_uri docs bugletMatthias Clasen2008-05-251-1/+1
| | | | | | | | | | | | 2008-05-25 Matthias Clasen <mclasen@redhat.com> Bug 479384 – gtk_selection_data_targets_include_uri docs buglet * gtk/gtkselection.c (gtk_selection_data_targets_include_uri): Fix doc glitch, pointed out by Christian Persch. svn path=/trunk/; revision=20158
* add tons of g_return_if_fail() instead of crashing when NULL pointers getMichael Natterer2008-04-211-2/+36
| | | | | | | | | | 2008-04-21 Michael Natterer <mitch@imendio.com> * gtk/gtkselection.c: add tons of g_return_if_fail() instead of crashing when NULL pointers get passed. svn path=/trunk/; revision=20031
* Don't add the same target atom twice. (#516087, Christian Persch)Matthias Clasen2008-02-161-1/+2
| | | | | | | | | 2008-02-15 Matthias Clasen <mclasen@redhat.com> * gtk/gtkselection.c (gtk_target_list_add_text_targets): Don't add the same target atom twice. (#516087, Christian Persch) svn path=/trunk/; revision=19589
* Use GSlice for GtkSelectionData. (#515060, Christian Persch)Matthias Clasen2008-02-121-29/+31
| | | | | | | | | | | | 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
* svn path=/trunk/; revision=18842Hans Breuer2007-09-171-1/+1
| | | | svn path=/trunk/; revision=18842
* don't simply crash if any of the pointer args are NULL. Instead,Michael Natterer2007-09-151-5/+13
| | | | | | | | | | | 2007-09-15 Michael Natterer <mitch@imendio.com> * gtk/gtkselection.c (gtk_target_list_find): don't simply crash if any of the pointer args are NULL. Instead, g_return_if_fail() on "list != NULL" and allow to pass NULL as return location for "info". svn path=/trunk/; revision=18831
* Don't ignore the passed-in len parameter. (#430049, Yevgen Muntyan)Matthias Clasen2007-07-091-5/+5
| | | | | | | | | | | 2007-07-09 Matthias Clasen <mclasen@redhat.com> * gtk/gtkselection.c (normalize_to_crlf): Don't ignore the passed-in len parameter. (#430049, Yevgen Muntyan) svn path=/trunk/; revision=18423
* fixed wrong g_convert_with_fallback() call which causedYevgen Muntyan2007-04-141-1/+1
| | | | | | | | | | | | 2007-04-14 Yevgen Muntyan <muntyan@tamu.edu> * gtk/gtkselection.c (selection_get_text_plain): fixed wrong g_convert_with_fallback() call which caused gtk_selection_data_get_text() return invalid UTF-8 for non-ASCII text in text/plain selection (#382824). svn path=/trunk/; revision=17600
* Remove unnecessary NULL checks before g_free(). (#369666, Morten Welinder,Matthias Clasen2007-03-091-4/+2
| | | | | | | | | | | | | 2007-03-09 Matthias Clasen <mclasen@redhat.com> * Everywhere: Remove unnecessary NULL checks before g_free(). (#369666, Morten Welinder, Djihed Afifi) * configure.in: Check for ftw.h svn path=/trunk/; revision=17444
* Plug memory leaks. (#396160, Carlos Garcia Campos)Matthias Clasen2007-01-141-0/+3
| | | | | | | | | | | 2007-01-13 Matthias Clasen <mclasen@redhat.com> * gtk/gtkselection.c (_gtk_selection_request): Plug memory leaks. (#396160, Carlos Garcia Campos) svn path=/trunk/; revision=17145
* Replace a lot of idle and timeout calls by the new gdk_threads api.Matthias Clasen2006-12-221-13/+6
| | | | | | | 2006-12-22 Matthias Clasen <mclasen@redhat.com> * *.c: Replace a lot of idle and timeout calls by the new gdk_threads api.
* Apply a cleanup patch by Kjartan Maraas (#341812)Matthias Clasen2006-10-081-1/+0
| | | | | | 2006-10-08 Matthias Clasen <mclasen@redhat.com> * Apply a cleanup patch by Kjartan Maraas (#341812)
* Improve consistency of signal and property namesMatthias Clasen2006-07-061-5/+6
|
* Fix 344743Matthias Clasen2006-06-141-0/+8
|
* Add infrastructure for copy/paste and DND of rich text for GtkTextBuffer.Michael Natterer2006-03-071-3/+208
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Doc updatesMatthias Clasen2005-12-201-1/+1
|
* Don't leak list[0]. (#323629, Markku Vire)Matthias Clasen2005-12-091-3/+1
| | | | | | | 2005-12-09 Matthias Clasen <mclasen@redhat.com> * gtk/gtkselection.c (gtk_selection_data_get_uris): Don't leak list[0]. (#323629, Markku Vire)
* Plug a leakMatthias Clasen2005-11-151-0/+2
|
* Only set the text if it is not NULL. (#319930, Thomas Klausner)Matthias Clasen2005-10-271-6/+6
| | | | | | | | | | 2005-10-27 Matthias Clasen <mclasen@redhat.com> * demos/gtk-demo/clipboard.c (paste_received): Only set the text if it is not NULL. (#319930, Thomas Klausner) * gtk/gtkselection.c (gtk_selection_data_get_pixbuf): Close the loader before trying to get the pixbuf. (#319930, Thomas Klausner)
* Free mult_atoms here. (#317039, Paolo Borelli)Matthias Clasen2005-09-281-0/+2
| | | | | | | 2005-09-28 Matthias Clasen <mclasen@redhat.com> * gtk/gtkselection.c (_gtk_selection_request): Free mult_atoms here. (#317039, Paolo Borelli)
* Use gdk_atom_intern_static_string() where appropriate.Matthias Clasen2005-09-111-13/+13
| | | | | * gtk/*.c: Use gdk_atom_intern_static_string() where appropriate.
* Intern some more strings.Matthias Clasen2005-09-011-4/+5
| | | | | | | | | 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-3/+3
|
* 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.
* Add functions which look for text, image or uri targets in an array ofMatthias Clasen2005-08-301-43/+117
| | | | | | | | | 2005-08-30 Matthias Clasen <mclasen@redhat.com> * gtk/gtk.symbols: * gtk/gtkselection.h: * gtk/gtkselection.c: Add functions which look for text, image or uri targets in an array of atoms. (#314089, Mark Wielaard)
* Add gtk_window_[sg]et_deletable. AddMatthias Clasen2005-08-301-0/+47
| | | | | | | 2005-08-30 Matthias Clasen <mclasen@redhat.com> * gtk/gtk-sections.txt: Add gtk_window_[sg]et_deletable. Add gtk_selection_data_targets_include_uri.
* Don't leak the format names. (#307190, Morten Welinder)Matthias Clasen2005-06-121-2/+7
| | | | | | | 2005-06-12 Matthias Clasen <mclasen@redhat.com> * gtk/gtkselection.c (gtk_target_list_add_image_targets): Don't leak the format names. (#307190, Morten Welinder)
* use a less aggressive PNG compression level (bug #305340).Sven Neumann2005-05-261-4/+7
| | | | | | | 2005-05-26 Sven Neumann <sven@gimp.org> * gtk/gtkselection.c (gtk_selection_data_set_pixbuf): use a less aggressive PNG compression level (bug #305340).
* Make sure png comes first, otherwise dnd may use bmp by default, loosingMatthias Clasen2005-05-251-0/+15
| | | | | | | | 2005-05-25 Matthias Clasen <mclasen@redhat.com> * gtk/gtkselection.c (gtk_target_list_add_image_targets): Make sure png comes first, otherwise dnd may use bmp by default, loosing transparency.
* Fix the buildMatthias Clasen2005-05-021-1/+1
|
* Doc fixupsMatthias Clasen2005-05-021-6/+6
|
* New debugging function, to log a clipboard format name symbolically.Tor Lillqvist2005-04-041-0/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2005-04-04 Tor Lillqvist <tml@novell.com> * gdk/win32/gdkmain.c (_gdk_win32_cf_to_string): New debugging function, to log a clipboard format name symbolically. (_gdk_win32_data_to_string): Also new, to log random data bytes. Implement delayed rendering on Win32, specifically for transfering images through the clipboard from GTK+ apps to other apps (#168173, implementation by Ivan Wong): * gdk/win32/gdkevents-win32.c (gdk_event_translate): Handle WM_RENDERFORMAT. * gdk/win32/gdkprivate-win32.h * gdk/win32/gdkglobals-win32.c: Add _format_atom_table, _delayed_rendering_data and _image_bmp. * gdk/win32/gdkmain-win32.c: Initialize _image_bmp. * gdk/win32/gdkproperty-win32.c (gdk_property_change): Accept formats other than GDK_TARGET_STRING or _utf8_string, and assume they are handled through delayed rendering. * gdk/win32/gdkselection-win32.c (gdk_selection_convert): Return all available formats (including those registered by GTK+ apps) on request_targets. (gdk_selection_property_get): We should append a zero byte like X11 does. (gdk_win32_selection_add_targets): New function, for gtkselection's use. Win32 requires that the clipboard owner registers all valid formats even if the owner wants delayed rendering. (_gdk_win32_selection_convert_to_dib): New function. Convert images to DIB using gdk-pixbuf. * gdk/win32/gdkwin32.h: Declare gdk_win32_selection_add_targets(). * gtk/gtkselection.c (gtk_selection_add_target, gtk_selection_add_targets): Call gdk_win32_selection_add_targets() to register target formats. * gdk/gdk.symbols: Add gdk_win32_selection_add_targets().
* Move documentation inline, document if add_target functions append orMatthias Clasen2005-04-011-59/+135
| | | | | | | | 2005-04-01 Matthias Clasen <mclasen@redhat.com> * gtk/gtkselection.c: Move documentation inline, document if add_target functions append or prepend. (#172350, Jon-Kare Hellan)