Skip to content

Commit e19ed8a

Browse files
committed
Fix Granite style class deprecations
1 parent b9f6b9a commit e19ed8a

3 files changed

Lines changed: 7 additions & 6 deletions

File tree

src/Views/Appearance.vala

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -450,8 +450,7 @@ public class PantheonShell.Appearance : Switchboard.SettingsPage {
450450
overlay.add_overlay (dock);
451451
overlay.add_overlay (window_back);
452452
overlay.add_overlay (window_front);
453-
overlay.add_css_class (Granite.STYLE_CLASS_CARD);
454-
overlay.add_css_class (Granite.STYLE_CLASS_ROUNDED);
453+
overlay.add_css_class (Granite.CssClass.CARD);
455454

456455
var monitor = Gdk.Display.get_default ().get_monitor_at_surface (
457456
(((Gtk.Application) Application.get_default ()).active_window).get_surface ()

src/Views/Wallpaper.vala

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,12 @@ public class PantheonShell.Wallpaper : Switchboard.SettingsPage {
113113
var box = new Gtk.Box (VERTICAL, 0);
114114
box.append (view_overlay);
115115
box.append (actionbar);
116-
box.add_css_class (Granite.STYLE_CLASS_FRAME);
117116

118-
child = box;
117+
var frame = new Gtk.Frame (null) {
118+
child = box
119+
};
120+
121+
child = frame;
119122
add_css_class ("wallpaper");
120123

121124
add_wallpaper_button.clicked.connect (show_wallpaper_chooser);

src/Widgets/WallpaperContainer.vala

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,7 @@ public class PantheonShell.WallpaperContainer : Gtk.FlowBoxChild {
7474
content_fit = COVER,
7575
height_request = THUMB_HEIGHT
7676
};
77-
image.add_css_class (Granite.STYLE_CLASS_CARD);
78-
image.add_css_class (Granite.STYLE_CLASS_ROUNDED);
77+
image.add_css_class (Granite.CssClass.CARD);
7978

8079
var check = new Gtk.CheckButton () {
8180
active = true,

0 commit comments

Comments
 (0)