Bug 472185

Summary: GtkDeprecationWarning: gtk.timeout_add is deprecated, use gobject.timeout_add instead
Product: Red Hat Enterprise Linux 5 Reporter: Alexander Todorov <atodorov>
Component: system-config-soundcardAssignee: Martin Stransky <stransky>
Status: CLOSED WONTFIX QA Contact: desktop-bugs <desktop-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 5.3   
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-11-19 08:55:49 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Alexander Todorov 2008-11-19 08:46:42 UTC
Description of problem:
Starting firstboot (and probably system-config-soundcard alone) emits deprecation warning

[root@dhcp71-154 ~]# firstboot 
/usr/share/system-config-soundcard/soundcard.py:120: GtkDeprecationWarning: gtk.timeout_add is deprecated, use gobject.timeout_add instead
  self.timer = gtk.timeout_add (100, self.checkStatus, self)


Version-Release number of selected component (if applicable):
system-config-soundcard-2.0.6-1.el5

How reproducible:
Always

Steps to Reproduce:
1. export DISPLAY=:1
2. firstboot
3. observe the console
  
Actual results:
Deprecation warning

Expected results:


Additional info:
The below patch fixes the warning for me:

# diff -u soundcard.py.orig soundcard.py
--- soundcard.py.orig   2008-11-19 03:39:41.000000000 -0500
+++ soundcard.py        2008-11-19 03:40:43.000000000 -0500
@@ -117,7 +117,7 @@
         self.play_sound_stop = False
                 
         # tun callback
-        self.timer = gtk.timeout_add (100, self.checkStatus, self)
+        self.timer = gobject.timeout_add (100, self.checkStatus, self)
 
     def checkStatus(self, obj):

Comment 1 Martin Stransky 2008-11-19 08:55:49 UTC
I'm afraid system-config-soundcard is a dead component.