accomodate for most recent glib updates
This commit is contained in:
parent
149c0bdfeb
commit
6a08d00363
1 changed files with 2 additions and 4 deletions
|
@ -95,9 +95,7 @@ def markup_escape_text(text):
|
||||||
"""
|
"""
|
||||||
if not text:
|
if not text:
|
||||||
return ""
|
return ""
|
||||||
#passing -1 will let strlen() figure out the byte length of the null
|
return GLib.markup_escape_text(text.encode('utf-8'))
|
||||||
#terminated string and avoids problems with multibyte characters
|
|
||||||
return GLib.markup_escape_text(text, -1)
|
|
||||||
|
|
||||||
class TabLabel(Gtk.HBox):
|
class TabLabel(Gtk.HBox):
|
||||||
"""A class for Tab labels"""
|
"""A class for Tab labels"""
|
||||||
|
@ -932,7 +930,7 @@ class FeedReaderWindow(Gtk.Window):
|
||||||
if feedtree.updating: return True
|
if feedtree.updating: return True
|
||||||
feedtree.update_feed_all()
|
feedtree.update_feed_all()
|
||||||
return True
|
return True
|
||||||
GLib.timeout_add_seconds(GLib.PRIORITY_DEFAULT, 3600, timeout_cb, None)
|
GLib.timeout_add_seconds(3600, timeout_cb, None)
|
||||||
|
|
||||||
button_refresh = Gtk.Button()
|
button_refresh = Gtk.Button()
|
||||||
button_refresh.set_image(Gtk.Image.new_from_stock(Gtk.STOCK_REFRESH, Gtk.IconSize.MENU))
|
button_refresh.set_image(Gtk.Image.new_from_stock(Gtk.STOCK_REFRESH, Gtk.IconSize.MENU))
|
||||||
|
|
Loading…
Reference in a new issue