After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 393579 - Need tree view API for querying whether rubberbanding is done ATM
Need tree view API for querying whether rubberbanding is done ATM
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Widget: GtkTreeView
2.10.x
Other Linux
: Normal enhancement
: ---
Assigned To: Christian Neumair
gtktreeview-bugs
Depends on:
Blocks: 138931
 
 
Reported: 2007-01-06 16:34 UTC by Christian Neumair
Modified: 2011-02-04 16:11 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Proposed patch (2.47 KB, patch)
2007-01-06 17:07 UTC, Christian Neumair
none Details | Review

Description Christian Neumair 2007-01-06 16:34:47 UTC
We need an API for querying the value of
  tree_view->priv->rubber_band_status
i.e. if
  tree_view->priv->rubber_band_status == RUBBER_BAND_ACTIVE)

Maybe
  gtk_tree_view_get_rubber_banding_in_progress()
would be appropriate.

We need it in Nautilus because we want single-click rubberbanding (bug 138931).
Comment 1 Christian Neumair 2007-01-06 16:37:32 UTC
"single-click rubberbanding" means that we have a custom "button-press-event" handler that will activate specific rows if we're using single-click activation, but only if neither a drag nor a rubberbanding was started.
Comment 2 Christian Neumair 2007-01-06 17:07:40 UTC
Created attachment 79537 [details] [review]
Proposed patch

Proposed patch attached. I decided to use
 gtk_tree_view_get_rubber_banding_active()
instead since it is more consistent the GTK+ naming conventions.
connection
I'm not sure whether a signal or an additional property is also appropriate, I think connecting to "motion-notify-event" and checking for gtk_tree_view_get_rubber_banding_active() should be enough.
Comment 3 Christian Neumair 2007-02-23 15:24:52 UTC
Ping. Any chance that we get this into GTK+ HEAD?
Comment 4 Kristian Rietveld 2007-03-11 13:43:35 UTC
It looks like this does make sense to add.  However, I think we should have a little broader look at GtkTreeView and find other pieces where a status indication would be useful (for example knowing whether or not there is a row DnD operation pending).

Once we have this list we can decide what to add and how; we could either add separate functions for each thing, or return something like a bitmask.
Comment 5 Kristian Rietveld 2007-07-02 17:35:09 UTC
Added as gtk_tree_view_is_rubber_banding_active() with some changes.  We'll see if there are other state things that are useful to be able to get.  Once we add such getters in the future they should preferably of the form:

 gtk_tree_view_is_blah_blah_active()