Commit 96c8ade3 authored by Maciej Stachowiak's avatar Maciej Stachowiak

Moved from gnome-vfs-handlers.[ch] and renamed from gnome_vfs_mime... to

	* libnautilus-extensions/nautilus-mime-actions.h,
	libnautilus-extensions/nautilus-mime-actions.c:
	(nautilus_mime_get_default_action_for_uri,
	nautilus_mime_get_default_application_for_uri,
	nautilus_mime_get_default_component_for_uri,
	nautilus_mime_get_short_list_applications_for_uri,
	nautilus_mime_get_short_list_components_for_uri,
	nautilus_mime_get_all_applications_for_uri,
	nautilus_mime_get_all_components_for_uri,
	nautilus_mime_set_default_action_type_for_uri,
	nautilus_mime_set_default_application_for_uri,
	nautilus_mime_set_default_component_for_uri,
	nautilus_mime_set_short_list_applications_for_uri,
	nautilus_mime_set_short_list_components_for_uri,
	nautilus_mime_extend_all_applications_for_uri,
	nautilus_mime_remove_from_all_applications_for_uri): Moved from
	gnome-vfs-handlers.[ch] and renamed from gnome_vfs_mime... to
	nautilus_mime...
	(get_mime_type_from_uri_hack): Internal helper fucntion moved from
	gnome-vfs-handlers.c
	* libnautilus-extensions/Makefile.am: Build and install
	nautilus-mime-actions.c and nautilus-mime-actions.h repsectively.
	* libnautilus-extensions/nautilus-program-chooser.c:
	(populate_program_list):
	* src/file-manager/fm-directory-view.c:
	(create_open_with_gtk_menu), (reset_bonobo_open_with_menu):
	* src/nautilus-sidebar.c: (nautilus_sidebar_update_buttons):
