[gnome-latex/wip/misc] Use TeplStatusbar
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-latex/wip/misc] Use TeplStatusbar
- Date: Sun, 19 Apr 2020 23:10:20 +0000 (UTC)
commit 42b4ee01e68ee4a752991b522eaecca67844752e
Author: Sébastien Wilmet <swilmet gnome org>
Date: Mon Apr 20 01:06:46 2020 +0200
Use TeplStatusbar
po/POTFILES.in | 1 -
po/POTFILES.skip | 1 -
src/Makefile.am | 1 -
src/custom_statusbar.vala | 47 -----------------------------------------------
src/main_window.vala | 8 ++++----
5 files changed, 4 insertions(+), 54 deletions(-)
---
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 9770617..ca0267d 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -12,7 +12,6 @@ src/build_tool_dialog.vala
src/build_tools_preferences.vala
src/clean_build_files.vala
src/completion.vala
-src/custom_statusbar.vala
src/dialogs.vala
src/documents_panel.vala
src/document_structure.vala
diff --git a/po/POTFILES.skip b/po/POTFILES.skip
index b558111..816d9ed 100644
--- a/po/POTFILES.skip
+++ b/po/POTFILES.skip
@@ -7,7 +7,6 @@ src/build_tool_runner.c
src/build_tools_preferences.c
src/clean_build_files.c
src/completion.c
-src/custom_statusbar.c
src/dialogs.c
src/document.c
src/documents_panel.c
diff --git a/src/Makefile.am b/src/Makefile.am
index 4dc0e8d..6510f0d 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -28,7 +28,6 @@ vala_files = \
build_tools_preferences.vala \
clean_build_files.vala \
completion.vala \
- custom_statusbar.vala \
dialogs.vala \
documents_panel.vala \
document_structure.vala \
diff --git a/src/main_window.vala b/src/main_window.vala
index 467937a..dc15392 100644
--- a/src/main_window.vala
+++ b/src/main_window.vala
@@ -84,7 +84,7 @@ public class MainWindow : ApplicationWindow
public string default_location = Environment.get_home_dir ();
private DocumentsPanel _documents_panel;
- private CustomStatusbar _statusbar;
+ private Tepl.Statusbar _statusbar;
private GotoLine _goto_line;
private SearchAndReplace _search_and_replace;
private Paned _main_hpaned;
@@ -252,7 +252,7 @@ public class MainWindow : ApplicationWindow
/* Statusbar */
- _statusbar = new CustomStatusbar ();
+ _statusbar = new Tepl.Statusbar ();
_statusbar.show_all ();
main_vgrid.add (_statusbar);
@@ -890,7 +890,7 @@ public class MainWindow : ApplicationWindow
{
if (active_view == null)
{
- _statusbar.set_cursor_position (-1, -1);
+ _statusbar.hide_cursor_position ();
return;
}
@@ -898,7 +898,7 @@ public class MainWindow : ApplicationWindow
active_document.get_iter_at_mark (out iter, active_document.get_insert ());
int row = (int) iter.get_line ();
int col = (int) active_view.get_visual_column (iter);
- _statusbar.set_cursor_position (row + 1, col + 1);
+ _statusbar.show_cursor_position (row + 1, col + 1);
}
public void save_state ()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]