From ac1de7eaf96bb7adbf0c58ca2c3a3466654aaead Mon Sep 17 00:00:00 2001 From: Not Zed Date: Wed, 13 Nov 2002 09:31:06 +0000 Subject: Get the root node properly. 2002-11-13 Not Zed * rule-context.c (load): Get the root node properly. * rule-editor.c (rule_add): cast g_object_weak_ref (rule_edit): " * all: xml2 node change - childs->children. Also, ignore 'text' nodes while scanning tree. * rule-context.h: gnome-xml->libxml. * filter-element.h: gnome-xml->libxml svn path=/trunk/; revision=18732 --- filter/rule-editor.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'filter/rule-editor.c') diff --git a/filter/rule-editor.c b/filter/rule-editor.c index a31246bb75..b1f465eab3 100644 --- a/filter/rule-editor.c +++ b/filter/rule-editor.c @@ -291,7 +291,7 @@ rule_add (GtkWidget *widget, RuleEditor *re) gtk_box_pack_start (GTK_BOX (GTK_DIALOG (re->dialog)->vbox), rules, TRUE, TRUE, 0); g_signal_connect (re->dialog, "response", GTK_SIGNAL_FUNC (add_editor_response), re); - g_object_weak_ref (re->dialog, (GWeakNotify) editor_destroy, re); + g_object_weak_ref ((GObject *)re->dialog, (GWeakNotify) editor_destroy, re); gtk_widget_set_sensitive (GTK_WIDGET (re), FALSE); @@ -363,7 +363,7 @@ rule_edit (GtkWidget *widget, RuleEditor *re) gtk_box_pack_start (GTK_BOX (GTK_DIALOG (re->dialog)->vbox), rules, TRUE, TRUE, 0); g_signal_connect (re->dialog, "clicked", GTK_SIGNAL_FUNC (edit_editor_response), re); - g_object_weak_ref (re->dialog, (GWeakNotify) editor_destroy, re); + g_object_weak_ref ((GObject *)re->dialog, (GWeakNotify) editor_destroy, re); gtk_widget_set_sensitive (GTK_WIDGET (re), FALSE); -- cgit v1.2.3