1. 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.
      37a8ee6e
  2. 07 Feb, 2014 1 commit
  3. 21 Jan, 2014 1 commit
  4. 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.
      
      https://bugzilla.gnome.org/show_bug.cgi?id=705605
      030b62d1
  5. 25 Jun, 2013 1 commit
  6. 05 May, 2013 1 commit
  7. 28 Dec, 2012 1 commit
  8. 27 Feb, 2012 2 commits
  9. 03 May, 2011 1 commit
  10. 18 Apr, 2011 1 commit
  11. 26 Sep, 2010 2 commits
  12. 02 May, 2010 2 commits
  13. 30 Oct, 2008 2 commits
  14. 01 Jul, 2008 1 commit
  15. 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
      fce9c8b7
  16. 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
      2c5f8a5c
    • 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
      	headers.
      
      	* 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
      	above.
      
      
      svn path=/trunk/; revision=20221
      eff99c28
  17. 28 Apr, 2007 1 commit
  18. 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
  19. 18 May, 2005 1 commit
  20. 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
  21. 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_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
  22. 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
  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. 02 Mar, 2004 1 commit
  25. 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/gdk/tmpl/drawing.sgml
      	docs/reference/gdk/tmpl/gdk-unused.sgml
      	docs/reference/gdk/tmpl/gdkdisplay.sgml
      	docs/reference/gdk/tmpl/general.sgml
      	docs/reference/gdk/tmpl/input_devices.sgml
      	docs/reference/gdk/tmpl/selections.sgml
      	docs/reference/gtk/tmpl/gtkcellrenderer.sgml
      	docs/reference/gtk/tmpl/gtkcurve.sgml
      	docs/reference/gtk/tmpl/gtkdnd.sgml
      	docs/reference/gtk/tmpl/gtkitemfactory.sgml
      	docs/reference/gtk/tmpl/gtkmenu.sgml
      	docs/reference/gtk/tmpl/gtkoldeditable.sgml
      	docs/reference/gtk/tmpl/gtkoptionmenu.sgml
      	docs/reference/gtk/tmpl/gtkpreview.sgml
      	docs/reference/gtk/tmpl/gtkselection.sgml
      	docs/reference/gtk/tmpl/gtksocket.sgml
      	docs/reference/gtk/tmpl/gtkstyle.sgml
      	docs/reference/gtk/tmpl/gtktextbuffer.sgml
      	docs/reference/gtk/tmpl/gtktreemodel.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)
      b1165617
  26. 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.)
      1988e137
  27. 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
      	function
      
      	* gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_widget):
      	implement
      
      	* 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
      	rect
      	(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
      	function
      	(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
      e248e4e7
  28. 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.
      2a1e8b06
  29. 26 Jul, 2000 1 commit
  30. 24 Feb, 1999 1 commit
  31. 24 Dec, 1998 1 commit
    • Jeff Garzik's avatar
      removed unused var 64-bit cast point to const data Made const-correct. · 553fa430
      Jeff Garzik authored
              * gdk/gdkfont.c: removed unused var
              * gdk/gdkim.c: 64-bit cast
              * gtk/gtkaccelgroup.c: point to const data
              * gtk/gtkdnd.[ch]: (gtk_drag_dest_set, gtk_drag_source_set):
                Made const-correct.
              * gtk/gtkfontsel.c: kill uninitialized var warning
              * gtk/gtkselection.[ch]: (gtk_target_list_new,
                gtk_target_list_add_table, gtk_selection_add_targets):
                Made const-correct.
              * gtk/testgtk.c: 64-bit cast
      553fa430
  32. 11 Dec, 1998 1 commit
  33. 27 Nov, 1998 1 commit
    • Owen Taylor's avatar
      New function to get the source widget of a drag. · f26c189e
      Owen Taylor authored
      Fri Nov 27 12:17:15 1998  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkdnd.[ch] (gtk_drag_get_source_widget): New function to
      	get the source widget of a drag.
      
      	* gtk/gtkdnd.[ch]: Target flags GTK_TARGET_SAME_[WIDGET/APP]
      	to restrict certain targets to the same widget or to
      	the same application.
      
      	* gtk/testdnd.c: Test gtk_drag_get_source_widget().
      f26c189e
  34. 06 Nov, 1998 1 commit
  35. 20 Oct, 1998 1 commit