Richard Henwood | 2 Nov 2011 20:55
Picon
Favicon

GObject Introspection instead of PyGTK

hi All,

My python app [1] won't run on Ubuntu 11.10 apparently because:

"python-gnomeapplet is no longer being developed as Python developers need to use GObject Introspection
instead of PyGTK to work with GTK3."

Please can someone point me in the direction of an example of using GObject Introspection instead of PyGTK.

and advise if it will be possible for me to write an app that is both Gnome 2.x and 3 compatible.

Many thanks,
Richard

1. http://sites.google.com/site/richardhenwood/gnome-workspacetime
Jasper St. Pierre | 2 Nov 2011 20:59
Gravatar

Re: GObject Introspection instead of PyGTK

There's a good introduction over here: http://python-gtk-3-tutorial.rtfd.org

The first thing that I would do is replace:

    import gtk
    import gobject

with something like:

    from gi.repository import Gtk as gtk, GObject as gobject

and see what breaks.

On Wed, Nov 2, 2011 at 3:55 PM, Richard Henwood <rjhenwood <at> yahoo.co.uk> wrote:
> hi All,
>
> My python app [1] won't run on Ubuntu 11.10 apparently because:
>
>
> "python-gnomeapplet is no longer being developed as Python developers need to use GObject
Introspection instead of PyGTK to work with GTK3."
>
> Please can someone point me in the direction of an example of using GObject Introspection instead of PyGTK.
>
> and advise if it will be possible for me to write an app that is both Gnome 2.x and 3 compatible.
>
> Many thanks,
> Richard
>
> 1. http://sites.google.com/site/richardhenwood/gnome-workspacetime
(Continue reading)

Dylan McCall | 2 Nov 2011 21:16
Picon
Gravatar

Re: GObject Introspection instead of PyGTK

On Wed, Nov 2, 2011 at 12:59 PM, Jasper St. Pierre
<jstpierre <at> mecheye.net> wrote:
> There's a good introduction over here: http://python-gtk-3-tutorial.rtfd.org
>
> The first thing that I would do is replace:
>
>    import gtk
>    import gobject
>
> with something like:
>
>    from gi.repository import Gtk as gtk, GObject as gobject
>
> and see what breaks.

You can also find a porting guide over here:
https://live.gnome.org/PyGObject/IntrospectionPorting

Indeed, the first step is just renaming stuff. There's a bunch of
that, and in some cases it might be all you need to do. Good luck!

Dylan
komputes | 2 Nov 2011 21:45
Picon
Gravatar

Nautilus Features

On 10/09/2011 05:25 PM, komputes wrote:
> nautilus - Continue copying files when user interaction is needed.
> https://bugzilla.gnome.org/show_bug.cgi?id=661343
> http://bugs.launchpad.net/bugs/871492
> http://brainstorm.ubuntu.com/idea/28648/ (New brainstorm for this idea)
> http://brainstorm.ubuntu.com/idea/15427/ (Other implementation ideas
> here) 

A few more nautilus features. They all revolve around copy mechanism
improvements:
• Allocate space before copying.
• Checks files to be copied before action is taken.
• Resistant to hidden files, long name, naming conflicts from other FS.
• Brings any naming issue to be resolved to the user's attention before
copy starts.
• Does not stop in the middle of a large transfer to tell you there is
an error.
• Calculates and display size of directories in detailed list view.
Sebastian Pölsterl | 2 Nov 2011 23:20

Re: GObject Introspection instead of PyGTK

Hi Richard,

keep in mind that gnome 3 does not support applets anymore. Therefore,
you have to port to PyGI and gnome3-compatible libraries at the same time.

Regards,
Sebastian Pölsterl

Am 02.11.2011 20:55, schrieb Richard Henwood:
> hi All,
> 
> My python app [1] won't run on Ubuntu 11.10 apparently because:
> 
> 
> "python-gnomeapplet is no longer being developed as Python developers need to use GObject
Introspection instead of PyGTK to work with GTK3."
> 
> Please can someone point me in the direction of an example of using GObject Introspection instead of PyGTK.
> 
> and advise if it will be possible for me to write an app that is both Gnome 2.x and 3 compatible.
> 
> Many thanks,
> Richard
> 
> 1. http://sites.google.com/site/richardhenwood/gnome-workspacetime
> 
> _______________________________________________
> desktop-devel-list mailing list
> desktop-devel-list <at> gnome.org
> http://mail.gnome.org/mailman/listinfo/desktop-devel-list
(Continue reading)

