Permalink
Browse files

Try to disable themeing in GTK 2+

  • Loading branch information...
Stephane Peter
Stephane Peter committed May 12, 2015
1 parent 24f7fc1 commit 3b71613ca60a0ff048f11a01e4614799ded9984b
Showing with 15 additions and 3 deletions.
  1. +7 −1 gtk_ui.c
  2. +8 −2 uninstall_ui.c
View
@@ -1654,7 +1654,13 @@ static install_state gtkui_init(install_info *info, int argc, char **argv, int n
cur_state = SETUP_INIT;
cur_info = info;
gtk_set_locale();
#ifdef ENABLE_GTK2
// Turn off any themes
setenv("GTK2_RC_FILES", "", 1);
setenv("GTK_DATA_PREFIX", "", 1);
#endif
gtk_set_locale();
gtk_init(&argc,&argv);
/* Disable GLib warnings that may be triggered by libglade */
View
@@ -499,10 +499,16 @@ int uninstall_ui(int argc, char *argv[])
component_list *component_list, *addon_list;
char text[1024];
#ifdef ENABLE_GTK2
// Turn off any themes
setenv("GTK2_RC_FILES", "", 1);
setenv("GTK_DATA_PREFIX", "", 1);
#endif
gtk_init(&argc,&argv);
/* Disable GLib warnings that may be triggered by libglade */
g_log_set_handler ("libglade", G_LOG_LEVEL_WARNING | G_LOG_FLAG_RECURSION, log_handler, NULL);
/* Disable GLib warnings that may be triggered by libglade */
g_log_set_handler ("libglade", G_LOG_LEVEL_WARNING | G_LOG_FLAG_RECURSION, log_handler, NULL);
/* Initialize Glade */
glade_init();

0 comments on commit 3b71613

Please sign in to comment.