Changes

Jump to navigation Jump to search
Created page with "This page is being performed while I'm porting Get Books Activity to Gtk3. There is a [http://bugs.sugarlabs.org/ticket/3681 ticket] with some useful information that I'm usi..."
This page is being performed while I'm porting Get Books Activity to Gtk3.

There is a [http://bugs.sugarlabs.org/ticket/3681 ticket] with some useful information that I'm using on the porting and to keep tracking this port. Besides, this wiki page will be useful to write some code snippets about what are the difficulties that I'm having on the port and maybe can be useful for someone else.

= Steps that you should follow to Port an Activity to Gtk3 =

#. Read the [http://wiki.sugarlabs.org/go/Features/GTK3 Sugar Official Wiki]
#. Read the [http://wiki.sugarlabs.org/go/Features/GTK3/Porting specific Sugar Wiki Page] that talks about how to porting. Please, follow those steps and if you have a suggestion about the process you can contact with us and let us know.
#. Comment on IRC about the Activity that you are going to Port (#sugar on irc.freenode.net)
#. Run this [http://git.gnome.org/browse/pygobject/tree/pygi-convert.sh script] that will convert automatically things as much as it can. This is to avoid some stressful manually conversions that a "simple script" can do using ''sed'' :)

= Tips and Tricks =

== Create a "new" activity from the git version ==

== Script to list all the enumeration ==

There is an [http://dev.laptop.org/~dsd/20110806/pygi-enumerate.py script] that list all the Gtk enumerations and it's useful to know the new name and from where it comes from. For example:

<pre>
</pre>

= References / Useful links =

* Guide you should follow: http://wiki.sugarlabs.org/go/Features/GTK3/Porting
* PyGtk documentation
** Gtk3: http://python-gtk-3-tutorial.readthedocs.org/en/latest/objects.html#objects
** gtk2: http://www.pygtk.org/docs/pygobject/gobject-functions.html
* Reference Manual
** Gtk3: http://developer.gnome.org/gtk3/3.4/
266

edits

Navigation menu