[gnome-builder/wip/gtk4-port: 394/1774] libide/gui: dont allow targeting preference check




commit 11d9359f399b23c09251c92ebe8ddc1b206ca62a
Author: Christian Hergert <chergert redhat com>
Date:   Tue Apr 5 16:14:54 2022 -0700

    libide/gui: dont allow targeting preference check
    
    This should be handled by the row rather than by the widget itself so that
    we can be consistent with activation.

 src/libide/gui/ide-preferences-window.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/src/libide/gui/ide-preferences-window.c b/src/libide/gui/ide-preferences-window.c
index 4f2b3dd8b..65f4cfbe3 100644
--- a/src/libide/gui/ide-preferences-window.c
+++ b/src/libide/gui/ide-preferences-window.c
@@ -1130,6 +1130,7 @@ ide_preferences_window_check (const char                   *page_name,
 
   child = g_object_new (GTK_TYPE_CHECK_BUTTON,
                         "valign", GTK_ALIGN_CENTER,
+                        "can-target", FALSE,
                         NULL);
   gtk_widget_add_css_class (child, "preferences-check");
   row = g_object_new (ADW_TYPE_ACTION_ROW,


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