Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Archive
gnome-latex
Commits
c380d2ee
Commit
c380d2ee
authored
Mar 28, 2018
by
swilmet
Browse files
Rename to GNOME LaTeX: rename class LatexilaApp -> GlatexApp
parent
7cfcb92e
Changes
14
Hide whitespace changes
Inline
Side-by-side
po/POTFILES.in
View file @
c380d2ee
...
...
@@ -23,7 +23,7 @@ src/encodings.vala
src/error_entry.vala
src/file_browser.vala
src/finance.vala
src/latex
ila
_app.vala
src/
g
latex_app.vala
src/latex_menu.vala
src/liblatexila/dh-dconf-migration.c
src/liblatexila/latexila-build-job.c
...
...
po/POTFILES.skip
View file @
c380d2ee
...
...
@@ -18,7 +18,7 @@ src/encodings.c
src/error_entry.c
src/file_browser.c
src/finance.c
src/latex
ila
_app.c
src/
g
latex_app.c
src/latex_menu.c
src/main.c
src/main_window_build_tools.c
...
...
src/Makefile.am
View file @
c380d2ee
...
...
@@ -40,7 +40,7 @@ vala_files = \
factory.vala
\
file_browser.vala
\
finance.vala
\
latex
ila
_app.vala
\
g
latex_app.vala
\
latex_menu.vala
\
main.vala
\
main_window_build_tools.vala
\
...
...
src/app_settings.vala
View file @
c380d2ee
...
...
@@ -73,7 +73,7 @@ public class AppSettings : GLib.Settings
uint
val
;
setting
.
get
(
key
,
"u"
,
out
val
);
foreach
(
DocumentView
view
in
L
atex
ila
App
.
get_instance
().
get_views
())
foreach
(
DocumentView
view
in
Gl
atexApp
.
get_instance
().
get_views
())
view
.
tab_width
=
val
;
});
...
...
@@ -81,7 +81,7 @@ public class AppSettings : GLib.Settings
{
bool
val
=
setting
.
get_boolean
(
key
);
foreach
(
DocumentView
view
in
L
atex
ila
App
.
get_instance
().
get_views
())
foreach
(
DocumentView
view
in
Gl
atexApp
.
get_instance
().
get_views
())
view
.
insert_spaces_instead_of_tabs
=
val
;
});
...
...
@@ -89,7 +89,7 @@ public class AppSettings : GLib.Settings
{
bool
val
=
setting
.
get_boolean
(
key
);
foreach
(
DocumentView
view
in
L
atex
ila
App
.
get_instance
().
get_views
())
foreach
(
DocumentView
view
in
Gl
atexApp
.
get_instance
().
get_views
())
view
.
show_line_numbers
=
val
;
});
...
...
@@ -97,7 +97,7 @@ public class AppSettings : GLib.Settings
{
bool
val
=
setting
.
get_boolean
(
key
);
foreach
(
DocumentView
view
in
L
atex
ila
App
.
get_instance
().
get_views
())
foreach
(
DocumentView
view
in
Gl
atexApp
.
get_instance
().
get_views
())
view
.
highlight_current_line
=
val
;
});
...
...
@@ -105,7 +105,7 @@ public class AppSettings : GLib.Settings
{
bool
val
=
setting
.
get_boolean
(
key
);
foreach
(
Document
doc
in
L
atex
ila
App
.
get_instance
().
get_documents
())
foreach
(
Document
doc
in
Gl
atexApp
.
get_instance
().
get_documents
())
doc
.
highlight_matching_brackets
=
val
;
});
...
...
@@ -113,7 +113,7 @@ public class AppSettings : GLib.Settings
{
bool
val
=
setting
.
get_boolean
(
key
);
foreach
(
Document
doc
in
L
atex
ila
App
.
get_instance
().
get_documents
())
foreach
(
Document
doc
in
Gl
atexApp
.
get_instance
().
get_documents
())
doc
.
tab
.
auto_save
=
val
;
});
...
...
@@ -122,14 +122,14 @@ public class AppSettings : GLib.Settings
uint
val
;
setting
.
get
(
key
,
"u"
,
out
val
);
foreach
(
Document
doc
in
L
atex
ila
App
.
get_instance
().
get_documents
())
foreach
(
Document
doc
in
Gl
atexApp
.
get_instance
().
get_documents
())
doc
.
tab
.
auto_save_interval
=
val
;
});
}
private
void
set_font
(
string
font
)
{
foreach
(
DocumentView
view
in
L
atex
ila
App
.
get_instance
().
get_views
())
foreach
(
DocumentView
view
in
Gl
atexApp
.
get_instance
().
get_views
())
view
.
set_font_from_string
(
font
);
}
}
src/completion.vala
View file @
c380d2ee
...
...
@@ -371,7 +371,7 @@ public class CompletionProvider : GLib.Object, SourceCompletionProvider
_calltip_window_label
.
set_markup
(
markup
);
MainWindow
?
window
=
L
atex
ila
App
.
get_instance
().
get_active_main_window
();
MainWindow
?
window
=
Gl
atexApp
.
get_instance
().
get_active_main_window
();
return_if_fail
(
window
!=
null
);
_calltip_window
.
set_transient_for
(
window
);
...
...
src/factory.vala
View file @
c380d2ee
...
...
@@ -25,8 +25,8 @@ public class Factory : Tepl.AbstractFactoryVala
public
override
Gtk
.
ApplicationWindow
?
create_main_window_vala
(
Gtk
.
Application
gtk_app
)
{
return_val_if_fail
(
gtk_app
is
L
atex
ila
App
,
null
);
L
atex
ila
App
app
=
gtk_app
as
L
atex
ila
App
;
return_val_if_fail
(
gtk_app
is
Gl
atexApp
,
null
);
Gl
atexApp
app
=
gtk_app
as
Gl
atexApp
;
MainWindow
?
active_main_window
=
app
.
get_active_main_window
();
if
(
active_main_window
!=
null
)
...
...
@@ -41,7 +41,7 @@ public class Factory : Tepl.AbstractFactoryVala
return
new_window
;
}
private
void
reopen_files
(
L
atex
ila
App
app
)
private
void
reopen_files
(
Gl
atexApp
app
)
{
GLib
.
Settings
editor_settings
=
new
GLib
.
Settings
(
"org.gnome.gnome-latex.preferences.editor"
);
...
...
src/latex
ila
_app.vala
→
src/
g
latex_app.vala
View file @
c380d2ee
...
...
@@ -19,7 +19,7 @@
* Author: Sébastien Wilmet
*/
public
class
L
atex
ila
App
:
Gtk
.
Application
public
class
Gl
atexApp
:
Gtk
.
Application
{
static
Gtk
.
CssProvider
?
_provider
=
null
;
...
...
@@ -34,7 +34,7 @@ public class LatexilaApp : Gtk.Application
{
"quit"
,
quit_cb
}
};
public
L
atex
ila
App
()
public
Gl
atexApp
()
{
Object
(
application_id
:
"org.gnome.gnome-latex"
);
set_flags
(
ApplicationFlags
.
HANDLES_OPEN
);
...
...
@@ -51,9 +51,9 @@ public class LatexilaApp : Gtk.Application
tepl_app
.
handle_activate
();
}
public
static
L
atex
ila
App
get_instance
()
public
static
Gl
atexApp
get_instance
()
{
return
GLib
.
Application
.
get_default
()
as
L
atex
ila
App
;
return
GLib
.
Application
.
get_default
()
as
Gl
atexApp
;
}
public
MainWindow
?
get_active_main_window
()
...
...
src/main.vala
View file @
c380d2ee
...
...
@@ -36,7 +36,7 @@ int main (string[] argv)
Factory
factory
=
new
Factory
();
factory
.
set_singleton_vala
();
L
atex
ila
App
app
=
new
L
atex
ila
App
();
Gl
atexApp
app
=
new
Gl
atexApp
();
int
status
=
app
.
run
(
argv
);
Tepl
.
finalize
();
...
...
src/main_window.vala
View file @
c380d2ee
...
...
@@ -149,7 +149,7 @@ public class MainWindow : ApplicationWindow
/*************************************************************************/
// Construction
public
MainWindow
(
L
atex
ila
App
app
)
public
MainWindow
(
Gl
atexApp
app
)
{
Object
(
application
:
app
);
...
...
@@ -347,7 +347,7 @@ public class MainWindow : ApplicationWindow
add_accel_group
(
_ui_manager
.
get_accel_group
());
L
atex
ila
App
app
=
L
atex
ila
App
.
get_instance
();
Gl
atexApp
app
=
Gl
atexApp
.
get_instance
();
Amtk
.
utils_bind_g_action_to_gtk_action
(
app
,
"quit"
,
_action_group
,
"FileQuit"
);
Amtk
.
utils_bind_g_action_to_gtk_action
(
app
,
"help"
,
...
...
@@ -537,7 +537,7 @@ public class MainWindow : ApplicationWindow
Gtk
.
drag_dest_add_uri_targets
(
this
);
drag_data_received
.
connect
((
dc
,
x
,
y
,
selection_data
,
info
,
time
)
=>
{
L
atex
ila
App
app
=
L
atex
ila
App
.
get_instance
();
Gl
atexApp
app
=
Gl
atexApp
.
get_instance
();
File
[]
files
=
{};
foreach
(
string
uri
in
selection_data
.
get_uris
())
...
...
@@ -626,7 +626,7 @@ public class MainWindow : ApplicationWindow
public
DocumentTab
?
open_document
(
File
location
,
bool
jump_to
=
true
)
{
/* check if the document is already opened */
foreach
(
Window
window
in
L
atex
ila
App
.
get_instance
().
get_windows
())
foreach
(
Window
window
in
Gl
atexApp
.
get_instance
().
get_windows
())
{
if
(!(
window
is
MainWindow
))
continue
;
...
...
src/main_window_build_tools.vala
View file @
c380d2ee
...
...
@@ -82,7 +82,7 @@ public class MainWindowBuildTools
ui_manager
.
insert_action_group
(
_static_action_group
,
0
);
L
atex
ila
App
app
=
L
atex
ila
App
.
get_instance
();
Gl
atexApp
app
=
Gl
atexApp
.
get_instance
();
Amtk
.
utils_bind_g_action_to_gtk_action
(
app
,
"manage-build-tools"
,
_static_action_group
,
"BuildToolsPreferences"
);
...
...
@@ -128,7 +128,7 @@ public class MainWindowBuildTools
Gtk
.
Action
stop_exec_action
=
_static_action_group
.
get_action
(
"BuildStopExecution"
);
stop_exec_action
.
set_sensitive
(
build_tool_is_running
);
L
atex
ila
App
app
=
L
atex
ila
App
.
get_instance
();
Gl
atexApp
app
=
Gl
atexApp
.
get_instance
();
GLib
.
SimpleAction
preferences_action
=
app
.
lookup_action
(
"manage-build-tools"
)
as
GLib
.
SimpleAction
;
...
...
@@ -374,7 +374,7 @@ public class MainWindowBuildTools
// Save all the documents belonging to the project
else
{
Gee
.
List
<
Document
>
docs
=
L
atex
ila
App
.
get_instance
().
get_documents
();
Gee
.
List
<
Document
>
docs
=
Gl
atexApp
.
get_instance
().
get_documents
();
foreach
(
Document
doc
in
docs
)
{
if
(
doc
.
project_id
==
project_id
)
...
...
src/main_window_documents.vala
View file @
c380d2ee
...
...
@@ -283,7 +283,7 @@ public class MainWindowDocuments
return_if_fail
(
tab
!=
null
);
return_if_fail
(
_documents_panel
!=
null
);
MainWindow
new_window
=
L
atex
ila
App
.
get_instance
().
create_window
();
MainWindow
new_window
=
Gl
atexApp
.
get_instance
().
create_window
();
DocumentView
view
=
tab
.
document_view
;
_documents_panel
.
remove_tab
(
tab
);
...
...
src/main_window_edit.vala
View file @
c380d2ee
...
...
@@ -88,7 +88,7 @@ public class MainWindowEdit
ui_manager
.
insert_action_group
(
_action_group
,
0
);
L
atex
ila
App
app
=
L
atex
ila
App
.
get_instance
();
Gl
atexApp
app
=
Gl
atexApp
.
get_instance
();
Amtk
.
utils_bind_g_action_to_gtk_action
(
main_window
,
"tepl-undo"
,
_action_group
,
"EditUndo"
);
...
...
src/main_window_file.vala
View file @
c380d2ee
...
...
@@ -73,7 +73,7 @@ public class MainWindowFile
ui_manager
.
insert_action_group
(
_action_group
,
0
);
L
atex
ila
App
app
=
L
atex
ila
App
.
get_instance
();
Gl
atexApp
app
=
Gl
atexApp
.
get_instance
();
Amtk
.
utils_bind_g_action_to_gtk_action
(
app
,
"tepl-new-window"
,
_action_group
,
"FileNewWindow"
);
}
...
...
src/projects.vala
View file @
c380d2ee
...
...
@@ -80,7 +80,7 @@ public class Projects
private
void
update_all_menus
()
{
foreach
(
Gtk
.
Window
window
in
L
atex
ila
App
.
get_instance
().
get_windows
())
foreach
(
Gtk
.
Window
window
in
Gl
atexApp
.
get_instance
().
get_windows
())
{
if
(
window
is
MainWindow
)
{
...
...
@@ -108,7 +108,7 @@ public class Projects
modified
=
true
;
// find if some opened documents are belonging to the new project
Gee
.
List
<
Document
>
docs
=
L
atex
ila
App
.
get_instance
().
get_documents
();
Gee
.
List
<
Document
>
docs
=
Gl
atexApp
.
get_instance
().
get_documents
();
foreach
(
Document
doc
in
docs
)
{
if
(
doc
.
project_id
!=
-
1
||
doc
.
location
==
null
)
...
...
@@ -139,7 +139,7 @@ public class Projects
modified
=
true
;
// refresh docs
Gee
.
List
<
Document
>
docs
=
L
atex
ila
App
.
get_instance
().
get_documents
();
Gee
.
List
<
Document
>
docs
=
Gl
atexApp
.
get_instance
().
get_documents
();
foreach
(
Document
doc
in
docs
)
{
if
(
doc
.
project_id
==
num
)
...
...
@@ -156,7 +156,7 @@ public class Projects
modified
=
true
;
// refresh docs
Gee
.
List
<
Document
>
docs
=
L
atex
ila
App
.
get_instance
().
get_documents
();
Gee
.
List
<
Document
>
docs
=
Gl
atexApp
.
get_instance
().
get_documents
();
foreach
(
Document
doc
in
docs
)
{
if
(
doc
.
project_id
==
num
)
...
...
@@ -178,7 +178,7 @@ public class Projects
private
void
update_all_documents
()
{
Gee
.
List
<
Document
>
docs
=
L
atex
ila
App
.
get_instance
().
get_documents
();
Gee
.
List
<
Document
>
docs
=
Gl
atexApp
.
get_instance
().
get_documents
();
foreach
(
Document
doc
in
docs
)
{
doc
.
project_id
=
-
1
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment