summaryrefslogtreecommitdiff
path: root/core/src/widget
diff options
context:
space:
mode:
authorAylur <[email protected]>2024-09-02 17:21:26 +0000
committerAylur <[email protected]>2024-09-02 17:21:26 +0000
commitd9a514a6e59c839d2779c06f0fafb640802068f7 (patch)
treeb5e60ef9e1711210b26f5cb9cca1e726dfe91ef6 /core/src/widget
parentf5d5376ff90b7fef5016fef23d832c9929399785 (diff)
fix enum values
when the first member is assigned 0, vala assigns 0 to the next member regardless
Diffstat (limited to 'core/src/widget')
-rw-r--r--core/src/widget/button.vala2
-rw-r--r--core/src/widget/icon.vala2
2 files changed, 2 insertions, 2 deletions
diff --git a/core/src/widget/button.vala b/core/src/widget/button.vala
index 036bc8e..4d1f467 100644
--- a/core/src/widget/button.vala
+++ b/core/src/widget/button.vala
@@ -33,7 +33,7 @@ public class Button : Gtk.Button {
}
public enum MouseButton {
- PRIMARY = 0,
+ PRIMARY,
MIDDLE,
SECONDARY,
BACK,
diff --git a/core/src/widget/icon.vala b/core/src/widget/icon.vala
index ccd20f3..4f1c7f1 100644
--- a/core/src/widget/icon.vala
+++ b/core/src/widget/icon.vala
@@ -81,7 +81,7 @@ public class Icon : Gtk.Image {
type = IconType.GICON;
display_icon.begin();
});
-
+
size_allocate.connect(() => {
size = get_style_context()
.get_property("font-size", Gtk.StateFlags.NORMAL).get_double();