diff --git a/gui/icons/run-to-cursor.xpm b/gui/icons/run-to-cursor.xpm deleted file mode 100644 index 16607e6..0000000 --- a/gui/icons/run-to-cursor.xpm +++ /dev/null @@ -1,40 +0,0 @@ -/* XPM */ -static char * run_to_cursor_xpm[] = { -"22 22 15 1", -" c None", -". c #4A4A4A", -"+ c #BABABA", -"@ c #C0C0C0", -"# c #9C9C9C", -"$ c #000000", -"% c #CCCCCC", -"& c #D4D4D4", -"* c #D7D7D8", -"= c #DCDCDC", -"- c #E3E3E3", -"; c #EBEBEB", -"> c #F4F3F3", -", c #FEFEFE", -"' c #B72618", -" ", -" ", -" ", -" ........... ", -" .++++++++@.# ", -" .+++++@@@@.## ", -" .++@@$$@%%.... ", -" .@@@%$$%&&*==. ", -" .%%%%$$&*==--. ", -" .%&&*$$=---;;. ", -" .&*==$$;;;;>;. ", -" .=-$$$$$$>>,,. ", -" .;;;$$$$>,,,,. ", -" .;;>>$$,,,,,,. ", -" .>'''''''''',. ", -" .,'''''''''',. ", -" .,,,,,,,,,,,,. ", -" .,,,,,,,,,,,,. ", -" .............. ", -" ", -" ", -" "}; diff --git a/gui/source.py b/gui/source.py index 26c49d7..14966cf 100644 --- a/gui/source.py +++ b/gui/source.py @@ -188,7 +188,7 @@ class LRUHandler: lru_handler = LRUHandler() -BUTTON_NAMES = ["step", "next", "continue", "finish", "stop"] +BUTTON_NAMES = ["step", "next", "continue", "finish", "stop", "up", "down"] class SourceWindow(gui.updatewindow.UpdateWindow): def _get_pixmap(self, filename): @@ -198,6 +198,8 @@ class SourceWindow(gui.updatewindow.UpdateWindow): def __init__(self): super(SourceWindow, self).__init__('source') gdb.events.cont.connect(self._on_cont_event) + # Update the buttons. + self.on_event() @in_gtk_thread def gtk_initialize(self): @@ -208,6 +210,8 @@ class SourceWindow(gui.updatewindow.UpdateWindow): self.do_continue = Invoker("continue") self.do_finish = Invoker("finish") self.do_stop = Invoker("interrupt") + self.do_up = Invoker("up") + self.do_down = Invoker("down") builder = gui.startup.create_builder('sourcewindow.xml') builder.connect_signals(self) diff --git a/gui/sourcewindow.xml b/gui/sourcewindow.xml index 9f0a596..e92bee6 100644 --- a/gui/sourcewindow.xml +++ b/gui/sourcewindow.xml @@ -3,11 +3,6 @@ - - True - False - icons/run-to-cursor.xpm - True False @@ -45,7 +40,7 @@ Continue execution Continue True - image1 + gtk-media-forward @@ -118,6 +113,46 @@ True + + + True + False + + + True + True + + + + + True + False + Up one frame + Up + True + gtk-go-up + + + + False + True + + + + + True + False + Down one frame + Down + True + gtk-go-down + + + + False + True + + False