coding style
This commit is contained in:
parent
de576ebddf
commit
5bba1d51fc
1 changed files with 2 additions and 1 deletions
|
@ -941,9 +941,10 @@ class HtmlTextView(gtk.TextView):
|
||||||
gtk.gdk.SELECTION_PRIMARY))
|
gtk.gdk.SELECTION_PRIMARY))
|
||||||
|
|
||||||
def on_left_mouse_button_release(self, widget, event):
|
def on_left_mouse_button_release(self, widget, event):
|
||||||
bounds = self.get_buffer().get_selection_bounds()
|
|
||||||
if event.button != 1:
|
if event.button != 1:
|
||||||
return
|
return
|
||||||
|
|
||||||
|
bounds = self.get_buffer().get_selection_bounds()
|
||||||
if bounds:
|
if bounds:
|
||||||
# textview can be hidden while we add a new line in it.
|
# textview can be hidden while we add a new line in it.
|
||||||
if self.has_screen():
|
if self.has_screen():
|
||||||
|
|
Loading…
Add table
Reference in a new issue