[gtk+] cssprovider: Add a custom gtk_css_scanner_destroy() function
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] cssprovider: Add a custom gtk_css_scanner_destroy() function
- Date: Wed, 18 May 2011 20:27:18 +0000 (UTC)
commit 073d75a880f733a44c78fd036e4e31d508a9ad9c
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 eb3f116..0d0d551 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]