[gtk+] listbox: Don't queue draws on the entire widget



commit 36c0c9d0b86a1a33728a7a680c824589eb853106
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Sun Aug 2 12:36:28 2015 -0700

    listbox: Don't queue draws on the entire widget
    
    The set_state_flags code should already queue redraws when needed.

 gtk/gtklistbox.c |    5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)
---
diff --git a/gtk/gtklistbox.c b/gtk/gtklistbox.c
index 8f3926d..e6846d2 100644
--- a/gtk/gtklistbox.c
+++ b/gtk/gtklistbox.c
@@ -1492,8 +1492,6 @@ gtk_list_box_row_set_selected (GtkListBoxRow *row,
         gtk_widget_unset_state_flags (GTK_WIDGET (row),
                                       GTK_STATE_FLAG_SELECTED);
 
-      gtk_widget_queue_draw (GTK_WIDGET (row));
-
       return TRUE;
     }
 
@@ -1725,8 +1723,6 @@ gtk_list_box_update_prelight (GtkListBox    *box,
         {
           priv->prelight_row = NULL;
         }
-
-      gtk_widget_queue_draw (GTK_WIDGET (box));
     }
 }
 
@@ -1749,7 +1745,6 @@ gtk_list_box_update_active (GtkListBox    *box,
       else
         gtk_widget_unset_state_flags (GTK_WIDGET (priv->active_row),
                                       GTK_STATE_FLAG_ACTIVE);
-      gtk_widget_queue_draw (GTK_WIDGET (box));
     }
 }
 



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