Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--shell/view/frame/Makefile.am2
-rw-r--r--shell/view/frame/clipboardpanelwindow.py6
-rw-r--r--shell/view/frame/frame.py4
-rw-r--r--shell/view/frame/framewindow.py (renamed from shell/view/frame/PanelWindow.py)6
-rw-r--r--sugar/graphics/toolbox.py1
5 files changed, 9 insertions, 10 deletions
diff --git a/shell/view/frame/Makefile.am b/shell/view/frame/Makefile.am
index fe14746..f33648e 100644
--- a/shell/view/frame/Makefile.am
+++ b/shell/view/frame/Makefile.am
@@ -9,5 +9,5 @@ sugar_PYTHON = \
frame.py \
ZoomBox.py \
overlaybox.py \
- PanelWindow.py \
+ framewindow.py \
framepopupcontext.py
diff --git a/shell/view/frame/clipboardpanelwindow.py b/shell/view/frame/clipboardpanelwindow.py
index 0f91645..0eb8b1d 100644
--- a/shell/view/frame/clipboardpanelwindow.py
+++ b/shell/view/frame/clipboardpanelwindow.py
@@ -2,14 +2,14 @@ import logging
import gtk
import hippo
-from view.frame.PanelWindow import PanelWindow
+from view.frame.framewindow import FrameWindow
from view.frame.clipboardbox import ClipboardBox
from sugar.clipboard import clipboardservice
from sugar import util
-class ClipboardPanelWindow(PanelWindow):
+class ClipboardPanelWindow(FrameWindow):
def __init__(self, frame, orientation):
- PanelWindow.__init__(self, orientation)
+ FrameWindow.__init__(self, orientation)
self._frame = frame
diff --git a/shell/view/frame/frame.py b/shell/view/frame/frame.py
index d37ce4c..521cd8d 100644
--- a/shell/view/frame/frame.py
+++ b/shell/view/frame/frame.py
@@ -24,7 +24,7 @@ from view.frame.ActivitiesBox import ActivitiesBox
from view.frame.ZoomBox import ZoomBox
from view.frame.overlaybox import OverlayBox
from view.frame.FriendsBox import FriendsBox
-from view.frame.PanelWindow import PanelWindow
+from view.frame.framewindow import FrameWindow
from view.frame.clipboardpanelwindow import ClipboardPanelWindow
from view.frame.framepopupcontext import FramePopupContext
from model.ShellModel import ShellModel
@@ -257,7 +257,7 @@ class Frame(object):
self._timeline.goto('slide_out', True)
def _create_panel(self, orientation):
- panel = PanelWindow(orientation)
+ panel = FrameWindow(orientation)
self._connect_to_panel(panel)
return panel
diff --git a/shell/view/frame/PanelWindow.py b/shell/view/frame/framewindow.py
index 5dfe446..3cb55d2 100644
--- a/shell/view/frame/PanelWindow.py
+++ b/shell/view/frame/framewindow.py
@@ -19,7 +19,8 @@ import hippo
from sugar.graphics import units
-class PanelWindow(gtk.Window):
+class FrameWindow(gtk.Window):
+ __gtype_name__ = 'SugarFrameWindow'
def __init__(self, orientation):
gtk.Window.__init__(self)
self.hover = False
@@ -35,8 +36,7 @@ class PanelWindow(gtk.Window):
self.add(self._canvas)
self._canvas.show()
- self._bg = hippo.CanvasBox(background_color=0x414141ff,
- orientation=self._orientation)
+ self._bg = hippo.CanvasBox(orientation=self._orientation)
self._canvas.set_root(self._bg)
self._update_size()
diff --git a/sugar/graphics/toolbox.py b/sugar/graphics/toolbox.py
index 86cae59..968ae56 100644
--- a/sugar/graphics/toolbox.py
+++ b/sugar/graphics/toolbox.py
@@ -29,7 +29,6 @@ class Toolbox(gtk.VBox):
gtk.VBox.__init__(self)
self._notebook = gtk.Notebook()
- self._notebook.set_name('sugar-toolbox-notebook')
self._notebook.set_tab_pos(gtk.POS_BOTTOM)
self._notebook.set_show_border(False)
self.pack_start(self._notebook)