Do not cast MooEdit to GtkWidget

This commit is contained in:
Yevgen Muntyan 2010-11-28 16:21:59 -08:00
parent 334638111b
commit 7d678fa9bd

View File

@ -354,7 +354,7 @@ _moo_edit_save_multiple_changes_dialog (MooEditArray *docs,
xml = save_mult_dialog_xml_new (); xml = save_mult_dialog_xml_new ();
dialog = GTK_WIDGET (xml->SaveMultDialog); dialog = GTK_WIDGET (xml->SaveMultDialog);
moo_window_set_parent (dialog, GTK_WIDGET (docs->elms[0])); moo_window_set_parent (dialog, GTK_WIDGET (moo_edit_get_view (docs->elms[0])));
gtk_dialog_add_buttons (GTK_DIALOG (dialog), gtk_dialog_add_buttons (GTK_DIALOG (dialog),
MOO_STOCK_SAVE_NONE, GTK_RESPONSE_NO, MOO_STOCK_SAVE_NONE, GTK_RESPONSE_NO,