[pitivi: 21/94] Call toggleFullScreen directly in PitiviMainWindow.__init__ if needed
- From: Thibault Saunier <tsaunier src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi: 21/94] Call toggleFullScreen directly in PitiviMainWindow.__init__ if needed
- Date: Sun, 11 Sep 2011 16:14:13 +0000 (UTC)
commit 3173b1bce9e52b55a5d1a229ebd4d380470ec525
Author: Alex BÄluÈ <alexandru balut gmail com>
Date: Fri Aug 26 09:45:33 2011 +0200
Call toggleFullScreen directly in PitiviMainWindow.__init__ if needed
pitivi/ui/mainwindow.py | 11 +++--------
1 files changed, 3 insertions(+), 8 deletions(-)
---
diff --git a/pitivi/ui/mainwindow.py b/pitivi/ui/mainwindow.py
index 09af9b1..1d1888f 100644
--- a/pitivi/ui/mainwindow.py
+++ b/pitivi/ui/mainwindow.py
@@ -419,7 +419,6 @@ class PitiviMainWindow(gtk.Window, Loggable):
gtk.gdk.ACTION_COPY)
self.viewer.connect("drag_data_received", self._viewerDndDataReceivedCb)
self.mainhpaned.pack2(self.viewer, resize=False, shrink=False)
- self.viewer.connect("expose-event", self._exposeEventCb)
# window and pane position defaults
self.hpaned = self.secondhpaned
@@ -439,8 +438,8 @@ class PitiviMainWindow(gtk.Window, Loggable):
self.set_default_size(width, height)
if height == -1 and width == -1:
self.maximize()
- # Whether the window will be made fullscreen after it is available.
- self._do_pending_fullscreen = self.settings.mainWindowFullScreen
+ if self.settings.mainWindowFullScreen:
+ self.toggleFullScreen()
# timeline toolbar
# FIXME: remove toolbar padding and shadow. In fullscreen mode, the
# toolbar buttons should be clickable with the mouse cursor at the
@@ -523,11 +522,6 @@ class PitiviMainWindow(gtk.Window, Loggable):
return False
- def _exposeEventCb(self, unused_widget, event):
- if self._do_pending_fullscreen:
- self._fullScreenAlternateCb(None)
- self._do_pending_fullscreen = False
-
def _saveWindowSettings(self):
self.settings.mainWindowFullScreen = self.is_fullscreen
self.settings.mainWindowHPanePosition = self.hpaned.get_position()
@@ -582,6 +576,7 @@ class PitiviMainWindow(gtk.Window, Loggable):
self.toggleFullScreen()
def _fullScreenAlternateCb(self, unused_action):
+ # Nothing more, nothing less.
self.actiongroup.get_action("FullScreen").activate()
def _showHideMainToolBar(self, action):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]