From d9679562ee14fe0ef3ac4139728d88eb0b796f05 Mon Sep 17 00:00:00 2001 From: Walter Bender Date: Wed, 09 Mar 2011 15:58:06 +0000 Subject: work around problem with set_size_request on .84 systems --- (limited to 'TurtleArtActivity.py') diff --git a/TurtleArtActivity.py b/TurtleArtActivity.py index 3826e13..5d01640 100644 --- a/TurtleArtActivity.py +++ b/TurtleArtActivity.py @@ -582,9 +582,14 @@ class TurtleArtActivity(activity.Activity): self.do_grow_blocks_cb, view_toolbar_button) self.resize_down_button = self._add_button('resize-', _("Shrink blocks"), self.do_shrink_blocks_cb, view_toolbar_button) - self.hover_help_label = self._add_label( - _("Move the cursor over the orange palette for help."), - help_toolbar, gtk.gdk.screen_width() - 2 * ICON_SIZE) + if self.has_toolbarbox: + self.hover_help_label = self._add_label( + _("Move the cursor over the orange palette for help."), + help_toolbar, gtk.gdk.screen_width() - 2 * ICON_SIZE) + else: + self.hover_help_label = self._add_label( + _("Move the cursor over the orange palette for help."), + help_toolbar) # Setup palette toolbar only AFTER initializing the plugins # self._setup_palette_toolbar() -- cgit v0.9.1