We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 07856a9 commit 5c38f4eCopy full SHA for 5c38f4e
1 file changed
src/Widgets/PanelLabel.vala
@@ -26,8 +26,6 @@ public class DateTime.Widgets.PanelLabel : Gtk.Box {
26
public bool clock_show_seconds { get; set; }
27
public bool clock_show_weekday { get; set; }
28
29
- private Gtk.GestureMultiPress gesture_click;
30
-
31
construct {
32
date_label = new Gtk.Label (null) {
33
margin_end = 12
@@ -60,10 +58,11 @@ public class DateTime.Widgets.PanelLabel : Gtk.Box {
60
58
time_manager.minute_changed.connect (update_labels);
61
59
time_manager.notify["is-12h"].connect (update_labels);
62
63
- gesture_click = new Gtk.GestureMultiPress (this) {
+ var gesture_click = new Gtk.GestureClick () {
64
button = Gdk.BUTTON_MIDDLE
65
};
66
gesture_click.pressed.connect (on_pressed);
+ add_controller (gesture_click);
67
}
68
69
private void update_labels () {
0 commit comments