Shut up gcc's deprecated conversion from string constant to ‘gchar*’ warning.

This commit is contained in:
riccardom 2009-07-18 13:26:04 +00:00
parent 305da3d38a
commit e96e14d8e6
1 changed files with 2 additions and 1 deletions

View File

@ -918,7 +918,7 @@ static void OpenNdsDialog()
GtkRecentData recentData;
gchar *uri;
memset(&recentData, 0, sizeof(GtkRecentData));
recentData.mime_type = "application/x-nintendo-ds-rom";
recentData.mime_type = g_strdup("application/x-nintendo-ds-rom");
recentData.app_name = (gchar *) g_get_application_name ();
recentData.app_exec = g_strjoin (" ", g_get_prgname (), "%f", NULL);
@ -928,6 +928,7 @@ static void OpenNdsDialog()
gtk_recent_manager_add_full (manager, uri, &recentData);
g_free(uri);
g_free(recentData.app_name);
g_free(recentData.app_exec);
#endif
gtk_action_set_sensitive(gtk_action_group_get_action(action_group, "run"), TRUE);