Skip to content

Commit eb228ef

Browse files
authored
demo: Replace deprecated Granite.STYLE_CLASS_FRAME (#913)
1 parent a1f76ec commit eb228ef

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

demo/Views/HyperTextViewGrid.vala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ public class HyperTextViewGrid : DemoPage {
2727
var hypertext_scrolled_window = new Gtk.ScrolledWindow () {
2828
height_request = 300,
2929
width_request = 600,
30-
child = hypertext_textview
30+
child = hypertext_textview,
31+
has_frame = true
3132
};
32-
hypertext_scrolled_window.add_css_class (Granite.STYLE_CLASS_FRAME);
3333

3434
var box = new Granite.Box (VERTICAL, NONE) {
3535
halign = CENTER,

demo/Views/WelcomeView.vala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public class WelcomeView : DemoPage {
4545
margin_start = 12
4646
};
4747
listbox.set_placeholder (search_placeholder);
48-
listbox.add_css_class (Granite.STYLE_CLASS_FRAME);
48+
listbox.add_css_class (Granite.CssClass.CARD);
4949

5050
var search_entry = new Gtk.SearchEntry () {
5151
margin_top = 12,

0 commit comments

Comments
 (0)