Merge branch 'master' of git://repo.or.cz/fpbd-bostik
This commit is contained in:
commit
159c39245f
|
@ -678,8 +678,14 @@ This program is licensed under the AGPL3, see docs"""+os.sep+"agpl-3.0.txt")
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def statusicon_activate(self, widget, data = None):
|
def statusicon_activate(self, widget, data = None):
|
||||||
self.window.show()
|
# Let's allow the tray icon to toggle window visibility, the way
|
||||||
self.window.present()
|
# most other apps work
|
||||||
|
shown = self.window.get_property('visible')
|
||||||
|
if shown:
|
||||||
|
self.window.hide()
|
||||||
|
else:
|
||||||
|
self.window.show()
|
||||||
|
self.window.present()
|
||||||
|
|
||||||
def warning_box(self, str, diatitle="FPDB WARNING"):
|
def warning_box(self, str, diatitle="FPDB WARNING"):
|
||||||
diaWarning = gtk.Dialog(title=diatitle, parent=None, flags=0, buttons=(gtk.STOCK_OK,gtk.RESPONSE_OK))
|
diaWarning = gtk.Dialog(title=diatitle, parent=None, flags=0, buttons=(gtk.STOCK_OK,gtk.RESPONSE_OK))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user