Branch: refs/heads/master Author: Enrico Tröger enrico.troeger@uvena.de Committer: Enrico Tröger enrico.troeger@uvena.de Date: Sun, 11 Dec 2022 15:15:58 UTC Commit: 6314f9977f2357a1830d366349c403013d0e8eef https://github.com/geany/geany-plugins/commit/6314f9977f2357a1830d366349c403...
Log Message: ----------- Addons: Consistently use AO_WORDWRAP_KB_COUNT constant
Patch by "3-14152898". Closes #1182.
Modified Paths: -------------- addons/src/ao_wrapwords.c
Modified: addons/src/ao_wrapwords.c 6 lines changed, 3 insertions(+), 3 deletions(-) =================================================================== @@ -39,7 +39,7 @@ gboolean on_key_press (GtkWidget *, GdkEventKey *, gpointer); void configure_response (GtkDialog *, gint, gpointer); void enclose_chars_changed (GtkCellRendererText *, gchar *, gchar *, gpointer);
-gchar *enclose_chars [8]; +gchar *enclose_chars [AO_WORDWRAP_KB_COUNT]; gboolean auto_enabled = FALSE; gboolean enclose_enabled = FALSE; gchar *config_file; @@ -194,7 +194,7 @@ void configure_response (GtkDialog *dialog, gint response, gpointer char_tree_vi config = g_key_file_new(); g_key_file_load_from_file(config, config_file, G_KEY_FILE_NONE, NULL);
- for (i = 0; i < 8; i++) + for (i = 0; i < AO_WORDWRAP_KB_COUNT; i++) { gchar *prior_char_str, *end_char_str;
@@ -258,7 +258,7 @@ void ao_enclose_words_config (GtkButton *button, GtkWidget *config_window) renderer = gtk_cell_renderer_text_new (); chars_tree_view = (GtkTreeView *) gtk_tree_view_new ();
- for (i = 0; i < 8; i++) + for (i = 0; i < AO_WORDWRAP_KB_COUNT; i++) { gchar *title = g_strdup_printf (_("Enclose combo %d"), i + 1);
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
plugins-commits@lists.geany.org