Skip to content

Commit

Permalink
Try to disable themeing in GTK 2+
Browse files Browse the repository at this point in the history
  • Loading branch information
megastep committed May 12, 2015
1 parent 24f7fc1 commit 3b71613
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
8 changes: 7 additions & 1 deletion gtk_ui.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down
10 changes: 8 additions & 2 deletions uninstall_ui.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 3b71613

Please sign in to comment.