[hamster-applet] dropped positioning hint and center window when we don't have previous memory of position
- From: Toms Baugis <tbaugis src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [hamster-applet] dropped positioning hint and center window when we don't have previous memory of position
- Date: Thu, 14 Jan 2010 11:40:31 +0000 (UTC)
commit 2f4e0d807739dde0662e7ae6c5d65c2b8dbca464
Author: Toms Bauģis <toms baugis gmail com>
Date: Thu Jan 14 11:40:20 2010 +0000
dropped positioning hint and center window when we don't have previous memory of position
data/stats.ui | 1 -
hamster/stats.py | 2 ++
2 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/data/stats.ui b/data/stats.ui
index 27df3f4..8d995f6 100644
--- a/data/stats.ui
+++ b/data/stats.ui
@@ -5,7 +5,6 @@
<!-- interface-local-resource-path /home/toms/cvs/hamster/data/art -->
<object class="GtkWindow" id="tabs_window">
<property name="title" translatable="yes">Overview - Hamster</property>
- <property name="window_position">center</property>
<property name="default_width">800</property>
<property name="default_height">600</property>
<signal name="delete_event" handler="on_tabs_window_deleted"/>
diff --git a/hamster/stats.py b/hamster/stats.py
index 5459d5d..e53954c 100644
--- a/hamster/stats.py
+++ b/hamster/stats.py
@@ -115,6 +115,8 @@ class StatsViewer(object):
self.window.move(x, y)
self.window.move(x, y)
self.window.resize(w, h)
+ else:
+ self.window.set_position(gtk.WIN_POS_CENTER)
self.window.show_all()
self.search()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]