[libshumate] marker-layer: Initialize `mode` property correctly



commit 1af3450a5ef91795a1f8f5da0eeb70b79290ca91
Author: James Westman <james jwestman net>
Date:   Tue Feb 16 19:03:22 2021 -0600

    marker-layer: Initialize `mode` property correctly
    
    It was being initialized to GTK_TYPE_SELECTION_MODE rather than
    GTK_SELECTION_NONE.

 shumate/shumate-marker-layer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/shumate/shumate-marker-layer.c b/shumate/shumate-marker-layer.c
index 44c838a..8ef55e2 100644
--- a/shumate/shumate-marker-layer.c
+++ b/shumate/shumate-marker-layer.c
@@ -328,7 +328,7 @@ shumate_marker_layer_init (ShumateMarkerLayer *self)
   ShumateMarkerLayerPrivate *priv = shumate_marker_layer_get_instance_private (self);
   GtkGesture *click_gesture;
 
-  priv->mode = GTK_TYPE_SELECTION_MODE;
+  priv->mode = GTK_SELECTION_NONE;
 
   click_gesture = gtk_gesture_click_new ();
   gtk_widget_add_controller (GTK_WIDGET (self), GTK_EVENT_CONTROLLER (click_gesture));


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]