-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
91abf08
commit 965577b
Showing
3 changed files
with
26 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
diff --git a/toolbars.py b/toolbars.py | ||
index ca24c2c..9924a00 100644 | ||
--- a/toolbars.py | ||
+++ b/toolbars.py | ||
@@ -13,6 +13,8 @@ from sugar3.graphics.toolbutton import ToolButton | ||
from sugar3.graphics.toggletoolbutton import ToggleToolButton | ||
from sugar3.graphics.style import GRID_CELL_SIZE | ||
|
||
+from sugarapp.helpers import PrimaryMonitor | ||
+ | ||
import logging | ||
_logger = logging.getLogger('calc-activity') | ||
|
||
@@ -383,7 +385,7 @@ class MiscToolbar(Gtk.Toolbar): | ||
self.show_all() | ||
|
||
def update_layout(self): | ||
- if Gdk.Screen.width() < 14 * GRID_CELL_SIZE or \ | ||
+ if PrimaryMonitor.width() < 14 * GRID_CELL_SIZE or \ | ||
self._target_toolbar is None: | ||
target_toolbar = self | ||
if self._target_toolbar is not None: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters