1. 25 Nov, 2007 1 commit
    • Matthias Clasen's avatar
      Require gtk-doc 1.8 · 4896e24b
      Matthias Clasen authored
      2007-11-25  Matthias Clasen  <mclasen@redhat.com>
              * configure.in: Require gtk-doc 1.8
              * */*.c: Use gtk-doc abbreviations for examples in docs.
      svn path=/trunk/; revision=19041
  2. 02 Oct, 2006 1 commit
  3. 02 Jun, 2006 1 commit
    • Kristian Rietveld's avatar
      Separate sensitive/selectable properties. · a70e6664
      Kristian Rietveld authored
      2006-06-02  Kristian Rietveld  <kris@imendio.com>
      	Separate sensitive/selectable properties.
      	* gtk/gtktreeselection.c (tree_column_is_sensitive): remove,
      	(_gtk_tree_selection_row_is_selectable): remove checks to see if at
      	least one column is sensitive,
      	(gtk_tree_selection_real_select_node): remove code which enables
      	insensitive rows to always be unselected.
      	* gtk/gtktreeview.c (gtk_tree_view_row_changed): remove code
      	that unselects a node if it just became insensitive.
      	* gtk/gtkcombobox.c (gtkcombo_box_list_select_func): new function,
      	based on the at least one column sensitive check from
      	(gtk_combo_box_list_setup): set selection function on tree selection.
  4. 14 May, 2006 1 commit
  5. 02 May, 2006 1 commit
  6. 01 Mar, 2006 1 commit
    • Kristian Rietveld's avatar
      rename to _gtk_tree_selection_row_is_selectable and export internally, · 2e6ba401
      Kristian Rietveld authored
      2006-03-01  Kristian Rietveld  <kris@imendio.com>
      	* gtk/gtktreeselection.c (row_is_selectable): rename to
      	_gtk_tree_selection_row_is_selectable and export internally,
      	(gtk_tree_selection_real_select_node): changed so it is always
      	possible to unselect insensitive nodes, changed the logic a bit to
      	be more clear.
      	* gtk/gtktreeprivate.h: add _gtk_tree_selection_row_is_selectable.
      	* gtk/gtktreeview.c (gtk_tree_view_row_changed): Unselect a row if
      	it became insensitive.
  7. 29 Nov, 2005 1 commit
    • Matthias Clasen's avatar
      Properly handle model changes in GtkTreeSelection: (#322569, Milosz · 924765a2
      Matthias Clasen authored
      2005-11-29  Matthias Clasen  <mclasen@redhat.com>
      	Properly handle model changes in GtkTreeSelection: (#322569,
      	Milosz Derezynski)
      	* gtk/gtktreeselection.c (gtk_tree_selection_selected_foreach):
      	Get a reference to the model, and stop the iteration if the model
      	of the treeview is changed on the way.
      	* gtk/gtktreeprivate.h:
      	* gtk/gtktreeselection.c (_gtk_tree_selection_emit_changed): New
      	private function to emit the GtkTreeSelection::changed signal.
      	* gtk/gtktreeview.c (gtk_tree_view_set_model): Call
      	_gtk_tree_selection_emit_changed() when the model changes.
  8. 13 Sep, 2005 1 commit
  9. 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().
  10. 31 Aug, 2005 1 commit
    • Matthias Clasen's avatar
      Intern type names in code generated by glib-mkenums, too. · c09cc893
      Matthias Clasen authored
      2005-08-31  Matthias Clasen  <mclasen@redhat.com>
      	* gdk/Makefile.am:
      	* gtk/Makefile.am: Intern type names in code generated by
      	glib-mkenums, too.
      	* gtk/*.c:
      	* gdk/x11/*.c:
      	* gdk/*.c: Intern type names before registering the type to avoid
      	unnecessary copies.
  11. 12 Jul, 2005 1 commit
    • Kristian Rietveld's avatar
      quit maintaining the iter on every iteration, only get the iter when we · ed5fe67f
      Kristian Rietveld authored
      2005-07-13  Kristian Rietveld  <kris@gtk.org>
      	* gtk/gtktreeselection.c (gtk_tree_selection_selected_foreach): quit
      	maintaining the iter on every iteration, only get the iter when
      	we are about to call the foreach_func. Gives us a 10x speedup,
      	since maintaining iters is a lot more expensive than maintaining
      	paths. We lose a bit of sanity checking though. Thanks go to
      	Billy Biggs for pointing this out.
  12. 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.
  13. 19 Nov, 2004 1 commit
    • Manish Singh's avatar
      gdk/linux-fb/gdkgc-fb.c gdk/win32/gdkgc-win32.c · 60b30ff5
      Manish Singh authored
      Fri Nov 19 14:54:09 2004  Manish Singh  <yosh@gimp.org>
              * gdk/linux-fb/gdkgc-fb.c
              * gdk/win32/gdkgc-win32.c
              * gdk/win32/gdkwindow-win32.c
              * gtk/gtkaboutdialog.c
              * gtk/gtkaction.c
              * gtk/gtkactiongroup.c
              * gtk/gtkcellrendererprogress.c
              * gtk/gtkcellview.c
              * gtk/gtkcolorbutton.c
              * gtk/gtkcombobox.c
              * gtk/gtkcomboboxentry.c
              * gtk/gtkentrycompletion.c
              * gtk/gtkfilechooserbutton.c
              * gtk/gtkmenutoolbutton.c
              * gtk/gtkrc.c
              * gtk/gtksettings.c
              * gtk/gtkstyle.c
              * gtk/gtktoggletoolbutton.c
              * gtk/gtktoolbutton.c
              * gtk/gtktoolitem.c
              * gtk/gtktreemodelfilter.c
              * gtk/gtktreeselection.c
              * gtk/gtktreeviewcolumn.c
              * gtk/gtkuimanager.c: get rid of unnecessary casts.
              * gtk/gtkfilechooserbutton.c (gtk_file_chooser_button_set_property):
              cast away the const for g_value_set_enum. This is after the g_warning,
              so this is a hack to begin with.
              * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_set_property):
              add a cast to GTK_FILE_CHOOSER for impl here.
  14. 28 Oct, 2004 1 commit
  15. 06 Oct, 2004 1 commit
  16. 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
  17. 09 Jul, 2004 1 commit
    • Federico Mena Quintero's avatar
      Fix #139290: · b3fbcef8
      Federico Mena Quintero authored
      2004-07-08  Federico Mena Quintero  <federico@ximian.com>
      	Fix #139290:
      	* gtk/gtkfilesystemmodel.c (_gtk_file_system_model_new): Add a
      	GError argument.  Do check for errors when getting the
      	GtkFileFolder:  get the folder and read the children before
      	actually creating the model.  Removed obsolete code that handled
      	roots-changed on the file system.
      	(file_model_node_get_info): Assert that we don't reach the old
      	case to display file system roots.
      	(roots_changed_callback): Removed.
      	* gtk/gtkfilechooserdefault.c (set_list_model): Add a GError
      	argument, and a boolean return value.  Return an error if we
      	cannot create the file system model.  On error, set a NULL model
      	on the tree.
      	(gtk_file_chooser_default_set_current_folder): Use the error value
      	from set_list_model().
      	(gtk_file_chooser_default_set_property): Set the show_hidden
      	property only if the browse_files_model exists.
      	(gtk_file_chooser_default_unselect_path): Only operate if the
      	browse_files_model exists.
      	(check_preview_change): Check whether we have the sort_model.
      	(change_folder_and_display_error): Copy the path we get passed
      	before using it.  There's a comment in there that explains why we
      	need to copy it; basically, if the passed path belongs to the
      	model, the model may go away in the middle of this function and
      	we'll be left with a dangling pointer.
      	(install_list_model_filter): Assert that the model is not NULL.
      	(set_current_filter): Check whether the model exists.
      	* gtk/gtktreeselection.c (gtk_tree_selection_get_selected): Don't
      	g_return_if_fail if the model is NULL.
      	(gtk_tree_selection_get_selected_rows): Likewise.
      	(gtk_tree_selection_count_selected_rows): Likewise.
      	(gtk_tree_selection_selected_foreach): Likewise.
      	(gtk_tree_selection_path_is_selected): Likewise; rather just
      	return FALSE.
      	(gtk_tree_selection_select_all): Likewise.
      	(gtk_tree_selection_unselect_all): Likewise.
      	(gtk_tree_selection_select_range): Do g_return_if_fail() if the
      	model is NULL.
      	(gtk_tree_selection_unselect_range): Likewise.
      	* gtk/gtkfilesystemunix.c (fill_in_names): Return immediately if
      	g_dir_open() fails:  there is no need to set the error ourselves,
      	as g_dir_open() already does it.
  18. 07 Jul, 2004 1 commit
    • Matthias Clasen's avatar
      Support separators in combo boxes and more generally in tree views · 1aa00e52
      Matthias Clasen authored
      2004-07-07  Matthias Clasen  <mclasen@redhat.com>
      	Support separators in combo boxes and more generally in tree
      	views  (#135873):
      	* gtk/gtkcombobox.h:
      	* gtk/gtkcombobox.c (gtk_combo_box_get_row_separator_column):
      	* gtk/gtkcombobox.c (gtk_combo_box_set_row_separator_column):
      	Add a ::row-separator-column property with getter and setter,
      	which can indicate a boolean model column to determine which
      	rows are separators.
      	* gtk/gtkcombobox.c: Display separator rows as separator menu
      	items in menu mode, and by using the new treeview separator
      	functionality in list mode.
      	* gtk/gtktreeview.h:
      	* gtk/gtktreeview.c (gtk_tree_view_get_row_separator_func):
      	* gtk/gtktreeview.c (gtk_tree_view_set_row_separator_func):
      	Add a callback to determine whether a row is a separator.
      	* gtk/gtktreeview.c (gtk_tree_view_bin_expose):
      	* gtk/gtktreeview.c (gtk_tree_view_create_row_drag_icon):
      	* gtk/gtktreeview.c (validate_row): Use the new callback
      	to determine whether a row is a separator, and draw it
      	as a separator then. Since separators should take up less
      	vertical space than regular rows, this requires removing
      	the redundant MAX(...,expander_size) calls which appear in
      	many places. Instead, the MAX() is now only done in
      	validate_row(), and only if the row is not a separator.
      	To catch possible side effects of this intrusive change,
      	I have left EXPANDER_MAX() calls in place of the MAX() calls
      	which will emit a warning if something breaks. They should
      	be removed before 2.6.
      	* gtk/gtktreeselection.c (row_is_selectable): Don't let
      	separator rows be selected.
      	* tests/testcombo.c (create_blaat): Add a separator column.
  19. 02 Jun, 2004 1 commit
  20. 27 May, 2004 1 commit
  21. 23 Apr, 2004 1 commit
  22. 06 Mar, 2004 1 commit
  23. 18 Feb, 2004 1 commit
  24. 25 Aug, 2003 1 commit
    • Kristian Rietveld's avatar
      Merge from stable. · 43d99929
      Kristian Rietveld authored
      Mon Aug 25 23:21:43 2003  Kristian Rietveld  <kris@gtk.org>
      	Merge from stable.
      	Fixes #115871, reported by Michael Natterer.
      	* gtk/gtktreeprivate.h: added GtkTreeSelectMode enum,
      	added ctrl_pressed and shift_pressed bitfields,
      	(_gtk_tree_selection_internal_select_node): replace GdkModifierType
      	arg with GtkTreeSelectMode.
      	* gtk/gtktreeselection.c (gtk_tree_selection_set_mode),
      	(gtk_tree_selection_select_path), (gtk_tree_selection_unselect_path),
      	(_gtk_tree_selection_internal_select_node): all updated for
      	GdkModifierType -> GtkTreeSelectMode move.
      	* gtk/gtktreeview.c (gtk_tree_view_button_press): set ctrl_pressed
      	and shift_pressed around selection handling block,
      	(gtk_tree_view_real_set_cursor): use ctrl_pressed and shift_pressed,
      	instead of checking the event state. And also updates for the
      	GdkModifierType -> GtkTreeSelectMode move.
  25. 27 Jul, 2003 1 commit
  26. 14 Apr, 2003 1 commit
    • Michael Natterer's avatar
      added checks to ensure that the iter is not reordered to its own position. · b45f8ef2
      Michael Natterer authored
      2003-04-14  Michael Natterer  <mitch@gimp.org>
      	* gtk/gtkliststore.c (gtk_list_store_move): added checks to ensure
      	that the iter is not reordered to its own position. Prevents model
      	corruption for the case that the store contains only a single item
      	(fixes bug #108387).
      	* gtk/gtkliststore.c (gtk_list_store_insert): g_list_alloc() the
      	new list element later so we don't leak it if we decide to return
      	* gtk/gtktreeselection.c (_gtk_tree_selection_internal_select_node):
      	set selection->tree_view->priv->anchor to NULL after freeing it.
  27. 07 Apr, 2003 1 commit
  28. 30 Mar, 2003 1 commit
  29. 14 Jan, 2003 1 commit
  30. 28 Nov, 2002 1 commit
  31. 20 Nov, 2002 1 commit
    • Manish Singh's avatar
      initialize anchor_path to NULL. · 3e8866a4
      Manish Singh authored
      Tue Nov 19 17:01:40 2002  Manish Singh  <yosh@gimp.org>
              * gtk/gtktreeselection.c (gtk_tree_selection_real_modify_range):
              initialize anchor_path to NULL.
              * examples/buttonbox/buttonbox.c: remove useless static qualifier.
  32. 18 Nov, 2002 1 commit
    • Kristian Rietveld's avatar
      modify and free tmp instead of path ... (patch from #97927). · b977d5af
      Kristian Rietveld authored
      Mon Nov 18 20:42:27 2002  Kristian Rietveld  <kris@gtk.org>
              * gtk/gtktreeview.c (gtk_tree_view_expand_to_path): modify and
              free tmp instead of path ... (patch from #97927).
      Mon Nov 18 20:31:20 2002  Kristian Rietveld  <kris@gtk.org>
              * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_start_editing):
              only _set_text if celltext->text is not NULL. (#97815, reported
              and testcase provided by Vitaly Tishkov).
      Mon Nov 18 20:28:28 2002  Kristian Rietveld  <kris@gtk.org>
              * gtk/gtktreeselection.c (gtk_tree_selection_real_modify_range):
              also update the anchor_path, makes behaviour consistent with the
              other selection modification functions. (#96801, reported and
              testcase provided by Vitaly Tishkov).
      Mon Nov 18 20:17:56 2002  Kristian Rietveld  <kris@gtk.org>
              Hrm, this fixes up lots of mistakes in my swap/move code ... Some
              of these mistakes where pointed out by Vitaly Tishkov in bugs
              #97403, #97404, #97412, #97618.
              * gtktreestore.[ch]: gtk_tree_store_move is now private, use
              gtk_tree_store_move_{before,after} instead now. Lots of fixes
              (more like a rewrite :) in the _move and _swap functions.
              * gtkliststore.[ch]: likewise.
  33. 03 Nov, 2002 1 commit
    • Kristian Rietveld's avatar
      Bah, and of course I broke something ... · 66cefd1c
      Kristian Rietveld authored
      Sun Nov  3 21:26:20 2002  Kristian Rietveld  <kris@gtk.org>
              Bah, and of course I broke something ...
              * gtk/gtktreeselection.c (gtk_tree_selection_selected_foreach): fix
              up the mess I caused with my commit of Oct 23 fixing #50263, things
              should be fine now.
  34. 29 Oct, 2002 1 commit
  35. 22 Oct, 2002 1 commit
    • Kristian Rietveld's avatar
      Another feature to create truly ugly TreeViews!: style properties for the · ecb42dc7
      Kristian Rietveld authored
      Wed Oct 23 01:03:43 2002  Kristian Rietveld  <kris@gtk.org>
              Another feature to create truly ugly TreeViews!: style properties
              for the even/odd colors used for row hinting. (#71595, reported
              by Owen Taylor).
              * gtk/gtktreeview.c (gtk_tree_view_class_init): add even_row_color
              and odd_row_color style properties.
              * gtk/gtkstyle.c (get_darkened_gc): support darken_count == 0 case,
              (gtk_default_draw_flat_box): rework cell coloring code to support
              user-provided even/odd row colors.
      Wed Oct 23 01:01:52 2002  Kristian Rietveld  <kris@gtk.org>
              Cache signal IDs to speed up signal emission. This is a good speedup
              because GtkTreeModel emits a big number of signals.
              * gtk/gtktreemodel.c (gtk_tree_model_base_init): save IDs returned
              by g_signal_new,
              (gtk_tree_model_row_changed): use g_signal_emit instead of
              (gtk_tree_model_row_inserted): ditto,
              (gtk_tree_model_row_has_child_toggled): ditto,
              (gtk_tree_model_row_deleted): ditto,
              (gtk_tree_model_rows_reordered): ditto.
      Wed Oct 23 00:56:15 2002  Kristian Rietveld  <kris@gtk.org>
              * gtk/gtktreeselection.c (model_changed): new function,
              (gtk_tree_selection_selected_foreach): monitor changes in the model,
              bail out if the model has been changed from the foreach func.
              (#50263, reported by Havoc Pennington).
              * gtk/gtktreeselection.c (_gtk_tree_selection_internal_select_node):
              free anchor if applicable (#94868, reported and testcase provided by
              Daniel Elstner).
  36. 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
  37. 10 Aug, 2002 1 commit
    • Soren Sandmann's avatar
      Minor documentation fixes · 77eee887
      Soren Sandmann authored
      2002-08-10  Soren Sandmann  <sandmann@daimi.au.dk>
      	* docs/reference/gtk/tree_widget.sgml,
      	docs/reference/gtk/tmpl/gtkwidget.sgml, gdk/x11/gdkdisplay-x11.c,
      	gtk/gtkbbox.c, gtk/gtkbox.c, gtk/gtkbutton.c, gtk/gtkcellrenderer.c,
      	gtk/gtkcellrendererpixbuf.c, gtk/gtkcellrenderertext.c,
      	gtk/gtkcheckmenuitem.c, gtk/gtkcontainer.c, gtk/gtkcurve.c,
      	gtk/gtkdialog.h, gtk/gtkentry.c, gtk/gtkfilesel.c, gtk/gtkfontsel.c,
      	gtk/gtkframe.c, gtk/gtkhandlebox.c, gtk/gtkiconfactory.c,
      	gtk/gtkimage.c, gtk/gtkinvisible.c, gtk/gtkitemfactory.c,
      	gtk/gtklabel.c, gtk/gtklayout.c, gtk/gtkmenu.c, gtk/gtkprogress.c,
      	gtk/gtkprogressbar.c, gtk/gtkscrolledwindow.c, gtk/gtksizegroup.c,
      	gtk/gtktable.c, gtk/gtktextiter.c, gtk/gtktexttag.c,
      	gtk/gtktexttag.h, gtk/gtktextview.c, gtk/gtktogglebutton.c,
      	gtk/gtktoolbar.c, gtk/gtktreemodel.c, gtk/gtktreeselection.c,
      	gtk/gtktreestore.c, gtk/gtktreeview.c, gtk/gtktreeviewcolumn.c,
      	gtk/gtkviewport.c, gtk/gtkwidget.c, gtk/gtkwidget.h,
      	Minor documentation fixes
      	(#89254, patch from Brett Nash;
      	 #85809, patch from daten@dnetc.org;
      	 #76391, patch from Ross Burton;
      	 #74559, Manuel Clos;
      	 #73569, #72005, Alexey A. Malyshev;
      	 #70061, patch from Dennis Bj"orklund;
      	 #64566, #63388, #58328, #57499, #81007, #77349, Vitaly Tishkov;
      	 #78932, Vitaly Tishkov, patch from Ross Burton;
  38. 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
              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().
  39. 20 Apr, 2002 1 commit
  40. 13 Apr, 2002 1 commit
    • Kristian Rietveld's avatar
      Fixes #75510 · 2666ab46
      Kristian Rietveld authored
      Sat Apr 13 22:49:45 2002  Kristian Rietveld  <kris@gtk.org>
              Fixes #75510
              * gtk/gtktreeselection.c (gtk_tree_selection_get_selected): make this
              function work correctly and more sane
              * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): remove
              node->children from rbtree before emitting GtkTreeSelection::changed
      Sat Apr 13 17:15:12 2002  Kristian Rietveld  <kris@gtk.org>
              * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_init): dont set
              the mode to GTK_CELL_RENDERER_MODE_EDITABLE by default,
              (gtk_cell_renderer_text_class_init): for some reason our default for
              editable was TRUE, of course this is FALSE.
              (gtk_cell_renderer_text_set_property): update mode when editable
              has been changed.