Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
path: root/widgets.py
diff options
authorSimon Schampijer <simon@schampijer.de>2012-03-16 09:18:10 (GMT)
committer Simon Schampijer <simon@schampijer.de>2012-03-16 16:05:02 (GMT)
commit1ac82f4471a6077a8fd3ae0d302a53eb89c3abf9 (patch)
treea5f9cafd83ab2cefd4720ff025bcf8e26783d25e /widgets.py
parent8595e2efe48c9163c179a6533e64ead330ce6680 (diff)
Make the LinkInfo that is displayed at the bottom left themable
Add a gtype_name to make it easily accessible from the theme. We have to do the same for the overlay as well in order to be able to set the 'background-color' of the label. Labels don't create their own window to render themselves into. Instead, they draw themselves directly onto their parents window, so we have to set the background-color of the parent in order to set the labels' background color [1]. The patch does adjust the gtype_names to be consistent. [1] http://developer.gnome.org/gtk-faq/stable/x810.html Signed-off-by: Simon Schampijer <simon@schampijer.de> Acked-by: Manuel QuiƱones <manuq@laptop.org>
Diffstat (limited to 'widgets.py')
1 files changed, 2 insertions, 2 deletions
diff --git a/widgets.py b/widgets.py
index d1de3ee..df5bdb0 100644
--- a/widgets.py
+++ b/widgets.py
@@ -23,7 +23,7 @@ from sugar3.graphics.icon import Icon
class TabAdd(Gtk.HBox):
- __gtype_name__ = 'TabAdd'
+ __gtype_name__ = 'BrowseTabAdd'
__gsignals__ = {
'tab-added': (GObject.SignalFlags.RUN_FIRST,
@@ -53,7 +53,7 @@ class TabAdd(Gtk.HBox):
class BrowserNotebook(Gtk.Notebook):
- __gtype_name__ = 'BrowserNotebook'
+ __gtype_name__ = 'BrowseNotebook'
"""Handle an extra tab at the end with an Add Tab button."""