[latexila] Build Tools: update actions' sensitivity when modified
- From: SÃbastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [latexila] Build Tools: update actions' sensitivity when modified
- Date: Sat, 3 Mar 2012 23:36:11 +0000 (UTC)
commit b406c738de5f16855205213fadb513191150605b
Author: SÃbastien Wilmet <swilmet src gnome org>
Date: Sun Mar 4 00:33:24 2012 +0100
Build Tools: update actions' sensitivity when modified
When the build tools are modified (e.g. show/hide a build tool), the
sensitivity of the build tools actions (the buttons on the main toolbar)
was not updated correctly.
src/main_window.vala | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/main_window.vala b/src/main_window.vala
index 7c5c51a..456f12e 100644
--- a/src/main_window.vala
+++ b/src/main_window.vala
@@ -212,7 +212,7 @@ public class MainWindow : Window
{
get
{
- if (documents_panel.get_n_pages () == 0)
+ if (documents_panel == null || documents_panel.get_n_pages () == 0)
return null;
return documents_panel.active_tab;
}
@@ -1221,6 +1221,7 @@ public class MainWindow : Window
}
build_tools_menu_ui_id = id;
+ update_build_tools_sensitivity ();
}
private void build_tools_menu_activate (Gtk.Action action)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]