Bug 472185 - GtkDeprecationWarning: gtk.timeout_add is deprecated, use gobject.timeout_add instead
GtkDeprecationWarning: gtk.timeout_add is deprecated, use gobject.timeout_add...
Status: CLOSED WONTFIX
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: system-config-soundcard (Show other bugs)
5.3
All Linux
medium Severity medium
: rc
: ---
Assigned To: Martin Stransky
desktop-bugs@redhat.com
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2008-11-19 03:46 EST by Alexander Todorov
Modified: 2013-04-12 15:57 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2008-11-19 03:55:49 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Alexander Todorov 2008-11-19 03:46:42 EST
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 03:55:49 EST
I'm afraid system-config-soundcard is a dead component.

Note You need to log in before you can comment on or make changes to this bug.