Alberto Ruiz | 4 Nov 2011 15:45
Picon
Gravatar

GOA: Facebook key-less authentication

Hello,


I just stumbled upon this[0] link discussing the possibility of using Facebook's API without needing a private application key. I don't have much insight in the whole problem so maybe this doesn't quite cut it for GNOME Online Accounts, but I reckon I should give a heads up in case this was useful.


--
Cheers,
Alberto Ruiz
_______________________________________________
desktop-devel-list mailing list
desktop-devel-list <at> gnome.org
http://mail.gnome.org/mailman/listinfo/desktop-devel-list
Andre Klapper | 4 Nov 2011 16:04
Picon

Re: Nautilus Features

On Wed, 2011-11-02 at 16:45 -0400, komputes wrote:
> A few more nautilus features.

Please write to the nautilus mailing list instead.
This is no content for desktop-devel-list, plus wishlists are mostly
uninteresting if you don't offer manpower to work on it.

Thanks,
andre
--

-- 
mailto:ak-47 <at> gmx.net | failed
http://blogs.gnome.org/aklapper | http://www.openismus.com
Stef Walter | 4 Nov 2011 18:01
Picon

Bumping gnutls dependency to 2.12.8

Hey all,

At the beginning of the 3.3 cycle, I bumped the gnutls minimum
dependency to 2.12.0. It turns out that release had some issues, it
doesn't even have the right version in the pkg-config file.

So unless anyone objects, I'm going to bump the jhbuild 3.4 moduleset
gnutls version to 2.12.8.

As a bonus, this is the minimum version we need for the PKCS#11
integration in glib-networking to function.

Cheers,

Stef
Andre Klapper | 4 Nov 2011 18:15
Picon

Re: Moonlight Desklets and Windows Opacity

On Sun, 2011-10-23 at 08:32 -0500, Leonel Florin Selles wrote:
> Hi, I will like to know hot to create a o simulate a desklet wiht
> gtk-sharp o moonlight.
> 
> And how I prevent that the objects within a opacity windows don't get the
> windows opacity, to give the impression that there are floating on the
> screen.

Better to ask on a gtk-sharp or moonlight mailing list:
http://www.mono-project.com/Mailing_Lists

andre
--

-- 
mailto:ak-47 <at> gmx.net | failed
http://blogs.gnome.org/aklapper | http://www.openismus.com
Richard Henwood | 4 Nov 2011 18:26
Picon
Favicon

Re: GObject Introspection instead of PyGTK

--- On Wed, 2/11/11, Dylan McCall <dylanmccall <at> gmail.com> wrote:
> Jasper St. Pierre
> <jstpierre <at> mecheye.net>
> wrote:
> > There's a good introduction over here: http://python-gtk-3-tutorial.rtfd.org
> >
> > The first thing that I would do is replace:
> >
> >    import gtk
> >    import gobject
> >
> > with something like:
> >
> >    from gi.repository import Gtk as gtk, GObject as
> gobject
> >
> > and see what breaks.
> 
> You can also find a porting guide over here:
> https://live.gnome.org/PyGObject/IntrospectionPorting
> 
> Indeed, the first step is just renaming stuff. There's a
> bunch of
> that, and in some cases it might be all you need to do.
> Good luck!
> 

So, to temporary close this thread - and thank you for your assistance:

Unity was causing me frustration that was clouding my thinking - I've now moved to Gnome-Shell and my levels
of frustration are subsiding to a point where I can get on with my work and enjoy my computer again.

I believe that I must have some gnome/gtk2 libs installed as my code works with: 

    import pygtk, gtk, gobject

and, since my only known user has his software working again, I'm going to return to my work.

cheers,
Richard

Gmane