Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 916593 - sys-process/gnome-usage-45.0 : speedometer.vala:76.9-76.37: error: The name `load_from_string' does not exist in the context of `Gtk.CssProvider' (gtk4)
Summary: sys-process/gnome-usage-45.0 : speedometer.vala:76.9-76.37: error: The name `...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-10-31 22:20 UTC by Adrien D
Modified: 2023-11-01 18:44 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,20.49 KB, text/x-log)
2023-10-31 22:21 UTC, Adrien D
Details
emerge --info (emerge-info.log,6.90 KB, text/x-log)
2023-10-31 22:22 UTC, Adrien D
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Adrien D 2023-10-31 22:20:24 UTC
Compilation fail for sys-process/gnome-usage-45.0

../gnome-usage-45.0/src/graph.vala:84.9-84.30: warning: `Gtk.Widget.get_style_context' has been deprecated since 4.10
   84 |         this.get_style_context ().lookup_color ("accent_color", out color);
      |         ^~~~~~~~~~~~~~~~~~~~~~                                             
../gnome-usage-45.0/src/performance-graph-view.vala:56.5-56.25: warning: Usage.PerformanceGraphView.add_graph hides inherited method `Usage.GraphView.add_graph'. Use the `new' keyword if hiding was intentional
   56 |     public void add_graph (Graph graph) {
      |     ^~~~~~~~~~~~~~~~~~~~~                
../gnome-usage-45.0/src/speedometer.vala:76.9-76.37: error: The name `load_from_string' does not exist in the context of `Gtk.CssProvider' (gtk4)
   76 |         css_provider.load_from_string (css);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~       
../gnome-usage-45.0/src/speedometer.vala:51.9-51.31: warning: `Gtk.Widget.get_style_context' has been deprecated since 4.10
   51 |         inner.get_style_context ().add_provider (css_provider,
      |         ^~~~~~~~~~~~~~~~~~~~~~~                               
../gnome-usage-45.0/src/storage/storage-view-row.vala:116.9-116.29: warning: `Gtk.Widget.get_style_context' has been deprecated since 4.10
  116 |         tag.get_style_context ().add_provider (css_provider, Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION);
      |         ^~~~~~~~~~~~~~~~~~~~~                                                                         
../gnome-usage-45.0/src/storage/storage-view-row.vala:123.9-123.37: error: The name `load_from_string' does not exist in the context of `Gtk.CssProvider' (gtk4)
  123 |         css_provider.load_from_string (css);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~       
../gnome-usage-45.0/src/storage/storage-graph.vala:80.9-80.25: warning: `Gtk.Widget.get_style_context' has been deprecated since 4.10
   80 |         get_style_context ().lookup_color ("window_bg_color", out background_color);
      |         ^~~~~~~~~~~~~~~~~                                                           
../gnome-usage-45.0/src/storage/storage-graph.vala:193.9-193.25: warning: `Gtk.Widget.get_style_context' has been deprecated since 4.10
  193 |         get_style_context ().render_layout (context, x, y, layout);
      |         ^~~~~~~~~~~~~~~~~                                          
Compilation failed: 2 error(s), 6 warning(s)
ninja: build stopped: subcommand failed.


Reproducible: Always

Steps to Reproduce:
1. emerge sys-process/gnome-usage
Comment 1 Adrien D 2023-10-31 22:21:58 UTC
Created attachment 873796 [details]
build.log
Comment 2 Adrien D 2023-10-31 22:22:18 UTC
Created attachment 873797 [details]
emerge --info