Bug 162840 - deprecated GTK warning for system-config-date
Summary: deprecated GTK warning for system-config-date
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: system-config-date   
(Show other bugs)
Version: 4
Hardware: All Linux
medium
medium
Target Milestone: ---
Assignee: Nils Philippsen
QA Contact:
URL:
Whiteboard:
Keywords:
: 162839 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2005-07-10 06:25 UTC by Arenas Belon, Carlo Marcelo
Modified: 2007-11-30 22:11 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2005-08-09 12:58:48 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
patch for /usr/shared/system-config-date/mainWindow.py (631 bytes, patch)
2005-07-10 06:27 UTC, Arenas Belon, Carlo Marcelo
no flags Details | Diff

Description Arenas Belon, Carlo Marcelo 2005-07-10 06:25:43 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.7.8) Gecko/20050524 Fedora/1.0.4-4 Firefox/1.0.4

Description of problem:
when executing system-config-date the following is returned on the controling terminal :

/usr/share/system-config-date/mainWindow.py:155: GtkDeprecationWarning: gtk.timeout_add is deprecated, use gobject.timeout_add instead
  id = gtk.timeout_add(20, lambda:1)
/usr/share/system-config-date/mainWindow.py:161: GtkDeprecationWarning: gtk.idle_remove is deprecated, use gobject.source_remove instead
  gtk.idle_remove (id)

and which is being used on the following snippet :

  #work around http://bugzilla.gnome.org/show_bug.cgi?id=72333 )-;
  id = gtk.timeout_add(20, lambda:1)
  if gtk.__dict__.has_key ("main"):
      gtk.main ()
  else:
      gtk.mainloop()
  dlg.destroy()
  gtk.idle_remove (id)



Version-Release number of selected component (if applicable):
1.7.18-1

How reproducible:
Always

Steps to Reproduce:
1. open terminal
2. system-config-date
3.
  

Actual Results:  GTK deprecation warnings

Expected Results:  clean execution

Additional info:

Comment 1 Arenas Belon, Carlo Marcelo 2005-07-10 06:27:17 UTC
Created attachment 116563 [details]
patch for /usr/shared/system-config-date/mainWindow.py

Comment 2 Arenas Belon, Carlo Marcelo 2005-07-10 06:29:09 UTC
*** Bug 162839 has been marked as a duplicate of this bug. ***

Comment 3 Nils Philippsen 2005-08-09 12:58:48 UTC
This workaround that causes the DeprecationWarnings isn't needed anymore, I've
removed it in Rawhide.


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