[latexila] Call tepl_application_window_set_tab_group()



commit 39123711f8748ce033a2e7da3457bbc13f59c210
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Sun Jun 25 12:11:06 2017 +0200

    Call tepl_application_window_set_tab_group()
    
    For read purposes, the core of the Tepl framework is now complete! Write
    purposes will come later (e.g. to add a new tab).
    
    But with read purposes (e.g. get the list of TeplTab's or get the active
    TeplTab in a window), it's already quite powerful. It'll be possible to
    implement a lot of actions (as GActions) without depending on the
    LaTeXila Vala code. For example I think that it is now possible to
    rewrite latex_menu.vala in C (at least implementing the actions as
    GActions).

 src/documents_panel.vala |    4 ++--
 src/main_window.vala     |    6 +++++-
 2 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/src/documents_panel.vala b/src/documents_panel.vala
index 28dcf83..671d716 100644
--- a/src/documents_panel.vala
+++ b/src/documents_panel.vala
@@ -1,7 +1,7 @@
 /*
  * This file is part of LaTeXila.
  *
- * Copyright © 2010-2011 Sébastien Wilmet
+ * Copyright © 2010, 2011, 2017 Sébastien Wilmet
  *
  * LaTeXila is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -19,7 +19,7 @@
 
 using Gtk;
 
-public class DocumentsPanel : Notebook
+public class DocumentsPanel : Tepl.Notebook
 {
     public DocumentTab active_tab { get; private set; }
     public signal void right_click (Gdk.EventButton event);
diff --git a/src/main_window.vala b/src/main_window.vala
index 7745ff6..fa71dec 100644
--- a/src/main_window.vala
+++ b/src/main_window.vala
@@ -1,7 +1,7 @@
 /*
  * This file is part of LaTeXila.
  *
- * Copyright © 2010-2015 Sébastien Wilmet
+ * Copyright © 2010-2015, 2017 Sébastien Wilmet
  *
  * LaTeXila is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -231,6 +231,10 @@ public class MainWindow : ApplicationWindow
         init_documents_panel ();
         docs_vgrid.add (_documents_panel);
 
+        Tepl.ApplicationWindow tepl_window =
+            Tepl.ApplicationWindow.get_from_gtk_application_window (this);
+        tepl_window.set_tab_group (_documents_panel);
+
         // Goto Line
         _goto_line = new GotoLine (this);
         docs_vgrid.add (_goto_line);


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