From 9d6284c1e2317995c2ac959de0fa4f0668c0064d Mon Sep 17 00:00:00 2001
From: Seth Hitefield <sdhitefield@gmail.com>
Date: Wed, 11 Jun 2014 11:27:55 -0400
Subject: 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

---
 grc/gui/Dialogs.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

(limited to 'grc/gui/Dialogs.py')

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):
-- 
cgit v1.2.3