[latexila] Completion: attach the calltip window to the view
- From: SÃbastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [latexila] Completion: attach the calltip window to the view
- Date: Sat, 7 Apr 2012 03:37:00 +0000 (UTC)
commit d15f5040bc3bacf7fddb1c9581429f5d586e8b25
Author: SÃbastien Wilmet <swilmet src gnome org>
Date: Sat Apr 7 05:35:45 2012 +0200
Completion: attach the calltip window to the view
src/completion.vala | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/src/completion.vala b/src/completion.vala
index a8ce4cd..51f93dc 100644
--- a/src/completion.vala
+++ b/src/completion.vala
@@ -306,10 +306,7 @@ public class CompletionProvider : GLib.Object, SourceCompletionProvider
private void init_calltip_window ()
{
- Latexila app = Latexila.get_instance ();
_calltip_window = new SourceCompletionInfo ();
- _calltip_window.set_transient_for (app.active_window);
-// _calltip_window.set_sizing (800, 200, true, true);
_calltip_window_label = new Label (null);
_calltip_window.set_widget (_calltip_window_label);
}
@@ -338,6 +335,7 @@ public class CompletionProvider : GLib.Object, SourceCompletionProvider
MainWindow window = Latexila.get_instance ().active_window;
_calltip_window.set_transient_for (window);
+ _calltip_window.set_attached_to (window.active_view);
// Calltip at a fixed place (after the '{' or '[' of the current argument).
TextIter cursor_pos;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]