Difference between revisions of "Features/GTK3/Porting/Typing Turtle"

From Sugar Labs
< Features‎ | GTK3‎ | Porting
Jump to navigation Jump to search
(Created page with "This page is being performed while I'm porting Typing Turtle Activity to Gtk3. There is a [ticket] with some useful information that I'm using on the porting and to keep trac...")
 
Line 4: Line 4:
  
 
I will take [[User:Humitos/PortingGetBooks|this guide]] as reference on the Gtk3 porting.
 
I will take [[User:Humitos/PortingGetBooks|this guide]] as reference on the Gtk3 porting.
 +
 +
= Code Snippets =
 +
 +
== Gtk.Style.fg_gc ==
 +
 +
gc = self.get_style().fg_gc[Gtk.StateType.NORMAL]
 +
 +
replaced by:
 +
 +
gc = self.get_style().fg[Gtk.StateType.NORMAL]

Revision as of 10:05, 19 July 2012

This page is being performed while I'm porting Typing Turtle Activity to Gtk3.

There is a [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.

I will take this guide as reference on the Gtk3 porting.

Code Snippets

Gtk.Style.fg_gc

gc = self.get_style().fg_gc[Gtk.StateType.NORMAL]

replaced by:

gc = self.get_style().fg[Gtk.StateType.NORMAL]