2013/2/3 Nick Hall <nick__hall@hotmail.com>
It would be easy to change timeout_add, idle_add and source_remove from
GObject to GLib.

Do we want to do this now or later?

Officially we support  GTK 3.0 (see test on that in code), but realisitically we probably only tried gramps on Gtk 3.6.
These warning are I believe for upcoming 3.8, as Josip uses devel version 3.7.
So, we can convert this provided it will work at least also in 3.6. Otherwise, we should test on 3.8 (also the devel 3.7), and only use it if 3.8 is present.

Benny

Nick.


On 03/02/13 19:31, Josip wrote:
> Hi all,
> i tried to build gramps4 dependencies for Windows and since having
> trouble building new stable pygobject i build their devel version
> instead (that builds easy).
> But now Gramps throws lot of deprecation warnings.
> Do anybody knows when those functions as deprecated or where to look for
> that?
>
> E:\AIO32_4\bin>..\python27\python.exe -EO gramps -v
> Gramps Settings:
> ----------------
>    python    : 2.7.3
>    gramps    : 4.0.0-alpha4
>    gtk++     : 3.6.1
>    pygobject : 3.7.4
>    pango     : 1.30.1
>    Not using bsddb3
>    bsddb     : 4.8.4.2
>    bsddb.db  : 4.7.25
>    cairo     : 1.10.2
>    pycairo   : 1.10.0
>    osmgpsmap : not found
>    pyexiv2   : not found
>    o.s.      : win32
>
> Environment settings:
> ---------------------
>    LANG      : hr_HR.UTF-8
>    LANGUAGE  : hr_HR.UTF-8
>    GRAMPSI18N: not set
>    GRAMPSHOME: not set
>    GRAMPSDIR : not set
>    PYTHONPATH:
>       E:\AIO32_4\bin
>       E:\AIO32_4\python27\python27.zip
>       E:\AIO32_4\python27\DLLs
>       E:\AIO32_4\python27\lib
>       E:\AIO32_4\python27\lib\plat-win
>       E:\AIO32_4\python27\lib\lib-tk
>       E:\AIO32_4\python27
>       E:\AIO32_4\python27\lib\site-packages
>
> Non-python dependencies:
> ------------------------
>    Graphviz  : Graphviz not in system PATH
>    Ghostscr. : Ghostscript not in system PATH
>
> System PATH env variable:
> -------------------------
>        C:\WINDOWS\system32
>        C:\WINDOWS
>        C:\WINDOWS\System32\Wbem
>
>
>
> E:\AIO32_4\bin>..\python27\python.exe -EO gramps
> E:\AIO32_4\python27\lib\site-packages\gramps\gui\grampsgui.py:384:
> PyGIDeprecationWarning: timeout_add is deprecated; use GLib.timeout_add
> instead
>     GObject.timeout_add(100, __startgramps, errors, argparser, priority=100)
> 14425: WARNING: spell.py: line 73: Nije instalirana provjera pravopisa
> 29898: WARNING: gramplet.gpr.py: line 401: UPOZORENJE: pyexiv2 modul
> nije uÄŤitan. Upotreba slikovni
> h metapodataka ne Ä┼e biti moguÄ┼a.
> E:\AIO32_4\python27\lib\site-packages\gramps\gui\displaystate.py:335:
> PyGIDeprecationWarning: timeout_add is deprecated; use GLib.timeout_add
> instead
>     self.timer = GObject.timeout_add(3*60*1000, self._check_clear)
> 31585: WARNING: htmlrenderer.gpr.py: line 62: Webkit is not installed
> E:\AIO32_4\python27\lib\site-packages\gramps\gui\displaystate.py:550:
> PyGIDeprecationWarning: timeout_add is deprecated; use GLib.timeout_add
> instead
>     GObject.timeout_add(5000, self.modify_statusbar, dbstate)
> E:\AIO32_4\python27\lib\site-packages\gramps\gen\plug\_gramplet.py:301:
> PyGIDeprecationWarning:
>    idle_add is deprecated; use GLib.idle_add instead
>     priority=GObject.PRIORITY_LOW - 10)
> E:\AIO32_4\python27\lib\site-packages\gramps\gui\editors\displaytabs\backrefmodel.py:59:
> PyGIDeprecationWarning: idle_add is deprecated; use GLib.idle_add instead
>     self.idle = GObject.idle_add(self.load_model().next)
> E:\AAAAAAIO32_4\python27\lib\site-packages\gi\overrides\Gtk.py:497:
> PyGIDeprecationWarning: The use of the keyword type as a parameter of
> the Gtk.MessageDialog constructor has been depricated. Please
> use message_type instead.
>     warnings.warn("The use of the keyword type as a parameter of the
> Gtk.MessageDialog constructor has
>    been depricated. Please use message_type instead.",
> PyGIDeprecationWarning)
> E:\AIO32_4\python27\lib\site-packages\gramps\gui\editors\displaytabs\backrefmodel.py:64:
> PyGIDe
> precationWarning: source_remove is deprecated; use GLib.source_remove
> instead
>     GObject.source_remove(self.idle)
>
>


------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_jan
_______________________________________________
Gramps-devel mailing list
Gramps-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gramps-devel