From e99e12428d46db3be2878f6c2ca63bd7510149f4 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Thu, 22 May 2008 17:27:48 +0000 Subject: ** Fixes bug #534360 2008-05-22 Matthew Barnes ** Fixes bug #534360 Migrate from deprecated GtkObject symbols to GObject equivalents. Touches over 150 files in all components; too many to list. svn path=/trunk/; revision=35526 --- filter/ChangeLog | 8 ++++++++ filter/rule-editor.c | 6 +++--- filter/rule-editor.h | 4 ++-- 3 files changed, 13 insertions(+), 5 deletions(-) (limited to 'filter') diff --git a/filter/ChangeLog b/filter/ChangeLog index cff5724f0a..f6998fe6ac 100644 --- a/filter/ChangeLog +++ b/filter/ChangeLog @@ -1,3 +1,11 @@ +2008-05-22 Matthew Barnes + + ** Fixes part of bug #534360 + + * rule-editor.c: + * rule-editor.h: + Migrate from deprecated GtkObject symbols to GObject equivalents. + 2008-01-10 Milan Crha ** Fix for bug #211353 diff --git a/filter/rule-editor.c b/filter/rule-editor.c index fac0f6ba4c..cc60d4fa8a 100644 --- a/filter/rule-editor.c +++ b/filter/rule-editor.c @@ -72,10 +72,10 @@ struct _RuleEditorPrivate { static GtkDialogClass *parent_class = NULL; -GtkType +GType rule_editor_get_type (void) { - static GtkType type = 0; + static GType type = 0; if (!type) { static const GTypeInfo info = { @@ -626,7 +626,7 @@ rule_bottom (GtkWidget *widget, RuleEditor *re) static struct { char *name; - GtkSignalFunc func; + GCallback func; } edit_buttons[] = { { "rule_add", G_CALLBACK (rule_add) }, { "rule_edit", G_CALLBACK (rule_edit) }, diff --git a/filter/rule-editor.h b/filter/rule-editor.h index 90a979205a..41e4c62e56 100644 --- a/filter/rule-editor.h +++ b/filter/rule-editor.h @@ -35,7 +35,7 @@ #define RULE_EDITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), RULE_TYPE_EDITOR, RuleEditorClass)) #define IS_RULE_EDITOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), RULE_TYPE_EDITOR)) #define IS_RULE_EDITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), RULE_TYPE_EDITOR)) -#define RULE_EDITOR_GET_CLASS(obj) (GTK_CHECK_GET_CLASS ((obj), RULE_TYPE_EDITOR, RuleEditorClass)) +#define RULE_EDITOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), RULE_TYPE_EDITOR, RuleEditorClass)) typedef struct _RuleEditor RuleEditor; typedef struct _RuleEditorClass RuleEditorClass; @@ -89,7 +89,7 @@ struct _RuleEditorUndo { int newrank; }; -GtkType rule_editor_get_type(void); +GType rule_editor_get_type(void); RuleEditor *rule_editor_new(RuleContext *rc, const char *source, const char *label); void rule_editor_construct(RuleEditor *re, RuleContext *context, GladeXML *gui, const char *source, const char *label); -- cgit v1.2.3