[latexila] Completion: natural size for the calltip
- From: SÃbastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [latexila] Completion: natural size for the calltip
- Date: Thu, 6 Sep 2012 21:58:18 +0000 (UTC)
commit 535e924b45833abfffb4aa834c5913426565397d
Author: SÃbastien Wilmet <swilmet gnome org>
Date: Thu Sep 6 23:57:33 2012 +0200
Completion: natural size for the calltip
src/completion.vala | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/src/completion.vala b/src/completion.vala
index 073e105..ee00c17 100644
--- a/src/completion.vala
+++ b/src/completion.vala
@@ -303,6 +303,11 @@ public class CompletionProvider : GLib.Object, SourceCompletionProvider
private void init_calltip_window ()
{
_calltip_window = new SourceCompletionInfo ();
+
+ // HACK: no scrollbars
+ ScrolledWindow scrolled_window = _calltip_window.get_child () as ScrolledWindow;
+ scrolled_window.set_policy (PolicyType.NEVER, PolicyType.NEVER);
+
_calltip_window_label = new Label (null);
_calltip_window.set_widget (_calltip_window_label);
}
@@ -332,7 +337,7 @@ public class CompletionProvider : GLib.Object, SourceCompletionProvider
// Set better size
Requisition size;
_calltip_window_label.get_preferred_size (null, out size);
- _calltip_window.set_default_size (size.width + 10, size.height);
+ _calltip_window.resize (size.width + 10, size.height + 10);
MainWindow window = Latexila.get_instance ().active_window;
_calltip_window.set_transient_for (window);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]