1. 27 Oct, 2005 1 commit
    • Matthias Clasen's avatar
      Only set the text if it is not NULL. (#319930, Thomas Klausner) · bc41f73c
      Matthias Clasen authored
      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)
      bc41f73c
  2. 28 Sep, 2005 1 commit
  3. 11 Sep, 2005 1 commit
  4. 01 Sep, 2005 1 commit
    • Matthias Clasen's avatar
      Intern some more strings. · 94eec042
      Matthias Clasen authored
      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().
      94eec042
  5. 31 Aug, 2005 2 commits
  6. 30 Aug, 2005 2 commits
  7. 12 Jun, 2005 1 commit
  8. 26 May, 2005 1 commit
  9. 25 May, 2005 1 commit
  10. 02 May, 2005 2 commits
  11. 04 Apr, 2005 1 commit
    • Tor Lillqvist's avatar
      New debugging function, to log a clipboard format name symbolically. · 0b2ac32c
      Tor Lillqvist authored
      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().
      0b2ac32c
  12. 01 Apr, 2005 1 commit
  13. 20 Mar, 2005 1 commit
    • Matthias Clasen's avatar
      Make PLT-reduction work with gcc4, and don't include everything in · cca8dd63
      Matthias Clasen authored
      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.
      cca8dd63
  14. 28 Dec, 2004 1 commit
    • Matthias Clasen's avatar
      Make the clipboard image API more robust (#162357, Torsten Schoenfeld): · 676322ac
      Matthias Clasen authored
      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.
      676322ac
  15. 16 Nov, 2004 1 commit
  16. 31 Oct, 2004 1 commit
    • Matthias Clasen's avatar
      Add api for image transfer via copy-and-paste (#156408) · 1c8e6a0e
      Matthias Clasen authored
      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().
      1c8e6a0e
  17. 28 Oct, 2004 1 commit
  18. 22 Oct, 2004 2 commits
    • Matthias Clasen's avatar
      Use the new file DND api. · a811584d
      Matthias Clasen authored
      2004-10-22  Matthias Clasen  <mclasen@redhat.com>
      
      	* gtk/gtkfilechooserbutton.c (gtk_file_chooser_button_drag_data_received)
      	(gtk_file_chooser_button_init): Use the new file DND api.
      
      	* gtk/gtkdnd.h:
      	* gtk/gtkdnd.c (gtk_drag_dest_add_uri_targets)
      	(gtk_drag_source_add_uri_targets):
      
      	* gtk/gtkselection.h:
      	* gtk/gtkselection.c (gtk_target_list_add_uri_targets):
      	(gtk_selection_data_set_uris):
      	(gtk_selection_data_get_uris): New functions to allow
      	handling file DND "without knowing jack shit".
      
      	* configure.in: Bump glib requirement to 2.5.4.
      
      	* gtk/gtkfilechooserdefault.c (shortcuts_drop_uris): Use
      	g_uri_list_extract_uris().
      a811584d
    • Matthias Clasen's avatar
      Document how to use info with text/image targets. · 81229a1b
      Matthias Clasen authored
      2004-10-22  Matthias Clasen  <mclasen@redhat.com>
      
      	* gtk/gtkdnd.c: Document how to use info with text/image
      	targets.
      
      	* gtk/gtkselection.h:
      	* gtk/gtkselection.c (gtk_target_list_add_text_targets):
      	(gtk_target_list_add_image_targets): Add info argument.
      
      	* gtk/gtkcalendar.c (gtk_calendar_motion_notify):
      	* gtk/gtkentry.c (gtk_entry_init):
      	* gtk/gtktextview.c (gtk_text_view_init): Adjust all callers.
      81229a1b
  19. 21 Oct, 2004 1 commit
    • Matthias Clasen's avatar
      Add convenience api for image dnd (#150165): · 968b192f
      Matthias Clasen authored
      2004-10-21  Matthias Clasen  <mclasen@redhat.com>
      
      	Add convenience api for image dnd (#150165):
      
      	* gtk/gtkselection.h:
      	* gtk/gtkselection.c (gtk_target_list_add_image_targets)
      	(gtk_selection_data_set_pixbuf, gtk_selection_data_get_pixbuf):
      	New functions to handle the image formats readable/writable
      	by gdk-pixbuf.
      
      	* gtk/gtkdnd.h:
      	* gtk/gtkdnd.c (gtk_drag_dest_add_image_targets)
      	(gtk_drag_source_add_text_targets): New functions to handle
      	the image formats readable/writable by gdk-pixbuf.
      968b192f
  20. 17 Sep, 2004 1 commit
  21. 26 Aug, 2004 1 commit
    • Manish Singh's avatar
      initialize path so we don't potentially use an undefined pointer. · 95674320
      Manish Singh authored
      Wed Aug 25 17:14:58 2004  Manish Singh  <yosh@gimp.org>
      
              * gtk/gtktreeview.c (gtk_tree_view_search_activate): initialize
              path so we don't potentially use an undefined pointer.
      
              * gtk/gtkfilechooserdefault.c (shortcuts_list_create): add G_CALLBACK
              cast for tree_view_keybinding_cb.
      
              * gtk/gtkfilechooserdefault.c (location_entry_create): cast to
              GTK_FILE_CHOOSER_ENTRY for _gtk_file_chooser_entry_set_file_part()
              calls.
      
              * gtk/gtkcellrenderercombo.c (gtk_cell_renderer_combo_start_editing):
              cast to GTK_COMBO_BOX for gtk_combo_box_set_active_iter() call.
      
              * gtk/gtkselection.c (selection_get_text_plain): make len a gsize,
              since that's what g_convert_with_fallback() expects.
      95674320
  22. 09 Aug, 2004 1 commit
    • Matthias Clasen's avatar
      Add hidden aliases for exported symbols which are used internally in order · 3612aee5
      Matthias Clasen authored
      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
      3612aee5
  23. 17 Jul, 2004 1 commit
    • Matthias Clasen's avatar
      Support text/plain selection target (#55117, Owen Taylor) · fb881018
      Matthias Clasen authored
      Sat Jul 17 00:48:27 2004  Matthias Clasen  <maclas@gmx.de>
      
      	Support text/plain selection target  (#55117, Owen Taylor)
      
      	* gtk/gtkselection.h:
      	* gtk/gtkdnd.h:
      	* gtk/gtkselection.c (gtk_target_list_add_text_targets):
      	* gtk/gtkdnd.c (gtk_drag_dest_add_text_targets):
      	* gtk/gtkdnd.c (gtk_drag_source_add_text_targets): New
      	functions to facilitate handling of text targets.
      
      	* gtk/gtkentry.c:
      	* gtk/gtktextview.c: Use the new text target handling
      	functions instead of hardwiring the list of supported
      	text targets everywhere.
      
      	* gtk/gtkselection.c (gtk_selection_data_get_text):
      	(gtk_selection_data_set_text):
      	Support the targets text/plain, text/plain?charset=utf-8
      	and text/plain?charset=<LOCALE-CHARSET> as outlined in
      	#55117:
      	For text/plain send only ASCII, but accept 8-bit text
      	and treat it as ISO-8859-1 as specified by the Xdnd spec.
      	Always send CRLF terminators. Accept either and convert
      	into the native terminator for the platform.
      fb881018
  24. 22 Jun, 2004 1 commit
  25. 02 Jun, 2004 1 commit
    • Matthias Clasen's avatar
      Remove leftover debug code. · 0f313841
      Matthias Clasen authored
      Wed Jun  2 00:47:11 2004  Matthias Clasen  <maclas@gmx.de>
      
      	* gtk/gtkselection.c (_gtk_selection_request): Remove leftover
      	debug code.
      0f313841
  26. 08 May, 2004 1 commit
    • Hans Breuer's avatar
      finally also create the correct mask for 'pseudo mime' icons · 805abff3
      Hans Breuer authored
      2004-05-08  Hans Breuer  <hans@breuer.org>
      
      	* gtk/gtkfilesystemwin32.c (extract_icon) : finally also
      	create the correct mask for 'pseudo mime' icons
      
      	* gdk/win32/gdkwindow-win32.c(show_window_internal) : also
      	take focus_on_map into account
      
      	* gtk/gtkselection.c : g_message() only with DEBUG_SELECTION
      
      	* gtk/gtkactiongroup.c gtk/gtkcombobox.c :
      	... must return a value
      
      	* gdk/gdk.def gtk/gtk.def demos/gtk-demo/makefile.msc.in : updated
      805abff3
  27. 04 May, 2004 1 commit
  28. 03 May, 2004 2 commits
    • Matthias Clasen's avatar
      Make the chunk size for incremental transfers depend on the maximal · 93fde873
      Matthias Clasen authored
      2004-05-03  Matthias Clasen  <mclasen@redhat.com>
      
      	* gtk/gtkselection.c: Make the chunk size for
      	incremental transfers depend on the maximal request
      	size, capped at 256k. This should allow most selections
      	to be transferred nonincrementally, avoiding many
      	roundtrips and protocol overhead.
      93fde873
    • Matthias Clasen's avatar
      u2004-05-03 Matthias Clasen <mclasen@redhat.com> · b59612e8
      Matthias Clasen authored
      	* gtk/gtkselection.c (_gtk_selection_request): Fix
      	a debug message to show correct information.
      	(_gtk_selection_incr_event): Make INCRemental transfer
      	of MULTIPLE targets work. This was broken since 1997!
      b59612e8
  29. 06 Mar, 2004 1 commit
  30. 25 Feb, 2004 1 commit
    • Owen Taylor's avatar
      Call g_convert(), not g_convert() with fallback, since Emacs is happier if · 6139c61d
      Owen Taylor authored
      Wed Feb 25 15:36:50 2004  Owen Taylor  <otaylor@redhat.com>
      
              * gdk/x11/gdkselection-x11.c (gdk_utf8_to_compound_text_for_display):
              Call g_convert(), not g_convert() with fallback, since Emacs is
              happier if we reject the COMPOUND_TEXT request and it can
              then ask for UTF-8. (#114527)
      
              * gtk/gtkselection.c (gtk_selection_data_set_text): When
              TEXT is requested, if COMPOUND_TEXT fails, fall back to STRING.
      6139c61d
  31. 12 Feb, 2004 1 commit
    • Manish Singh's avatar
      Assign xtype using gdk_x11_atom_to_xatom_for_display () when type != · 7cf055ef
      Manish Singh authored
      Thu Feb 12 11:05:16 2004  Manish Singh  <yosh@gimp.org>
      
              * gdk/x11/gdkproperty-x11.c (gdk_property_get): Assign xtype using
              gdk_x11_atom_to_xatom_for_display () when type != GDK_NONE.
      
              * gtk/gtkselection.c (_gtk_selection_request): Use GDK_NONE in
              gdk_property_get call instead of 0.
      
              * docs/reference/gdk/tmpl/properties.sgml: Document the above
              as GDK_NONE instead of simply 0.
      7cf055ef
  32. 29 Jan, 2004 1 commit
  33. 17 Dec, 2003 1 commit
    • Matthias Clasen's avatar
      Add missing GDK_THREADS_ENTER()/GDK_THREADS_LEAVE(). Cast second argument · 2a136e56
      Matthias Clasen authored
      Wed Dec 17 23:20:23 2003  Matthias Clasen  <maclas@gmx.de>
      
      	* gtk/gtkexpander.c (gtk_expander_animation_timeout): Add missing
      	GDK_THREADS_ENTER()/GDK_THREADS_LEAVE().
      	* gtk/gtkcalendar.c, gtk/gtkclist.c, gtk/gtkexpander.c,
      	gtk/gtklist.c, gtk/gtknotebook.c, gtk/gtkselection.c,
      	gtk/gtkspinbutton.c: Cast second argument to g_timeout_add() to
      	GSourceFunc instead of GtkFunction.  (#129525, Olexiy Avramchenko)
      2a136e56
  34. 20 May, 2003 1 commit
    • Owen Taylor's avatar
      Comprehensively zero all unused parts of client messages (Mainly Motif DND · ef605368
      Owen Taylor authored
      Tue May 20 15:09:29 2003  Owen Taylor  <otaylor@redhat.com>
      
              * gdk/x11/gdkdnd-x11.c gdk/x11/gdkwindow-x11.c: Comprehensively
              zero all unused parts of client messages (Mainly Motif DND
              and EWMH). Also, fix a couple places where we were putting
              contents into Motif DND messages that didn't belong.
              (#113361, EWMH problem reported by Lubos Lunak)
      
              * gtk/gtkselection.c (_gtk_selection_request): Handle the
              case where the property type for the multiple atoms is
              ATOM_PAIR by doing the conversions ourselve. This is
              needed for Xt inter-operation.
      ef605368
  35. 05 Feb, 2003 1 commit