2000-11-19 Mathieu Lacage <mathieu@eazel.com> Fix bug 4811 * libgnomevfs/gnome-vfs-mime-info.c: (gnome_vfs_mime_set_extensions_list): add new function. Ultimately, I wished we could get rid of the direct access to the internal hastables but this is at least a first step. * libgnomevfs/gnome-vfs-mime-info.h: add prototype. * mime-type-capplet/nautilus-mime-type-capplet-dialogs.c: (add_extension_clicked): implement (remove_extension_clicked): implement (extension_list_selected): grey/ungrey delete button when selecting/unselecting (extension_list_deselected): idem (get_extensions_from_gtk_list): helper function. (nautilus_mime_type_capplet_show_change_extension_window): implement. (nautilus_mime_type_capplet_show_new_extension_window): fix a number of segfaults. * mime-type-capplet/nautilus-mime-type-capplet-dialogs.h: change prototypes. * mime-type-capplet/nautilus-mime-type-capplet.c: (get_selected_row_number),helper function. (get_selected_mime_type), helper function (refactoring :) (really_change_icon): fix segfault. (update_extensions_list): update extensions when you change them. (change_file_extensions_clicked): create dialog. (init_mime_capplet): spaces. (nautilus_mime_type_capplet_update_info): make it use get_selected_mime_type.
35 lines
1.5 KiB
C
35 lines
1.5 KiB
C
/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
|
|
/* nautilus-mime-type-capplet.h
|
|
*
|
|
* Copyright (C) 2000 Free Software Foundaton
|
|
* Copyright (C) 2000 Eazel, Inc.
|
|
*
|
|
* This program 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; either version 2 of the
|
|
* License, or (at your option) any later version.
|
|
*
|
|
* This program 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
|
|
* General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public
|
|
* License along with this program; if not, write to the
|
|
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
* Boston, MA 02111-1307, USA.
|
|
*
|
|
* Author: Gene Z. Ragan <gzr@eazel.com>
|
|
*/
|
|
|
|
#ifndef NAUTILUS_MIME_TYPE_CAPPLET_DIALOGS_H
|
|
#define NAUTILUS_MIME_TYPE_CAPPLET_DIALOGS_H
|
|
|
|
void show_edit_applications_dialog (const char *mime_type);
|
|
void show_edit_components_dialog (const char *mime_type);
|
|
char *name_from_oaf_server_info (OAF_ServerInfo *server);
|
|
char *nautilus_mime_type_capplet_show_new_mime_window (void);
|
|
char *nautilus_mime_type_capplet_show_new_extension_window (void);
|
|
char *nautilus_mime_type_capplet_show_change_extension_window (const char *mime_type);
|
|
|
|
#endif /* NAUTILUS_MIME_TYPE_CAPPLET_DIALOGS_H */
|