mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-06 16:50:11 +00:00
Do not initialize RC subsystem.
This commit is contained in:
parent
62ee0956e3
commit
64e798e190
@ -796,7 +796,6 @@ do_post_parse_initialization (int *argc,
|
|||||||
g_type_init ();
|
g_type_init ();
|
||||||
|
|
||||||
_gtk_accel_map_init ();
|
_gtk_accel_map_init ();
|
||||||
_gtk_rc_init ();
|
|
||||||
|
|
||||||
/* Set the 'initialized' flag.
|
/* Set the 'initialized' flag.
|
||||||
*/
|
*/
|
||||||
|
@ -926,6 +926,7 @@ gtk_rc_parse_string (const gchar *rc_string)
|
|||||||
|
|
||||||
g_return_if_fail (rc_string != NULL);
|
g_return_if_fail (rc_string != NULL);
|
||||||
|
|
||||||
|
#if 0
|
||||||
rc_file = g_new (GtkRcFile, 1);
|
rc_file = g_new (GtkRcFile, 1);
|
||||||
rc_file->is_string = TRUE;
|
rc_file->is_string = TRUE;
|
||||||
rc_file->name = g_strdup (rc_string);
|
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)
|
for (tmp_list = rc_contexts; tmp_list; tmp_list = tmp_list->next)
|
||||||
gtk_rc_context_parse_string (tmp_list->data, rc_string);
|
gtk_rc_context_parse_string (tmp_list->data, rc_string);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
static GtkRcFile *
|
static GtkRcFile *
|
||||||
@ -1117,10 +1119,12 @@ gtk_rc_parse (const gchar *filename)
|
|||||||
|
|
||||||
g_return_if_fail (filename != NULL);
|
g_return_if_fail (filename != NULL);
|
||||||
|
|
||||||
|
#if 0
|
||||||
add_to_rc_file_list (&global_rc_files, filename, TRUE);
|
add_to_rc_file_list (&global_rc_files, filename, TRUE);
|
||||||
|
|
||||||
for (tmp_list = rc_contexts; tmp_list; tmp_list = tmp_list->next)
|
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);
|
gtk_rc_context_parse_file (tmp_list->data, filename, GTK_PATH_PRIO_RC, TRUE);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Handling of RC styles */
|
/* Handling of RC styles */
|
||||||
@ -2183,6 +2187,7 @@ gtk_rc_parse_any (GtkRcContext *context,
|
|||||||
guint i;
|
guint i;
|
||||||
gboolean done;
|
gboolean done;
|
||||||
|
|
||||||
|
#if 0
|
||||||
scanner = gtk_rc_scanner_new ();
|
scanner = gtk_rc_scanner_new ();
|
||||||
|
|
||||||
if (input_fd >= 0)
|
if (input_fd >= 0)
|
||||||
@ -2264,6 +2269,7 @@ gtk_rc_parse_any (GtkRcContext *context,
|
|||||||
}
|
}
|
||||||
|
|
||||||
g_scanner_destroy (scanner);
|
g_scanner_destroy (scanner);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
static guint
|
static guint
|
||||||
|
Loading…
Reference in New Issue
Block a user