summaryrefslogtreecommitdiff
path: root/gtk/gtkitemfactory.c
diff options
context:
space:
mode:
authorMatthias Clasen <matthiasc@src.gnome.org>2001-10-01 18:23:32 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2001-10-01 18:23:32 +0000
commit4b83b736284e36e24043533f69eb4bc374f5e141 (patch)
tree2ced601ffd4527618211899c8c1936d21d64be67 /gtk/gtkitemfactory.c
parent58ed9e8bef2eb169917a0eef11fb6b6e0678fd47 (diff)
downloadgtk+-4b83b736284e36e24043533f69eb4bc374f5e141.tar.gz
replace g_scanner_add/remove_symbol by g_scanner_scope_add/remove_symbol.
* gtk/gtkitemfactory.c (gtk_item_factory_parse_rc_scanner): replace g_scanner_add/remove_symbol by g_scanner_scope_add/remove_symbol. * gtk/gtkrc.c (gtk_rc_parse_any): here as well.
Diffstat (limited to 'gtk/gtkitemfactory.c')
-rw-r--r--gtk/gtkitemfactory.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gtk/gtkitemfactory.c b/gtk/gtkitemfactory.c
index f14612a3f3..a0b5d33cdd 100644
--- a/gtk/gtkitemfactory.c
+++ b/gtk/gtkitemfactory.c
@@ -1733,8 +1733,8 @@ gtk_item_factory_parse_rc_scanner (GScanner *scanner)
gtk_type_class (GTK_TYPE_ITEM_FACTORY);
saved_symbol = g_scanner_lookup_symbol (scanner, "menu-path");
- g_scanner_remove_symbol (scanner, "menu-path");
- g_scanner_add_symbol (scanner, "menu-path", gtk_item_factory_parse_menu_path);
+ g_scanner_scope_remove_symbol (scanner, 0, "menu-path");
+ g_scanner_scope_add_symbol (scanner, 0, "menu-path", gtk_item_factory_parse_menu_path);
g_scanner_peek_next_token (scanner);
@@ -1747,8 +1747,8 @@ gtk_item_factory_parse_rc_scanner (GScanner *scanner)
g_scanner_peek_next_token (scanner);
}
- g_scanner_remove_symbol (scanner, "menu-path");
- g_scanner_add_symbol (scanner, "menu-path", saved_symbol);
+ g_scanner_scope_remove_symbol (scanner, 0, "menu-path");
+ g_scanner_scope_add_symbol (scanner, 0, "menu-path", saved_symbol);
}
void