aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@src.gnome.org>2002-11-06 11:06:52 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2002-11-06 11:06:52 +0800
commit7d71285ce226a2eb684260c903d8f1760eb61497 (patch)
tree5f9bb7a543d6507c1ce69f71b610522e2b7bf000
parent622d898921c6482079bab8ba9e59bd7e2d666c63 (diff)
downloadgsoc2013-evolution-7d71285ce226a2eb684260c903d8f1760eb61497.tar.gz
gsoc2013-evolution-7d71285ce226a2eb684260c903d8f1760eb61497.tar.zst
gsoc2013-evolution-7d71285ce226a2eb684260c903d8f1760eb61497.zip
more build fixes
svn path=/trunk/; revision=18577
-rw-r--r--filter/filter-editor.c14
-rw-r--r--filter/filter-element.c2
2 files changed, 7 insertions, 9 deletions
diff --git a/filter/filter-editor.c b/filter/filter-editor.c
index 899336c872..a15269b89b 100644
--- a/filter/filter-editor.c
+++ b/filter/filter-editor.c
@@ -25,13 +25,11 @@
#include <config.h>
#endif
-#include <gtk/gtkframe.h>
-#include <gtk/gtkmenuitem.h>
-#include <gtk/gtkoptionmenu.h>
-#include <libgnome/gnome-defs.h>
+#include <gtk/gtk.h>
#include <libgnome/gnome-i18n.h>
#include "filter-editor.h"
+#include "filter-filter.h"
#define d(x)
@@ -109,7 +107,7 @@ filter_editor_new (FilterContext *fc, const char **source_names)
GladeXML *gui;
GtkWidget *w;
- gui = glade_xml_new (FILTER_GLADEDIR "/filter.glade", "rule_editor");
+ gui = glade_xml_new (FILTER_GLADEDIR "/filter.glade", "rule_editor", NULL);
filter_editor_construct (fe, fc, gui, source_names);
w = glade_xml_get_widget (gui, "rule_frame");
@@ -143,15 +141,15 @@ filter_editor_construct (FilterEditor *fe, FilterContext *fc, GladeXML *gui, con
for (i = 0; source_names[i]; i++) {
item = gtk_menu_item_new_with_label (_(source_names[i]));
- g_object_set_data_full (item, "source", g_strdup (source_names[i]), g_free);
+ g_object_set_data_full (G_OBJECT (item), "source", g_strdup (source_names[i]), g_free);
gtk_menu_append (GTK_MENU (menu), item);
gtk_widget_show (item);
- g_signal_connect (item, "activate", select_source, fe);
+ g_signal_connect (item, "activate", GTK_SIGNAL_FUNC (select_source), fe);
}
gtk_option_menu_set_menu (GTK_OPTION_MENU (omenu), menu);
gtk_widget_show (omenu);
- rule_editor_construct ((RuleEditor *)fe, (RuleContext *)fc, gui, source_names[0]);
+ rule_editor_construct ((RuleEditor *) fe, (RuleContext *) fc, gui, source_names[0]);
}
static FilterRule *
diff --git a/filter/filter-element.c b/filter/filter-element.c
index 2054aeb057..897d547d7d 100644
--- a/filter/filter-element.c
+++ b/filter/filter-element.c
@@ -101,7 +101,7 @@ filter_element_init (FilterElement *fe)
}
static void
-filter_element_finalise (GtkObject *obj)
+filter_element_finalise (GObject *obj)
{
FilterElement *o = (FilterElement *)obj;