fix enum values

when the first member is assigned 0, vala assigns 0 to the next member
regardless
This commit is contained in:
Aylur
2024-09-02 17:21:26 +00:00
parent f5d5376ff9
commit d9a514a6e5
3 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -33,7 +33,7 @@ public class Button : Gtk.Button {
}
public enum MouseButton {
PRIMARY = 0,
PRIMARY,
MIDDLE,
SECONDARY,
BACK,
+1 -1
View File
@@ -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();