293 | 293 |
MainWindow* mw = self;
|
294 | 294 |
MainWindowPrivate* priv = main_window_get_instance_private (mw);
|
295 | 295 |
|
296 | |
if ((selection != NULL) || (priv->sensitive))
|
|
296 |
if ((selection != NULL) && (priv->sensitive))
|
297 | 297 |
{
|
298 | 298 |
main_window_set_all_sensitive (mw, FALSE, priv->show_tooltips);
|
299 | 299 |
|
|
956 | 956 |
|
957 | 957 |
if (priv->med_process->MedExePath == NULL)
|
958 | 958 |
{
|
959 | |
main_window_show_error (self, "Mednafen executable not found!\n");
|
|
959 |
#ifdef G_OS_WIN32
|
|
960 |
main_window_show_error (self, "Mednafen executable not found in this folder!\n");
|
|
961 |
#else
|
|
962 |
main_window_show_error (self, "Mednafen executable not found in PATH!\n");
|
|
963 |
#endif
|
960 | 964 |
main_window_set_all_sensitive (self, FALSE, priv->show_tooltips);
|
961 | 965 |
}
|
962 | |
|
963 | |
med_process_read_conf (priv->med_process);
|
964 | |
|
965 | |
if (priv->med_process->MedVersion == NULL)
|
966 | |
main_window_show_error (self, "Mednafen configuration file (mednafen.cfg) not found!\n");
|
967 | 966 |
else
|
968 | 967 |
{
|
969 | |
gtk_label_set_label (priv->status_version, priv->med_process->MedVersion);
|
970 | |
if (priv->med_process->MedExePath)
|
|
968 |
med_process_read_conf (priv->med_process);
|
|
969 |
|
|
970 |
if (priv->med_process->MedVersion == NULL)
|
|
971 |
main_window_show_error (self, "Mednafen configuration file (mednafen.cfg) not found!\n");
|
|
972 |
else
|
971 | 973 |
{
|
972 | |
gchar *tooltip = g_strconcat ("Executable: ", priv->med_process->MedExePath, "\nConfiguration: ", priv->med_process->MedConfPath, NULL);
|
973 | |
gtk_widget_set_tooltip_text ((GtkWidget*) priv->status_version, tooltip);
|
974 | |
g_free (tooltip);
|
|
974 |
gtk_label_set_label (priv->status_version, priv->med_process->MedVersion);
|
|
975 |
if (priv->med_process->MedExePath)
|
|
976 |
{
|
|
977 |
gchar *tooltip = g_strconcat ("Executable: ", priv->med_process->MedExePath, "\nConfiguration: ", priv->med_process->MedConfPath, NULL);
|
|
978 |
gtk_widget_set_tooltip_text ((GtkWidget*) priv->status_version, tooltip);
|
|
979 |
g_free (tooltip);
|
|
980 |
}
|
975 | 981 |
}
|
976 | 982 |
}
|
977 | 983 |
|
|
988 | 994 |
g_object_set_data ((GObject*) self, "listjoy", priv->listjoy);
|
989 | 995 |
|
990 | 996 |
gtk_window_set_default_icon_list (g_object_get_data (app, "icon_list"));
|
|
997 |
|
|
998 |
#ifdef G_OS_WIN32
|
|
999 |
gtk_entry_set_icon_from_icon_name (priv->custom_entry, GTK_ENTRY_ICON_SECONDARY, "gtk-clear");
|
|
1000 |
#endif
|
991 | 1001 |
|
992 | 1002 |
main_window_load_settings (self);
|
993 | 1003 |
}
|