parent b10fd5f3
2000-05-31 Maciej Stachowiak <mjs@eazel.com>
* libnautilus-extensions/nautilus-mime-actions.h,
libnautilus-extensions/nautilus-mime-actions.c:
(nautilus_mime_get_default_action_for_uri,
nautilus_mime_get_default_application_for_uri,
nautilus_mime_get_default_component_for_uri,
nautilus_mime_get_short_list_applications_for_uri,
nautilus_mime_get_short_list_components_for_uri,
nautilus_mime_get_all_applications_for_uri,
nautilus_mime_get_all_components_for_uri,
nautilus_mime_set_default_action_type_for_uri,
nautilus_mime_set_default_application_for_uri,
nautilus_mime_set_default_component_for_uri,
nautilus_mime_set_short_list_applications_for_uri,
nautilus_mime_set_short_list_components_for_uri,
nautilus_mime_extend_all_applications_for_uri,
nautilus_mime_remove_from_all_applications_for_uri): Moved from
gnome-vfs-handlers.[ch] and renamed from gnome_vfs_mime... to
nautilus_mime...
(get_mime_type_from_uri_hack): Internal helper fucntion moved from
gnome-vfs-handlers.c
* libnautilus-extensions/Makefile.am: Build and install
nautilus-mime-actions.c and nautilus-mime-actions.h repsectively.
* libnautilus-extensions/nautilus-program-chooser.c:
(populate_program_list):
* src/file-manager/fm-directory-view.c:
(create_open_with_gtk_menu), (reset_bonobo_open_with_menu):
* src/nautilus-sidebar.c: (nautilus_sidebar_update_buttons):
2000-05-31 John Sullivan <sullivan@eazel.com>
More incremental work to use the new mime-handling API.
......
......@@ -62,6 +62,7 @@ libnautilus_extensionsinclude_HEADERS= \
nautilus-list-column-title.h \
nautilus-list.h \
nautilus-metadata.h \
nautilus-mime-actions.h \
nautilus-mini-icon.h \
nautilus-program-chooser.h \
nautilus-program-choosing.h \
......@@ -116,6 +117,7 @@ libnautilus_extensions_la_SOURCES = \
nautilus-link-set.c \
nautilus-list-column-title.c \
nautilus-list.c \
nautilus-mime-actions.c \
nautilus-mini-icon.c \
nautilus-program-chooser.c \
nautilus-program-choosing.c \
......
/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/* nautilus-mime-actions.h - uri-specific versions of mime action functions
Copyright (C) 2000 Eazel, Inc.
The Gnome Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public License as
published by the Free Software Foundation; either version 2 of the
License, or (at your option) any later version.
The Gnome Library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public
License along with the Gnome Library; see the file COPYING.LIB. If not,
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA.
Authors: Maciej Stachowiak <mjs@eazel.com>
*/
#include <config.h>
#include "nautilus-mime-actions.h"
#include <libgnomevfs/gnome-vfs.h>
#include "nautilus-lib-self-check-functions.h"
/* FIXME: temporary hack */
static char *
get_mime_type_from_uri_hack (const char *uri)
{
/* FIXME: Temporary hack for testing */
GnomeVFSResult result;
GnomeVFSFileInfo *file_info;
char *mime_type;
file_info = gnome_vfs_file_info_new ();
result = gnome_vfs_get_file_info (uri, file_info,
GNOME_VFS_FILE_INFO_GETMIMETYPE
| GNOME_VFS_FILE_INFO_FASTMIMETYPE
| GNOME_VFS_FILE_INFO_FOLLOWLINKS, NULL);
if (result != GNOME_VFS_OK) {
return NULL;
}
mime_type = g_strdup (file_info->mime_type);
gnome_vfs_file_info_unref (file_info);
return mime_type;
}
GnomeVFSMimeAction *
nautilus_mime_get_default_action_for_uri (const char *uri)
{
return NULL;
}
GnomeVFSMimeApplication *
nautilus_mime_get_default_application_for_uri (const char *uri)
{
return NULL;
}
OAF_ServerInfo *
nautilus_mime_get_default_component_for_uri (const char *uri)
{
return NULL;
}
GList *
nautilus_mime_get_short_list_applications_for_uri (const char *uri)
{
/* FIXME: Temporary hack for testing */
char *mime_type;
GList *result;
mime_type = get_mime_type_from_uri_hack (uri);
result = gnome_vfs_mime_get_short_list_applications (mime_type);
g_free (mime_type);
return result;
}
GList *
nautilus_mime_get_short_list_components_for_uri (const char *uri)
{
/* FIXME: Temporary hack for testing */
char *mime_type;
GList *result;
mime_type = get_mime_type_from_uri_hack (uri);
result = gnome_vfs_mime_get_short_list_components (mime_type);
g_free (mime_type);
return result;
}
GList *
nautilus_mime_get_all_applications_for_uri (const char *uri)
{
/* FIXME: Temporary hack for testing */
char *mime_type;
GList *result;
mime_type = get_mime_type_from_uri_hack (uri);
result = gnome_vfs_mime_get_all_applications (mime_type);
/* Hack within a hack: at the moment the short list is sometimes
* populated even though the "full" list isn't.
*/
if (result == NULL) {
result = gnome_vfs_mime_get_short_list_applications (mime_type);
}
g_free (mime_type);
return result;
}
GList *
nautilus_mime_get_all_components_for_uri (const char *uri)
{
/* FIXME: Temporary hack for testing */
char *mime_type;
GList *result;
mime_type = get_mime_type_from_uri_hack (uri);
result = gnome_vfs_mime_get_all_components (mime_type);
/* Hack within a hack: at the moment the short list is sometimes
* populated even though the "full" list isn't.
*/
if (result == NULL) {
result = gnome_vfs_mime_get_short_list_components (mime_type);
}
g_free (mime_type);
return result;
}
void
nautilus_mime_set_default_action_type_for_uri (const char *mime_type,
GnomeVFSMimeActionType action_type)
{
return;
}
void
nautilus_mime_set_default_application_for_uri (const char *mime_type,
GnomeVFSMimeApplication *application)
{
return;
}
void
nautilus_mime_set_default_component_for_uri (const char *mime_type,
OAF_ServerInfo *component_iid)
{
return;
}
void
nautilus_mime_set_short_list_applications_for_uri (const char *mime_type,
GList *applications)
{
return;
}
void
nautilus_mime_set_short_list_components_for_uri (const char *mime_type,
GList *components)
{
return;
}
void
nautilus_mime_extend_all_applications_for_uri (const char *mime_type,
GList *applications)
{
return;
}
void
nautilus_mime_remove_from_all_applications_for_uri (const char *mime_type,
GList *applications)
{
return;
}
/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/* nautilus-mime-actions.h - uri-specific versions of mime action functions
Copyright (C) 2000 Eazel, Inc.
The Gnome Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public License as
published by the Free Software Foundation; either version 2 of the
License, or (at your option) any later version.
The Gnome Library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public
License along with the Gnome Library; see the file COPYING.LIB. If not,
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA.
Authors: Maciej Stachowiak <mjs@eazel.com>
*/
#ifndef NAUTILUS_MIME_ACTIONS_H
#define NAUTILUS_MIME_ACTIONS_H
#include <libgnomevfs/gnome-vfs-mime-handlers.h>
GnomeVFSMimeAction *nautilus_mime_get_default_action_for_uri (const char *uri);
GnomeVFSMimeApplication *nautilus_mime_get_default_application_for_uri (const char *uri);
OAF_ServerInfo *nautilus_mime_get_default_component_for_uri (const char *uri);
GList *nautilus_mime_get_short_list_applications_for_uri (const char *uri);
GList *nautilus_mime_get_short_list_components_for_uri (const char *uri);
GList *nautilus_mime_get_all_applications_for_uri (const char *uri);
GList *nautilus_mime_get_all_components_for_uri (const char *uri);
void nautilus_mime_set_default_action_type_for_uri (const char *mime_type,
GnomeVFSMimeActionType action_type);
void nautilus_mime_set_default_application_for_uri (const char *mime_type,
GnomeVFSMimeApplication *application);
void nautilus_mime_set_default_component_for_uri (const char *mime_type,
OAF_ServerInfo *component_iid);
/* Stored as delta to current user level */
void nautilus_mime_set_short_list_applications_for_uri (const char *mime_type,
GList *applications);
void nautilus_mime_set_short_list_components_for_uri (const char *mime_type,
GList *components);
/* No way to override system list; can only add. */
void nautilus_mime_extend_all_applications_for_uri (const char *mime_type,
GList *applications);
/* Only "user" entries may be removed. */
void nautilus_mime_remove_from_all_applications_for_uri (const char *mime_type,
GList *applications);
/* No way to add to all components; oafinfo database assumed trusted in this regard. */
#endif /* NAUTILUS_MIME_ACTIONS_H */
......@@ -28,6 +28,7 @@
#include "nautilus-gtk-extensions.h"
#include "nautilus-view-identifier.h"
#include "nautilus-mime-actions.h"
#include <gtk/gtkradiobutton.h>
#include <gtk/gtkclist.h>
......@@ -74,8 +75,8 @@ populate_program_list (GnomeVFSMimeActionType type,
uri = nautilus_file_get_uri (file);
programs = type == GNOME_VFS_MIME_ACTION_TYPE_COMPONENT
? gnome_vfs_mime_get_all_components_for_uri (uri)
: gnome_vfs_mime_get_all_applications_for_uri (uri);
? nautilus_mime_get_all_components_for_uri (uri)
: nautilus_mime_get_all_applications_for_uri (uri);
g_free (uri);
......
......@@ -62,6 +62,7 @@ libnautilus_extensionsinclude_HEADERS= \
nautilus-list-column-title.h \
nautilus-list.h \
nautilus-metadata.h \
nautilus-mime-actions.h \
nautilus-mini-icon.h \
nautilus-program-chooser.h \
nautilus-program-choosing.h \
......@@ -116,6 +117,7 @@ libnautilus_extensions_la_SOURCES = \
nautilus-link-set.c \
nautilus-list-column-title.c \
nautilus-list.c \
nautilus-mime-actions.c \
nautilus-mini-icon.c \
nautilus-program-chooser.c \
nautilus-program-choosing.c \
......
/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/* nautilus-mime-actions.h - uri-specific versions of mime action functions
Copyright (C) 2000 Eazel, Inc.
The Gnome Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public License as
published by the Free Software Foundation; either version 2 of the
License, or (at your option) any later version.
The Gnome Library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public
License along with the Gnome Library; see the file COPYING.LIB. If not,
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA.
Authors: Maciej Stachowiak <mjs@eazel.com>
*/
#include <config.h>
#include "nautilus-mime-actions.h"
#include <libgnomevfs/gnome-vfs.h>
#include "nautilus-lib-self-check-functions.h"
/* FIXME: temporary hack */
static char *
get_mime_type_from_uri_hack (const char *uri)
{
/* FIXME: Temporary hack for testing */
GnomeVFSResult result;
GnomeVFSFileInfo *file_info;
char *mime_type;
file_info = gnome_vfs_file_info_new ();
result = gnome_vfs_get_file_info (uri, file_info,
GNOME_VFS_FILE_INFO_GETMIMETYPE
| GNOME_VFS_FILE_INFO_FASTMIMETYPE
| GNOME_VFS_FILE_INFO_FOLLOWLINKS, NULL);
if (result != GNOME_VFS_OK) {
return NULL;
}
mime_type = g_strdup (file_info->mime_type);
gnome_vfs_file_info_unref (file_info);
return mime_type;
}
GnomeVFSMimeAction *
nautilus_mime_get_default_action_for_uri (const char *uri)
{
return NULL;
}
GnomeVFSMimeApplication *
nautilus_mime_get_default_application_for_uri (const char *uri)
{
return NULL;
}
OAF_ServerInfo *
nautilus_mime_get_default_component_for_uri (const char *uri)
{
return NULL;
}
GList *
nautilus_mime_get_short_list_applications_for_uri (const char *uri)
{
/* FIXME: Temporary hack for testing */
char *mime_type;
GList *result;
mime_type = get_mime_type_from_uri_hack (uri);
result = gnome_vfs_mime_get_short_list_applications (mime_type);
g_free (mime_type);
return result;
}
GList *
nautilus_mime_get_short_list_components_for_uri (const char *uri)
{
/* FIXME: Temporary hack for testing */
char *mime_type;
GList *result;
mime_type = get_mime_type_from_uri_hack (uri);
result = gnome_vfs_mime_get_short_list_components (mime_type);
g_free (mime_type);
return result;
}
GList *
nautilus_mime_get_all_applications_for_uri (const char *uri)
{
/* FIXME: Temporary hack for testing */
char *mime_type;
GList *result;
mime_type = get_mime_type_from_uri_hack (uri);
result = gnome_vfs_mime_get_all_applications (mime_type);
/* Hack within a hack: at the moment the short list is sometimes
* populated even though the "full" list isn't.
*/
if (result == NULL) {
result = gnome_vfs_mime_get_short_list_applications (mime_type);
}
g_free (mime_type);
return result;
}
GList *
nautilus_mime_get_all_components_for_uri (const char *uri)
{
/* FIXME: Temporary hack for testing */
char *mime_type;
GList *result;
mime_type = get_mime_type_from_uri_hack (uri);
result = gnome_vfs_mime_get_all_components (mime_type);
/* Hack within a hack: at the moment the short list is sometimes
* populated even though the "full" list isn't.
*/
if (result == NULL) {
result = gnome_vfs_mime_get_short_list_components (mime_type);
}
g_free (mime_type);
return result;
}
void
nautilus_mime_set_default_action_type_for_uri (const char *mime_type,
GnomeVFSMimeActionType action_type)
{
return;
}
void
nautilus_mime_set_default_application_for_uri (const char *mime_type,
GnomeVFSMimeApplication *application)
{
return;
}
void
nautilus_mime_set_default_component_for_uri (const char *mime_type,
OAF_ServerInfo *component_iid)
{
return;
}
void
nautilus_mime_set_short_list_applications_for_uri (const char *mime_type,
GList *applications)
{
return;
}
void
nautilus_mime_set_short_list_components_for_uri (const char *mime_type,
GList *components)
{
return;
}
void
nautilus_mime_extend_all_applications_for_uri (const char *mime_type,
GList *applications)
{
return;
}
void
nautilus_mime_remove_from_all_applications_for_uri (const char *mime_type,
GList *applications)
{
return;
}
/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/* nautilus-mime-actions.h - uri-specific versions of mime action functions
Copyright (C) 2000 Eazel, Inc.
The Gnome Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public License as
published by the Free Software Foundation; either version 2 of the
License, or (at your option) any later version.
The Gnome Library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public
License along with the Gnome Library; see the file COPYING.LIB. If not,
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA.
Authors: Maciej Stachowiak <mjs@eazel.com>
*/
#ifndef NAUTILUS_MIME_ACTIONS_H
#define NAUTILUS_MIME_ACTIONS_H
#include <libgnomevfs/gnome-vfs-mime-handlers.h>
GnomeVFSMimeAction *nautilus_mime_get_default_action_for_uri (const char *uri);
GnomeVFSMimeApplication *nautilus_mime_get_default_application_for_uri (const char *uri);
OAF_ServerInfo *nautilus_mime_get_default_component_for_uri (const char *uri);
GList *nautilus_mime_get_short_list_applications_for_uri (const char *uri);
GList *nautilus_mime_get_short_list_components_for_uri (const char *uri);
GList *nautilus_mime_get_all_applications_for_uri (const char *uri);
GList *nautilus_mime_get_all_components_for_uri (const char *uri);
void nautilus_mime_set_default_action_type_for_uri (const char *mime_type,
GnomeVFSMimeActionType action_type);
void nautilus_mime_set_default_application_for_uri (const char *mime_type,
GnomeVFSMimeApplication *application);
void nautilus_mime_set_default_component_for_uri (const char *mime_type,
OAF_ServerInfo *component_iid);
/* Stored as delta to current user level */
void nautilus_mime_set_short_list_applications_for_uri (const char *mime_type,
GList *applications);
void nautilus_mime_set_short_list_components_for_uri (const char *mime_type,
GList *components);
/* No way to override system list; can only add. */
void nautilus_mime_extend_all_applications_for_uri (const char *mime_type,
GList *applications);
/* Only "user" entries may be removed. */
void nautilus_mime_remove_from_all_applications_for_uri (const char *mime_type,
GList *applications);
/* No way to add to all components; oafinfo database assumed trusted in this regard. */
#endif /* NAUTILUS_MIME_ACTIONS_H */
......@@ -28,6 +28,7 @@
#include "nautilus-gtk-extensions.h"
#include "nautilus-view-identifier.h"
#include "nautilus-mime-actions.h"
#include <gtk/gtkradiobutton.h>
#include <gtk/gtkclist.h>
......@@ -74,8 +75,8 @@ populate_program_list (GnomeVFSMimeActionType type,
uri = nautilus_file_get_uri (file);
programs = type == GNOME_VFS_MIME_ACTION_TYPE_COMPONENT
? gnome_vfs_mime_get_all_components_for_uri (uri)
: gnome_vfs_mime_get_all_applications_for_uri (uri);
? nautilus_mime_get_all_components_for_uri (uri)
: nautilus_mime_get_all_applications_for_uri (uri);
g_free (uri);
......
......@@ -60,6 +60,7 @@
#include <libnautilus-extensions/nautilus-program-choosing.h>
#include <libnautilus-extensions/nautilus-string.h>
#include <libnautilus-extensions/nautilus-view-identifier.h>
#include <libnautilus-extensions/nautilus-mime-actions.h>
#include "fm-properties-window.h"
#include "dfos-xfer.h"
......@@ -1983,7 +1984,7 @@ create_open_with_gtk_menu (FMDirectoryView *view, GList *files)
uri = nautilus_file_get_uri (NAUTILUS_FILE (files->data));
applications =
gnome_vfs_mime_get_short_list_applications_for_uri (uri);
nautilus_mime_get_short_list_applications_for_uri (uri);
for (node = applications; node != NULL; node = node->next) {
add_application_to_gtk_menu (open_with_menu, node->data, uri);
......@@ -2000,7 +2001,7 @@ create_open_with_gtk_menu (FMDirectoryView *view, GList *files)
add_open_with_gtk_menu_item (open_with_menu, NULL);
components =
gnome_vfs_mime_get_short_list_components_for_uri (uri);
nautilus_mime_get_short_list_components_for_uri (uri);
for (node = components; node != NULL; node = node->next) {
add_component_to_gtk_menu (open_with_menu, node->data, uri);
......@@ -2254,7 +2255,7 @@ reset_bonobo_open_with_menu (FMDirectoryView *view, BonoboUIHandler *ui_handler,
if (nautilus_g_list_exactly_one_item (selection)) {
uri = nautilus_file_get_uri (NAUTILUS_FILE (selection->data));
applications = gnome_vfs_mime_get_short_list_applications_for_uri (uri);
applications = nautilus_mime_get_short_list_applications_for_uri (uri);
for (node = applications; node != NULL; node = node->next) {
add_application_to_bonobo_menu (ui_handler, node->data, uri);
......@@ -2275,7 +2276,7 @@ reset_bonobo_open_with_menu (FMDirectoryView *view, BonoboUIHandler *ui_handler,
FM_DIRECTORY_VIEW_MENU_PATH_SEPARATOR_BEFORE_VIEWERS,
-1);
components = gnome_vfs_mime_get_short_list_components_for_uri (uri);
components = nautilus_mime_get_short_list_components_for_uri (uri);
for (node = components; node != NULL; node = node->next) {
add_component_to_bonobo_menu (ui_handler, node->data, uri);
......
......@@ -44,6 +44,7 @@
#include <libnautilus-extensions/nautilus-metadata.h>
#include <libnautilus-extensions/nautilus-program-choosing.h>
#include <libnautilus-extensions/nautilus-string.h>
#include <libnautilus-extensions/nautilus-mime-actions.h>
#include <nautilus-widgets/nautilus-preferences.h>
#include "nautilus-sidebar-tabs.h"
#include "nautilus-sidebar-title.h"
......@@ -824,12 +825,12 @@ nautilus_sidebar_update_buttons (NautilusSidebar *sidebar)
}
full_application_list =
gnome_vfs_mime_get_all_applications_for_uri (sidebar->details->uri);
nautilus_mime_get_all_applications_for_uri (sidebar->details->uri);
/* Don't even put "Open With" button up if there are zero choices. */
if (full_application_list != NULL) {
short_application_list =
gnome_vfs_mime_get_short_list_applications_for_uri (sidebar->details->uri);
nautilus_mime_get_short_list_applications_for_uri (sidebar->details->uri);
add_command_buttons (sidebar, short_application_list);
gnome_vfs_mime_application_list_free (short_application_list);
......
......@@ -44,6 +44,7 @@
#include <libnautilus-extensions/nautilus-metadata.h>
#include <libnautilus-extensions/nautilus-program-choosing.h>
#include <libnautilus-extensions/nautilus-string.h>
#include <libnautilus-extensions/nautilus-mime-actions.h>
#include <nautilus-widgets/nautilus-preferences.h>
#include "nautilus-sidebar-tabs.h"
#include "nautilus-sidebar-title.h"
......@@ -824,12 +825,12 @@ nautilus_sidebar_update_buttons (NautilusSidebar *sidebar)
}
full_application_list =
gnome_vfs_mime_get_all_applications_for_uri (sidebar->details->uri);
nautilus_mime_get_all_applications_for_uri (sidebar->details->uri);
/* Don't even put "Open With" button up if there are zero choices. */