gnome-control-center/capplets/file-types/mime-edit-dialog.h
Jody Goldberg 9137407127 new. (fill_dialog) : mime type is always sensitive.
2002-06-05  Jody Goldberg <jody@gnome.org>

	* mime-edit-dialog.c (mime_add_dialog_new) :

	* mime-edit-dialog.c (mime_edit_editable_enters) : new.
	(fill_dialog) : mime type is always sensitive.
	(mime_edit_dialog_init) : use mime_edit_editable_enters and set the
	  default response.
	(mime_add_dialog_new) : forceably define the model before is-add and
	  set the parent.


	* model-entry.c (model_entry_insert_child) : be paranoid.  Sort the
	  mime entries too.

	* file-types-capplet.c (main) : !KLUDGE! if we are editing
	  application/octet-stream assume that people really want to create a
	  new mime type.

2002-06-04  Jody Goldberg <jody@gnome.org>

	* mime-type-info.c (mime_type_info_save) : Add a freeze/thaw around
	  the assignments.
2002-06-05 04:17:14 +00:00

63 lines
1.9 KiB
C

/* -*- mode: c; style: linux -*- */
/* mime-edit-dialog.h
* Copyright (C) 2001 Ximian, Inc.
*
* Written by Bradford Hovinen <hovinen@ximian.com>
*
* 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, 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.
*/
#ifndef __MIME_EDIT_DIALOG_H
#define __MIME_EDIT_DIALOG_H
#include <gnome.h>
#include "mime-type-info.h"
G_BEGIN_DECLS
#define MIME_EDIT_DIALOG(obj) G_TYPE_CHECK_INSTANCE_CAST (obj, mime_edit_dialog_get_type (), MimeEditDialog)
#define MIME_EDIT_DIALOG_CLASS(klass) G_TYPE_CHECK_CLASS_CAST (klass, mime_edit_dialog_get_type (), MimeEditDialogClass)
#define IS_MIME_EDIT_DIALOG(obj) G_TYPE_CHECK_INSTANCE_TYPE (obj, mime_edit_dialog_get_type ())
typedef struct _MimeEditDialog MimeEditDialog;
typedef struct _MimeEditDialogClass MimeEditDialogClass;
typedef struct _MimeEditDialogPrivate MimeEditDialogPrivate;
struct _MimeEditDialog
{
GObject parent;
MimeEditDialogPrivate *p;
};
struct _MimeEditDialogClass
{
GObjectClass g_object_class;
void (*done) (MimeEditDialog *dialog, gboolean ok);
};
GType mime_edit_dialog_get_type (void);
GObject *mime_edit_dialog_new (GtkTreeModel *model,
MimeTypeInfo *info);
GObject *mime_add_dialog_new (GtkTreeModel *model, GtkWindow *parent);
G_END_DECLS
#endif /* __MIME_EDIT_DIALOG_H */