mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
libsysprof-gtk: ensure resources are pulled in for CSS
This commit is contained in:
@ -20,6 +20,8 @@
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include "libsysprof-gtk-resources.h"
|
||||
|
||||
#include "sysprof-css-private.h"
|
||||
|
||||
void
|
||||
@ -29,6 +31,8 @@ _sysprof_css_init (void)
|
||||
|
||||
if (css == NULL)
|
||||
{
|
||||
g_resources_register (libsysprof_gtk_get_resource ());
|
||||
|
||||
css = gtk_css_provider_new ();
|
||||
gtk_css_provider_load_from_resource (css, "/libsysprof-gtk/style.css");
|
||||
gtk_style_context_add_provider_for_display (gdk_display_get_default (),
|
||||
|
||||
Reference in New Issue
Block a user