Removed "More GTK2 Software..." from help menu
This commit is contained in:
parent
72f3f88369
commit
5c326da7fd
19
src/ui.c
19
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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user