[libadwaita/wip/exalm/tab-hover: 1/3] tab: Remove hover state handling




commit e289971719e3d29ffc28928b0b2bb5f7a2d2e333
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Sun Oct 24 01:23:25 2021 +0500

    tab: Remove hover state handling
    
    Fixes https://gitlab.gnome.org/GNOME/libadwaita/-/issues/168

 src/adw-tab.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
---
diff --git a/src/adw-tab.c b/src/adw-tab.c
index c295c3b5..16d24e5b 100644
--- a/src/adw-tab.c
+++ b/src/adw-tab.c
@@ -110,10 +110,7 @@ update_state (AdwTab *self)
   gboolean show_close;
 
   new_state = gtk_widget_get_state_flags (GTK_WIDGET (self)) &
-    ~(GTK_STATE_FLAG_PRELIGHT | GTK_STATE_FLAG_CHECKED);
-
-  if (self->dragging)
-    new_state |= GTK_STATE_FLAG_PRELIGHT;
+    ~GTK_STATE_FLAG_CHECKED;
 
   if (self->selected || self->dragging)
     new_state |= GTK_STATE_FLAG_CHECKED;


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