static VALUE appinfo_reset_type_associations(VALUE self, VALUE content_type) { g_app_info_reset_type_associations(RVAL2CSTR(content_type)); return self; }
static void reset_clicked_cb (GtkButton *button, gpointer user_data) { NemoMimeApplicationChooser *chooser; chooser = NEMO_MIME_APPLICATION_CHOOSER (user_data); g_app_info_reset_type_associations (chooser->details->content_type); gtk_app_chooser_refresh (GTK_APP_CHOOSER (chooser->details->open_with_widget)); gtk_entry_set_text (GTK_ENTRY (chooser->details->custom_entry), ""); g_signal_emit_by_name (nemo_signaller_get_current (), "mime_data_changed"); }
static void reset_clicked_cb (GtkButton *button, gpointer user_data) { NautilusMimeApplicationChooser *chooser; chooser = NAUTILUS_MIME_APPLICATION_CHOOSER (user_data); g_app_info_reset_type_associations (chooser->details->content_type); gtk_app_chooser_refresh (GTK_APP_CHOOSER (chooser->details->open_with_widget)); g_signal_emit_by_name (nautilus_signaller_get_current (), "mime-data-changed"); }