recent files now use a better mime type (at least,
something that's already used)
This commit is contained in:
parent
71a84795b1
commit
04f79fb224
|
@ -916,7 +916,7 @@ static void OpenNdsDialog()
|
|||
#ifdef HAVE_RECENT_FILES
|
||||
GtkRecentData recentData;
|
||||
memset(&recentData, 0, sizeof(GtkRecentData));
|
||||
recentData.mime_type = "application/x-nds-binary";
|
||||
recentData.mime_type = "application/x-nintendo-ds-rom";
|
||||
recentData.app_name = (gchar *) g_get_application_name ();
|
||||
recentData.app_exec = g_strjoin (" ", g_get_prgname (), "%f", NULL);
|
||||
|
||||
|
@ -1908,7 +1908,7 @@ common_gtk_main( struct configured_features *my_config)
|
|||
GtkWidget * recentMenu = gtk_ui_manager_get_widget (ui_manager, "/MainMenu/FileMenu/RecentMenu");
|
||||
GtkWidget * recentFiles = gtk_recent_chooser_menu_new();
|
||||
GtkRecentFilter * recentFilter = gtk_recent_filter_new();
|
||||
gtk_recent_filter_add_mime_type(recentFilter, "application/x-nds-binary");
|
||||
gtk_recent_filter_add_mime_type(recentFilter, "application/x-nintendo-ds-rom");
|
||||
gtk_recent_chooser_set_filter(GTK_RECENT_CHOOSER(recentFiles), recentFilter);
|
||||
gtk_menu_item_set_submenu(GTK_MENU_ITEM(recentMenu), recentFiles);
|
||||
g_signal_connect(G_OBJECT(recentFiles), "item-activated", G_CALLBACK(OpenRecent), NULL);
|
||||
|
|
Loading…
Reference in New Issue