diff --git a/xdot.py b/xdot.py index 9098aa2..710950a 100755 --- a/xdot.py +++ b/xdot.py @@ -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)