Breakpoint Toggling

Bug #519836 reported by Aanjhan Ranganathan
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gnusim8085
Fix Released
Wishlist
Onkar Shinde

Bug Description

More of a usability improvement. It would be better to toggle breakpoints by clicking on the line number in the editor window or adding a menu entry in the right click menu of the source editor.

Tags: ui
Changed in gnusim8085:
importance: Undecided → Wishlist
Changed in gnusim8085:
milestone: none → 1.3.7
assignee: nobody → Onkar Shinde (onkarshinde)
Revision history for this message
Debjit Biswas (debjitbis08) wrote :

I think the icon for the breakpoint should also be changed to something more familiar, like red blob or something. The present icon looks more like a delete button, new users may get confused.

Revision history for this message
Onkar Shinde (onkarshinde) wrote :

Debajit,

We use stock icons and menu items as defined by GTK as far as possible. In this case the icon is GTK_STOCK_NO ("gtk-no"). The icon for breakpoint is a 'red blob' if you use default icon theme for GNOME i.e. clearlooks. The reason we see it as a 'cross' (X) is because of the human (or humanity) icon theme used by Ubuntu.

Revision history for this message
Debjit Biswas (debjitbis08) wrote :

Hi,

I put together a quick patch for this.

1. I have used the "line-mark-activated" signal of GtkSourceView to toggle the breakpoint.
2. I have also modified the gui_editor_toggle_mark() function to accept a line number parameter.
3. Due to the above change I had to modify the bridge.c file where the above function is called.

--Debjit

Revision history for this message
Debjit Biswas (debjitbis08) wrote :

Sorry attached the wrong file...

Revision history for this message
Onkar Shinde (onkarshinde) wrote :

Debajit,

Thanks for the patch. I will take a look on weekend.

Revision history for this message
Onkar Shinde (onkarshinde) wrote :

I finally got around to reviewing the patch and committed the changes. I did following changes to the patch.
1. Introduced a new function for breakpoint toggling at a line, instead of modifying existing one.
2. Made sure that breakpoint toggling is only allowed in editor part and not assembly listing or tutorial window.

Changed in gnusim8085:
status: New → Fix Committed
tags: added: ui
Changed in gnusim8085:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related blueprints

Remote bug watches

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