diff options
author | Tim Janik <timj@src.gnome.org> | 1997-12-23 02:12:10 +0000 |
---|---|---|
committer | Tim Janik <timj@src.gnome.org> | 1997-12-23 02:12:10 +0000 |
commit | 2b2667e791aab4d0cfa46d3e9de560a9f50692d9 (patch) | |
tree | 73239d86d9f16424cf906ba7df33b56dc9d81a7d /gtk/gtkrc.h | |
parent | e3956c289a602ddfed751ab781f436229462dd94 (diff) | |
download | gtk+-2b2667e791aab4d0cfa46d3e9de560a9f50692d9.tar.gz |
new function. many functions adapted to use GScanner for scanning.
* gtk/gtkrc.h (gtk_rc_parse_string): new function.
* gtk/gtkrc.c: many functions adapted to use GScanner for scanning.
(gtk_rc_parse): use gtk_rc_parse_any for parsing.
(gtk_rc_parse_string): new function to support parsing from
strings, just calls gtk_rc_parse_any.
(gtk_rc_parse_any): new function using GScanner as lexer.
-timj
Diffstat (limited to 'gtk/gtkrc.h')
-rw-r--r-- | gtk/gtkrc.h | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/gtk/gtkrc.h b/gtk/gtkrc.h index 8c761bb9e6..c89858a4fb 100644 --- a/gtk/gtkrc.h +++ b/gtk/gtkrc.h @@ -8,7 +8,7 @@ * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Library General Public License for more details. * * You should have received a copy of the GNU Library General Public @@ -28,13 +28,14 @@ extern "C" { #endif /* __cplusplus */ -void gtk_rc_init (void); -void gtk_rc_parse (const char *filename); -GtkStyle* gtk_rc_get_style (GtkWidget *widget); -void gtk_rc_add_widget_name_style (GtkStyle *style, - const char *pattern); -void gtk_rc_add_widget_class_style (GtkStyle *style, - const char *pattern); +void gtk_rc_init (void); +void gtk_rc_parse (const gchar *filename); +void gtk_rc_parse_string (const gchar *rc_string); +GtkStyle* gtk_rc_get_style (GtkWidget *widget); +void gtk_rc_add_widget_name_style (GtkStyle *style, + const gchar *pattern); +void gtk_rc_add_widget_class_style (GtkStyle *style, + const gchar *pattern); #ifdef __cplusplus |