Difference between revisions of "Features/GTK3/Porting/Implode"

From Sugar Labs
< Features‎ | GTK3‎ | Porting
Jump to: navigation, search
Line 14: Line 14:
  
 
  self.set_can_focus(True)
 
  self.set_can_focus(True)
 +
 +
----
 +
 +
import rsgv
 +
 +
from gi.repository import Rsvg
 +
 +
rsvg.Handle(data=data)
 +
 +
Rsvg.Handle.new_from_data(data)
 +
 +
----
 +
 +
= gtk signals =
 +
 +
* "draw" / "expose" / "size-"

Revision as of 14:26, 27 June 2012

This page is being performed while I'm porting Implode 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.

Focus

Replace:

self.set_flags(Gtk.CAN_FOCUS)

by

self.set_can_focus(True)

import rsgv
from gi.repository import Rsvg
rsvg.Handle(data=data)
Rsvg.Handle.new_from_data(data)

gtk signals

  • "draw" / "expose" / "size-"