From 30d40d19329b325a6ddd29db2576cf63306f05d9 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Wed, 6 Nov 2002 04:23:55 +0000 Subject: more build fixes svn path=/trunk/; revision=18581 --- filter/filter-folder.c | 2 +- filter/filter-input.c | 11 ++++------- filter/filter-int.c | 4 ++-- filter/filter-label.c | 3 +-- 4 files changed, 8 insertions(+), 12 deletions(-) (limited to 'filter') diff --git a/filter/filter-folder.c b/filter/filter-folder.c index 9113e0208b..7a77a0ee98 100644 --- a/filter/filter-folder.c +++ b/filter/filter-folder.c @@ -238,7 +238,7 @@ get_widget (FilterElement *fe) allowed_types); gtk_widget_show (button); - g_signal_connect (button, "selected", folder_selected, ff); + g_signal_connect (button, "selected", GTK_SIGNAL_FUNC (folder_selected), ff); return button; } diff --git a/filter/filter-input.c b/filter/filter-input.c index 59e34d3664..fee658d2a7 100644 --- a/filter/filter-input.c +++ b/filter/filter-input.c @@ -29,8 +29,7 @@ #include #include -#include -#include +#include #include #include #include @@ -54,7 +53,7 @@ static void filter_input_init (FilterInput *fi); static void filter_input_finalise (GObject *obj); -static FilterElementClass *parent_class; +static FilterElementClass *parent_class = NULL; GType @@ -109,7 +108,7 @@ filter_input_init (FilterInput *fi) } static void -filter_input_finalise (GtkObject *obj) +filter_input_finalise (GObject *obj) { FilterInput *fi = (FilterInput *) obj; @@ -117,8 +116,6 @@ filter_input_finalise (GtkObject *obj) g_list_foreach (fi->values, (GFunc)g_free, NULL); g_list_free (fi->values); - g_free (fi->priv); - G_OBJECT_CLASS (parent_class)->finalize (obj); } @@ -330,7 +327,7 @@ get_widget (FilterElement *fe) if (fi->values && fi->values->data) gtk_entry_set_text (GTK_ENTRY (entry), (const char *) fi->values->data); - g_signal_connect (entry, "changed", entry_changed, fe); + g_signal_connect (entry, "changed", GTK_SIGNAL_FUNC (entry_changed), fe); return entry; } diff --git a/filter/filter-int.c b/filter/filter-int.c index 4378204b92..a6e3fb4a74 100644 --- a/filter/filter-int.c +++ b/filter/filter-int.c @@ -134,7 +134,7 @@ filter_int_new_type (const char *type, int min, int max) fi->min = min; fi->max = max; - return o; + return fi; } void @@ -234,7 +234,7 @@ get_widget (FilterElement *fe) if (fs->val) gtk_spin_button_set_value (GTK_SPIN_BUTTON (spin), (gfloat) fs->val); - g_signal_connect (spin, "changed", spin_changed, fe); + g_signal_connect (spin, "changed", GTK_SIGNAL_FUNC (spin_changed), fe); return spin; } diff --git a/filter/filter-label.c b/filter/filter-label.c index 105dd353cf..489a8df5cf 100644 --- a/filter/filter-label.c +++ b/filter/filter-label.c @@ -27,9 +27,8 @@ #endif #include -#include -#include +#include #include #include #include -- cgit