<div dir="ltr"><div>Hi again.</div><div><br></div><div>I can said that I finish to port to GTK-3 (Now the program can run), but I have an issue that i can't solve.</div><div>I need to make a call to the Journal-Backup from my code, but when I do the windows showsup and crush instantly.</div>
<div><br></div><div><u><b>This is the code:</b></u></div><div>from jarabe.journal.processdialog import VolumeBackupDialog</div><div>dialog = VolumeBackupDialog('/run/media/olpc/device')</div><div>dialog.show()</div>
<div><br></div><div><u><b>And this is what I get when crush it:</b></u></div><div>WARNING: root:No icon with the name activity-journal was found in the theme.</div><div>WARNING: root:No icon with the name activity-journal was found in the theme.</div>
<div><br></div><div><b><u>Note:</u></b></div><div>I tried, only for curiosity, commenting the line that load the icon, the result is the same but without the Warnings.</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
2013/2/28 Matias Basso <span dir="ltr"><<a href="mailto:mbasso@plan.ceibal.edu.uy" target="_blank">mbasso@plan.ceibal.edu.uy</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Thx Daniel !<div><br></div><div><div>That was one of the solution I had in mind. So, i will start to port to GTK3</div><div><br></div><div>Thanks a lot!</div></div></div><div class="HOEnZb"><div class="h5">
<div class="gmail_extra"><br><br><div class="gmail_quote">
2013/2/28 Daniel Narvaez <span dir="ltr"><<a href="mailto:dwnarvaez@gmail.com" target="_blank">dwnarvaez@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

You cannot mix gtk2 and gtk3 code (more precisely static and dynamic<br>
gobject bindings). You will have to port the code to gtk3.<br>
<div><div><br>
On 28 February 2013 14:40, Matias Basso <<a href="mailto:mbasso@plan.ceibal.edu.uy" target="_blank">mbasso@plan.ceibal.edu.uy</a>> wrote:<br>
> Hi all!<br>
><br>
> I have a code that use GTK-2, and in it I made an import:<br>
><br>
> from jarabe.journal.processdialog import VolumeBackupDialog<br>
><br>
> The problem is the next:<br>
> I'm using now a Fedora-18 image in wich use GTK-3 (Sugar) and when I run the<br>
> program this is what shows up:<br>
><br>
> from  jarabe.journal.processdialog import VolumeBackupDialog<br>
>   File "/usr/lib/python2.7/site-packages/jarabe/journal/processdialog.py",<br>
> line 19, in <module><br>
>     from gi.repository import GObject<br>
>   File "/usr/lib/python2.7/site-packages/gi/__init__.py", line 27, in<br>
> <module><br>
>     from ._gi import _API, Repository<br>
> ImportError: could not import gobject (error was: ImportError('When using<br>
> gi.repository you must not import static modules like "gobject". Please<br>
> change all occurrences of "import gobject" to "from gi.repository import<br>
> GObject".',))<br>
><br>
> Someone knows how to solve this?<br>
> Thx! bye bye!!<br>
><br>
> --<br>
> Tec. MATIAS BASSO .-<br>
> Investigación y Desarrollo - Plan Ceibal .-<br>
> Centro Ceibal - Av. Italia 6201 - Montevideo, Uruguay .-<br>
><br>
</div></div>> _______________________________________________<br>
> Sugar-devel mailing list<br>
> <a href="mailto:Sugar-devel@lists.sugarlabs.org" target="_blank">Sugar-devel@lists.sugarlabs.org</a><br>
> <a href="http://lists.sugarlabs.org/listinfo/sugar-devel" target="_blank">http://lists.sugarlabs.org/listinfo/sugar-devel</a><br>
><br>
<span><font color="#888888"><br>
<br>
<br>
--<br>
Daniel Narvaez<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><font face="'times new roman', serif">Tec. MATIAS BASSO .-<font size="4"><br>Investigación y Desarrollo - Plan Ceibal</font></font> .-<br>



<div style="text-align:left"><font face="'times new roman', serif">Centro Ceibal - Av. Italia 6201 - Montevideo, Uruguay</font> .-<br></div>
</div>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><font face="'times new roman', serif">Tec. MATIAS BASSO .-<font size="4"><br>Investigación y Desarrollo - Plan Ceibal</font></font> .-<br>

<div style="text-align:left"><font face="'times new roman', serif">Centro Ceibal - Av. Italia 6201 - Montevideo, Uruguay</font> .-<br></div>
</div>