Eliminated weird error message when setting window icon
This commit is contained in:
parent
ff984b886c
commit
f49c0ff27d
4
hrafn.py
4
hrafn.py
|
@ -635,7 +635,9 @@ parser.add_option('-c' ,'--config', dest="filename", default="~/.hrafn.conf", he
|
||||||
parser.add_option('-n' ,'--no-resize', dest="resize", action='store_false', default=True, help="use the default window size instead of the size from the last session")
|
parser.add_option('-n' ,'--no-resize', dest="resize", action='store_false', default=True, help="use the default window size instead of the size from the last session")
|
||||||
(options, args) = parser.parse_args()
|
(options, args) = parser.parse_args()
|
||||||
|
|
||||||
gtk.window_set_default_icon_from_file('ui/icon.svg')
|
base_icon = gtk.gdk.pixbuf_new_from_file('ui/icon.svg')
|
||||||
|
icon = base_icon.scale_simple(128, 128, gtk.gdk.INTERP_BILINEAR)
|
||||||
|
gtk.window_set_default_icon(icon)
|
||||||
my_twitter = Hrafn(options.filename, options.resize)
|
my_twitter = Hrafn(options.filename, options.resize)
|
||||||
|
|
||||||
gtk.gdk.threads_init()
|
gtk.gdk.threads_init()
|
||||||
|
|
Reference in New Issue
Block a user