mirror of
https://gitlab.freedesktop.org/dabrain34/GstPipelineStudio.git
synced 2024-11-22 00:50:59 +00:00
graphview: use gtk::style_context_add_provider_for_display
gtk::StyleContext::add_provider_for_display is now deprecated since gtk update to 0.7.2
This commit is contained in:
parent
375f083cbf
commit
eda453df53
1 changed files with 1 additions and 1 deletions
|
@ -477,7 +477,7 @@ impl GraphView {
|
||||||
// Load CSS from the STYLE variable.
|
// Load CSS from the STYLE variable.
|
||||||
let provider = gtk::CssProvider::new();
|
let provider = gtk::CssProvider::new();
|
||||||
provider.load_from_data(GRAPHVIEW_STYLE);
|
provider.load_from_data(GRAPHVIEW_STYLE);
|
||||||
gtk::StyleContext::add_provider_for_display(
|
gtk::style_context_add_provider_for_display(
|
||||||
>k::gdk::Display::default().expect("Error initializing gtk css provider."),
|
>k::gdk::Display::default().expect("Error initializing gtk css provider."),
|
||||||
&provider,
|
&provider,
|
||||||
gtk::STYLE_PROVIDER_PRIORITY_APPLICATION,
|
gtk::STYLE_PROVIDER_PRIORITY_APPLICATION,
|
||||||
|
|
Loading…
Reference in a new issue