From 1ac82f4471a6077a8fd3ae0d302a53eb89c3abf9 Mon Sep 17 00:00:00 2001 From: Simon Schampijer Date: Fri, 16 Mar 2012 09:18:10 +0000 Subject: 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 Acked-by: Manuel QuiƱones --- (limited to 'widgets.py') 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.""" -- cgit v0.9.1