[latexila] Add a separator between default and personal build tools
- From: SÃbastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [latexila] Add a separator between default and personal build tools
- Date: Wed, 18 Jul 2012 00:03:36 +0000 (UTC)
commit 8fb09794459f6a65e85c065290b54173a3180fb0
Author: SÃbastien Wilmet <swilmet src gnome org>
Date: Tue Jul 17 23:57:05 2012 +0200
Add a separator between default and personal build tools
src/main_window_build_tools.vala | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/src/main_window_build_tools.vala b/src/main_window_build_tools.vala
index fa9e7ff..856a6e3 100644
--- a/src/main_window_build_tools.vala
+++ b/src/main_window_build_tools.vala
@@ -237,6 +237,8 @@ public class MainWindowBuildTools
tool_num++;
}
+ add_separator ();
+
/* Add the personal build tools */
tool_num = 0;
foreach (BuildTool build_tool in personal_build_tools)
@@ -249,6 +251,17 @@ public class MainWindowBuildTools
update_sensitivity ();
}
+ private void add_separator ()
+ {
+ _ui_manager.add_ui (_menu_ui_id,
+ "/MainMenu/BuildMenu/BuildToolsPlaceholderMenu",
+ "BuildToolsSeparator", null, UIManagerItemType.SEPARATOR, false);
+
+ _ui_manager.add_ui (_menu_ui_id,
+ "/MainToolbar/BuildToolsPlaceholderToolbar",
+ "BuildToolsSeparator", null, UIManagerItemType.SEPARATOR, false);
+ }
+
private void add_dynamic_action (BuildTool build_tool, string action_name,
ref int accel_num)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]