Branch: refs/heads/master Author: Colomban Wendling ban@herbesfolles.org Committer: Colomban Wendling ban@herbesfolles.org Date: Tue, 12 Dec 2023 23:36:00 UTC Commit: 9e4c6e8b72980a83199d2fb78e21cf1766e2c704 https://github.com/geany/geany/commit/9e4c6e8b72980a83199d2fb78e21cf1766e2c7...
Log Message: ----------- Don't display unsupported encodings
Modified Paths: -------------- src/encodings.c
Modified: src/encodings.c 6 lines changed, 5 insertions(+), 1 deletions(-) =================================================================== @@ -503,7 +503,8 @@ void encodings_init(void) } else item = gtk_menu_item_new_with_label(label); - gtk_widget_show(item); + if (encodings[i].supported) + gtk_widget_show(item); gtk_container_add(GTK_CONTAINER(submenus[encodings[i].group]), item); g_signal_connect(item, "activate", cb_func[k], (gpointer) encodings[i].charset); @@ -575,6 +576,9 @@ GtkTreeStore *encodings_encoding_store_new(gboolean has_detect) { gchar *encoding_string;
+ if (! encodings[i].supported) + continue; + switch (encodings[i].group) { case WESTEUROPEAN: iter_parent = &iter_westeuro; break;
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).