From 5c326da7fdea40947ec689cbda997a4da19b3f28 Mon Sep 17 00:00:00 2001 From: laki Date: Mon, 16 Feb 2026 13:00:55 +0000 Subject: [PATCH] Removed "More GTK2 Software..." from help menu --- src/ui.c | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/src/ui.c b/src/ui.c index 38388f4..d01d244 100644 --- a/src/ui.c +++ b/src/ui.c @@ -27,7 +27,6 @@ static void on_view_fullscreen(GtkMenuItem *item, gpointer data); static void on_view_playlist(GtkMenuItem *item, gpointer data); static void on_view_screenshot(GtkMenuItem *item, gpointer data); static void on_open_scripts_folder(GtkMenuItem *item, gpointer data); -static void on_help_more_software(GtkMenuItem *item, gpointer data); /* Property observation user data IDs */ enum { @@ -1427,13 +1426,6 @@ static void create_menubar(AppUI *ui) g_signal_connect(about_item, "activate", G_CALLBACK(on_help_about), ui); gtk_menu_shell_append(GTK_MENU_SHELL(help_menu), about_item); - GtkWidget *sep = gtk_separator_menu_item_new(); - gtk_menu_shell_append(GTK_MENU_SHELL(help_menu), sep); - - GtkWidget *more_item = gtk_menu_item_new_with_label("More GTK2 Software..."); - g_signal_connect(more_item, "activate", G_CALLBACK(on_help_more_software), ui); - gtk_menu_shell_append(GTK_MENU_SHELL(help_menu), more_item); - gtk_menu_shell_append(GTK_MENU_SHELL(ui->menubar), help_item); } @@ -1795,17 +1787,6 @@ static void on_help_about(GtkMenuItem *item, gpointer data) dialogs_show_about(GTK_WINDOW(ui->window)); } -static void on_help_more_software(GtkMenuItem *item, gpointer data) -{ - (void)item; - (void)data; - const char *url = "https://lakiweb.net/article/gtk2/software-directory.html"; - char *cmd = g_strdup_printf("xdg-open '%s'", url); - int ret = system(cmd); - (void)ret; - g_free(cmd); -} - static void on_controls_play_pause(gpointer data) { on_playback_play_pause(NULL, data);