disable the use of category defaults disable editing category handlers.

2002-07-09  Jody Goldberg <jody@gnome.org>

	* file-types-properties.glade : disable the use of category defaults
	* file-types-capplet.c (launch_edit_dialog) : disable editing category
	  handlers.
This commit is contained in:
Jody Goldberg 2002-07-10 14:42:26 +00:00 committed by Jody Goldberg
parent 3bf58de536
commit d99a5aae8e
4 changed files with 8 additions and 31 deletions

View file

@ -1,3 +1,9 @@
2002-07-09 Jody Goldberg <jody@gnome.org>
* file-types-properties.glade : disable the use of category defaults
* file-types-capplet.c (launch_edit_dialog) : disable editing category
handlers.
2002-06-26 Jody Goldberg <jody@gnome.org>
* mime-type-info.c (mime_type_info_load_all) : do not trust

View file

@ -85,8 +85,10 @@ launch_edit_dialog (GtkTreeModel *model, GtkTreeIter *iter)
case MODEL_ENTRY_SERVICE:
return service_edit_dialog_new (model, SERVICE_INFO (entry));
#if 0
case MODEL_ENTRY_CATEGORY:
return mime_category_edit_dialog_new (model, MIME_CATEGORY_INFO (entry));
#endif
default:
return NULL;

View file

@ -582,22 +582,6 @@
<property name="spacing">4</property>
<property name="visible">yes</property>
<child>
<widget class="GtkCheckButton" id="use_category_defaults_toggle">
<property name="can_focus">yes</property>
<property name="label" translatable="yes">Use category _defaults</property>
<property name="use_underline">True</property>
<property name="active">no</property>
<property name="draw_indicator">yes</property>
<property name="visible">yes</property>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">no</property>
<property name="fill">no</property>
</packing>
</child>
<child>
<widget class="GtkHBox" id="component_box">
<property name="homogeneous">no</property>

View file

@ -98,8 +98,6 @@ static void add_ext_cb (MimeEditDialog *dialog);
static void remove_ext_cb (MimeEditDialog *dialog);
static void choose_cat_cb (MimeEditDialog *dialog);
static void default_action_changed_cb (MimeEditDialog *dialog);
static void use_category_defaults_toggled_cb (MimeEditDialog *dialog,
GtkToggleButton *tb);
static void response_cb (MimeEditDialog *dialog,
gint response_id);
@ -202,8 +200,6 @@ mime_edit_dialog_init (MimeEditDialog *dialog, MimeEditDialogClass *class)
g_signal_connect_swapped (G_OBJECT (WID ("remove_ext_button")), "clicked", (GCallback) remove_ext_cb, dialog);
g_signal_connect_swapped (G_OBJECT (WID ("choose_button")), "clicked", (GCallback) choose_cat_cb, dialog);
g_signal_connect_swapped (G_OBJECT (WID ("default_action_select")), "changed", (GCallback) default_action_changed_cb, dialog);
g_signal_connect_swapped (G_OBJECT (WID ("use_category_defaults_toggle")), "toggled",
(GCallback) use_category_defaults_toggled_cb, dialog);
g_signal_connect_swapped (G_OBJECT (dialog->p->dialog_win), "response", (GCallback) response_cb, dialog);
@ -442,7 +438,6 @@ fill_dialog (MimeEditDialog *dialog)
mime_type_info_get_category_name (dialog->p->info));
dialog->p->use_cat_dfl = dialog->p->info->use_category;
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (WID ("use_category_defaults_toggle")), dialog->p->use_cat_dfl);
update_sensitivity (dialog);
gnome_icon_entry_set_filename (GNOME_ICON_ENTRY (WID ("icon_entry")), mime_type_info_get_icon_path (dialog->p->info));
@ -771,9 +766,6 @@ store_data (MimeEditDialog *dialog)
dialog->p->info->small_icon_pixbuf = NULL;
}
dialog->p->info->use_category =
gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (WID ("use_category_defaults_toggle")));
option_menu = GTK_OPTION_MENU (WID ("component_select"));
menu_shell = GTK_MENU_SHELL (gtk_option_menu_get_menu (option_menu));
idx = gtk_option_menu_get_history (option_menu);
@ -939,13 +931,6 @@ default_action_changed_cb (MimeEditDialog *dialog)
update_sensitivity (dialog);
}
static void
use_category_defaults_toggled_cb (MimeEditDialog *dialog, GtkToggleButton *tb)
{
dialog->p->use_cat_dfl = gtk_toggle_button_get_active (tb);
update_sensitivity (dialog);
}
static void
response_cb (MimeEditDialog *dialog, gint response_id)
{