1. 23 Mar, 2006 1 commit
  2. 22 Mar, 2006 1 commit
    • Matthias Clasen's avatar
      Improved DND support for GtkNotebook (#332991, Carlos Garnacho) · 411d798e
      Matthias Clasen authored
      2006-03-22  Matthias Clasen  <mclasen@redhat.com>
      
      	Improved DND support for GtkNotebook  (#332991, Carlos Garnacho)
      
      	* gtk/gtk.symbols:
      	* gtk/gtkdnd.h:
      	* gtk/gtkdnd.c: Add a track_motion flag on GtkDragDest
      	with getter and setter, for cases where the drag destination
      	is interested in drag motion events independent of targets.
      
      	* gtk/gtksettings.c (gtk_settings_class_init): Add a setting
      	for the timeout used when expanding during DND.
      
      	* gtk/gtknotebook.c: Use the track_motion flag to switch
      	notebook tabs when hovering over tabs during DND.
      411d798e
  3. 21 Mar, 2006 1 commit
  4. 07 Mar, 2006 1 commit
    • Federico Mena Quintero's avatar
      Cancel drags when the grabs get broken. Fixes bug #333056: · 712dc6b8
      Federico Mena Quintero authored
      2006-03-07  Federico Mena Quintero  <federico@novell.com>
      
      	Cancel drags when the grabs get broken.  Fixes bug #333056:
      
      	* gtk/gtkdnd.c (gtk_drag_selection_received): The time argument is
      	a guint, not guint32.
      	(gtk_drag_source_event_cb): Return gboolean, not gint.
      	(gtk_drag_anim_timeout): Likewise.
      	(gtk_drag_motion_cb): Likewise.
      	(gtk_drag_key_cb): Likewise.
      	(gtk_drag_button_release_cb): Likewise.
      	(gtk_drag_abort_timeout): Likewise.
      	(gtk_drag_begin_internal): Connect to "grab-broken-event" on the
      	ipc_widget.
      	(gtk_drag_source_info_destroy): Disconnect from the
      	"grab-broken-event" callback.
      	(gtk_drag_end): Likewise.
      	(gtk_drag_grab_broken_event_cb): New callback.  We cancel the drag
      	if the grab was broken and not regrabbed by the DnD code.
      
      2006-03-07  Federico Mena Quintero  <federico@novell.com>
      
      	* gtk/gtkfilechooserdefault.c (shortcuts_button_press_event_cb):
      	Hack to let the treeview's button-press-event handler run before
      	ours.  This lets the selection be updated before we pop up a
      	context menu.
      712dc6b8
  5. 27 Feb, 2006 2 commits
  6. 17 Feb, 2006 1 commit
    • Matthias Clasen's avatar
      DND keynav support: · 94cb364c
      Matthias Clasen authored
      2006-02-17  Matthias Clasen  <mclasen@redhat.com>
      
              DND keynav support:
      
              * gtk/gtkdnd.c (gtk_drag_update_idle): Protect against
              info->last_event being NULL.
              (gtk_drag_key_cb): Handle arrow keys to move the drag icon
              and space or enter to drop.
      94cb364c
  7. 03 Jan, 2006 3 commits
  8. 14 Dec, 2005 1 commit
  9. 28 Oct, 2005 1 commit
  10. 13 Sep, 2005 2 commits
  11. 11 Sep, 2005 1 commit
  12. 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
  13. 31 Aug, 2005 1 commit
  14. 01 Aug, 2005 1 commit
  15. 20 Jul, 2005 1 commit
  16. 08 Jul, 2005 1 commit
  17. 21 Jun, 2005 1 commit
  18. 16 Jun, 2005 2 commits
    • Manish Singh's avatar
      remove unused variable. · be53636e
      Manish Singh authored
      Thu Jun 16 15:33:42 2005  Manish Singh  <yosh@gimp.org>
      
              * gdk/x11/gdkcursor-x11.c (update_cursor): remove unused variable.
      
              * gdk/x11/gdkwindow-x11.c (_gdk_x11_window_get_cursor): use
              g_return_val_if_fail.
      
              * gtk/gtkdnd.c (gtk_drag_get_cursor): initialize hot_x and hot_y
              for all cases.
      
              * gtk/gtkfilechooserdefault.c (button_new): gtk_button_set_image
              takes a GtkWidget, not a GtkImage.
      be53636e
    • Matthias Clasen's avatar
      Update the RGBA cursor if an icon is set after the cursor has been · 17441e5e
      Matthias Clasen authored
      
      	* gtk/gtkdnd.c: Update the RGBA cursor if an
      	icon is set after the cursor has been constructed.
      	Also handle repeated setting of icons correctly.
      17441e5e
  19. 14 Jun, 2005 1 commit
    • Matthias Clasen's avatar
      Use named cursors for the DND cursors, the names are "dnd-none", · 920b5749
      Matthias Clasen authored
      2005-06-14  Matthias Clasen  <mclasen@redhat.com>
      
      	Use named cursors for the DND cursors, the names are "dnd-none",
      	"dnd-copy", "dnd-link", "dnd-move" and "dnd-ask". Also use an RGBA
      	cursor instead of cursor+window when possible. This saves
      	roundtrips during the drag operation, and makes translucent icons
      	possible.
      
      	* gtk/gtkdndcursors.h: New file, containing inlined pixbufs
      	for the default dnd cursors.
      
      	* gtk/gtkdnd.c (struct _GtkDragSourceInfo): Store the cursors
      	used during the drag here, also store the icon pixbuf here.
      
      	* gtk/gtkdnd.c (drag_cursors): Store the cursor names here. Also
      	switch the default cursors from xbm to inlined pixbufs.
      
      	* gtk/gtkdnd.c (gtk_drag_get_cursor): This function now takes the
      	GtkDragSourceInfo as well, since it has to composite the
      	drag-specific cursors. The cursors combined from the image of
      	the themed cursor and the icon_pixbuf stored in the info.
      
      	* gtk/gtkdnd.c (gtk_drag_begin_internal): Don't set the default
      	icon if there is an icon_pixbuf, which will be composited into
      	the cursor later.
      
      	* gtk/gtkdnd.c (set_icon_stock_pixbuf): If appropriate, store
      	the pixbuf in the info struct for later compositing into the
      	cursor instead of creating an icon window.
      
      	* gtk/gtkdnd.c (gtk_drag_drop_finished): If we used an
      	RGBA cursor for the drag, and need to display the cancel
      	animation, construct the icon window here.
      
      	* gtk/gtkdnd.c (gtk_drag_source_info_destroy): Unref the
      	drag-specific cursors and the icon_pixbuf when done with
      	the drag.
      920b5749
  20. 18 May, 2005 1 commit
  21. 11 May, 2005 1 commit
    • Owen Taylor's avatar
      Use a GtkAlignment rather than a GtkDrawingArea to draw the swatch in to · dda40ca7
      Owen Taylor authored
      2005-05-11  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkcolorbutton.c: Use a GtkAlignment rather than a GtkDrawingArea
      	to draw the swatch in to avoid having an extraneous window.
      
      	* gtk/gtkcolorsel.c (color_sample_draw_sample): Actually se tthe
      	color when !has_opacity.
      
      2005-05-10  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/gdkcairo.[ch] gdk/gdkcolor.[ch] gdk/Makefile.am: Add source
      	files for Cairo convenience functionality.
      
      	* gdk/gdkcairo.h (gdk_cairo_rectangle, gdk_cairo_region): Add a
      	convenience functions to add GdkRectangle, GdkRegion to a cairo path.
      
      	* gdk/gdkwindow.c gdk/gdkgc.c gtk/gtkcolorsel.c gtk/gtkiconview.c
      	gtk/gtkstyle.c: Use gdk_cairo_rectangle/region().
      
      	* gdk/gdkcairo.[ch] gdk/gdkdrawable.h gdk/gdkdraw.c: Rename
      	gdk_drawable_create_cairo_context() to gdk_cairo_create().
      
      	* gdk/gdkcairo.c gdk/gdkpixbuf.h gdk/gdkpixbuf-render.c:
      	Rename gdk_pixbuf_set_as_cairo_source() to
      	gdk_cairo_set_source_pixbuf().
      
      	* gdk/gdkdraw.c gdk/gdkpango.c gtk/gtkcolorsel.c gtk/gtkhruler.c
      	gtk/gtkhsv.c gtk/gtkiconview.c gtk/gtkstyle.c gtk/gtkvruler.c:
      	Adjust for renames.
      
      	* gdk/gdk.symbols: Update.
      
      	* gtk/gtkwidget.c (gtk_widget_queue_shallow_draw): Fix
      	coordinate system problem that was causing the wrong portions
      	to be invalidated.
      
      	* gtk/gtkcellrenderer.c (gtk_cell_renderer_render)
      	gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render)
      	gtk/gtkcellrendererprogress.c (gtk_cell_renderer_progress_render)
      	gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render)
      	gtk/gtkcellview.c (gtk_cell_view_expose)
      	gtk/gtkdnd.c (gtk_drag_highlight_expose)
      	gtk/gtkentry.c (gtk_entry_draw_text)
      	gtk/gtktextview.c (text_window_invalidate_rect): Some cairoization.
      
      	* gtk/gtkcalendar.[ch]: Beat into something roughly resembling
      	GTK+ style ... use instance-private data and standard names for
      	private structure, etc. Move function docs inline.
      
      	* gtk/gtkcalendar.[ch]: Switch to drawing everything in
      	expose. Switch drawing to Cairo.
      
      	* gtk/gtkcalendar.c (gtk_calendar_freeze): Deprecate
      	gtk_calendar_freeze/thaw
      dda40ca7
  22. 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
  23. 01 Feb, 2005 1 commit
  24. 28 Oct, 2004 1 commit
  25. 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
  26. 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
  27. 09 Aug, 2004 2 commits
    • 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
    • Matthias Clasen's avatar
      Ref and sink the column. (gtk_combo_box_menu_destroy): Unref the column. · 0c42eed2
      Matthias Clasen authored
      Sun Aug  8 23:36:55 2004  Matthias Clasen  <maclas@gmx.de>
      
      	* gtk/gtkcombobox.c (gtk_combo_box_menu_setup): Ref
      	and sink the column.
      	(gtk_combo_box_menu_destroy): Unref the column.
      
      Sun Aug  8 23:35:00 2004  Matthias Clasen  <maclas@gmx.de>
      
      	* gtk/gtkdnd.c (gtk_drag_source_add_text_targets):
      	(gtk_drag_dest_add_text_targets): Don't leak a reference
      	to the target list.
      0c42eed2
  28. 08 Aug, 2004 1 commit
    • Hans Breuer's avatar
      take targets into account again to allow dnd of other things than text · 79477664
      Hans Breuer authored
      2004-08-07  Hans Breuer  <hans@breuer.org>
      
      	* gtk/gtkdnd.c (gtk_drag_dest_set) : take targets into
      	account again to allow dnd of other things than text
      
      	* gdk/win32/gdkselection-win32.c : offer windows bitmap to
      	be pasted from clipboard (makes The GIMP 2.1's
      	"File/Acquire/Paste as New" work, only using gtk+ API)
      79477664
  29. 06 Aug, 2004 1 commit
    • Matthias Clasen's avatar
      Really fix the initialization of the target list. · 39469f8f
      Matthias Clasen authored
      2004-08-06  Matthias Clasen  <mclasen@redhat.com>
      
      	* gtk/gtkdnd.c (gtk_drag_dest_set, gtk_drag_source_set): Really
      	fix the initialization of the target list.
      
      	Support XDND v5. (#10220, Owen Taylor)
      
      	* gdk/x11/gdkdnd-x11.c: Record the XDND version and whether the
      	drop was successful in the GdkDragContextPrivateX11 struct.
      	(xdnd_finished_filter): Store the success status of the drop
      	for an XDND version 5 interaction. For other versions, always
      	assume the drop was successful.
      	(xdnd_check_dest): Return the protocol version.
      	(_gdk_drag_get_protocol_for_display): Return the protocol version.
      	(gdk_drag_find_window_for_screen): Store the used protocol version
      	in the GdkDragContext.
      	(xdnd_send_enter): Send the used protocol version from the context,
      	instead of hardwiring 3.
      	(xdnd_enter_filter): Accept protocol versions >= 3 and store the
      	used protocol version in the context.
      
      	* gdk/gdkdnd.h:
      	* gdk/x11/gdkdnd-x11.c (gdk_drag_drop_succeeded): New function
      	to find out whether a drop was successful.
      39469f8f
  30. 23 Jul, 2004 1 commit
    • Matthias Clasen's avatar
      Create the change to initialize target_list to an empty list instead of · d0a5b4e0
      Matthias Clasen authored
      Fri Jul 23 13:04:10 2004  Matthias Clasen  <maclas@gmx.de>
      
      	* gtk/gtkdnd.c (gtk_drag_dest_set): Create the change to
      	initialize target_list to an empty list instead of NULL,
      	since it broke tree dnd.  (#148215, Ernst Persson)
      
      	* gtk/gtkdnd.c (gtk_drag_dest_add_text_targets):
      	* gtk/gtkdnd.c (gtk_drag_source_add_text_targets): Instead
      	handle target list being NULL here.
      d0a5b4e0
  31. 18 Jul, 2004 1 commit
    • Soeren Sandmann's avatar
      Create an empty target list if targets is NULL. · 19523008
      Soeren Sandmann authored
      Sun Jul 18 15:28:24 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
      
      	* gtk/gtkdnd.c (gtk_drag_source_set, gtk_drag_dest_set): Create an
      	empty target list if targets is NULL.
      
      	* configure.in: Add check for X11/extensions/sync.h. (#147416,
      	Morten Welinder)
      19523008
  32. 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
  33. 13 Mar, 2004 1 commit
    • Owen Taylor's avatar
      For GTK_IS_PLUG toplevels, call gdk_window_get_origin() not · fadaa651
      Owen Taylor authored
      Sat Mar 13 10:49:46 2004  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtkdnd.c (_gtk_drag_dest_handle_event): For
              GTK_IS_PLUG toplevels, call gdk_window_get_origin()
              not gtk_window_get_position, as a hackround for not
              having accurate notification of window position for
              embedded windows. (#136112, Dan Winship)
      fadaa651