Skip to content

Commit 5c38f4e

Browse files
committed
PanelLabel: Finish GTK4 port
1 parent 07856a9 commit 5c38f4e

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/Widgets/PanelLabel.vala

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@ public class DateTime.Widgets.PanelLabel : Gtk.Box {
2626
public bool clock_show_seconds { get; set; }
2727
public bool clock_show_weekday { get; set; }
2828

29-
private Gtk.GestureMultiPress gesture_click;
30-
3129
construct {
3230
date_label = new Gtk.Label (null) {
3331
margin_end = 12
@@ -60,10 +58,11 @@ public class DateTime.Widgets.PanelLabel : Gtk.Box {
6058
time_manager.minute_changed.connect (update_labels);
6159
time_manager.notify["is-12h"].connect (update_labels);
6260

63-
gesture_click = new Gtk.GestureMultiPress (this) {
61+
var gesture_click = new Gtk.GestureClick () {
6462
button = Gdk.BUTTON_MIDDLE
6563
};
6664
gesture_click.pressed.connect (on_pressed);
65+
add_controller (gesture_click);
6766
}
6867

6968
private void update_labels () {

0 commit comments

Comments
 (0)