Eliminated weird error message when setting window icon

This commit is contained in:
Anna 2010-05-25 14:18:28 -04:00
parent ff984b886c
commit f49c0ff27d

View File

@ -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")
(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)
gtk.gdk.threads_init()