Disclosure triangles to the other side

Bug #893343 reported by Danielle Foré
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Lingo
Fix Committed
Low
Andrea Basso

Bug Description

Discloser triangles should be on the right side as in Marlin, BeatBox, etc.

Revision history for this message
Avi Romanoff (aroman) wrote :

Do *you* know how to resolve this? I don't know of any API responsible for such a change -- is it an egtk style perhaps?

Changed in lingo-dictionary:
importance: Undecided → Low
Revision history for this message
Danielle Foré (danrabbit) wrote :

Not sure how its done :p I guess check Marlin code?

Revision history for this message
David Gomes (davidgomes) wrote :

I checked Marlin code, found nothing (I found where it's done, but it's not very clear).

So, I sent an email to the Vala Mailing list asking how to do this, waiting for response.

We have to get the column that is on the top right of the Tree View and use tree_view.set_expander_column( top_right_column).

The issue is getting the top right column.

Revision history for this message
Avi Romanoff (aroman) wrote :

I believe BeatBox also does this.. I'll have a look around there as well.

Changed in lingo-dictionary:
status: New → Confirmed
Revision history for this message
David Gomes (davidgomes) wrote :

Scott already created a class "SideBar.vala", which can be found here:

http://bazaar.launchpad.net/~beatbox-team/beat-box/trunk/view/head:/src/Widgets/SideBar.vala

That class draws the triangles (expanders) on the right. We have to create our own instance, and add the Gtk.TreeView (tree_view) to it.

On Beat-Box they also use their custom Tree View, this might also be useful:

http://bazaar.launchpad.net/~beatbox-team/beat-box/trunk/view/head:/src/Widgets/SideTreeView.vala

Avi Romanoff (aroman)
Changed in lingo-dictionary:
milestone: none → luna-beta1
Changed in lingo-dictionary:
assignee: nobody → Andrea Basso (voluntatefaber)
Revision history for this message
Andrea Basso (voluntatefaber) wrote :

I moved the arrows on the right, but I couldn't set the indentation.
The simplest (but not elegant at all) way is to add some spaces before the word, or there are other ways but I couldn't get any of them to work.

Changed in lingo-dictionary:
status: Confirmed → Fix Committed
Changed in lingo-dictionary:
milestone: luna-beta1 → none
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.