Skip to content

Commit 6b86bd9

Browse files
UrtsiSantsisonnyp
authored andcommitted
Use 'my_custom_class" for the programmaticaly set style (#214)
The "my_custom_class" style was unused, but was meant to style the last label
1 parent c4ee997 commit 6b86bd9

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/Styling with CSS/code.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ use gtk::prelude::*;
33

44
pub fn main() {
55
let basic_label: gtk::Label = workbench::builder().object("basic_label").unwrap();
6-
basic_label.add_css_class("css_text");
6+
basic_label.add_css_class("my_custom_class");
77
}

src/Styling with CSS/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
const basic_label = workbench.builder.get_object("basic_label");
22

3-
basic_label.add_css_class("css_text");
3+
basic_label.add_css_class("my_custom_class");

src/Styling with CSS/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66

77
basic_label: Gtk.Label = workbench.builder.get_object("basic_label")
88

9-
basic_label.add_css_class("css_text")
9+
basic_label.add_css_class("my_custom_class")

src/Styling with CSS/main.vala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22

33
public void main () {
44
var basic_label = (Gtk.Label) workbench.builder.get_object ("basic_label");
5-
basic_label.add_css_class ("css_text");
5+
basic_label.add_css_class ("my_custom_class");
66
}

0 commit comments

Comments
 (0)