Skip to content

Commit

Permalink
menu for open files
Browse files Browse the repository at this point in the history
Right click in the drawing area will open a context menu, with all open
files to select from.
  • Loading branch information
stettberger committed Aug 11, 2015
1 parent 9e1a435 commit cc9d59f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions xdot.py
Original file line number Diff line number Diff line change
Expand Up @@ -2011,6 +2011,10 @@ def __init__(self, command_line_files, widget=None):
self.open_files.append(os.path.abspath(filename))
self.open_file_idx = 0

# Connect the Button click event of the drawing menu, in order
# to display a file menu
self.widget.connect("button-press-event", self.on_file_menu)

self.last_open_dir = "."

self.set_focus(self.dotwidget)
Expand Down

0 comments on commit cc9d59f

Please sign in to comment.