diff options
author | Kristian Rietveld <kris@imendio.com> | 2006-06-02 20:40:33 +0000 |
---|---|---|
committer | Kristian Rietveld <kristian@src.gnome.org> | 2006-06-02 20:40:33 +0000 |
commit | f6c583f74e7065b478e5b23d7e244e7e8b133d9c (patch) | |
tree | f42cfa4d4832152ed4affcf2fdad29c7daa623f4 /gtk/gtktreeview.h | |
parent | 29018576b7d6431d6175da9f8ba395a50b089bc9 (diff) | |
download | gtk+-f6c583f74e7065b478e5b23d7e244e7e8b133d9c.tar.gz |
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.
Diffstat (limited to 'gtk/gtktreeview.h')
-rw-r--r-- | gtk/gtktreeview.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk/gtktreeview.h b/gtk/gtktreeview.h index 76174f25d8..d78e75ae22 100644 --- a/gtk/gtktreeview.h +++ b/gtk/gtktreeview.h @@ -342,6 +342,9 @@ gboolean gtk_tree_view_get_hover_selection (GtkTreeView *tree_view); void gtk_tree_view_set_hover_expand (GtkTreeView *tree_view, gboolean expand); gboolean gtk_tree_view_get_hover_expand (GtkTreeView *tree_view); +void gtk_tree_view_set_rubber_banding (GtkTreeView *tree_view, + gboolean enable); +gboolean gtk_tree_view_get_rubber_banding (GtkTreeView *tree_view); GtkTreeViewRowSeparatorFunc gtk_tree_view_get_row_separator_func (GtkTreeView *tree_view); void gtk_tree_view_set_row_separator_func (GtkTreeView *tree_view, |