[gedit-latex] Use Gtk.Widget.set_can_focus instead of set_flags



commit b2ed365d48525f7a0293c6bfb36f4fb9e011870e
Author: John Stowers <john stowers gmail com>
Date:   Fri Jun 24 10:40:09 2011 +1200

    Use Gtk.Widget.set_can_focus instead of set_flags

 latex/latex/livepreview.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/latex/latex/livepreview.py b/latex/latex/livepreview.py
index 9415922..60c3773 100644
--- a/latex/latex/livepreview.py
+++ b/latex/latex/livepreview.py
@@ -1155,7 +1155,7 @@ class PreviewPanel:
 		# for the moment only the scrolled window, but there could be 
 		# a toolbar for example
 		self.__panel = Gtk.VBox()
-		self.__panel.set_flags(Gtk.CAN_FOCUS)
+		self.__panel.set_can_focus(True)
 		self.__connect_keyboard_events()
 
 		# create the visible elements on the panel



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]