[gedit] Snippets: fix the completion details



commit 5e34a93f3ec517b5e1718fd60379b329adf63991
Author: SÃbastien Wilmet <swilmet gnome org>
Date:   Wed Jan 16 19:14:02 2013 +0100

    Snippets: fix the completion details
    
    The info window has now a natural size by default. For the snippets
    details, it's better a fixed size.

 plugins/snippets/snippets/completion.py |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/plugins/snippets/snippets/completion.py b/plugins/snippets/snippets/completion.py
index e84e72b..69c7c38 100644
--- a/plugins/snippets/snippets/completion.py
+++ b/plugins/snippets/snippets/completion.py
@@ -133,6 +133,10 @@ class Provider(GObject.Object, GtkSource.CompletionProvider):
 
                         sw = Gtk.ScrolledWindow()
                         sw.add(view)
+                        sw.show_all()
+
+                        # Fixed size
+                        sw.set_size_request(300, 200)
 
                         self.info_view = view
                         self.info_widget = sw



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]