1. 23 Jun, 2008 1 commit
    • Michael Natterer's avatar
      gtk/gtkaction.h gtk/gtkbuildable.h gtk/gtkbuilderprivate.h · 77e99003
      Michael Natterer authored
      2008-06-23  Michael Natterer  <mitch@imendio.com>
      
      	* gtk/gtkaction.h
      	* gtk/gtkbuildable.h
      	* gtk/gtkbuilderprivate.h
      	* gtk/gtkcelllayout.h
      	* gtk/gtkentrycompletion.h
      	* gtk/gtkfilechoosersettings.h
      	* gtk/gtkfilesystem.h
      	* gtk/gtkfilesystemmodel.h
      	* gtk/gtkicontheme.h
      	* gtk/gtklinkbutton.h
      	* gtk/gtkpagesetup.h
      	* gtk/gtkpapersize.h
      	* gtk/gtkprintcontext.h
      	* gtk/gtkprintoperation.h
      	* gtk/gtkprintoperationpreview.h
      	* gtk/gtkprintsettings.h
      	* gtk/gtkrecentchooserprivate.h
      	* gtk/gtkrecentmanager.h
      	* gtk/gtksearchengine.h
      	* gtk/gtktexttag.h
      	* gtk/gtktreeselection.h
      	* gtk/gtktreeviewcolumn.h
      	* gtk/gtkuimanager.h: remove redundant inclusion of <glib.h> and
      	<glib-object.h>. There is no point in relying on them being pulled
      	in by other headers in some places and placing them explicitly in
      	other places, so choose the "as little includes as possible"
      	approach and get rid of them.
      
      
      svn path=/trunk/; revision=20675
      77e99003
  2. 20 Jun, 2008 3 commits
  3. 18 Jun, 2008 1 commit
    • Michael Natterer's avatar
      deprecate GtkDestroyNotify. · fe8a946e
      Michael Natterer authored
      2008-06-18  Michael Natterer  <mitch@imendio.com>
      
      	* gtk/gtktypeutils.h: deprecate GtkDestroyNotify.
      
      	* gtk/gtkactiongroup.[ch]
      	* gtk/gtkcombobox.[ch]
      	* gtk/gtkcontainer.[ch]
      	* gtk/gtkliststore.[ch]
      	* gtk/gtkmain.[ch]
      	* gtk/gtkmenu.c
      	* gtk/gtkstock.[ch]
      	* gtk/gtktreedatalist.[ch]
      	* gtk/gtktreemodelfilter.[ch]
      	* gtk/gtktreemodelsort.[ch]
      	* gtk/gtktreeprivate.h
      	* gtk/gtktreeselection.[ch]
      	* gtk/gtktreesortable.[ch]
      	* gtk/gtktreestore.[ch]
      	* gtk/gtktreeview.[ch]
      	* gtk/gtktreeviewcolumn.[ch]: s/GtkDestroyNotify/GDestroyNotify/g.
      
      
      svn path=/trunk/; revision=20448
      fe8a946e
  4. 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
  5. 21 Jun, 2005 1 commit
  6. 23 Nov, 2004 1 commit
    • Matthias Clasen's avatar
      Mark as const. · b69987f2
      Matthias Clasen authored
      2004-11-23  Matthias Clasen  <mclasen@redhat.com>
      
      	* gtk/gtkuimanager.h (gtk_ui_manager_get_type):
      	* gtk/gtktreeview.h (gtk_tree_view_get_type):
      	* gtk/gtktreeviewcolumn.h (gtk_tree_view_column_get_type):
      	* gtk/gtktreestore.h (gtk_tree_store_get_type):
      	* gtk/gtktreeselection.h (gtk_tree_selection_get_type):
      	* gtk/gtktreemodelfilter.h (gtk_tree_model_filter_get_type):
      	* gtk/gtktreemodel.h (gtk_tree_iter_get_type):
      	(gtk_tree_path_get_type):
      	(gtk_tree_row_reference_get_type):
      	* gtk/gtktoolitem.h (gtk_tool_item_get_type):
      	* gtk/gtktoolbutton.h (gtk_tool_button_get_type):
      	* gtk/gtktoggleaction.h (gtk_toggle_action_get_type):
      	* gtk/gtkthemes.h (gtk_theme_engine_get_type):
      	* gtk/gtktextiter.h (gtk_text_iter_get_type):
      	* gtk/gtksettings.h (gtk_settings_get_type):
      	* gtk/gtkselection.h (gtk_selection_data_get_type):
      	* gtk/gtkradioaction.h (gtk_radio_action_get_type):
      	* gtk/gtkmenutoolbutton.h (gtk_menu_tool_button_get_type):
      	* gtk/gtkliststore.h (gtk_list_store_get_type):
      	* gtk/gtkiconview.h (gtk_icon_view_get_type):
      	* gtk/gtkicontheme.h (gtk_icon_info_get_type):
      	* gtk/gtkiconfactory.h (gtk_icon_factory_get_type):
      	(gtk_icon_set_get_type):
      	(gtk_icon_source_get_type):
      	* gtk/gtkfilesystemwin32.h (gtk_file_system_win32_get_type):
      	* gtk/gtkfilesystemunix.h (gtk_file_system_unix_get_type):
      	* gtk/gtkfilesystem.h (gtk_file_folder_get_type):
      	(gtk_file_info_get_type, gtk_file_path_get_type):
      	(gtk_file_system_get_type):
      	* gtk/gtkfilefilter.h (gtk_file_filter_get_type):
      	* gtk/gtkfilechooserwidget.h (gtk_file_chooser_widget_get_type):
      	* gtk/gtkfilechooser.h (gtk_file_chooser_get_type):
      	* gtk/gtkfilechooserdialog.h (gtk_file_chooser_dialog_get_type):
      	* gtk/gtkexpander.h (gtk_expander_get_type):
      	* gtk/gtkentrycompletion.h (gtk_entry_completion_get_type):
      	* gtk/gtkcombobox.h (gtk_combo_box_get_type):
      	* gtk/gtkcomboboxentry.h (gtk_combo_box_entry_get_type):
      	* gtk/gtkclipboard.h (gtk_clipboard_get_type):
      	* gtk/gtkcellview.h (gtk_cell_view_get_type):
      	* gtk/gtkcellrenderertoggle.h (gtk_cell_renderer_toggle_get_type):
      	* gtk/gtkcellrenderertext.h (gtk_cell_renderer_text_get_type):
      	* gtk/gtkcellrendererprogress.h (gtk_cell_renderer_progress_get_type):
      	* gtk/gtkcellrendererpixbuf.h (gtk_cell_renderer_pixbuf_get_type):
      	* gtk/gtkcellrenderercombo.h (gtk_cell_renderer_combo_get_type):
      	* gtk/gtkcelllayout.h (gtk_cell_layout_get_type):
      	* gtk/gtkactiongroup.h (gtk_action_group_get_type):
      	* gtk/gtkaction.h (gtk_action_get_type):
      	* gtk/gtkaccessible.h (gtk_accessible_get_type):
      	* gtk/gtkaccelmap.h (gtk_accel_map_get_type):
      	* gtk/gtkaccelgroup.h (gtk_accel_group_get_type):
      	* gtk/gtkmessagedialog.h (gtk_message_dialog_get_type): Mark as const.
      
      	* gtk/gtkicontheme.h:  Don't mark gtk_icon_theme_error_quark()
      	as const, to be consistent with all the other error_quark
      	functions. (technically they are const, but since these are
      	called only in error paths, giving the compiler better
      	optimization opportunities doesn't matter much)
      
      	* gtk/gtk.symbols:
      	* gdk/gdk.symbols: Add attribute annotations.
      
      	* gtk/makegtkalias.pl:
      	* gdk/makegdkalias.pl: Keep attribute annotations, but strip PRIVATE.
      
      	* gtk/Makefile.am (gtk.def):
      	* gdk/Makefile.am (gdk.def): Strip attribute annotations, but keep
      	PRIVATE.
      b69987f2
  7. 07 Oct, 2002 1 commit
    • Manish Singh's avatar
      Deprecation cleanup · 55704fc7
      Manish Singh authored
      Mon Oct  7 11:59:33 2002  Manish Singh  <yosh@gimp.org>
      
              * gtk/gtkliststore.[ch] gtk/gtktreedatalist.[ch] gtk/gtktreednd.c
              gtk/gtktreemodel.[ch] gtk/gtktreemodelsort.[ch]
              gtk/gtktreeselection.[ch] gtk/gtktreesortable.[ch]
              gtk/gtktreestore.[ch]: Deprecation cleanup
      55704fc7
  8. 05 Jun, 2002 1 commit
    • Kristian Rietveld's avatar
      Related bugs: #76252, #76396, #80866. · 1df47f17
      Kristian Rietveld authored
      Wed Jun  5 23:29:41 2002  Kristian Rietveld  <kris@gtk.org>
      
              Related bugs: #76252, #76396, #80866.
      
              * gtk/gtktreeselection.[ch]: added
              gtk_tree_selection_get_selected_rows(),
              added gtk_tree_selection_count_selected_rows(),
              renamed gtk_tree_selection_real_select_range() to
              gtk_tree_selection_real_modify_range(), and added mode parameter,
              added gtk_tree_selection_unselect_range().
      1df47f17
  9. 23 Feb, 2002 1 commit
    • Owen Taylor's avatar
      Massive padding addition to class structures. · e5d1ea8c
      Owen Taylor authored
      Sat Feb 23 11:54:12 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/*.h gdk/*.h: Massive padding addition to class structures.
      
              * gtk/gtktextmark.h: Fix a FIXME about G_CONST_RETURN.
      e5d1ea8c
  10. 12 Dec, 2001 1 commit
  11. 10 Oct, 2001 1 commit
  12. 08 Oct, 2001 1 commit
    • Havoc Pennington's avatar
      remove unused enum · d85ec9a0
      Havoc Pennington authored
      2001-10-08  Havoc Pennington  <hp@pobox.com>
      
      	* demos/gtk-demo/stock_browser.c: remove unused enum
      
      	* gtk/gtktreeselection.c (gtk_tree_selection_real_select_node):
      	pass the current selection state of the node in to the user
      	selection func
      d85ec9a0
  13. 27 Aug, 2001 1 commit
  14. 19 Aug, 2001 1 commit
    • Jonathan Blandford's avatar
      Fix up warnings, #58928. · 9b14c046
      Jonathan Blandford authored
      Sun Aug 19 03:22:59 2001  Jonathan Blandford  <jrb@redhat.com>
      
      	* gtk/gtkliststore.c: Fix up warnings, #58928.
      
      	* gtk/gtktreeselection.h: Change signal prototype, #58647
      
      	* gtk/gtktreeview.c (_gdk_tree_view_find_node): Make more robust,
      	#59221.
      
      	* gtk/gtkstyle.c: Actually prelight arrow, #50981
      9b14c046
  15. 29 Jun, 2001 1 commit
  16. 24 Jun, 2001 1 commit
    • Owen Taylor's avatar
      Fix stupid error introduced last night that was making things decidedly · cc223eef
      Owen Taylor authored
      Sun Jun 24 11:29:35 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/x11/gdkimage-x11.c (gdk_image_new): Fix stupid error
      	introduced last night that was making things decidedly not work.
      
      	* gtk/*.[ch]: Patch from Kristian Rietveld adding 80 getters
      	so that we have getter/setter pairing everywhere it makes
      	sense. (#55767)
      
      	* gtk/gtkradiobutton.[ch] gtk/gtktoolbar.c tests/testgtk.:
      	Rename gtk_radio_button_group to gtk_radio_button_get_group, add a
      	deprecated compat macro. (#55516)
      
      	* gtk/gtklabel.[ch]: Add functions
      	gtk_label_set/get_use_underline(), gtk_label_set/get_use_markup(),
      	gtk_label_set_label(), which mirror the property API for GtkLabel.
      	Make gtk_label_get_attributes() only reflect the attributes
      	set by gtk_label_set_attributes.
      
      	* gtk/gtknotebook.c (gtk_notebook_set_current_page) gtk/gtkcompat.h: Rename
      	from gtk_notebook_set_page().
      cc223eef
  17. 07 Jun, 2001 1 commit
    • Jonathan Blandford's avatar
      Now it's a GObject instead of a GtkObject. The · 59444d85
      Jonathan Blandford authored
      Thu Jun  7 18:25:42 2001  Jonathan Blandford  <jrb@redhat.com>
      
      	* gtk/gtktreeselection.c: Now it's a GObject instead of a
      	GtkObject.  The GtkTreeSelection::selection_changed signal is now
      	the GtkTreeSelection::changed signal.
      
      	* gtk/gtktreeview.c: Modified to deal with new GtkTreeSelection
      	object.
      
      	* tests/gtktree*.c: Modified to deal with new GtkTreeSelection
      	object.
      59444d85
  18. 22 May, 2001 1 commit
  19. 07 Mar, 2001 1 commit
    • Tim Janik's avatar
      marshaller fixes. · 35af5c4e
      Tim Janik authored
      Wed Mar  7 13:24:57 2001  Tim Janik  <timj@gtk.org>
      
              * gtk/*.c: marshaller fixes.
      
              * gtk/gtkmarshal.list: extreme cleanup.
      
              * gtk/gtktreeview.c (gtk_tree_view_class_init): disable interface
              param spec for now.
      
              * gtk/gtktexttag.c (gtk_text_tag_set_property): use g_value_get_boxed()
              where appliable.
      
              * gtk/gtktypeutils.[hc]: updates to GLib API changes.
              special cased autogenerated boxed types from gtktypebuiltins_ids.c
              which are not reference counted:
              GtkSelectionData, GdkEvent, GdkColor, GtkTextIter, PangoTabArray,
              PangoFontDescription, GtkTreeIter and GtkTreePath.
      
      Thu Mar  1 03:58:56 2001  Tim Janik  <timj@gtk.org>
      
              * gtk/gtktreeselection.h:
              * gtk/gtktreemodel.c:
              * gtk/gtktreedatalist.[hc]: fixed includes. no gobject/*
              file should be included directly, and gobject/gmarshal.h
              as well as gtk/gtkmarshal.h even can't be included directly.
      
              * Makefile.am: grr, install gtk-config-2.0.
      
              * gtk/testgtk.c:
              * gtk/simple.c:
              * gtk/gtkmenu.c:
              * gtk/gtkitemfactory.c: use g_object_connect() instead of
              passing "*signal*::*" args to gtk_widget_set().
      
              * gtk/gtktypeutils.[hc]: got rid of GTK_TYPE_SIGNAL.
      
              * gtk/*.c: removed trailer arg from property setters and getters.
              macro fixups.
      
      Thu Mar  1 04:01:57 2001  Tim Janik  <timj@gtk.org>
      
              * test-gdk-pixbuf.c: fixed includes.
      35af5c4e
  20. 28 Feb, 2001 1 commit
    • Jonathan Blandford's avatar
      Proxy out to _gtk_tree_row_reference_deleted. (inserted_callback): Proxy · c82dc58f
      Jonathan Blandford authored
      Tue Feb 27 19:32:53 2001  Jonathan Blandford  <jrb@redhat.com>
      
      	* gtk/gtktreemodel.c (deleted_callback): Proxy out to
      	_gtk_tree_row_reference_deleted.
      	(inserted_callback): Proxy out to
      	_gtk_tree_row_reference_inserted.
      	(_gtk_tree_row_reference_new_from_view): Somewhat yukky hack to
      	get around signal emission ordering problem.
      
      	* gtk/gtktreeselection.c (gtk_tree_selection_real_unselect_all):
      	fix to work with SINGLE
      	(_gtk_tree_selection_internal_select_node): Major sanitization on
      	selections.  SINGLE now seems to work.
      
      	* tests/Makefile.am: add testtreecolumn.c:
      
      	* tests/testtreecolumn.c: New test.  Mostly points out selection
      	bugs currently, but will test columns later.
      
      	* gtk/gtkrbtree.c (_gtk_rbtree_remove_node): Fix really nasty
      	selection bug.  I hate touching this code -- it's scary.
      c82dc58f
  21. 04 Jan, 2001 2 commits
    • Havoc Pennington's avatar
      add this · ae89b1e1
      Havoc Pennington authored
      2001-01-04  Havoc Pennington  <hp@redhat.com>
      
      	* gtk/gtktreeselection.c (gtk_tree_selection_get_tree_view): add
      	this
      
      	* gtk/gtktreemodel.h (struct _GtkTreeIter): rename fields to
      	user_data instead of tree_node
      
      	* gtk/gtktreeprivate.h (TREE_VIEW_COLUMN_WIDTH): rename from
      	TREE_VIEW_COLUMN_SIZE
      
      	* gtk/gtktreeviewcolumn.h (struct _GtkTreeViewColumn): rename
      	"size" field to "width" finishes bug 40061
      
      	* gtk/gtkcellrenderer.h: Use GtkCellRendererState instead of guint
      	for bitfields, bug 40268
      ae89b1e1
    • Havoc Pennington's avatar
      Rename some stuff: · c020b3b4
      Havoc Pennington authored
      2001-01-04  Havoc Pennington  <hp@redhat.com>
      
              Rename some stuff:
      
      	s/gtk_tree_view_column_set_size/gtk_tree_view_column_set_width/g;
      
      	s/GtkModelSimple/GtkTreeModelSimple/g;
      	s/GTK_MODEL_SIMPLE/GTK_TREE_MODEL_SIMPLE/g;
      	s/gtk_model_simple/gtk_tree_model_simple/g;
      	s/gtkmodelsimple/gtktreemodelsimple/g;
      
      	s/gtk_tree_view_column_set_header_active/gtk_tree_view_column_set_header_clickable/g;
      
      	s/GtkTreeViewColumnType/GtkTreeViewColumnSizing/g;
      	s/column_set_col_type/column_set_sizing/g;
      
      	s/GtkTreeSelectionType/GtkTreeSelectionMode/g;
      	s/gtk_tree_selection_set_type/gtk_tree_selection_set_mode/g;
      
      	s/GtkCellRendererType/GtkCellRendererState/g;
      
      	* gtk/gtkcellrenderertoggle.c: remove _ macro, include gtkintl.h
      	(gtk_cell_renderer_toggle_class_init): change "state" property to
      	"active", to match GtkToggleButton
      	(gtk_cell_renderer_toggle_get_active): new function, bug
      	40269
      	(gtk_cell_renderer_toggle_set_active): new function
      	(gtk_cell_renderer_toggle_set_property): route changes to toggle
      	state through gtk_cell_renderer_set_active
      c020b3b4
  22. 01 Jan, 2001 1 commit
    • Havoc Pennington's avatar
      Adapt to GtkTreeSelection changes · 66f87948
      Havoc Pennington authored
      2001-01-01  Havoc Pennington  <hp@redhat.com>
      
      	* gtk/gtktreeview.c: Adapt to GtkTreeSelection changes
      
      	* gtk/gtktreeselection.c (_gtk_tree_selection_set_tree_view):
      	don't fill in tree_view->priv->selection, kind of an unexpected
      	side effect
      
      	* gtk/gtkcellrenderertext.c: Remove definition of _ and include
      	gtkintl.h
      
      	* gtk/gtkcellrenderer.c: Remove definition of _ and include
      	gtkintl.h
      	(gtk_cell_renderer_get_property): remove calls to g_value_init
      
      	* gtk/gtkcellrendererpixbuf.c: Remove definition of _ and include
      	gtkintl.h
      
      	* gtk/gtkcellrenderertextpixbuf.c: Remove definition of _ macro
      	and include gtkintl.h
      	(gtk_cell_renderer_text_pixbuf_class_init): remove spaces from
      	property names
      
      	* gtk/gtktreeselection.c (_gtk_tree_selection_new): rename, return
      	GtkTreeSelection
      	(_gtk_tree_selection_new_from_with_view): rename, return
      	GtkTreeSelection
      	(_gtk_tree_selection_set_tree_view): rename with uscore
      	(gtk_tree_selection_get_selected): fill in the "model" out param
      	first, so it gets filled in even if we return at the top of the
      	function
      	(gtk_tree_selection_real_select_all): add a comment and an else{}
      	to clarify this a bit
      	(gtk_tree_selection_real_unselect_all): add the same else{}
      
      	* gtk/gtktreeselection.h: Rename new, new_with_tree_view, and
      	set_tree_view to have underscore prefixes, move them to the
      	private header, fix return type of new_with_tree_view
      	(struct _GtkTreeSelection): mark struct
      	fields private
      
      	* gtk/gtktreemodel.c (gtk_tree_model_get_flags): return
      	GtkTreeModelFlags, not a guint
      	(gtk_tree_path_prev): return gboolean not gint
      	(gtk_tree_path_up): return gboolean not gint
      
      	* gtk/gtktreemodel.h (struct _GtkTreeModelIface): make get_flags
      	return GtkTreeModelFlags, not a guint
      
      	* gtk/gtktreemodelsort.c (gtk_tree_model_sort_finalize): check
      	that child model is non-null before unrefing it
      	(g_value_int_compare_func): make this a qsort compare func, not
      	a boolean predicate
      
      	* gtk/gtktreemodelsort.h: rename gtk_tree_model_set_sort_column,
      	(add -umn to the end), and mark it unimplemented
      	(gtk_tree_model_sort_resort): remove, this wasn't implemented, and
      	I don't see what it's for - doesn't the model always sort itself?
      	(gtk_tree_model_sort_set_compare): this had the wrong signature
      
      	* gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_attributes):
      	Fix the docs to say that it destructively replaces existing
      	attributes (previously said that it added attributes).
      	(gtk_tree_view_column_set_visible): canonicalize bool before
      	equality testing. Also, check for realization before
      	hiding/showing the tree_column->window; if this window could exist
      	before realization, then it's busted and needs fixing, we can't
      	create GDK resources pre-realization. Also, remove
      	superfluous queue_resize(), since set_size() does that for us.
      	(gtk_tree_view_column_set_col_type): check realization before
      	using tree_column->window
      
      	* gtk/gtktreedatalist.c: fix filename in copyright notice
      66f87948
  23. 17 Dec, 2000 1 commit
    • Havoc Pennington's avatar
      Port to GObject, can go back in gdk-pixbuf after setting up a · fde4fecf
      Havoc Pennington authored
      2000-12-16  Havoc Pennington  <hp@pobox.com>
      
      * gtk/gdk-pixbuf-loader.h, gtk/gdk-pixbuf-loader.c:
      Port to GObject, can go back in gdk-pixbuf after setting up
      a gdk-pixbuf-marshal.h header over there.
      
      * gtk/gtktreeview.c: s/SEPERATOR/SEPARATOR/g;
      (gtk_tree_view_class_init): specify GTK_TYPE_ADJUSTMENT for signal
      args
      (gtk_tree_view_init): don't unset GTK_NO_WINDOW, it shouldn't be
      set
      (gtk_tree_view_realize_buttons): don't gtk_widget_show() buttons
      here, do it when we create the buttons later
      (gtk_tree_view_realize_buttons): add some g_return_if_fail
      (gtk_tree_view_map): paranoia checks that column->button is shown
      and unmapped
      (gtk_tree_view_size_request): only request visible children.
      Move header size calculation in here, for cleanliness, and
      to maintain invariants for child widgets if we eventually
      let users set different children inside the buttons
      (gtk_tree_view_map_buttons): factor out code to map buttons,
      since it was being called several times
      (gtk_tree_view_size_allocate_buttons): move_resize the drag
      windows instead of just moving them; their height may change
      if we allow random widgets in there, or the theme changes.
      (gtk_tree_view_size_allocate): move button size allocation
      above emitting the scroll signals, to ensure a sane state when we
      hit user code
      (gtk_tree_view_button_release): remove queue_resize after
      tree_view_set_size(), set_size() will handle any resize queuing
      that's needed
      (gtk_tree_view_focus_in): just queue a draw, don't fool with
      draw_focus goo
      (gtk_tree_view_focus): use gtk_get_current_event() and
      gdk_event_get_state()
      (gtk_tree_view_deleted): don't queue_resize() after calling set_size()
      (gtk_tree_view_build_tree): fix a "if (foo); {}" bug - i.e. remove
      semicolon
      (gtk_tree_view_create_button): show the button here
      (gtk_tree_view_button_clicked): actually emit the clicked signal
      on the column
      (_gtk_tree_view_set_size): return right away if the size is
      unchanged, as a cheesy optimization
      (gtk_tree_view_setup_model): rename set_model_realized to
      setup_model to match the flag that indicates whether we've
      called it
      (gtk_tree_view_get_hadjustment): create adjustment if it doesn't
      exist, because set_scroll_adjustment does that and it shouldn't
      matter what order you call these in
      (gtk_tree_view_get_vadjustment): ditto
      (gtk_tree_view_set_headers_visible): canonicalize the bool,
      for paranoia
      (gtk_tree_view_set_headers_visible): call
      gtk_tree_view_map_buttons() instead of using cut-and-paste code
      (gtk_tree_view_append_column): clarify whether the return value
      is the count of columns before or after, and do the increment
      separately from the return statement so you can tell from the code.
      (gtk_tree_view_remove_column): ditto
      (gtk_tree_view_insert_column): ditto
      (gtk_tree_view_get_column): remove g_return_if_fail for columns
      outside the existing range, the docs say that outside-range
      columns are allowed, so we handle them as documented. (Presumably
      this allows a nice loop with column != NULL as test.)
      (gtk_tree_view_move_to): document what 0.0, 0.5, 1.0 alignments
      mean (left/right/center etc.).
      (gtk_tree_view_collapse_all): only queue a draw if we're mapped
      (gtk_tree_view_expand_row): add docs
      (gtk_tree_view_collapse_row): add docs
      
      * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_clicked): new
      function to emit the clicked signal on a column
      
      * gdk/gdkevents.c (gdk_event_get_state): new function, to get the
      state of an event
      (gdk_event_get_time): don't treat GDK_SCROLL
      as a button event, remove default case from switch so gcc
      will whine if we don't explicitly handle all event types
      
      * gtk/gtktreeselection.h: added some FIXME
      
      * gtk/gtktreeprivate.h (struct _GtkTreeViewPrivate): rename
      "columns" to "n_columns" and "column" to "columns" for clarity
      fde4fecf
  24. 09 Nov, 2000 1 commit
    • Jonathan Blandford's avatar
      added more fields to allow more interesting iterators. Also, made the · c97d57eb
      Jonathan Blandford authored
      Thu Nov  9 11:23:22 2000  Jonathan Blandford  <jrb@redhat.com>
      
      	* gtk/gtktreemodel.h (struct _GtkTreeIter): added more fields to
      	allow more interesting iterators.  Also, made the lifecycle of
      	iterators more explicit.
      
      	* gtk/gtktreemodelsort.[ch]: New model for sorting.
      
      	* gtk/gtk-boxed.defs (GtkTreeIter, GtkTreePath): Added two boxed
      	types.
      c97d57eb
  25. 26 Oct, 2000 1 commit
    • Jonathan Blandford's avatar
      Got rid of GtkTreeNode, and changed it to GtkTreeIter. Added iterators · ef7b510f
      Jonathan Blandford authored
      Wed Oct 25 20:40:25 2000  Jonathan Blandford  <jrb@redhat.com>
      
      	* gtk/gtktreemodel.h: Got rid of GtkTreeNode, and changed it to
      	GtkTreeIter.  Added iterators everywhere.
      
      	* gtk/gtktreeviewcolumn.c: Changed to use the iterators.
      
      	* gtk/gtktreeviewselection.c: Changed to use the iterators.
      
      	* gtk/gtktreestore.c: Changed to use the iterators.
      
      	* gtk/gtkliststore.c: Commented out the code.  Will convert to
      	iterators tomorrow.
      
      	* gtk/gtkmodelsimple.c: Commented out the code.  Will convert to
      	iterators tomorrow.
      
      	* gtk/treestoretest.c: Changed to use iterators.
      
      	* demos/testgtk/main.c: Moved to use the new iterator system.
      ef7b510f
  26. 15 Oct, 2000 1 commit
    • 5's avatar
      Fix GtkTreeNode *node ->GtkTreeNode node issue. · e6b9f291
      5 authored
      2000-10-15    <jrb@redhat.com>
      
      	* gtk/gtktreeview.c, gtk/gtktreeview.h, gtk/gtktreestore.h,
      	gtk/gtktreestore.c, gtk/gtkliststore.h, gtk/gtkliststore.c,
      	gtk/gtkmodelsimple.c, gtk/gtkmodelsimple.h, gtk/gtktreedatalist.c,
      	gtk/gtktreemodel.h, gtk/gtktreeselection.c,
      	gtk/gtktreeselection.h: Fix GtkTreeNode *node ->GtkTreeNode node
      	issue.
      e6b9f291
  27. 06 Oct, 2000 1 commit
    • Jonathan Blandford's avatar
      Replaced with GTK_TREE_SELECTION_OLD to prevent conflict with · 6b6e6763
      Jonathan Blandford authored
      2000-10-05  Jonathan Blandford  <jrb@redhat.com>
      
      	* gtk/gtktree.h (GTK_TREE_SELECTION): Replaced with
      	GTK_TREE_SELECTION_OLD to prevent conflict with gtktreeselection.c
      	* gtk/testgtk.c: s/GTK_TREE_SELECTION/GTK_TREE_SELECTION_OLD/
      	* gtk/gtktreeselection.[ch]: Replaced
      	"node_selected"/"node_unselected" signal with "selection_changed"
      	signal.
      6b6e6763
  28. 05 Oct, 2000 1 commit