[latexila] Completion: better size for the calltip
- From: SÃbastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [latexila] Completion: better size for the calltip
- Date: Sat, 7 Apr 2012 05:26:37 +0000 (UTC)
commit a5c5a120636003c696fc8a218186235ce70b0f89
Author: SÃbastien Wilmet <swilmet src gnome org>
Date: Sat Apr 7 06:11:47 2012 +0200
Completion: better size for the calltip
src/completion.vala | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/completion.vala b/src/completion.vala
index 51f93dc..c08e760 100644
--- a/src/completion.vala
+++ b/src/completion.vala
@@ -333,6 +333,11 @@ public class CompletionProvider : GLib.Object, SourceCompletionProvider
_calltip_window_label.set_markup (markup);
+ // Set better size
+ Requisition size;
+ _calltip_window_label.get_preferred_size (null, out size);
+ _calltip_window.set_default_size (size.width + 10, size.height);
+
MainWindow window = Latexila.get_instance ().active_window;
_calltip_window.set_transient_for (window);
_calltip_window.set_attached_to (window.active_view);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]