1
0
Fork 0
forked from Miroirs/x49gp

Compare commits

...

2 commits

Author SHA1 Message Date
Gwenhael Le Moine
196b37f482
1.6.2 2024-11-27 13:32:51 +01:00
Gwenhael Le Moine
5af3287336
bugfix: user local style was never loaded 2024-11-27 13:32:05 +01:00
2 changed files with 2 additions and 2 deletions

View file

@ -3,7 +3,7 @@ TARGET_ALLCAPS = X50NG
VERSION_MAJOR = 1 VERSION_MAJOR = 1
VERSION_MINOR = 6 VERSION_MINOR = 6
PATCHLEVEL = 1 PATCHLEVEL = 2
INSTALL_PREFIX = /usr/local INSTALL_PREFIX = /usr/local
INSTALL_BINARY_DIR = "$(INSTALL_PREFIX)"/bin INSTALL_BINARY_DIR = "$(INSTALL_PREFIX)"/bin

View file

@ -1698,7 +1698,7 @@ static int ui_load( x49gp_module_t* module, GKeyFile* keyfile )
GLOBAL_DATADIR, opt.style_filename ); GLOBAL_DATADIR, opt.style_filename );
else { else {
GtkCssProvider* style_provider = gtk_css_provider_new(); GtkCssProvider* style_provider = gtk_css_provider_new();
gtk_css_provider_load_from_path( style_provider, g_build_filename( GLOBAL_DATADIR, opt.style_filename, NULL ), NULL ); gtk_css_provider_load_from_path( style_provider, style_full_path, NULL );
gtk_style_context_add_provider_for_screen( gdk_screen_get_default(), GTK_STYLE_PROVIDER( style_provider ), gtk_style_context_add_provider_for_screen( gdk_screen_get_default(), GTK_STYLE_PROVIDER( style_provider ),
GTK_STYLE_PROVIDER_PRIORITY_USER + 1 ); GTK_STYLE_PROVIDER_PRIORITY_USER + 1 );