2000-10-05 01:04:57 +00:00
|
|
|
|
/* gtktreeview.h
|
|
|
|
|
* Copyright (C) 2000 Red Hat, Inc., Jonathan Blandford <jrb@redhat.com>
|
|
|
|
|
*
|
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
|
* modify it under the terms of the GNU Library General Public
|
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
|
* version 2 of the License, or (at your option) any later version.
|
|
|
|
|
*
|
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
|
* Library General Public License for more details.
|
|
|
|
|
*
|
|
|
|
|
* You should have received a copy of the GNU Library General Public
|
2012-02-27 13:01:10 +00:00
|
|
|
|
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
|
2000-10-05 01:04:57 +00:00
|
|
|
|
*/
|
2008-05-28 15:07:04 +00:00
|
|
|
|
|
2012-12-28 14:57:34 +00:00
|
|
|
|
#ifndef __GTK_TREE_VIEW_H__
|
|
|
|
|
#define __GTK_TREE_VIEW_H__
|
|
|
|
|
|
2009-10-21 18:30:04 +00:00
|
|
|
|
#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
|
2008-05-28 15:07:04 +00:00
|
|
|
|
#error "Only <gtk/gtk.h> can be included directly."
|
|
|
|
|
#endif
|
|
|
|
|
|
2000-10-05 01:04:57 +00:00
|
|
|
|
#include <gtk/gtkcontainer.h>
|
|
|
|
|
#include <gtk/gtktreemodel.h>
|
|
|
|
|
#include <gtk/gtktreeviewcolumn.h>
|
2001-01-19 22:39:19 +00:00
|
|
|
|
#include <gtk/gtkdnd.h>
|
2006-01-24 10:49:29 +00:00
|
|
|
|
#include <gtk/gtkentry.h>
|
2000-10-05 01:04:57 +00:00
|
|
|
|
|
2005-06-21 05:35:43 +00:00
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
|
2010-11-06 02:04:27 +00:00
|
|
|
|
/**
|
|
|
|
|
* GtkTreeViewDropPosition:
|
|
|
|
|
* @GTK_TREE_VIEW_DROP_BEFORE: dropped row is inserted before
|
|
|
|
|
* @GTK_TREE_VIEW_DROP_AFTER: dropped row is inserted after
|
|
|
|
|
* @GTK_TREE_VIEW_DROP_INTO_OR_BEFORE: dropped row becomes a child or is inserted before
|
|
|
|
|
* @GTK_TREE_VIEW_DROP_INTO_OR_AFTER: dropped row becomes a child or is inserted after
|
|
|
|
|
*
|
|
|
|
|
* An enum for determining where a dropped row goes.
|
|
|
|
|
*/
|
2001-01-19 22:39:19 +00:00
|
|
|
|
typedef enum
|
|
|
|
|
{
|
|
|
|
|
/* drop before/after this row */
|
|
|
|
|
GTK_TREE_VIEW_DROP_BEFORE,
|
|
|
|
|
GTK_TREE_VIEW_DROP_AFTER,
|
|
|
|
|
/* drop as a child of this row (with fallback to before or after
|
|
|
|
|
* if into is not possible)
|
|
|
|
|
*/
|
|
|
|
|
GTK_TREE_VIEW_DROP_INTO_OR_BEFORE,
|
|
|
|
|
GTK_TREE_VIEW_DROP_INTO_OR_AFTER
|
|
|
|
|
} GtkTreeViewDropPosition;
|
|
|
|
|
|
2000-10-05 01:04:57 +00:00
|
|
|
|
#define GTK_TYPE_TREE_VIEW (gtk_tree_view_get_type ())
|
2002-10-13 19:34:42 +00:00
|
|
|
|
#define GTK_TREE_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_TREE_VIEW, GtkTreeView))
|
|
|
|
|
#define GTK_TREE_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_TREE_VIEW, GtkTreeViewClass))
|
|
|
|
|
#define GTK_IS_TREE_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_TREE_VIEW))
|
|
|
|
|
#define GTK_IS_TREE_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_TREE_VIEW))
|
|
|
|
|
#define GTK_TREE_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_TREE_VIEW, GtkTreeViewClass))
|
2000-10-05 01:04:57 +00:00
|
|
|
|
|
2001-04-28 00:29:34 +00:00
|
|
|
|
typedef struct _GtkTreeView GtkTreeView;
|
|
|
|
|
typedef struct _GtkTreeViewClass GtkTreeViewClass;
|
|
|
|
|
typedef struct _GtkTreeViewPrivate GtkTreeViewPrivate;
|
2000-10-05 01:04:57 +00:00
|
|
|
|
typedef struct _GtkTreeSelection GtkTreeSelection;
|
|
|
|
|
typedef struct _GtkTreeSelectionClass GtkTreeSelectionClass;
|
|
|
|
|
|
|
|
|
|
struct _GtkTreeView
|
|
|
|
|
{
|
|
|
|
|
GtkContainer parent;
|
|
|
|
|
|
2010-10-26 04:35:10 +00:00
|
|
|
|
/*< private >*/
|
2010-07-14 00:21:28 +00:00
|
|
|
|
GtkTreeViewPrivate *priv;
|
2000-10-05 01:04:57 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
struct _GtkTreeViewClass
|
|
|
|
|
{
|
|
|
|
|
GtkContainerClass parent_class;
|
|
|
|
|
|
2001-06-07 00:07:32 +00:00
|
|
|
|
void (* row_activated) (GtkTreeView *tree_view,
|
|
|
|
|
GtkTreePath *path,
|
|
|
|
|
GtkTreeViewColumn *column);
|
2001-06-11 16:59:28 +00:00
|
|
|
|
gboolean (* test_expand_row) (GtkTreeView *tree_view,
|
2001-06-07 00:07:32 +00:00
|
|
|
|
GtkTreeIter *iter,
|
|
|
|
|
GtkTreePath *path);
|
2001-06-11 16:59:28 +00:00
|
|
|
|
gboolean (* test_collapse_row) (GtkTreeView *tree_view,
|
|
|
|
|
GtkTreeIter *iter,
|
|
|
|
|
GtkTreePath *path);
|
|
|
|
|
void (* row_expanded) (GtkTreeView *tree_view,
|
|
|
|
|
GtkTreeIter *iter,
|
|
|
|
|
GtkTreePath *path);
|
|
|
|
|
void (* row_collapsed) (GtkTreeView *tree_view,
|
2001-06-07 00:07:32 +00:00
|
|
|
|
GtkTreeIter *iter,
|
|
|
|
|
GtkTreePath *path);
|
|
|
|
|
void (* columns_changed) (GtkTreeView *tree_view);
|
2001-10-31 19:08:09 +00:00
|
|
|
|
void (* cursor_changed) (GtkTreeView *tree_view);
|
2001-06-01 22:57:30 +00:00
|
|
|
|
|
|
|
|
|
/* Key Binding signals */
|
2002-02-21 22:15:14 +00:00
|
|
|
|
gboolean (* move_cursor) (GtkTreeView *tree_view,
|
2001-06-07 00:07:32 +00:00
|
|
|
|
GtkMovementStep step,
|
2001-06-08 22:59:37 +00:00
|
|
|
|
gint count);
|
add a gtk_list_store_sort_iter_changed line for some special case ...
Tue Nov 26 22:26:04 2002 Kristian Rietveld <kris@gtk.org>
* gtk/gtk{tree,list}store.c (gtk_{tree,list}_store_real_set_value):
add a gtk_list_store_sort_iter_changed line for some special
case ... (#96647 (issue 1), testcases from Soeren Sandmann and
Daniel Elstner).
Tue Nov 26 22:18:06 2002 Kristian Rietveld <kris@gtk.org>
Inconsistent state for toggle renderers, requested by Paolo Bacchilega
in #88130.
* gtk/gtktreeprivate.h: move GtkCellRendererInfo here.
* gtk/gtkcellrenderer.c: moved GtkCellRendererInfo away,
fix some indentation issues.
* gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_class_init),
(gtk_cell_renderer_toggle_set_property),
(gtk_cell_renderer_toggle_get_property),
(gtk_cell_renderer_toggle_render): add an inconsistent property.
* gtk/gtkstyle.c (gtk_default_draw_check),
(gtk_default_draw_option): support drawing inconsistent
options/checks for cells.
Tue Nov 26 22:14:14 2002 Kristian Rietveld <kris@gtk.org>
* gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_editing_done),
(gtk_cell_renderer_text_start_editing): add a focus_out_id to avoid
calling _editing_done twice (which has nasty side-effects). (#96647,
(issue 2) testcase from Soeren Sandmann).
Tue Nov 26 22:12:21 2002 Kristian Rietveld <kris@gtk.org>
#82739, patch from Padraig O'Briain.
* gtk/gtktreeviewcolumn.[ch]: add
gtk_tree_view_column_cell_get_position()
Tue Nov 26 22:06:29 2002 Kristian Rietveld <kris@gtk.org>
Yes, this chunk breaks ABI compatibility. Owen knows about it and
agreed with it. It doesn't break ABI that bad though, things will
still work. Please keep it silent :P.
This patch fixes some keynav issues reported by Narayana Pattipati
in #81633. (Also mentioned in #92037 (Sun tracking bug)).
* gtk/gtkmarshalers.list: add two silly marshalers
* gtk/gtktreeview.[ch] (gtk_tree_view_real_select_all),
(gtk_tree_view_real_unselect_all),
(gtk_tree_view_real_select_cursor_row),
(gtk_tree_view_real_toggle_cursor_row),
(gtk_tree_view_real_expand_collapse_cursor_row),
(gtk_tree_view_real_start_interactive_search): change the return
type from void to gboolean, update prototypes, functions, signals and
entries in GtkTreeViewClass,
(gtk_tree_view_class_init): add select_cursor_row binding for
enter key,
(gtk_tree_view_key_press): only navigate the header button if the
header is also visible ...
Tue Nov 26 22:05:48 2002 Kristian Rietveld <kris@gtk.org>
API bit of #75745, reported by Richard Hult.
* gtk/gtkcellrenderer.h (GtkCellRendererState): add
GTK_CELL_RENDERER_FOCUSED, rest of this bug fix will follow later.
2002-11-26 21:28:01 +00:00
|
|
|
|
gboolean (* select_all) (GtkTreeView *tree_view);
|
|
|
|
|
gboolean (* unselect_all) (GtkTreeView *tree_view);
|
|
|
|
|
gboolean (* select_cursor_row) (GtkTreeView *tree_view,
|
2001-10-01 20:12:47 +00:00
|
|
|
|
gboolean start_editing);
|
add a gtk_list_store_sort_iter_changed line for some special case ...
Tue Nov 26 22:26:04 2002 Kristian Rietveld <kris@gtk.org>
* gtk/gtk{tree,list}store.c (gtk_{tree,list}_store_real_set_value):
add a gtk_list_store_sort_iter_changed line for some special
case ... (#96647 (issue 1), testcases from Soeren Sandmann and
Daniel Elstner).
Tue Nov 26 22:18:06 2002 Kristian Rietveld <kris@gtk.org>
Inconsistent state for toggle renderers, requested by Paolo Bacchilega
in #88130.
* gtk/gtktreeprivate.h: move GtkCellRendererInfo here.
* gtk/gtkcellrenderer.c: moved GtkCellRendererInfo away,
fix some indentation issues.
* gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_class_init),
(gtk_cell_renderer_toggle_set_property),
(gtk_cell_renderer_toggle_get_property),
(gtk_cell_renderer_toggle_render): add an inconsistent property.
* gtk/gtkstyle.c (gtk_default_draw_check),
(gtk_default_draw_option): support drawing inconsistent
options/checks for cells.
Tue Nov 26 22:14:14 2002 Kristian Rietveld <kris@gtk.org>
* gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_editing_done),
(gtk_cell_renderer_text_start_editing): add a focus_out_id to avoid
calling _editing_done twice (which has nasty side-effects). (#96647,
(issue 2) testcase from Soeren Sandmann).
Tue Nov 26 22:12:21 2002 Kristian Rietveld <kris@gtk.org>
#82739, patch from Padraig O'Briain.
* gtk/gtktreeviewcolumn.[ch]: add
gtk_tree_view_column_cell_get_position()
Tue Nov 26 22:06:29 2002 Kristian Rietveld <kris@gtk.org>
Yes, this chunk breaks ABI compatibility. Owen knows about it and
agreed with it. It doesn't break ABI that bad though, things will
still work. Please keep it silent :P.
This patch fixes some keynav issues reported by Narayana Pattipati
in #81633. (Also mentioned in #92037 (Sun tracking bug)).
* gtk/gtkmarshalers.list: add two silly marshalers
* gtk/gtktreeview.[ch] (gtk_tree_view_real_select_all),
(gtk_tree_view_real_unselect_all),
(gtk_tree_view_real_select_cursor_row),
(gtk_tree_view_real_toggle_cursor_row),
(gtk_tree_view_real_expand_collapse_cursor_row),
(gtk_tree_view_real_start_interactive_search): change the return
type from void to gboolean, update prototypes, functions, signals and
entries in GtkTreeViewClass,
(gtk_tree_view_class_init): add select_cursor_row binding for
enter key,
(gtk_tree_view_key_press): only navigate the header button if the
header is also visible ...
Tue Nov 26 22:05:48 2002 Kristian Rietveld <kris@gtk.org>
API bit of #75745, reported by Richard Hult.
* gtk/gtkcellrenderer.h (GtkCellRendererState): add
GTK_CELL_RENDERER_FOCUSED, rest of this bug fix will follow later.
2002-11-26 21:28:01 +00:00
|
|
|
|
gboolean (* toggle_cursor_row) (GtkTreeView *tree_view);
|
|
|
|
|
gboolean (* expand_collapse_cursor_row) (GtkTreeView *tree_view,
|
2001-06-07 00:07:32 +00:00
|
|
|
|
gboolean logical,
|
|
|
|
|
gboolean expand,
|
|
|
|
|
gboolean open_all);
|
add a gtk_list_store_sort_iter_changed line for some special case ...
Tue Nov 26 22:26:04 2002 Kristian Rietveld <kris@gtk.org>
* gtk/gtk{tree,list}store.c (gtk_{tree,list}_store_real_set_value):
add a gtk_list_store_sort_iter_changed line for some special
case ... (#96647 (issue 1), testcases from Soeren Sandmann and
Daniel Elstner).
Tue Nov 26 22:18:06 2002 Kristian Rietveld <kris@gtk.org>
Inconsistent state for toggle renderers, requested by Paolo Bacchilega
in #88130.
* gtk/gtktreeprivate.h: move GtkCellRendererInfo here.
* gtk/gtkcellrenderer.c: moved GtkCellRendererInfo away,
fix some indentation issues.
* gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_class_init),
(gtk_cell_renderer_toggle_set_property),
(gtk_cell_renderer_toggle_get_property),
(gtk_cell_renderer_toggle_render): add an inconsistent property.
* gtk/gtkstyle.c (gtk_default_draw_check),
(gtk_default_draw_option): support drawing inconsistent
options/checks for cells.
Tue Nov 26 22:14:14 2002 Kristian Rietveld <kris@gtk.org>
* gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_editing_done),
(gtk_cell_renderer_text_start_editing): add a focus_out_id to avoid
calling _editing_done twice (which has nasty side-effects). (#96647,
(issue 2) testcase from Soeren Sandmann).
Tue Nov 26 22:12:21 2002 Kristian Rietveld <kris@gtk.org>
#82739, patch from Padraig O'Briain.
* gtk/gtktreeviewcolumn.[ch]: add
gtk_tree_view_column_cell_get_position()
Tue Nov 26 22:06:29 2002 Kristian Rietveld <kris@gtk.org>
Yes, this chunk breaks ABI compatibility. Owen knows about it and
agreed with it. It doesn't break ABI that bad though, things will
still work. Please keep it silent :P.
This patch fixes some keynav issues reported by Narayana Pattipati
in #81633. (Also mentioned in #92037 (Sun tracking bug)).
* gtk/gtkmarshalers.list: add two silly marshalers
* gtk/gtktreeview.[ch] (gtk_tree_view_real_select_all),
(gtk_tree_view_real_unselect_all),
(gtk_tree_view_real_select_cursor_row),
(gtk_tree_view_real_toggle_cursor_row),
(gtk_tree_view_real_expand_collapse_cursor_row),
(gtk_tree_view_real_start_interactive_search): change the return
type from void to gboolean, update prototypes, functions, signals and
entries in GtkTreeViewClass,
(gtk_tree_view_class_init): add select_cursor_row binding for
enter key,
(gtk_tree_view_key_press): only navigate the header button if the
header is also visible ...
Tue Nov 26 22:05:48 2002 Kristian Rietveld <kris@gtk.org>
API bit of #75745, reported by Richard Hult.
* gtk/gtkcellrenderer.h (GtkCellRendererState): add
GTK_CELL_RENDERER_FOCUSED, rest of this bug fix will follow later.
2002-11-26 21:28:01 +00:00
|
|
|
|
gboolean (* select_cursor_parent) (GtkTreeView *tree_view);
|
|
|
|
|
gboolean (* start_interactive_search) (GtkTreeView *tree_view);
|
2002-02-23 20:22:05 +00:00
|
|
|
|
|
|
|
|
|
/* Padding for future expansion */
|
|
|
|
|
void (*_gtk_reserved1) (void);
|
|
|
|
|
void (*_gtk_reserved2) (void);
|
|
|
|
|
void (*_gtk_reserved3) (void);
|
|
|
|
|
void (*_gtk_reserved4) (void);
|
2010-10-19 17:07:36 +00:00
|
|
|
|
void (*_gtk_reserved5) (void);
|
|
|
|
|
void (*_gtk_reserved6) (void);
|
|
|
|
|
void (*_gtk_reserved7) (void);
|
|
|
|
|
void (*_gtk_reserved8) (void);
|
2000-10-05 01:04:57 +00:00
|
|
|
|
};
|
|
|
|
|
|
2010-11-06 02:04:27 +00:00
|
|
|
|
/**
|
|
|
|
|
* GtkTreeViewColumnDropFunc:
|
|
|
|
|
* @tree_view: A #GtkTreeView
|
|
|
|
|
* @column: The #GtkTreeViewColumn being dragged
|
|
|
|
|
* @prev_column: A #GtkTreeViewColumn on one side of @column
|
|
|
|
|
* @next_column: A #GtkTreeViewColumn on the other side of @column
|
2011-01-18 05:28:24 +00:00
|
|
|
|
* @data: (closure): user data
|
2010-11-06 02:04:27 +00:00
|
|
|
|
*
|
|
|
|
|
* Function type for determining whether @column can be dropped in a
|
|
|
|
|
* particular spot (as determined by @prev_column and @next_column). In
|
|
|
|
|
* left to right locales, @prev_column is on the left of the potential drop
|
|
|
|
|
* spot, and @next_column is on the right. In right to left mode, this is
|
|
|
|
|
* reversed. This function should return %TRUE if the spot is a valid drop
|
|
|
|
|
* spot. Please note that returning %TRUE does not actually indicate that
|
|
|
|
|
* the column drop was made, but is meant only to indicate a possible drop
|
|
|
|
|
* spot to the user.
|
|
|
|
|
*
|
|
|
|
|
* Returns: %TRUE, if @column can be dropped in this spot
|
|
|
|
|
*/
|
2001-04-28 00:29:34 +00:00
|
|
|
|
typedef gboolean (* GtkTreeViewColumnDropFunc) (GtkTreeView *tree_view,
|
|
|
|
|
GtkTreeViewColumn *column,
|
|
|
|
|
GtkTreeViewColumn *prev_column,
|
|
|
|
|
GtkTreeViewColumn *next_column,
|
|
|
|
|
gpointer data);
|
2010-11-06 02:04:27 +00:00
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* GtkTreeViewMappingFunc:
|
|
|
|
|
* @tree_view: A #GtkTreeView
|
2014-02-07 18:01:26 +00:00
|
|
|
|
* @path: The path that’s expanded
|
2010-11-06 02:04:27 +00:00
|
|
|
|
* @user_data: user data
|
|
|
|
|
*
|
|
|
|
|
* Function used for gtk_tree_view_map_expanded_rows().
|
|
|
|
|
*/
|
2001-04-28 00:29:34 +00:00
|
|
|
|
typedef void (* GtkTreeViewMappingFunc) (GtkTreeView *tree_view,
|
|
|
|
|
GtkTreePath *path,
|
|
|
|
|
gpointer user_data);
|
2010-11-06 02:04:27 +00:00
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* GtkTreeViewSearchEqualFunc:
|
|
|
|
|
* @model: the #GtkTreeModel being searched
|
|
|
|
|
* @column: the search column set by gtk_tree_view_set_search_column()
|
|
|
|
|
* @key: the key string to compare with
|
|
|
|
|
* @iter: a #GtkTreeIter pointing the row of @model that should be compared
|
|
|
|
|
* with @key.
|
2011-01-18 05:28:24 +00:00
|
|
|
|
* @search_data: (closure): user data from gtk_tree_view_set_search_equal_func()
|
2010-11-06 02:04:27 +00:00
|
|
|
|
*
|
|
|
|
|
* A function used for checking whether a row in @model matches
|
|
|
|
|
* a search key string entered by the user. Note the return value
|
|
|
|
|
* is reversed from what you would normally expect, though it
|
|
|
|
|
* has some similarity to strcmp() returning 0 for equal strings.
|
|
|
|
|
*
|
|
|
|
|
* Returns: %FALSE if the row matches, %TRUE otherwise.
|
|
|
|
|
*/
|
Add heavily modified patch from Kristian Rietveld to handle interactive
Fri Aug 17 19:30:14 2001 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreeprivate.h:
* gtk/gtktreeview.c: (gtk_tree_view_class_init),
(gtk_tree_view_init), (gtk_tree_view_set_property),
(gtk_tree_view_get_property), (gtk_tree_view_destroy),
(gtk_tree_view_key_press), (gtk_tree_view_leave_notify),
(gtk_tree_view_focus_out), (gtk_tree_view_set_model),
(gtk_tree_view_set_destroy_count_func),
(gtk_tree_view_set_enable_search),
(gtk_tree_view_get_enable_search),
(gtk_tree_view_get_search_column),
(gtk_tree_view_set_search_column),
(gtk_tree_view_get_search_equal_func),
(gtk_tree_view_set_search_equal_func),
(gtk_tree_view_search_dialog_destroy),
(gtk_tree_view_search_position_func),
(gtk_tree_view_interactive_search),
(gtk_tree_view_search_delete_event),
(gtk_tree_view_search_button_press_event),
(gtk_tree_view_search_key_press_event),
(gtk_tree_view_search_move), (gtk_tree_view_search_equal_func),
(gtk_tree_view_search_iter), (gtk_tree_view_search_init):
* gtk/gtktreeview.h:
Add heavily modified patch from Kristian Rietveld to handle
interactive searching.
2001-08-17 23:35:52 +00:00
|
|
|
|
typedef gboolean (*GtkTreeViewSearchEqualFunc) (GtkTreeModel *model,
|
|
|
|
|
gint column,
|
2001-10-25 20:32:40 +00:00
|
|
|
|
const gchar *key,
|
2001-09-01 04:14:25 +00:00
|
|
|
|
GtkTreeIter *iter,
|
|
|
|
|
gpointer search_data);
|
2010-11-06 02:04:27 +00:00
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* GtkTreeViewRowSeparatorFunc:
|
|
|
|
|
* @model: the #GtkTreeModel
|
|
|
|
|
* @iter: a #GtkTreeIter pointing at a row in @model
|
2011-01-18 05:28:24 +00:00
|
|
|
|
* @data: (closure): user data
|
2010-11-06 02:04:27 +00:00
|
|
|
|
*
|
|
|
|
|
* Function type for determining whether the row pointed to by @iter should
|
|
|
|
|
* be rendered as a separator. A common way to implement this is to have a
|
|
|
|
|
* boolean column in the model, whose values the #GtkTreeViewRowSeparatorFunc
|
|
|
|
|
* returns.
|
|
|
|
|
*
|
|
|
|
|
* Returns: %TRUE if the row is a separator
|
|
|
|
|
*/
|
2004-07-07 15:15:35 +00:00
|
|
|
|
typedef gboolean (*GtkTreeViewRowSeparatorFunc) (GtkTreeModel *model,
|
|
|
|
|
GtkTreeIter *iter,
|
|
|
|
|
gpointer data);
|
2006-01-24 10:49:29 +00:00
|
|
|
|
typedef void (*GtkTreeViewSearchPositionFunc) (GtkTreeView *tree_view,
|
|
|
|
|
GtkWidget *search_dialog,
|
|
|
|
|
gpointer user_data);
|
2001-04-28 00:29:34 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* Creators */
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2004-11-23 20:02:15 +00:00
|
|
|
|
GType gtk_tree_view_get_type (void) G_GNUC_CONST;
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2001-03-16 23:22:46 +00:00
|
|
|
|
GtkWidget *gtk_tree_view_new (void);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2001-04-28 00:29:34 +00:00
|
|
|
|
GtkWidget *gtk_tree_view_new_with_model (GtkTreeModel *model);
|
|
|
|
|
|
|
|
|
|
/* Accessors */
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2001-04-28 00:29:34 +00:00
|
|
|
|
GtkTreeModel *gtk_tree_view_get_model (GtkTreeView *tree_view);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2001-04-28 00:29:34 +00:00
|
|
|
|
void gtk_tree_view_set_model (GtkTreeView *tree_view,
|
|
|
|
|
GtkTreeModel *model);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2001-04-28 00:29:34 +00:00
|
|
|
|
GtkTreeSelection *gtk_tree_view_get_selection (GtkTreeView *tree_view);
|
2010-10-18 04:21:39 +00:00
|
|
|
|
|
2012-02-27 12:10:59 +00:00
|
|
|
|
GDK_DEPRECATED_IN_3_0_FOR(gtk_scrollable_get_hadjustment)
|
2001-04-28 00:29:34 +00:00
|
|
|
|
GtkAdjustment *gtk_tree_view_get_hadjustment (GtkTreeView *tree_view);
|
2012-02-27 12:10:59 +00:00
|
|
|
|
GDK_DEPRECATED_IN_3_0_FOR(gtk_scrollable_set_hadjustment)
|
2001-04-28 00:29:34 +00:00
|
|
|
|
void gtk_tree_view_set_hadjustment (GtkTreeView *tree_view,
|
|
|
|
|
GtkAdjustment *adjustment);
|
2012-02-27 12:10:59 +00:00
|
|
|
|
GDK_DEPRECATED_IN_3_0_FOR(gtk_scrollable_get_vadjustment)
|
2001-04-28 00:29:34 +00:00
|
|
|
|
GtkAdjustment *gtk_tree_view_get_vadjustment (GtkTreeView *tree_view);
|
2012-02-27 12:10:59 +00:00
|
|
|
|
GDK_DEPRECATED_IN_3_0_FOR(gtk_scrollable_set_vadjustment)
|
2001-04-28 00:29:34 +00:00
|
|
|
|
void gtk_tree_view_set_vadjustment (GtkTreeView *tree_view,
|
|
|
|
|
GtkAdjustment *adjustment);
|
2010-10-18 04:21:39 +00:00
|
|
|
|
|
|
|
|
|
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2001-04-28 00:29:34 +00:00
|
|
|
|
gboolean gtk_tree_view_get_headers_visible (GtkTreeView *tree_view);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2001-04-28 00:29:34 +00:00
|
|
|
|
void gtk_tree_view_set_headers_visible (GtkTreeView *tree_view,
|
|
|
|
|
gboolean headers_visible);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2001-04-28 00:29:34 +00:00
|
|
|
|
void gtk_tree_view_columns_autosize (GtkTreeView *tree_view);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2005-11-10 14:18:45 +00:00
|
|
|
|
gboolean gtk_tree_view_get_headers_clickable (GtkTreeView *tree_view);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2001-04-28 00:29:34 +00:00
|
|
|
|
void gtk_tree_view_set_headers_clickable (GtkTreeView *tree_view,
|
|
|
|
|
gboolean setting);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2001-04-28 00:29:34 +00:00
|
|
|
|
void gtk_tree_view_set_rules_hint (GtkTreeView *tree_view,
|
|
|
|
|
gboolean setting);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2001-04-28 00:29:34 +00:00
|
|
|
|
gboolean gtk_tree_view_get_rules_hint (GtkTreeView *tree_view);
|
2013-01-17 23:27:15 +00:00
|
|
|
|
GDK_AVAILABLE_IN_3_8
|
|
|
|
|
gboolean gtk_tree_view_get_activate_on_single_click (GtkTreeView *tree_view);
|
|
|
|
|
GDK_AVAILABLE_IN_3_8
|
|
|
|
|
void gtk_tree_view_set_activate_on_single_click (GtkTreeView *tree_view,
|
|
|
|
|
gboolean single);
|
2001-04-28 00:29:34 +00:00
|
|
|
|
|
|
|
|
|
/* Column funtions */
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2001-04-28 00:29:34 +00:00
|
|
|
|
gint gtk_tree_view_append_column (GtkTreeView *tree_view,
|
|
|
|
|
GtkTreeViewColumn *column);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2001-04-28 00:29:34 +00:00
|
|
|
|
gint gtk_tree_view_remove_column (GtkTreeView *tree_view,
|
|
|
|
|
GtkTreeViewColumn *column);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2001-04-28 00:29:34 +00:00
|
|
|
|
gint gtk_tree_view_insert_column (GtkTreeView *tree_view,
|
|
|
|
|
GtkTreeViewColumn *column,
|
|
|
|
|
gint position);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2001-04-28 00:29:34 +00:00
|
|
|
|
gint gtk_tree_view_insert_column_with_attributes (GtkTreeView *tree_view,
|
|
|
|
|
gint position,
|
2002-03-15 16:37:07 +00:00
|
|
|
|
const gchar *title,
|
2001-04-28 00:29:34 +00:00
|
|
|
|
GtkCellRenderer *cell,
|
2005-03-08 05:52:55 +00:00
|
|
|
|
...) G_GNUC_NULL_TERMINATED;
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2001-05-25 20:41:46 +00:00
|
|
|
|
gint gtk_tree_view_insert_column_with_data_func (GtkTreeView *tree_view,
|
|
|
|
|
gint position,
|
2002-03-15 16:37:07 +00:00
|
|
|
|
const gchar *title,
|
2001-05-25 20:41:46 +00:00
|
|
|
|
GtkCellRenderer *cell,
|
2001-06-01 22:57:30 +00:00
|
|
|
|
GtkTreeCellDataFunc func,
|
2001-05-25 20:41:46 +00:00
|
|
|
|
gpointer data,
|
|
|
|
|
GDestroyNotify dnotify);
|
2012-02-27 12:10:59 +00:00
|
|
|
|
|
|
|
|
|
GDK_AVAILABLE_IN_3_4
|
2011-11-15 15:37:24 +00:00
|
|
|
|
guint gtk_tree_view_get_n_columns (GtkTreeView *tree_view);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2001-04-28 00:29:34 +00:00
|
|
|
|
GtkTreeViewColumn *gtk_tree_view_get_column (GtkTreeView *tree_view,
|
|
|
|
|
gint n);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2001-04-30 16:16:02 +00:00
|
|
|
|
GList *gtk_tree_view_get_columns (GtkTreeView *tree_view);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2001-04-30 16:16:02 +00:00
|
|
|
|
void gtk_tree_view_move_column_after (GtkTreeView *tree_view,
|
2001-04-28 00:29:34 +00:00
|
|
|
|
GtkTreeViewColumn *column,
|
2001-04-30 16:16:02 +00:00
|
|
|
|
GtkTreeViewColumn *base_column);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2001-04-28 00:29:34 +00:00
|
|
|
|
void gtk_tree_view_set_expander_column (GtkTreeView *tree_view,
|
2001-06-29 03:11:01 +00:00
|
|
|
|
GtkTreeViewColumn *column);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2001-06-29 03:11:01 +00:00
|
|
|
|
GtkTreeViewColumn *gtk_tree_view_get_expander_column (GtkTreeView *tree_view);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2001-05-09 22:23:12 +00:00
|
|
|
|
void gtk_tree_view_set_column_drag_function (GtkTreeView *tree_view,
|
|
|
|
|
GtkTreeViewColumnDropFunc func,
|
|
|
|
|
gpointer user_data,
|
2008-06-18 09:12:32 +00:00
|
|
|
|
GDestroyNotify destroy);
|
2001-01-19 22:39:19 +00:00
|
|
|
|
|
2000-10-05 01:04:57 +00:00
|
|
|
|
/* Actions */
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2001-04-28 00:29:34 +00:00
|
|
|
|
void gtk_tree_view_scroll_to_point (GtkTreeView *tree_view,
|
|
|
|
|
gint tree_x,
|
|
|
|
|
gint tree_y);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2001-04-28 00:29:34 +00:00
|
|
|
|
void gtk_tree_view_scroll_to_cell (GtkTreeView *tree_view,
|
|
|
|
|
GtkTreePath *path,
|
|
|
|
|
GtkTreeViewColumn *column,
|
2001-08-24 20:09:26 +00:00
|
|
|
|
gboolean use_align,
|
2001-04-28 00:29:34 +00:00
|
|
|
|
gfloat row_align,
|
|
|
|
|
gfloat col_align);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2001-04-28 00:29:34 +00:00
|
|
|
|
void gtk_tree_view_row_activated (GtkTreeView *tree_view,
|
|
|
|
|
GtkTreePath *path,
|
|
|
|
|
GtkTreeViewColumn *column);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2001-04-28 00:29:34 +00:00
|
|
|
|
void gtk_tree_view_expand_all (GtkTreeView *tree_view);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2001-04-28 00:29:34 +00:00
|
|
|
|
void gtk_tree_view_collapse_all (GtkTreeView *tree_view);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2002-06-04 19:05:33 +00:00
|
|
|
|
void gtk_tree_view_expand_to_path (GtkTreeView *tree_view,
|
|
|
|
|
GtkTreePath *path);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2001-04-28 00:29:34 +00:00
|
|
|
|
gboolean gtk_tree_view_expand_row (GtkTreeView *tree_view,
|
|
|
|
|
GtkTreePath *path,
|
|
|
|
|
gboolean open_all);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2001-04-28 00:29:34 +00:00
|
|
|
|
gboolean gtk_tree_view_collapse_row (GtkTreeView *tree_view,
|
|
|
|
|
GtkTreePath *path);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2001-04-28 00:29:34 +00:00
|
|
|
|
void gtk_tree_view_map_expanded_rows (GtkTreeView *tree_view,
|
|
|
|
|
GtkTreeViewMappingFunc func,
|
|
|
|
|
gpointer data);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2001-06-19 00:08:48 +00:00
|
|
|
|
gboolean gtk_tree_view_row_expanded (GtkTreeView *tree_view,
|
|
|
|
|
GtkTreePath *path);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2001-05-16 00:23:30 +00:00
|
|
|
|
void gtk_tree_view_set_reorderable (GtkTreeView *tree_view,
|
|
|
|
|
gboolean reorderable);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2001-06-24 15:34:48 +00:00
|
|
|
|
gboolean gtk_tree_view_get_reorderable (GtkTreeView *tree_view);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2001-06-08 22:59:37 +00:00
|
|
|
|
void gtk_tree_view_set_cursor (GtkTreeView *tree_view,
|
2001-09-25 16:44:39 +00:00
|
|
|
|
GtkTreePath *path,
|
|
|
|
|
GtkTreeViewColumn *focus_column,
|
|
|
|
|
gboolean start_editing);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
The "big treeview focus patch". Fixes several issues and adds some
Sun May 5 16:42:32 2002 Kristian Rietveld <kris@gtk.org>
The "big treeview focus patch". Fixes several issues and adds some
goodies. Related bugs: #73676, #73734, #78660.
* gtk/gtktreeview.h: add gtk_tree_view_set_cursor_on_cell
* gtk/gtktreeview.c (gtk_tree_view_button_press): focus on a cell
if applicable,
(gtk_tree_view_bin_expose): set_cell_data before iterating columns,
add support for row-spanning focus rectangles,
(gtk_tree_view_has_special_cell): new function,
(gtk_tree_view_move_cursor_left_right): add support for multiple
focusable cells in one column,
(gtk_tree_view_set_cursor): call _set_cursor_on_cell now,
(gtk_tree_view_set_cursor_on_cell): copy of _set_cursor, extended
with focus_cell parameter,
(gtk_tree_view_search_iter): removed unused column variable,
(gtk_tree_view_start_editing): add neighbor size code to allow
for multiple editable cells in one column.
* gtk/gtktreeviewcolumn.c (_GtkTreeViewColumnCellInfo): add
in_editing_mode field,
(gtk_tree_view_column_get_edited_cell): new function, removed
_get_editable_cell,
(_gtk_tree_view_column_get_cell_at_pos): new function,
(gtk_tree_view_column_pack_end): s/g_new/g_new0/ ...,
(gtk_tree_view_column_cell_process_action): loads of changes to get
it right and to allow for multiple special cells, etc,
(gtk_tree_view_column_cell_first): new function,
(gtk_tree_view_column_cell_last): ditto,
(gtk_tree_view_column_cell_next): ditto,
(gtk_tree_view_column_cell_prev): ditto,
(gtk_tree_view_column_cell_focus): add left and right parameters,
allow for multiple special cells,
(gtk_tree_view_column_cell_is_visible): add assertion,
(gtk_tree_view_column_focus_cell): new function,
(gtk_tree_view_column_stop_editing): unset in_editing_mode flag,
(_gtk_tree_view_column_get_neighbor_sizes): iterate through cells
correctly
* gtk/gtktreeviewcolumn.h: add gtk_tree_view_column_focus_cell
* gtk/gtktreeprivate.h: s/_get_editable_cell/_get_edited_cell/, add
_gtk_tree_view_column_get_cell_at_pos, add new parameters to
_gtk_tree_view_column_cell_focus.
* tests/testtreeedit.c: add some cells in order to test new code.
2002-05-05 14:54:00 +00:00
|
|
|
|
void gtk_tree_view_set_cursor_on_cell (GtkTreeView *tree_view,
|
|
|
|
|
GtkTreePath *path,
|
|
|
|
|
GtkTreeViewColumn *focus_column,
|
|
|
|
|
GtkCellRenderer *focus_cell,
|
|
|
|
|
gboolean start_editing);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2001-09-25 19:38:18 +00:00
|
|
|
|
void gtk_tree_view_get_cursor (GtkTreeView *tree_view,
|
|
|
|
|
GtkTreePath **path,
|
|
|
|
|
GtkTreeViewColumn **focus_column);
|
2001-05-16 00:23:30 +00:00
|
|
|
|
|
2001-04-28 00:29:34 +00:00
|
|
|
|
|
|
|
|
|
/* Layout information */
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2001-11-15 23:46:05 +00:00
|
|
|
|
GdkWindow *gtk_tree_view_get_bin_window (GtkTreeView *tree_view);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2001-04-28 00:29:34 +00:00
|
|
|
|
gboolean gtk_tree_view_get_path_at_pos (GtkTreeView *tree_view,
|
|
|
|
|
gint x,
|
|
|
|
|
gint y,
|
|
|
|
|
GtkTreePath **path,
|
|
|
|
|
GtkTreeViewColumn **column,
|
|
|
|
|
gint *cell_x,
|
|
|
|
|
gint *cell_y);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2001-04-28 00:29:34 +00:00
|
|
|
|
void gtk_tree_view_get_cell_area (GtkTreeView *tree_view,
|
|
|
|
|
GtkTreePath *path,
|
|
|
|
|
GtkTreeViewColumn *column,
|
|
|
|
|
GdkRectangle *rect);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2001-04-28 00:29:34 +00:00
|
|
|
|
void gtk_tree_view_get_background_area (GtkTreeView *tree_view,
|
|
|
|
|
GtkTreePath *path,
|
|
|
|
|
GtkTreeViewColumn *column,
|
|
|
|
|
GdkRectangle *rect);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2001-04-28 00:29:34 +00:00
|
|
|
|
void gtk_tree_view_get_visible_rect (GtkTreeView *tree_view,
|
|
|
|
|
GdkRectangle *visible_rect);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2005-07-13 23:05:27 +00:00
|
|
|
|
gboolean gtk_tree_view_get_visible_range (GtkTreeView *tree_view,
|
|
|
|
|
GtkTreePath **start_path,
|
|
|
|
|
GtkTreePath **end_path);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2011-01-07 14:35:35 +00:00
|
|
|
|
gboolean gtk_tree_view_is_blank_at_pos (GtkTreeView *tree_view,
|
|
|
|
|
gint x,
|
|
|
|
|
gint y,
|
|
|
|
|
GtkTreePath **path,
|
|
|
|
|
GtkTreeViewColumn **column,
|
|
|
|
|
gint *cell_x,
|
|
|
|
|
gint *cell_y);
|
2001-01-19 22:39:19 +00:00
|
|
|
|
|
|
|
|
|
/* Drag-and-Drop support */
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2001-11-06 19:10:03 +00:00
|
|
|
|
void gtk_tree_view_enable_model_drag_source (GtkTreeView *tree_view,
|
2001-04-28 00:29:34 +00:00
|
|
|
|
GdkModifierType start_button_mask,
|
|
|
|
|
const GtkTargetEntry *targets,
|
|
|
|
|
gint n_targets,
|
2001-11-06 19:10:03 +00:00
|
|
|
|
GdkDragAction actions);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2001-11-06 19:10:03 +00:00
|
|
|
|
void gtk_tree_view_enable_model_drag_dest (GtkTreeView *tree_view,
|
2001-04-28 00:29:34 +00:00
|
|
|
|
const GtkTargetEntry *targets,
|
|
|
|
|
gint n_targets,
|
2001-11-06 19:10:03 +00:00
|
|
|
|
GdkDragAction actions);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2001-04-28 00:29:34 +00:00
|
|
|
|
void gtk_tree_view_unset_rows_drag_source (GtkTreeView *tree_view);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2001-04-28 00:29:34 +00:00
|
|
|
|
void gtk_tree_view_unset_rows_drag_dest (GtkTreeView *tree_view);
|
2001-01-19 22:39:19 +00:00
|
|
|
|
|
2001-05-16 00:23:30 +00:00
|
|
|
|
|
2001-01-19 22:39:19 +00:00
|
|
|
|
/* These are useful to implement your own custom stuff. */
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2001-04-28 00:29:34 +00:00
|
|
|
|
void gtk_tree_view_set_drag_dest_row (GtkTreeView *tree_view,
|
|
|
|
|
GtkTreePath *path,
|
|
|
|
|
GtkTreeViewDropPosition pos);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2001-04-28 00:29:34 +00:00
|
|
|
|
void gtk_tree_view_get_drag_dest_row (GtkTreeView *tree_view,
|
|
|
|
|
GtkTreePath **path,
|
|
|
|
|
GtkTreeViewDropPosition *pos);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2001-04-28 00:29:34 +00:00
|
|
|
|
gboolean gtk_tree_view_get_dest_row_at_pos (GtkTreeView *tree_view,
|
|
|
|
|
gint drag_x,
|
|
|
|
|
gint drag_y,
|
|
|
|
|
GtkTreePath **path,
|
|
|
|
|
GtkTreeViewDropPosition *pos);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2010-08-24 13:56:08 +00:00
|
|
|
|
cairo_surface_t *gtk_tree_view_create_row_drag_icon (GtkTreeView *tree_view,
|
2001-04-28 00:29:34 +00:00
|
|
|
|
GtkTreePath *path);
|
2000-10-05 01:04:57 +00:00
|
|
|
|
|
Add heavily modified patch from Kristian Rietveld to handle interactive
Fri Aug 17 19:30:14 2001 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreeprivate.h:
* gtk/gtktreeview.c: (gtk_tree_view_class_init),
(gtk_tree_view_init), (gtk_tree_view_set_property),
(gtk_tree_view_get_property), (gtk_tree_view_destroy),
(gtk_tree_view_key_press), (gtk_tree_view_leave_notify),
(gtk_tree_view_focus_out), (gtk_tree_view_set_model),
(gtk_tree_view_set_destroy_count_func),
(gtk_tree_view_set_enable_search),
(gtk_tree_view_get_enable_search),
(gtk_tree_view_get_search_column),
(gtk_tree_view_set_search_column),
(gtk_tree_view_get_search_equal_func),
(gtk_tree_view_set_search_equal_func),
(gtk_tree_view_search_dialog_destroy),
(gtk_tree_view_search_position_func),
(gtk_tree_view_interactive_search),
(gtk_tree_view_search_delete_event),
(gtk_tree_view_search_button_press_event),
(gtk_tree_view_search_key_press_event),
(gtk_tree_view_search_move), (gtk_tree_view_search_equal_func),
(gtk_tree_view_search_iter), (gtk_tree_view_search_init):
* gtk/gtktreeview.h:
Add heavily modified patch from Kristian Rietveld to handle
interactive searching.
2001-08-17 23:35:52 +00:00
|
|
|
|
/* Interactive search */
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
Add heavily modified patch from Kristian Rietveld to handle interactive
Fri Aug 17 19:30:14 2001 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreeprivate.h:
* gtk/gtktreeview.c: (gtk_tree_view_class_init),
(gtk_tree_view_init), (gtk_tree_view_set_property),
(gtk_tree_view_get_property), (gtk_tree_view_destroy),
(gtk_tree_view_key_press), (gtk_tree_view_leave_notify),
(gtk_tree_view_focus_out), (gtk_tree_view_set_model),
(gtk_tree_view_set_destroy_count_func),
(gtk_tree_view_set_enable_search),
(gtk_tree_view_get_enable_search),
(gtk_tree_view_get_search_column),
(gtk_tree_view_set_search_column),
(gtk_tree_view_get_search_equal_func),
(gtk_tree_view_set_search_equal_func),
(gtk_tree_view_search_dialog_destroy),
(gtk_tree_view_search_position_func),
(gtk_tree_view_interactive_search),
(gtk_tree_view_search_delete_event),
(gtk_tree_view_search_button_press_event),
(gtk_tree_view_search_key_press_event),
(gtk_tree_view_search_move), (gtk_tree_view_search_equal_func),
(gtk_tree_view_search_iter), (gtk_tree_view_search_init):
* gtk/gtktreeview.h:
Add heavily modified patch from Kristian Rietveld to handle
interactive searching.
2001-08-17 23:35:52 +00:00
|
|
|
|
void gtk_tree_view_set_enable_search (GtkTreeView *tree_view,
|
2001-09-27 00:09:41 +00:00
|
|
|
|
gboolean enable_search);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
Add heavily modified patch from Kristian Rietveld to handle interactive
Fri Aug 17 19:30:14 2001 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreeprivate.h:
* gtk/gtktreeview.c: (gtk_tree_view_class_init),
(gtk_tree_view_init), (gtk_tree_view_set_property),
(gtk_tree_view_get_property), (gtk_tree_view_destroy),
(gtk_tree_view_key_press), (gtk_tree_view_leave_notify),
(gtk_tree_view_focus_out), (gtk_tree_view_set_model),
(gtk_tree_view_set_destroy_count_func),
(gtk_tree_view_set_enable_search),
(gtk_tree_view_get_enable_search),
(gtk_tree_view_get_search_column),
(gtk_tree_view_set_search_column),
(gtk_tree_view_get_search_equal_func),
(gtk_tree_view_set_search_equal_func),
(gtk_tree_view_search_dialog_destroy),
(gtk_tree_view_search_position_func),
(gtk_tree_view_interactive_search),
(gtk_tree_view_search_delete_event),
(gtk_tree_view_search_button_press_event),
(gtk_tree_view_search_key_press_event),
(gtk_tree_view_search_move), (gtk_tree_view_search_equal_func),
(gtk_tree_view_search_iter), (gtk_tree_view_search_init):
* gtk/gtktreeview.h:
Add heavily modified patch from Kristian Rietveld to handle
interactive searching.
2001-08-17 23:35:52 +00:00
|
|
|
|
gboolean gtk_tree_view_get_enable_search (GtkTreeView *tree_view);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
Add heavily modified patch from Kristian Rietveld to handle interactive
Fri Aug 17 19:30:14 2001 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreeprivate.h:
* gtk/gtktreeview.c: (gtk_tree_view_class_init),
(gtk_tree_view_init), (gtk_tree_view_set_property),
(gtk_tree_view_get_property), (gtk_tree_view_destroy),
(gtk_tree_view_key_press), (gtk_tree_view_leave_notify),
(gtk_tree_view_focus_out), (gtk_tree_view_set_model),
(gtk_tree_view_set_destroy_count_func),
(gtk_tree_view_set_enable_search),
(gtk_tree_view_get_enable_search),
(gtk_tree_view_get_search_column),
(gtk_tree_view_set_search_column),
(gtk_tree_view_get_search_equal_func),
(gtk_tree_view_set_search_equal_func),
(gtk_tree_view_search_dialog_destroy),
(gtk_tree_view_search_position_func),
(gtk_tree_view_interactive_search),
(gtk_tree_view_search_delete_event),
(gtk_tree_view_search_button_press_event),
(gtk_tree_view_search_key_press_event),
(gtk_tree_view_search_move), (gtk_tree_view_search_equal_func),
(gtk_tree_view_search_iter), (gtk_tree_view_search_init):
* gtk/gtktreeview.h:
Add heavily modified patch from Kristian Rietveld to handle
interactive searching.
2001-08-17 23:35:52 +00:00
|
|
|
|
gint gtk_tree_view_get_search_column (GtkTreeView *tree_view);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
Add heavily modified patch from Kristian Rietveld to handle interactive
Fri Aug 17 19:30:14 2001 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreeprivate.h:
* gtk/gtktreeview.c: (gtk_tree_view_class_init),
(gtk_tree_view_init), (gtk_tree_view_set_property),
(gtk_tree_view_get_property), (gtk_tree_view_destroy),
(gtk_tree_view_key_press), (gtk_tree_view_leave_notify),
(gtk_tree_view_focus_out), (gtk_tree_view_set_model),
(gtk_tree_view_set_destroy_count_func),
(gtk_tree_view_set_enable_search),
(gtk_tree_view_get_enable_search),
(gtk_tree_view_get_search_column),
(gtk_tree_view_set_search_column),
(gtk_tree_view_get_search_equal_func),
(gtk_tree_view_set_search_equal_func),
(gtk_tree_view_search_dialog_destroy),
(gtk_tree_view_search_position_func),
(gtk_tree_view_interactive_search),
(gtk_tree_view_search_delete_event),
(gtk_tree_view_search_button_press_event),
(gtk_tree_view_search_key_press_event),
(gtk_tree_view_search_move), (gtk_tree_view_search_equal_func),
(gtk_tree_view_search_iter), (gtk_tree_view_search_init):
* gtk/gtktreeview.h:
Add heavily modified patch from Kristian Rietveld to handle
interactive searching.
2001-08-17 23:35:52 +00:00
|
|
|
|
void gtk_tree_view_set_search_column (GtkTreeView *tree_view,
|
|
|
|
|
gint column);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
Add heavily modified patch from Kristian Rietveld to handle interactive
Fri Aug 17 19:30:14 2001 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreeprivate.h:
* gtk/gtktreeview.c: (gtk_tree_view_class_init),
(gtk_tree_view_init), (gtk_tree_view_set_property),
(gtk_tree_view_get_property), (gtk_tree_view_destroy),
(gtk_tree_view_key_press), (gtk_tree_view_leave_notify),
(gtk_tree_view_focus_out), (gtk_tree_view_set_model),
(gtk_tree_view_set_destroy_count_func),
(gtk_tree_view_set_enable_search),
(gtk_tree_view_get_enable_search),
(gtk_tree_view_get_search_column),
(gtk_tree_view_set_search_column),
(gtk_tree_view_get_search_equal_func),
(gtk_tree_view_set_search_equal_func),
(gtk_tree_view_search_dialog_destroy),
(gtk_tree_view_search_position_func),
(gtk_tree_view_interactive_search),
(gtk_tree_view_search_delete_event),
(gtk_tree_view_search_button_press_event),
(gtk_tree_view_search_key_press_event),
(gtk_tree_view_search_move), (gtk_tree_view_search_equal_func),
(gtk_tree_view_search_iter), (gtk_tree_view_search_init):
* gtk/gtktreeview.h:
Add heavily modified patch from Kristian Rietveld to handle
interactive searching.
2001-08-17 23:35:52 +00:00
|
|
|
|
GtkTreeViewSearchEqualFunc gtk_tree_view_get_search_equal_func (GtkTreeView *tree_view);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
Add heavily modified patch from Kristian Rietveld to handle interactive
Fri Aug 17 19:30:14 2001 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreeprivate.h:
* gtk/gtktreeview.c: (gtk_tree_view_class_init),
(gtk_tree_view_init), (gtk_tree_view_set_property),
(gtk_tree_view_get_property), (gtk_tree_view_destroy),
(gtk_tree_view_key_press), (gtk_tree_view_leave_notify),
(gtk_tree_view_focus_out), (gtk_tree_view_set_model),
(gtk_tree_view_set_destroy_count_func),
(gtk_tree_view_set_enable_search),
(gtk_tree_view_get_enable_search),
(gtk_tree_view_get_search_column),
(gtk_tree_view_set_search_column),
(gtk_tree_view_get_search_equal_func),
(gtk_tree_view_set_search_equal_func),
(gtk_tree_view_search_dialog_destroy),
(gtk_tree_view_search_position_func),
(gtk_tree_view_interactive_search),
(gtk_tree_view_search_delete_event),
(gtk_tree_view_search_button_press_event),
(gtk_tree_view_search_key_press_event),
(gtk_tree_view_search_move), (gtk_tree_view_search_equal_func),
(gtk_tree_view_search_iter), (gtk_tree_view_search_init):
* gtk/gtktreeview.h:
Add heavily modified patch from Kristian Rietveld to handle
interactive searching.
2001-08-17 23:35:52 +00:00
|
|
|
|
void gtk_tree_view_set_search_equal_func (GtkTreeView *tree_view,
|
2001-09-27 00:09:41 +00:00
|
|
|
|
GtkTreeViewSearchEqualFunc search_equal_func,
|
|
|
|
|
gpointer search_user_data,
|
2008-06-18 09:12:32 +00:00
|
|
|
|
GDestroyNotify search_destroy);
|
2001-06-26 17:01:53 +00:00
|
|
|
|
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2006-01-24 10:49:29 +00:00
|
|
|
|
GtkEntry *gtk_tree_view_get_search_entry (GtkTreeView *tree_view);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2006-01-24 10:49:29 +00:00
|
|
|
|
void gtk_tree_view_set_search_entry (GtkTreeView *tree_view,
|
|
|
|
|
GtkEntry *entry);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2006-01-24 10:49:29 +00:00
|
|
|
|
GtkTreeViewSearchPositionFunc gtk_tree_view_get_search_position_func (GtkTreeView *tree_view);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2006-01-24 10:49:29 +00:00
|
|
|
|
void gtk_tree_view_set_search_position_func (GtkTreeView *tree_view,
|
|
|
|
|
GtkTreeViewSearchPositionFunc func,
|
|
|
|
|
gpointer data,
|
|
|
|
|
GDestroyNotify destroy);
|
|
|
|
|
|
2007-06-13 13:27:00 +00:00
|
|
|
|
/* Convert between the different coordinate systems */
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2007-06-13 13:27:00 +00:00
|
|
|
|
void gtk_tree_view_convert_widget_to_tree_coords (GtkTreeView *tree_view,
|
|
|
|
|
gint wx,
|
|
|
|
|
gint wy,
|
|
|
|
|
gint *tx,
|
|
|
|
|
gint *ty);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2007-06-13 13:27:00 +00:00
|
|
|
|
void gtk_tree_view_convert_tree_to_widget_coords (GtkTreeView *tree_view,
|
|
|
|
|
gint tx,
|
|
|
|
|
gint ty,
|
|
|
|
|
gint *wx,
|
|
|
|
|
gint *wy);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2007-06-13 13:27:00 +00:00
|
|
|
|
void gtk_tree_view_convert_widget_to_bin_window_coords (GtkTreeView *tree_view,
|
|
|
|
|
gint wx,
|
|
|
|
|
gint wy,
|
|
|
|
|
gint *bx,
|
|
|
|
|
gint *by);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2007-06-13 13:27:00 +00:00
|
|
|
|
void gtk_tree_view_convert_bin_window_to_widget_coords (GtkTreeView *tree_view,
|
|
|
|
|
gint bx,
|
|
|
|
|
gint by,
|
|
|
|
|
gint *wx,
|
|
|
|
|
gint *wy);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2007-06-13 13:27:00 +00:00
|
|
|
|
void gtk_tree_view_convert_tree_to_bin_window_coords (GtkTreeView *tree_view,
|
|
|
|
|
gint tx,
|
|
|
|
|
gint ty,
|
|
|
|
|
gint *bx,
|
|
|
|
|
gint *by);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2007-06-13 13:27:00 +00:00
|
|
|
|
void gtk_tree_view_convert_bin_window_to_tree_coords (GtkTreeView *tree_view,
|
|
|
|
|
gint bx,
|
|
|
|
|
gint by,
|
|
|
|
|
gint *tx,
|
|
|
|
|
gint *ty);
|
|
|
|
|
|
2001-06-26 17:01:53 +00:00
|
|
|
|
/* This function should really never be used. It is just for use by ATK.
|
|
|
|
|
*/
|
Add heavily modified patch from Kristian Rietveld to handle interactive
Fri Aug 17 19:30:14 2001 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreeprivate.h:
* gtk/gtktreeview.c: (gtk_tree_view_class_init),
(gtk_tree_view_init), (gtk_tree_view_set_property),
(gtk_tree_view_get_property), (gtk_tree_view_destroy),
(gtk_tree_view_key_press), (gtk_tree_view_leave_notify),
(gtk_tree_view_focus_out), (gtk_tree_view_set_model),
(gtk_tree_view_set_destroy_count_func),
(gtk_tree_view_set_enable_search),
(gtk_tree_view_get_enable_search),
(gtk_tree_view_get_search_column),
(gtk_tree_view_set_search_column),
(gtk_tree_view_get_search_equal_func),
(gtk_tree_view_set_search_equal_func),
(gtk_tree_view_search_dialog_destroy),
(gtk_tree_view_search_position_func),
(gtk_tree_view_interactive_search),
(gtk_tree_view_search_delete_event),
(gtk_tree_view_search_button_press_event),
(gtk_tree_view_search_key_press_event),
(gtk_tree_view_search_move), (gtk_tree_view_search_equal_func),
(gtk_tree_view_search_iter), (gtk_tree_view_search_init):
* gtk/gtktreeview.h:
Add heavily modified patch from Kristian Rietveld to handle
interactive searching.
2001-08-17 23:35:52 +00:00
|
|
|
|
typedef void (* GtkTreeDestroyCountFunc) (GtkTreeView *tree_view,
|
|
|
|
|
GtkTreePath *path,
|
|
|
|
|
gint children,
|
|
|
|
|
gpointer user_data);
|
2012-02-27 12:10:59 +00:00
|
|
|
|
GDK_DEPRECATED_IN_3_4
|
2001-06-26 17:01:53 +00:00
|
|
|
|
void gtk_tree_view_set_destroy_count_func (GtkTreeView *tree_view,
|
|
|
|
|
GtkTreeDestroyCountFunc func,
|
|
|
|
|
gpointer data,
|
2008-06-18 09:12:32 +00:00
|
|
|
|
GDestroyNotify destroy);
|
2001-06-26 17:01:53 +00:00
|
|
|
|
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2004-05-10 17:15:14 +00:00
|
|
|
|
void gtk_tree_view_set_fixed_height_mode (GtkTreeView *tree_view,
|
2004-07-07 16:24:55 +00:00
|
|
|
|
gboolean enable);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2004-05-10 17:15:14 +00:00
|
|
|
|
gboolean gtk_tree_view_get_fixed_height_mode (GtkTreeView *tree_view);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2004-05-10 17:15:14 +00:00
|
|
|
|
void gtk_tree_view_set_hover_selection (GtkTreeView *tree_view,
|
|
|
|
|
gboolean hover);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2004-05-10 17:15:14 +00:00
|
|
|
|
gboolean gtk_tree_view_get_hover_selection (GtkTreeView *tree_view);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2004-08-02 19:11:32 +00:00
|
|
|
|
void gtk_tree_view_set_hover_expand (GtkTreeView *tree_view,
|
|
|
|
|
gboolean expand);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2004-08-02 19:11:32 +00:00
|
|
|
|
gboolean gtk_tree_view_get_hover_expand (GtkTreeView *tree_view);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
Rubber banding for GtkTreeView, #80127. Uses same method as GtkIconView.
2006-06-02 Kristian Rietveld <kris@imendio.com>
Rubber banding for GtkTreeView, #80127. Uses same method as
GtkIconView.
* gtk/gtktreeview.c (gtk_tree_view_class_init),
(gtk_tree_view_init), (gtk_tree_view_get_property),
(gtk_tree_view_set_property), (gtk_tree_view_set_rubber_banding),
(gtk_tree_view_get_rubber_banding): add property,
(gtk_tree_view_button_press): start rubber banding if enabled and
press is on a non-selected node,
(gtk_tree_view_button_release): stop rubber banding,
(gtk_tree_view_motion_bin_window), (scrool_row_timeout): enable/update
the rubber band,
(gtk_tree_view_bin_expose): draw rubber band if active,
(gtk_tree_view_stop_rubberband),
(gtk_tree_view_update_rubber_band_selection_range),
(gtk_tree_view_update_rubber_band_selection),
(gtk_tree_view_update_rubber_band),
(gtk_tree_view_paint_rubber_band): new functions.
* gtk/gtktreeview.h: add new set/get function for rubber banding
property.
* gtk/gtktreeprivate.h: add a bunch of new private fields.
2006-06-02 20:40:33 +00:00
|
|
|
|
void gtk_tree_view_set_rubber_banding (GtkTreeView *tree_view,
|
|
|
|
|
gboolean enable);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
Rubber banding for GtkTreeView, #80127. Uses same method as GtkIconView.
2006-06-02 Kristian Rietveld <kris@imendio.com>
Rubber banding for GtkTreeView, #80127. Uses same method as
GtkIconView.
* gtk/gtktreeview.c (gtk_tree_view_class_init),
(gtk_tree_view_init), (gtk_tree_view_get_property),
(gtk_tree_view_set_property), (gtk_tree_view_set_rubber_banding),
(gtk_tree_view_get_rubber_banding): add property,
(gtk_tree_view_button_press): start rubber banding if enabled and
press is on a non-selected node,
(gtk_tree_view_button_release): stop rubber banding,
(gtk_tree_view_motion_bin_window), (scrool_row_timeout): enable/update
the rubber band,
(gtk_tree_view_bin_expose): draw rubber band if active,
(gtk_tree_view_stop_rubberband),
(gtk_tree_view_update_rubber_band_selection_range),
(gtk_tree_view_update_rubber_band_selection),
(gtk_tree_view_update_rubber_band),
(gtk_tree_view_paint_rubber_band): new functions.
* gtk/gtktreeview.h: add new set/get function for rubber banding
property.
* gtk/gtktreeprivate.h: add a bunch of new private fields.
2006-06-02 20:40:33 +00:00
|
|
|
|
gboolean gtk_tree_view_get_rubber_banding (GtkTreeView *tree_view);
|
2001-06-26 17:01:53 +00:00
|
|
|
|
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2007-07-02 17:33:25 +00:00
|
|
|
|
gboolean gtk_tree_view_is_rubber_banding_active (GtkTreeView *tree_view);
|
|
|
|
|
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2004-07-07 15:15:35 +00:00
|
|
|
|
GtkTreeViewRowSeparatorFunc gtk_tree_view_get_row_separator_func (GtkTreeView *tree_view);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2004-07-07 15:15:35 +00:00
|
|
|
|
void gtk_tree_view_set_row_separator_func (GtkTreeView *tree_view,
|
|
|
|
|
GtkTreeViewRowSeparatorFunc func,
|
|
|
|
|
gpointer data,
|
2008-06-18 09:12:32 +00:00
|
|
|
|
GDestroyNotify destroy);
|
2004-07-07 15:15:35 +00:00
|
|
|
|
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
Introduce grid and tree lines in GtkTreeView. (#106406, Martyn Russell).
2006-06-12 Kristian Rietveld <kris@imendio.com>
Introduce grid and tree lines in GtkTreeView. (#106406,
Martyn Russell).
* gtk/gtktreeprivate.h: add new fields to GtkTreePrivate.
* gtk/gtkenums.h: add GtkTreeViewGridLines.
* gtk/gtktreeview.[ch] (gtk_tree_view_set_grid_lines),
(gtk_tree_view_get_grid_lines),
(gtk_tree_view_set_enable_tree_lines),
(gtk_tree_view_get_enable_tree_lines): new API,
(gtk_tree_view_class_init): new properties,
(gtk_tree_view_init), (gtk_tree_view_{get,set}_property),
(gtk_tree_view_realize), (gtk_tree_view_draw_grid_lines),
(gtk_tree_view_bin_expose): implement.
* gtk/gtk.symbols: update.
2006-06-12 18:17:35 +00:00
|
|
|
|
GtkTreeViewGridLines gtk_tree_view_get_grid_lines (GtkTreeView *tree_view);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
Introduce grid and tree lines in GtkTreeView. (#106406, Martyn Russell).
2006-06-12 Kristian Rietveld <kris@imendio.com>
Introduce grid and tree lines in GtkTreeView. (#106406,
Martyn Russell).
* gtk/gtktreeprivate.h: add new fields to GtkTreePrivate.
* gtk/gtkenums.h: add GtkTreeViewGridLines.
* gtk/gtktreeview.[ch] (gtk_tree_view_set_grid_lines),
(gtk_tree_view_get_grid_lines),
(gtk_tree_view_set_enable_tree_lines),
(gtk_tree_view_get_enable_tree_lines): new API,
(gtk_tree_view_class_init): new properties,
(gtk_tree_view_init), (gtk_tree_view_{get,set}_property),
(gtk_tree_view_realize), (gtk_tree_view_draw_grid_lines),
(gtk_tree_view_bin_expose): implement.
* gtk/gtk.symbols: update.
2006-06-12 18:17:35 +00:00
|
|
|
|
void gtk_tree_view_set_grid_lines (GtkTreeView *tree_view,
|
|
|
|
|
GtkTreeViewGridLines grid_lines);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
Introduce grid and tree lines in GtkTreeView. (#106406, Martyn Russell).
2006-06-12 Kristian Rietveld <kris@imendio.com>
Introduce grid and tree lines in GtkTreeView. (#106406,
Martyn Russell).
* gtk/gtktreeprivate.h: add new fields to GtkTreePrivate.
* gtk/gtkenums.h: add GtkTreeViewGridLines.
* gtk/gtktreeview.[ch] (gtk_tree_view_set_grid_lines),
(gtk_tree_view_get_grid_lines),
(gtk_tree_view_set_enable_tree_lines),
(gtk_tree_view_get_enable_tree_lines): new API,
(gtk_tree_view_class_init): new properties,
(gtk_tree_view_init), (gtk_tree_view_{get,set}_property),
(gtk_tree_view_realize), (gtk_tree_view_draw_grid_lines),
(gtk_tree_view_bin_expose): implement.
* gtk/gtk.symbols: update.
2006-06-12 18:17:35 +00:00
|
|
|
|
gboolean gtk_tree_view_get_enable_tree_lines (GtkTreeView *tree_view);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
Introduce grid and tree lines in GtkTreeView. (#106406, Martyn Russell).
2006-06-12 Kristian Rietveld <kris@imendio.com>
Introduce grid and tree lines in GtkTreeView. (#106406,
Martyn Russell).
* gtk/gtktreeprivate.h: add new fields to GtkTreePrivate.
* gtk/gtkenums.h: add GtkTreeViewGridLines.
* gtk/gtktreeview.[ch] (gtk_tree_view_set_grid_lines),
(gtk_tree_view_get_grid_lines),
(gtk_tree_view_set_enable_tree_lines),
(gtk_tree_view_get_enable_tree_lines): new API,
(gtk_tree_view_class_init): new properties,
(gtk_tree_view_init), (gtk_tree_view_{get,set}_property),
(gtk_tree_view_realize), (gtk_tree_view_draw_grid_lines),
(gtk_tree_view_bin_expose): implement.
* gtk/gtk.symbols: update.
2006-06-12 18:17:35 +00:00
|
|
|
|
void gtk_tree_view_set_enable_tree_lines (GtkTreeView *tree_view,
|
|
|
|
|
gboolean enabled);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2006-10-08 14:36:20 +00:00
|
|
|
|
void gtk_tree_view_set_show_expanders (GtkTreeView *tree_view,
|
|
|
|
|
gboolean enabled);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2006-10-08 14:36:20 +00:00
|
|
|
|
gboolean gtk_tree_view_get_show_expanders (GtkTreeView *tree_view);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2006-10-08 14:36:20 +00:00
|
|
|
|
void gtk_tree_view_set_level_indentation (GtkTreeView *tree_view,
|
|
|
|
|
gint indentation);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2006-10-08 14:36:20 +00:00
|
|
|
|
gint gtk_tree_view_get_level_indentation (GtkTreeView *tree_view);
|
2005-06-21 05:35:43 +00:00
|
|
|
|
|
2007-07-13 14:25:21 +00:00
|
|
|
|
/* Convenience functions for setting tooltips */
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2007-07-13 14:25:21 +00:00
|
|
|
|
void gtk_tree_view_set_tooltip_row (GtkTreeView *tree_view,
|
|
|
|
|
GtkTooltip *tooltip,
|
|
|
|
|
GtkTreePath *path);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2007-07-13 14:25:21 +00:00
|
|
|
|
void gtk_tree_view_set_tooltip_cell (GtkTreeView *tree_view,
|
|
|
|
|
GtkTooltip *tooltip,
|
|
|
|
|
GtkTreePath *path,
|
|
|
|
|
GtkTreeViewColumn *column,
|
|
|
|
|
GtkCellRenderer *cell);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2007-07-19 13:21:09 +00:00
|
|
|
|
gboolean gtk_tree_view_get_tooltip_context(GtkTreeView *tree_view,
|
|
|
|
|
gint *x,
|
|
|
|
|
gint *y,
|
|
|
|
|
gboolean keyboard_tip,
|
|
|
|
|
GtkTreeModel **model,
|
|
|
|
|
GtkTreePath **path,
|
|
|
|
|
GtkTreeIter *iter);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2007-07-19 13:21:09 +00:00
|
|
|
|
void gtk_tree_view_set_tooltip_column (GtkTreeView *tree_view,
|
|
|
|
|
gint column);
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2007-07-19 13:21:09 +00:00
|
|
|
|
gint gtk_tree_view_get_tooltip_column (GtkTreeView *tree_view);
|
2007-07-13 14:25:21 +00:00
|
|
|
|
|
2005-06-21 05:35:43 +00:00
|
|
|
|
G_END_DECLS
|
2000-10-05 01:04:57 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif /* __GTK_TREE_VIEW_H__ */
|