[kupfer] Give subwindow a default size when there are no items to display
- From: Ulrik Sverdrup <usverdrup src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [kupfer] Give subwindow a default size when there are no items to display
- Date: Sun, 5 Sep 2010 14:08:19 +0000 (UTC)
commit 02e21f7600e73d68aa8047a44ee8f8f36aa3e099
Author: William Friesen <wfriesen gmail com>
Date: Sun Sep 5 00:38:07 2010 +1000
Give subwindow a default size when there are no items to display
Launchpad-bug: https://bugs.launchpad.net/kupfer/+bug/630244
kupfer/ui/browser.py | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/kupfer/ui/browser.py b/kupfer/ui/browser.py
index 549a7dc..b11d7de 100644
--- a/kupfer/ui/browser.py
+++ b/kupfer/ui/browser.py
@@ -517,6 +517,9 @@ class Search (gtk.Bin):
if not text_direction_is_ltr():
sub_x += win_width - subwin_width
self.list_window.move(sub_x, sub_y)
+ if not subwin_height:
+ subwin_height = 200
+ subwin_width = win_width
self.list_window.resize(subwin_width, subwin_height)
win = self.get_toplevel()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]