diff options
author | Seth Hitefield <sdhitefield@gmail.com> | 2014-06-11 11:27:55 -0400 |
---|---|---|
committer | Sebastian Koslowski <koslowski@kit.edu> | 2014-06-13 11:04:26 +0200 |
commit | 9d6284c1e2317995c2ac959de0fa4f0668c0064d (patch) | |
tree | 9ffa264f8a910dd93f2ec923d22afd40c4c7086b /grc/gui/Dialogs.py | |
parent | 8949a9e00e989e98abf334f839b7a4e91a2339e4 (diff) |
grc: Changed dialog to directly call the SCROLL_LOCK and CLEAR_REPORTS actions.
Moved clear reports under view and grouped all Report menu items together
Diffstat (limited to 'grc/gui/Dialogs.py')
-rw-r--r-- | grc/gui/Dialogs.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/grc/gui/Dialogs.py b/grc/gui/Dialogs.py index f9a355128d..1b7be1a11a 100644 --- a/grc/gui/Dialogs.py +++ b/grc/gui/Dialogs.py @@ -21,6 +21,7 @@ import pygtk pygtk.require('2.0') import gtk import Utils +import Actions class TextDisplay(gtk.TextView): """A non editable gtk text view.""" @@ -82,10 +83,9 @@ class TextDisplay(gtk.TextView): # Callback functions to handle the scrolling lock and clear context menus options # Action functions are set by the ActionHandler's init function def clear_cb(self, menu_item, web_view): - self.clear_action() + Actions.CLEAR_REPORTS() def scroll_back_cb(self, menu_item, web_view): - # Trigger the toggle action - self.scroll_action() + Actions.TOGGLE_SCROLL_LOCK() # Create a popup menu for the scroll lock and clear functions. def populate_popup(self, view, menu): |