Changes

Jump to navigation Jump to search
Line 36: Line 36:     
  def _configure_event_cb(self, widget, event):
 
  def _configure_event_cb(self, widget, event):
  −
I just used the ''size-allocate'' signal to save the the dimensions of the widget (width and height), so I can use them later on the '''draw''' signal.
  −
  −
def _size_allocate_cb(self, widget, rect):
  −
    self.width = rect.width
  −
    self.height = rect.height
      
== Focus ==
 
== Focus ==
Line 90: Line 84:     
  self.get_window().invalidate_rect(rect, True)
 
  self.get_window().invalidate_rect(rect, True)
 +
 +
= Notes =
 +
 +
* I had to add a third argument (None) to Gtk.Notebook.append_page but I don't know why
 +
* Use '''json''' instead of ''simplejson'' or so
 +
* Replace <tt>gtk.VISIBLE</tt> by '''Gtk.AccelFlags.VISIBLE'''
 +
 +
= Missing things (not ported yet) =
 +
 +
* ''sugarless.py'' is not working. The board is not shown. Do we update this to keep it working? I mean, do we need to maintain this code?
 +
* [<span style="color: green;">DONE</span>] <del>help dialogue is not working. It shows the example board but it's one pixel size when it opens</del>
 +
* When the help dialogue is shown and you hover the animation with the mouse something strange happens and it starts to flap. [http://bugs.sugarlabs.org/attachment/ticket/3715/53.png Screenshot]
    
= Useful Links =
 
= Useful Links =
Line 98: Line 104:  
* http://developer.gnome.org/gdk3/stable/gdk3-Windows.html#gdk-window-invalidate-rect
 
* http://developer.gnome.org/gdk3/stable/gdk3-Windows.html#gdk-window-invalidate-rect
 
* http://developer.gnome.org/gtk3/3.5/GtkWidget.html#gtk-widget-get-allocated-width
 
* http://developer.gnome.org/gtk3/3.5/GtkWidget.html#gtk-widget-get-allocated-width
 +
* http://developer.gnome.org/gtk3/3.5/GtkNotebook.html#gtk-notebook-append-page
266

edits

Navigation menu