diff options
Diffstat (limited to 'widgets/misc/e-searching-tokenizer.c')
-rw-r--r-- | widgets/misc/e-searching-tokenizer.c | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/widgets/misc/e-searching-tokenizer.c b/widgets/misc/e-searching-tokenizer.c index b2581799c1..087551fc76 100644 --- a/widgets/misc/e-searching-tokenizer.c +++ b/widgets/misc/e-searching-tokenizer.c @@ -37,10 +37,6 @@ #define d(x) -#define E_SEARCHING_TOKENIZER_GET_PRIVATE(obj) \ - (G_TYPE_INSTANCE_GET_PRIVATE \ - ((obj), E_TYPE_SEARCHING_TOKENIZER, ESearchingTokenizerPrivate)) - enum { MATCH_SIGNAL, LAST_SIGNAL @@ -943,7 +939,7 @@ searching_tokenizer_finalize (GObject *object) { ESearchingTokenizerPrivate *priv; - priv = E_SEARCHING_TOKENIZER_GET_PRIVATE (object); + priv = E_SEARCHING_TOKENIZER (object)->priv; search_info_free (priv->primary); search_info_free (priv->secondary); @@ -961,7 +957,7 @@ searching_tokenizer_begin (HTMLTokenizer *tokenizer, { ESearchingTokenizerPrivate *priv; - priv = E_SEARCHING_TOKENIZER_GET_PRIVATE (tokenizer); + priv = E_SEARCHING_TOKENIZER (tokenizer)->priv; /* reset search */ if (priv->engine != NULL) { @@ -985,7 +981,7 @@ searching_tokenizer_peek_token (HTMLTokenizer *tokenizer) { ESearchingTokenizerPrivate *priv; - priv = E_SEARCHING_TOKENIZER_GET_PRIVATE (tokenizer); + priv = E_SEARCHING_TOKENIZER (tokenizer)->priv; if (priv->engine != NULL) return searcher_peek_token (priv->engine); @@ -1002,7 +998,7 @@ searching_tokenizer_next_token (HTMLTokenizer *tokenizer) gint oldmatched; gchar *token; - priv = E_SEARCHING_TOKENIZER_GET_PRIVATE (tokenizer); + priv = E_SEARCHING_TOKENIZER (tokenizer)->priv; /* If no search is active, just use the default method. */ if (priv->engine == NULL) @@ -1026,7 +1022,7 @@ searching_tokenizer_has_more (HTMLTokenizer *tokenizer) { ESearchingTokenizerPrivate *priv; - priv = E_SEARCHING_TOKENIZER_GET_PRIVATE (tokenizer); + priv = E_SEARCHING_TOKENIZER (tokenizer)->priv; return (priv->engine != NULL && searcher_pending (priv->engine)) || HTML_TOKENIZER_CLASS (e_searching_tokenizer_parent_class)-> @@ -1084,7 +1080,7 @@ e_searching_tokenizer_class_init (ESearchingTokenizerClass *class) static void e_searching_tokenizer_init (ESearchingTokenizer *tokenizer) { - tokenizer->priv = E_SEARCHING_TOKENIZER_GET_PRIVATE (tokenizer); + tokenizer->priv = G_TYPE_INSTANCE_GET_PRIVATE (tokenizer, E_TYPE_SEARCHING_TOKENIZER, ESearchingTokenizerPrivate); tokenizer->priv->primary = search_info_new (); search_info_set_flags ( |