1. 25 Mar, 2016 1 commit
  2. 25 Nov, 2015 1 commit
  3. 16 May, 2015 2 commits
  4. 30 Jan, 2015 1 commit
    • Matthias Clasen's avatar
      dnd: Allow programmatic drag cancellation · c160ba06
      Matthias Clasen authored
      Add a gtk_drag_cancel() function that can be used on the
      source side to cancel an ongoing drag operation. This can
      be useful, e.g. if the data that is being dragged becomes
  5. 12 Feb, 2014 1 commit
    • William Jon McCann's avatar
      docs: fully break lines in examples · 37a8ee6e
      William Jon McCann authored
      Try to do a better job of keeping example content
      from being too wide. It is often rendered as <pre>
      text so the only time we can wrap it is in the source.
      It is best to full break lines at all punctuation and
      to try to keep the width under 70 chars or so.
  6. 07 Feb, 2014 1 commit
  7. 21 Jan, 2014 1 commit
  8. 14 Aug, 2013 1 commit
    • Jasper St. Pierre's avatar
      gtkdnd: Introduce a new API for more accurate drag origin data · 030b62d1
      Jasper St. Pierre authored
      When trying to drag, we currently the position of the first motion
      event to determine where the drag came from. This might be alright
      in the case of the old animation, but the data will be inaccurate
      if the user has moved the pointer quite a bit since pressing the
      cursor to start dragging. While we could monkey patch the GdkEvent
      at the widget layer, this is unintuitive and strange.
      Add a new API that takes a set of pointer coordinates describing
      the origin of the drag. Additionally, adapt most widgets to use
      it and use it with correct coordinates.
  9. 25 Jun, 2013 1 commit
  10. 05 May, 2013 1 commit
  11. 28 Dec, 2012 1 commit
  12. 27 Feb, 2012 2 commits
  13. 03 May, 2011 1 commit
  14. 18 Apr, 2011 1 commit
  15. 26 Sep, 2010 2 commits
  16. 02 May, 2010 2 commits
  17. 30 Oct, 2008 2 commits
  18. 01 Jul, 2008 1 commit
  19. 30 Jun, 2008 1 commit
    • Cody Russell's avatar
      Practically everything changed. · fce9c8b7
      Cody Russell authored
      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
  20. 28 May, 2008 2 commits
    • Michael Natterer's avatar
      whitespace cleanup: remove trailing whitespace and excess newlines and · 2c5f8a5c
      Michael Natterer authored
      2008-05-28  Michael Natterer  <mitch@imendio.com>
      	* gtk/gtk*.h: whitespace cleanup: remove trailing whitespace and
      	excess newlines and sprinkled some newlines where needed. Zero
      	code or formatting changes included.
      svn path=/trunk/; revision=20225
    • Michael Natterer's avatar
      define __GTK_H_INSIDE__ around including all other headers. · eff99c28
      Michael Natterer authored
      2008-05-28  Michael Natterer  <mitch@imendio.com>
      	* gtk/gtk.h: define __GTK_H_INSIDE__ around including all other
      	* gtk/gtktypebuiltins.h.template
      	* gtk/gtkversion.h.in
      	* gtk/gtk*.h: add single-include guards that #error out if
      	GTK_DISABLE_SINGLE_INCLUDES is defined and any of these files is
      	included individually.
      	* gtk/gtkprintbackend.h
      	* gtk/gtkprinter-private.h
      	* gtk/gtktextlayout.h
      	* gtk/gtktexttagprivate.h
      	* gtk/gtktexttypes.h
      	* gtk/gtktreedatalist.h: include <gtk/gtk.h> instead of individual
      	headers in these private or semi-private headers.
      	* gtk/gtkimmodule.h: also here because it's not in gtk.h.
      	* gtk/gtkpagesetupunixdialog.h
      	* gtk/gtkprinter.h
      	* gtk/gtkprintjob.h
      	* gtk/gtkprintunixdialog.h: likewise in the gtkunixprint headers.
      	* gtk/gtkclist.h
      	* gtk/gtkcombo.h
      	* gtk/gtkctree.h
      	* gtk/gtkfilesel.h
      	* gtk/gtkitemfactory.h
      	* gtk/gtklist.h
      	* gtk/gtklistitem.h
      	* gtk/gtkoldeditable.h
      	* gtk/gtkoptionmenu.h
      	* gtk/gtkpixmap.h
      	* gtk/gtkpreview.h
      	* gtk/gtksignal.h
      	* gtk/gtktipsquery.h: whenever possible, include only <gtk/gtk.h>
      	instead of individual headers in these deprecated headers. They
      	don't get included at all when GTK_DISABLE_DEPRECATED is defined,
      	so if an app needs them anyway, it must undef GTK_DISABLE_DEPRECATED
      	and include them individually, which should continue to work.
      	* gtk/gtkclist.c: include "gtkctree.h" because of the change
      svn path=/trunk/; revision=20221
  21. 28 Apr, 2007 1 commit
  22. 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.
  23. 18 May, 2005 1 commit
  24. 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.
  25. 22 Oct, 2004 1 commit
    • 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/gtkselection.h:
      	* gtk/gtkselection.c (gtk_target_list_add_uri_targets):
      	(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
  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.
  27. 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):
      	Support the targets text/plain, text/plain?charset=utf-8
      	and text/plain?charset=<LOCALE-CHARSET> as outlined in
      	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.
  28. 02 Mar, 2004 1 commit
  29. 08 Nov, 2002 1 commit
    • Soeren Sandmann's avatar
      docs/reference/gdk/tmpl/dnd.sgml docs/reference/gdk/tmpl/drawing.sgml · b1165617
      Soeren Sandmann authored
      Fri Nov  8 20:14:52 2002  Soeren Sandmann  <sandmann@daimi.au.dk>
      	* docs/reference/gdk/tmpl/dnd.sgml
      	docs/reference/gtk/tmpl/gtkwidget.sgml gdk/gdk.h gdk/gdkdisplay.c
      	gdk/gdkdisplay.h gdk/gdkdnd.h gdk/gdkdraw.c gdk/gdkdrawable.h
      	gdk/gdkinput.h gdk/gdkselection.h gdk/x11/gdkdisplay-x11.c
      	gdk/x11/gdkdnd-x11.c gdk/x11/gdkselection-x11.c gtk/gtkcurve.h
      	gtk/gtkdnd.h gtk/gtkitemfactory.c gtk/gtkitemfactory.h
      	gtk/gtkmenu.h gtk/gtkoldeditable.c gtk/gtkoldeditable.h
      	gtk/gtkoptionmenu.h gtk/gtkplug.c gtk/gtkplug.h gtk/gtkpreview.h
      	gtk/gtkrange.h gtk/gtkselection.c gtk/gtkselection.h
      	gtk/gtksocket.c gtk/gtksocket.h gtk/gtkstyle.c gtk/gtkstyle.h
      	gtk/gtktextlayout.c gtk/gtktextlayout.h gtk/gtktreemodel.c
      	gtk/gtktreemodel.h gtk/gtkwidget.h
      	Trivial s/foo/foo_/ fixes to make gtk.h includable with -Wshadow
      	without warnings. (#91680)
  30. 25 Jun, 2001 1 commit
    • Owen Taylor's avatar
      Add a special size for drag-and-drop GTK_ICON_SIZE_DND (Default to 32x32) · 1988e137
      Owen Taylor authored
      Sun Jun 24 21:34:32 2001  Owen Taylor  <otaylor@redhat.com>
      	* gtk/gtkenums.h gtk/gtkiconfactory.c: Add a special size for
      	drag-and-drop GTK_ICON_SIZE_DND (Default to 32x32)
      	* gtk/gtkdnd.c (gtk_drag_dest_set_target_list): Fix problem
      	with un'reffing wrong list reported by Jeff Franks.
      	* gtk/gtkdnd.[ch] (_gtk_drag_{source,}dest_handle_event): _prefix.
      	* gtk/gtkdnd.c (gtk_drag_set_icon_default): Use GTK_STOCK_DND
      	for the default icon. Remove inline XPM.
      	* gtk/gtkstock.h gtk/gtkiconfactory.c:
      	Add GTK_STOCK_DND GTK_STOCK_DND_MULTIPLE (Currently, stock_new
      	is used for GTK_STOCK_DND, but it is a bit too small.)
      	* gtk/stock-icons/stock_dnd_multiple.png
      	gtk/stock-icons/Makefile.am: New stock icon moved from gnome-libs.
      	* gtk/gtkdnd.c (gtk_drag_source_event_cb): Only return
      	TRUE when starting a drag. In other cases, we are
      	just observing. (#52995)
      	* gtk/gtkdnd.[ch] (gtk_drag_set_icon_{stock,pixbuf}): Add
      	function to set the icon for a drag from a GdkPixbuf
      	or stock ID.
      	* gtk/gtkdnd.[ch] (gtk_drag_source_set_icon_{stock,pixbuf}):
      	Likewise, for drag sources.
      	* gtk/gtkdnd.h: Deprecate gtk_drag_set_default_icon.
      	(Now should be done using the stock system.)
  31. 19 Jan, 2001 1 commit
    • Havoc Pennington's avatar
      sync to tree changes · e248e4e7
      Havoc Pennington authored
      2001-01-19  Havoc Pennington  <hp@redhat.com>
      	* demos/gtk-demo/main.c (button_press_event_cb): sync to tree changes
      	* gtk/gtkrbtree.c (_gtk_rbtree_node_find_offset): fix this
      	* gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_widget):
      	* gtk/gtktreeview.c (gtk_tree_view_move_to): rename
      	scroll_to_cell, matches TextView scroll functions better
      	(gtk_tree_view_tree_to_widget_coords): new function
      	(gtk_tree_view_widget_to_tree_coords): new function
      	(gtk_tree_view_get_visible_rect): new function
      	(gtk_tree_view_get_path_at_pos): accept negative coordinates
      	(gtk_tree_view_draw_node_focus_rect): new function moved from
      	draw_focus, also, use width of bin_window as width of the focus
      	(gtk_tree_view_expand_row): fix bug where it didn't recognize
      	already-expanded rows
      	(gtk_tree_view_get_cell_rect): new function
      	(gtk_tree_view_get_path_at_pos): return the click position
      	relative to the passed-in cell
      	(gtk_tree_view_set_expander_column): new function
      	* configure.in: remove gtk-config-2.0 chmod
      	* gtk/gtktextview.c (gtk_text_view_drag_motion): small cleanups,
      	and properly handle drags with targets we don't understand
      	(gtk_text_view_drag_end): don't stop scrolling, the source isn't
      	scrolling anyway
      	(gtk_text_view_drag_drop): stop scrolling here though, and set the
      	mark invisible
      	* gtk/gtkdnd.c (gtk_drag_dest_find_target): export as a public
      	(gtk_drag_dest_get_target_list): new function
      	(gtk_drag_dest_set_target_list): new function
      	* gtk/gtktreeview.c: Add a bunch of drag-and-drop implementation
      	* gtk/gtktreeprivate.h (struct _GtkTreeViewPrivate): add fields
      	related to drag-and-drop
  32. 17 Jan, 2001 1 commit
    • Owen Taylor's avatar
      Remove unused variable. · 2a1e8b06
      Owen Taylor authored
      Tue Jan  9 11:20:48 2001  Owen Taylor  <otaylor@redhat.com>
      	* gdk/x11/gdkdnd-x11.c: Remove unused variable.
      	* gtk/gtkdnd.c: Encapsulate storing and retrieving info
      	structures in functions. Fixes bug where gtk_dataset_*
      	was accidentally still being used in one place, causing
              every dest side event to be treated independently.
      	* gtk/gtkdnd.c: Remove last vestages of handling
      	::draw (fixes warning)
      	* gtk/gtkentry.[ch]: Add drag and drop support.
      	* gtk/gtkdnd.[ch] gtk/gtktextview.c gtk/gtkentry.c: Add
      	new function gtk_check_drag_threshhold() for checking
      	to check if (dx,dy) has exceeded the threshhold for starting
      	a drag and use it everywhere.
  33. 26 Jul, 2000 1 commit
  34. 24 Feb, 1999 1 commit