Mageia Bugzilla – Attachment 7040 Details for
Bug 15030
mageiawelcome: Port to GTK+3 and WebKit2
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
[patch]
fix a deprecation warning
0005-fix-a-deprecation-warning.patch (text/plain), 1.27 KB, created by
Thierry Vignaud
on 2015-09-23 14:27:41 CEST
(
hide
)
Description:
fix a deprecation warning
Filename:
MIME Type:
Creator:
Thierry Vignaud
Created:
2015-09-23 14:27:41 CEST
Size:
1.27 KB
patch
obsolete
>From f91632c935b6387444a45d664ce6999c7c394a4e Mon Sep 17 00:00:00 2001 >From: Thierry Vignaud <thierry.vignaud@gmail.com> >Date: Fri, 31 Jul 2015 05:15:58 -0400 >Subject: [PATCH 5/8] fix a deprecation warning > >--- > usr/share/mageiawelcome/webgui.py | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > >diff --git a/usr/share/mageiawelcome/webgui.py b/usr/share/mageiawelcome/webgui.py >index 5f2ae6d..c6888fa 100644 >--- a/usr/share/mageiawelcome/webgui.py >+++ b/usr/share/mageiawelcome/webgui.py >@@ -6,7 +6,7 @@ import urllib > import gi > from gi.repository import Gdk > from gi.repository import Gtk >-from gi.repository import GObject >+from gi.repository import GLib > > try: > gi.require_version('WebKit', '3.0') >@@ -51,7 +51,7 @@ def asynchronous_gtk_message(fun): > apply(function, args, kwargs) > > def fun2(*args, **kwargs): >- GObject.idle_add(worker, (fun, args, kwargs)) >+ GLib.idle_add(worker, (fun, args, kwargs)) > > return fun2 > >@@ -65,7 +65,7 @@ def synchronous_gtk_message(fun): > > def fun2(*args, **kwargs): > class R: result = NoResult >- GObject.idle_add(worker, (R, fun, args, kwargs)) >+ GLib.idle_add(worker, (R, fun, args, kwargs)) > while R.result is NoResult: time.sleep(0.01) > return R.result > >-- >2.5.3 >
From f91632c935b6387444a45d664ce6999c7c394a4e Mon Sep 17 00:00:00 2001 From: Thierry Vignaud <thierry.vignaud@gmail.com> Date: Fri, 31 Jul 2015 05:15:58 -0400 Subject: [PATCH 5/8] fix a deprecation warning --- usr/share/mageiawelcome/webgui.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/usr/share/mageiawelcome/webgui.py b/usr/share/mageiawelcome/webgui.py index 5f2ae6d..c6888fa 100644 --- a/usr/share/mageiawelcome/webgui.py +++ b/usr/share/mageiawelcome/webgui.py @@ -6,7 +6,7 @@ import urllib import gi from gi.repository import Gdk from gi.repository import Gtk -from gi.repository import GObject +from gi.repository import GLib try: gi.require_version('WebKit', '3.0') @@ -51,7 +51,7 @@ def asynchronous_gtk_message(fun): apply(function, args, kwargs) def fun2(*args, **kwargs): - GObject.idle_add(worker, (fun, args, kwargs)) + GLib.idle_add(worker, (fun, args, kwargs)) return fun2 @@ -65,7 +65,7 @@ def synchronous_gtk_message(fun): def fun2(*args, **kwargs): class R: result = NoResult - GObject.idle_add(worker, (R, fun, args, kwargs)) + GLib.idle_add(worker, (R, fun, args, kwargs)) while R.result is NoResult: time.sleep(0.01) return R.result -- 2.5.3
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 15030
:
7036
|
7037
|
7038
|
7039
| 7040 |
7041
|
7042
|
7043