Changes

Jump to navigation Jump to search
Line 101: Line 101:     
In that case we are creating a new instance of <tt>Gdk.Cursor</tt> every time that this chunk of code is called. I think that we could define all the cursor used by the Activity once at the beginning of the file maybe. ''We should discuss about this.''
 
In that case we are creating a new instance of <tt>Gdk.Cursor</tt> every time that this chunk of code is called. I think that we could define all the cursor used by the Activity once at the beginning of the file maybe. ''We should discuss about this.''
 +
 +
== Use Gtk.Box instead Gtk.HBox / Gtk.VBox ==
 +
 +
As [http://developer.gnome.org/gtk3/3.5/GtkHBox.html#GtkHBox.description its documentation says], Gtk.VBox and Gtk.HBox have been deprecated. So, we should use Gtk.Box instead them. Replacing:
 +
 +
self.list_box = gtk.HBox()
 +
 +
by:
 +
 +
self.list_box = Gtk.Box(orientation=Gtk.Orientation.HORIZONTAL)
 +
 +
and,
 +
 +
self.list_box = gtk.VBox()
 +
 +
by:
 +
 +
self.list_box = Gtk.Box(orientation=Gtk.Orientation.VERTICAL)
    
= Notes =
 
= Notes =
266

edits

Navigation menu