mirror of
https://github.com/zoriya/astal.git
synced 2026-06-06 03:12:12 +00:00
fix enum values
when the first member is assigned 0, vala assigns 0 to the next member regardless
This commit is contained in:
@@ -33,7 +33,7 @@ public class Button : Gtk.Button {
|
||||
}
|
||||
|
||||
public enum MouseButton {
|
||||
PRIMARY = 0,
|
||||
PRIMARY,
|
||||
MIDDLE,
|
||||
SECONDARY,
|
||||
BACK,
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user