[latexila] LaTeX commands: rename GAction without-braces -> with-space



commit 6c62029d084ee69c2899cf24d0398da5e3fd9843
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Fri Nov 3 13:00:48 2017 +0100

    LaTeX commands: rename GAction without-braces -> with-space

 src/latex_menu.vala                       |   12 ++++++------
 src/liblatexila/latexila-latex-commands.c |    8 ++++----
 2 files changed, 10 insertions(+), 10 deletions(-)
---
diff --git a/src/latex_menu.vala b/src/latex_menu.vala
index 32cbcbb..6e6e04e 100644
--- a/src/latex_menu.vala
+++ b/src/latex_menu.vala
@@ -517,7 +517,7 @@ public class LatexMenu : Gtk.ActionGroup
             this, "ListEnvDescription");
         Amtk.utils_bind_g_action_to_gtk_action (main_window, "latex-command-list-env-list",
             this, "ListEnvList");
-        Amtk.utils_bind_g_action_to_gtk_action (main_window, "latex-command-without-braces::item",
+        Amtk.utils_bind_g_action_to_gtk_action (main_window, "latex-command-with-space::item",
             this, "ListEnvItem");
 
         // LaTeX: character sizes
@@ -588,9 +588,9 @@ public class LatexMenu : Gtk.ActionGroup
             this, "TabularTabular");
         Amtk.utils_bind_g_action_to_gtk_action (main_window, "latex-command-tabular-multicolumn",
             this, "TabularMulticolumn");
-        Amtk.utils_bind_g_action_to_gtk_action (main_window, "latex-command-without-braces::hline",
+        Amtk.utils_bind_g_action_to_gtk_action (main_window, "latex-command-with-space::hline",
             this, "TabularHline");
-        Amtk.utils_bind_g_action_to_gtk_action (main_window, "latex-command-without-braces::vline",
+        Amtk.utils_bind_g_action_to_gtk_action (main_window, "latex-command-with-space::vline",
             this, "TabularVline");
         Amtk.utils_bind_g_action_to_gtk_action (main_window, "latex-command-tabular-cline",
             this, "TabularCline");
@@ -612,15 +612,15 @@ public class LatexMenu : Gtk.ActionGroup
             this, "SpacingLineBreak");
         Amtk.utils_bind_g_action_to_gtk_action (main_window, "latex-command-with-newline::pagebreak",
             this, "SpacingPageBreak");
-        Amtk.utils_bind_g_action_to_gtk_action (main_window, "latex-command-without-braces::bigskip",
+        Amtk.utils_bind_g_action_to_gtk_action (main_window, "latex-command-with-space::bigskip",
             this, "SpacingBigSkip");
-        Amtk.utils_bind_g_action_to_gtk_action (main_window, "latex-command-without-braces::medskip",
+        Amtk.utils_bind_g_action_to_gtk_action (main_window, "latex-command-with-space::medskip",
             this, "SpacingMedSkip");
         Amtk.utils_bind_g_action_to_gtk_action (main_window, "latex-command-with-braces::hspace",
             this, "SpacingHSpace");
         Amtk.utils_bind_g_action_to_gtk_action (main_window, "latex-command-with-braces::vspace",
             this, "SpacingVSpace");
-        Amtk.utils_bind_g_action_to_gtk_action (main_window, "latex-command-without-braces::noindent",
+        Amtk.utils_bind_g_action_to_gtk_action (main_window, "latex-command-with-space::noindent",
             this, "SpacingNoIndent");
 
         // LaTeX: International accents
diff --git a/src/liblatexila/latexila-latex-commands.c b/src/liblatexila/latexila-latex-commands.c
index 3de88eb..53e8523 100644
--- a/src/liblatexila/latexila-latex-commands.c
+++ b/src/liblatexila/latexila-latex-commands.c
@@ -202,9 +202,9 @@ latex_command_with_braces_cb (GSimpleAction *action,
 }
 
 static void
-latex_command_without_braces_cb (GSimpleAction *action,
-                                 GVariant      *parameter,
-                                 gpointer       user_data)
+latex_command_with_space_cb (GSimpleAction *action,
+                             GVariant      *parameter,
+                             gpointer       user_data)
 {
   TeplApplicationWindow *tepl_window = TEPL_APPLICATION_WINDOW (user_data);
   const gchar *command;
@@ -606,7 +606,7 @@ latexila_latex_commands_add_actions (GtkApplicationWindow *gtk_window)
   const GActionEntry entries[] = {
     { "latex-command-simple", latex_command_simple_cb, "s" },
     { "latex-command-with-braces", latex_command_with_braces_cb, "s" },
-    { "latex-command-without-braces", latex_command_without_braces_cb, "s" },
+    { "latex-command-with-space", latex_command_with_space_cb, "s" },
     { "latex-command-with-newline", latex_command_with_newline_cb, "s" },
     { "latex-command-env-simple", latex_command_env_simple_cb, "s" },
     { "latex-command-env-figure", latex_command_env_figure_cb },


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