Commit 6611a851 authored by VIGNET Pierre's avatar VIGNET Pierre
Browse files

[gui] Add favicon on windows...

parent 3dc3f855
......@@ -515,6 +515,12 @@ class SolutionWindow(object):
)
self.wtree = gtk.glade.XML(template)
self.window = self.wtree.get_widget("window1")
# Favicon
favicon = pkg_resources.resource_filename(
__name__,
"../images/favicon.ico"
)
self.window.set_icon_from_file(favicon)
self.window.set_resizable(True)
height = gtk.gdk.screen_height()
......
......@@ -381,6 +381,14 @@ class LegendWindow(object):
self.win.set_position(gtk.WIN_POS_CENTER)
self.win.connect("destroy", self.on_destroy)
self.win.connect("key_press_event", self.on_escape)
# Favicon
favicon = pkg_resources.resource_filename(
__name__,
"images/favicon.ico"
)
self.win.set_icon_from_file(favicon)
# Legend
image = gtk.Image()
template = pkg_resources.resource_filename(
__name__,
......
......@@ -109,6 +109,12 @@ class ChartSimulControler(object):
self.main_window.connect("key_press_event", self.on_escape)
self.main_window.set_position(gtk.WIN_POS_CENTER)
self.main_window.set_keep_above(True)
# Favicon
favicon = pkg_resources.resource_filename(
__name__,
"../images/favicon.ico"
)
self.main_window.set_icon_from_file(favicon)
# frontier button (disconnected when icseq are computed)
button = self.wtree.get_widget("frontier_button")
......
......@@ -138,6 +138,12 @@ class Charter(object):
self.main_window = self.wtree.get_widget("TopModel")
# connect the "destroy" event
self.main_window.connect("delete_event", self.on_destroy)
# Favicon
favicon = pkg_resources.resource_filename(
__name__,
"images/favicon.ico"
)
self.main_window.set_icon_from_file(favicon)
h_scr = screen_height()
w_scr = screen_width()
......
......@@ -197,6 +197,12 @@ class Info(object):
self.note_window.set_keep_above(True)
self.note_window.set_default_size(600, 300)
self.note_window.connect("key_press_event", self.on_escape)
# Favicon
favicon = pkg_resources.resource_filename(
__name__,
"images/favicon.ico"
)
self.note_window.set_icon_from_file(favicon)
ed_conf = TextEditConfig()
self.note_text_page = TextPage(None, ed_conf)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment