[gtk+/parser: 44/57] 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: 44/57] cssprovider: Add a custom gtk_css_scanner_destroy() function
- Date: Mon, 11 Apr 2011 14:59:52 +0000 (UTC)
commit 8d77a4a94ba906d0d0332f5310459d441f961295
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 11b809f..4fd5e40 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]