diff options
Diffstat (limited to 'shell')
| -rw-r--r-- | shell/callbacks.c | 19 | ||||
| -rw-r--r-- | shell/menu.c | 6 | ||||
| -rw-r--r-- | shell/shell.c | 4 | ||||
| -rw-r--r-- | shell/syncmanager.c | 2 | 
4 files changed, 15 insertions, 16 deletions
| diff --git a/shell/callbacks.c b/shell/callbacks.c index 5a89a83a..db213bb2 100644 --- a/shell/callbacks.c +++ b/shell/callbacks.c @@ -26,7 +26,6 @@  #include "shell.h"  #include "report.h"  #include "syncmanager.h" -#include "xmlrpc-server.h"  #include "config.h" @@ -42,7 +41,7 @@ void cb_sync_on_startup()      gboolean setting = shell_action_get_active("SyncOnStartupAction");      GKeyFile *key_file = g_key_file_new(); -    gchar *conf_path = g_build_filename(g_get_user_config_dir(), "hardinfo", +    gchar *conf_path = g_build_filename(g_get_user_config_dir(), "hardinfo2",                                          "settings.ini", NULL);      g_key_file_load_from_file( @@ -57,12 +56,12 @@ void cb_sync_on_startup()  void cb_open_web_page()  { -    uri_open("http://www.hardinfo.org"); +    uri_open("https://www.hardinfo2.org");  }  void cb_report_bug()  { -    uri_open("https://github.com/lpereira/hardinfo"); +    uri_open("https://github.com/hwspeedy/hardinfo2");  }  void cb_refresh() @@ -207,22 +206,22 @@ void cb_about()      gtk_window_set_transient_for(GTK_WINDOW(about), GTK_WINDOW(shell->window));  #if GTK_CHECK_VERSION(2, 12, 0) -    gtk_about_dialog_set_program_name(GTK_ABOUT_DIALOG(about), "HardInfo"); +    gtk_about_dialog_set_program_name(GTK_ABOUT_DIALOG(about), "Hardinfo2");  #else -    gtk_about_dialog_set_name(GTK_ABOUT_DIALOG(about), "HardInfo"); +    gtk_about_dialog_set_name(GTK_ABOUT_DIALOG(about), "Hardinfo2");  #endif -    copyright = g_strdup_printf("Copyright \302\251 2003-%d L. A. F. Pereira", HARDINFO_COPYRIGHT_LATEST_YEAR); +    copyright = g_strdup_printf("Copyright \302\251 2003-2023 L. A. F. Pereira, 2024-%d Hardinfo2 project", HARDINFO2_COPYRIGHT_LATEST_YEAR);      gtk_about_dialog_set_version(GTK_ABOUT_DIALOG(about), VERSION);      gtk_about_dialog_set_copyright(GTK_ABOUT_DIALOG(about), copyright);      gtk_about_dialog_set_comments(GTK_ABOUT_DIALOG(about), -				  _("System information and benchmark tool")); +				  _("System Information and Benchmark"));      gtk_about_dialog_set_logo(GTK_ABOUT_DIALOG(about), -			      icon_cache_get_pixbuf("hardinfo.png")); +			      icon_cache_get_pixbuf("hardinfo2.png"));      gtk_about_dialog_set_license(GTK_ABOUT_DIALOG(about), -				 _("HardInfo is free software; you can redistribute it and/or modify " +				 _("HardInfo2 is free software; you can redistribute it and/or modify "  				 "it under the terms of the GNU General Public License as published by "  				 "the Free Software Foundation, version 2 or later.\n\n"  				 "This program is distributed in the hope that it will be useful, " diff --git a/shell/menu.c b/shell/menu.c index d9946c54..e0ed4038 100644 --- a/shell/menu.c +++ b/shell/menu.c @@ -83,7 +83,7 @@ static GtkActionEntry entries[] = {       G_CALLBACK(cb_report_bug)},      {"AboutAction", "_About", -     N_("_About HardInfo"), NULL, +     N_("_About HardInfo2"), NULL,       N_("Displays program version information"),       G_CALLBACK(cb_about)}, @@ -128,7 +128,7 @@ void menu_init(Shell * shell)      /* Create our objects */      menu_box = shell->vbox; -    action_group = gtk_action_group_new("HardInfo"); +    action_group = gtk_action_group_new("HardInfo2");      menu_manager = gtk_ui_manager_new();      shell->action_group = action_group; @@ -138,7 +138,7 @@ void menu_init(Shell * shell)       * menu_box -> window       * actions -> action_group       * action_group -> menu_manager */ -    gtk_action_group_set_translation_domain( action_group, "hardinfo" );//gettext +    gtk_action_group_set_translation_domain( action_group, "hardinfo2" );//gettext      gtk_action_group_add_actions(action_group, entries,  				 G_N_ELEMENTS(entries), NULL);      gtk_action_group_add_toggle_actions(action_group, toggle_entries, diff --git a/shell/shell.c b/shell/shell.c index dd5faa6c..dfcd430c 100644 --- a/shell/shell.c +++ b/shell/shell.c @@ -727,7 +727,7 @@ check_for_updates(void)  {      GKeyFile *key_file = g_key_file_new(); -    gchar *conf_path = g_build_filename(g_get_user_config_dir(), "hardinfo", +    gchar *conf_path = g_build_filename(g_get_user_config_dir(), "hardinfo2",                                          "settings.ini", NULL);      g_key_file_load_from_file( @@ -753,7 +753,7 @@ gboolean hardinfo_link(const gchar *uri) {       * jump to different pages in hardinfo.       *       * if (g_str_has_prefix(uri, "hardinfo:")) { -     *       hardinfo_navigate(g_utf8_strchr(uri, strlen("hardinfo"), ':') + 1); +     *       hardinfo_navigate(g_utf8_strchr(uri, strlen("hardinfo2"), ':') + 1);       *       return TRUE;       * }       */ diff --git a/shell/syncmanager.c b/shell/syncmanager.c index 98702ac9..12dcb473 100644 --- a/shell/syncmanager.c +++ b/shell/syncmanager.c @@ -252,7 +252,7 @@ static void got_response(GObject *source, GAsyncResult *res, gpointer user_data)          goto out;      if (sna->entry->file_name != NULL) { -        gchar *path = g_build_filename(g_get_user_config_dir(), "hardinfo", +        gchar *path = g_build_filename(g_get_user_config_dir(), "hardinfo2",                                         sna->entry->file_name, NULL);          GFile *file = g_file_new_for_path(path);          GFileOutputStream *output = | 
