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
This commit is contained in:
1162
gtk/gtkrc.c
1162
gtk/gtkrc.c
File diff suppressed because it is too large
Load Diff
17
gtk/gtkrc.h
17
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
|
||||
|
||||
Reference in New Issue
Block a user