[gedit-plugins] Fix size of commander entry to fit window
- From: Jesse van den Kieboom <jessevdk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit-plugins] Fix size of commander entry to fit window
- Date: Sat, 9 Apr 2011 08:49:17 +0000 (UTC)
commit c353e5fbc9220053a45cbab895451cd0c0c73499
Author: Jesse van den Kieboom <jessevdk gnome org>
Date: Sat Apr 9 10:49:15 2011 +0200
Fix size of commander entry to fit window
plugins/commander/commander/entry.py | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/plugins/commander/commander/entry.py b/plugins/commander/commander/entry.py
index 30e80e2..adc9feb 100644
--- a/plugins/commander/commander/entry.py
+++ b/plugins/commander/commander/entry.py
@@ -169,6 +169,9 @@ GtkEntry#gedit-commander-entry {
alloc = self.get_allocation()
self._view.set_border_window_size(Gtk.TextWindowType.BOTTOM, alloc.height)
+ win = self._view.get_window(Gtk.TextWindowType.BOTTOM)
+ self.set_size_request(win.get_width(), -1)
+
# NOTE: we need to do this explicitly somehow, otherwise the window
# size will not be updated unless something else happens, not exactly
# sure what. This might be caused by the multi notebook, or custom
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]