summarylogtreecommitdiffstats
path: root/02_compatibility_glib-2.41.patch
blob: 90464cd5d3eb8f864d6f4f7269e4410be42630e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
Description: Avoid crash during startup
 This patch allow compatibility with the new versions of
 glib2.0 removing gtk.gdk.threads_init() because this is now deprecated.
Forwarded: no
Author: Elías Alejandro Año Mendoza <ealmdz@gmail.com>
Last-Update: 2014-09-25

Index: radiotray/src/SysTray.py
===================================================================
--- radiotray.orig/src/SysTray.py	2014-09-25 18:15:12.000000000 -0500
+++ radiotray/src/SysTray.py	2014-09-25 18:21:49.000000000 -0500
@@ -46,6 +46,7 @@
 from AppIndicatorGui import AppIndicatorGui
 from TooltipManager import TooltipManager
 from Context import Context
+from glib import glib_version
 
 import dbus
 import textwrap
@@ -182,8 +183,9 @@
     
         
     def run(self):
-        gtk.gdk.threads_init()
-        gtk.main()
+		if glib_version	< (2, 41, 0):
+			gtk.gdk.threads_init()
+		gtk.main()