project: Port GdkScreen to GdkDisplay
API looks about the same, just switching to 'display'.
This commit is contained in:
parent
6ee8b77b95
commit
8c170d11a2
2 changed files with 6 additions and 6 deletions
|
@ -1019,9 +1019,9 @@ mct_user_controls_init (MctUserControls *self)
|
|||
provider = gtk_css_provider_new ();
|
||||
gtk_css_provider_load_from_resource (provider,
|
||||
"/org/freedesktop/MalcontentUi/ui/restricts-switch.css");
|
||||
gtk_style_context_add_provider_for_screen (gdk_screen_get_default (),
|
||||
GTK_STYLE_PROVIDER (provider),
|
||||
GTK_STYLE_PROVIDER_PRIORITY_APPLICATION - 1);
|
||||
gtk_style_context_add_provider_for_display (gdk_display_get_default (),
|
||||
GTK_STYLE_PROVIDER (provider),
|
||||
GTK_STYLE_PROVIDER_PRIORITY_APPLICATION - 1);
|
||||
|
||||
self->selected_age = (guint) -1;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue