[gtk+/gtk-style-context: 365/533] Do not initialize RC subsystem.
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-style-context: 365/533] Do not initialize RC subsystem.
- Date: Wed, 1 Dec 2010 02:36:30 +0000 (UTC)
commit f774d7a5f395bcb95b858e230be1c156dadc1c7f
Author: Carlos Garnacho <carlosg gnome org>
Date: Sat Nov 13 19:54:37 2010 +0100
Do not initialize RC subsystem.
gtk/gtkmain.c | 1 -
gtk/gtkrc.c | 6 ++++++
2 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkmain.c b/gtk/gtkmain.c
index 1ba0ae7..55614b4 100644
--- a/gtk/gtkmain.c
+++ b/gtk/gtkmain.c
@@ -798,7 +798,6 @@ do_post_parse_initialization (int *argc,
g_type_init ();
_gtk_accel_map_init ();
- _gtk_rc_init ();
/* Set the 'initialized' flag.
*/
diff --git a/gtk/gtkrc.c b/gtk/gtkrc.c
index 84efc27..1191871 100644
--- a/gtk/gtkrc.c
+++ b/gtk/gtkrc.c
@@ -926,6 +926,7 @@ gtk_rc_parse_string (const gchar *rc_string)
g_return_if_fail (rc_string != NULL);
+#if 0
rc_file = g_new (GtkRcFile, 1);
rc_file->is_string = TRUE;
rc_file->name = g_strdup (rc_string);
@@ -938,6 +939,7 @@ gtk_rc_parse_string (const gchar *rc_string)
for (tmp_list = rc_contexts; tmp_list; tmp_list = tmp_list->next)
gtk_rc_context_parse_string (tmp_list->data, rc_string);
+#endif
}
static GtkRcFile *
@@ -1117,10 +1119,12 @@ gtk_rc_parse (const gchar *filename)
g_return_if_fail (filename != NULL);
+#if 0
add_to_rc_file_list (&global_rc_files, filename, TRUE);
for (tmp_list = rc_contexts; tmp_list; tmp_list = tmp_list->next)
gtk_rc_context_parse_file (tmp_list->data, filename, GTK_PATH_PRIO_RC, TRUE);
+#endif
}
/* Handling of RC styles */
@@ -2183,6 +2187,7 @@ gtk_rc_parse_any (GtkRcContext *context,
guint i;
gboolean done;
+#if 0
scanner = gtk_rc_scanner_new ();
if (input_fd >= 0)
@@ -2264,6 +2269,7 @@ gtk_rc_parse_any (GtkRcContext *context,
}
g_scanner_destroy (scanner);
+#endif
}
static guint
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]