[gtk+/parser: 38/74] cssprovider: Add a custom gtk_css_scanner_destroy() function
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/parser: 38/74] cssprovider: Add a custom gtk_css_scanner_destroy() function
- Date: Mon, 9 May 2011 15:25:57 +0000 (UTC)
commit eaa2cab2361eeb5a6c9af36294d5a542f80f2e30
Author: Benjamin Otte <otte redhat com>
Date: Sun Apr 10 03:35:19 2011 +0200
cssprovider: Add a custom gtk_css_scanner_destroy() function
So far, it does nothing
gtk/gtkcssprovider.c | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkcssprovider.c b/gtk/gtkcssprovider.c
index 18568df..5e50634 100644
--- a/gtk/gtkcssprovider.c
+++ b/gtk/gtkcssprovider.c
@@ -1090,6 +1090,12 @@ selector_style_info_set_style (SelectorStyleInfo *info,
info->style = NULL;
}
+static void
+gtk_css_scanner_destroy (GScanner *scanner)
+{
+ g_scanner_destroy (scanner);
+}
+
static GScanner *
gtk_css_provider_create_scanner (GtkCssProvider *provider)
{
@@ -1519,7 +1525,7 @@ gtk_css_provider_finalize (GObject *object)
css_provider_reset_parser (css_provider);
- g_scanner_destroy (priv->scanner);
+ gtk_css_scanner_destroy (priv->scanner);
g_ptr_array_free (priv->selectors_info, TRUE);
@@ -2243,7 +2249,7 @@ parse_rule (GtkCssProvider *css_provider,
/* Restore previous state */
css_provider_reset_parser (css_provider);
priv->state = state_backup;
- g_scanner_destroy (priv->scanner);
+ gtk_css_scanner_destroy (priv->scanner);
priv->scanner = scanner_backup;
g_free (path);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]