diff --git a/res/jsoninspector.glade b/res/jsoninspector.glade index c4faca0..c302c2a 100644 --- a/res/jsoninspector.glade +++ b/res/jsoninspector.glade @@ -1,5 +1,5 @@ - + @@ -13,7 +13,6 @@ normal False center - False JSON Inspector v2.0 https://github.com/resetreboot/jsoninspector @@ -24,6 +23,9 @@ gpl-3-0 + + + False @@ -57,6 +59,9 @@ jsoninspector + + + True @@ -178,6 +183,9 @@ center jsoninspector + + + True @@ -238,6 +246,36 @@ + + + True + False + _Edit + True + + + True + False + + + True + False + _Copy + True + + + + + True + False + C_ut + True + + + + + + True @@ -288,6 +326,7 @@ treeviewcolumn1 0 1 + diff --git a/src/jsoninspector/jsoninspector.py b/src/jsoninspector/jsoninspector.py index 760ec24..6ed800c 100644 --- a/src/jsoninspector/jsoninspector.py +++ b/src/jsoninspector/jsoninspector.py @@ -3,7 +3,7 @@ import gi gi.require_version('Gtk', '3.0') -from gi.repository import Gtk, Gio +from gi.repository import Gtk, Gio, Gdk import json import sys @@ -196,6 +196,14 @@ class MainWindowMethods(Gtk.Application): def onAboutDialogDeleteEvent(self, widget, event=None): pass + def onButtonPressEvent(self, event=None): + if event.type == Gdk.GDK_BUTTON_PRESS and event.button == 3: + pass + return True + + else: + return False + class LogicObject(object): """