[gtk+/rendering-cleanup-next: 38/153] treeview: Do not put different windows in else if branches anymore



commit ac0f9251bc7599cbf34fac6e1911d389494a2daf
Author: Benjamin Otte <otte redhat com>
Date:   Mon Sep 6 13:31:33 2010 +0200

    treeview: Do not put different windows in else if branches anymore

 gtk/gtktreeview.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtktreeview.c b/gtk/gtktreeview.c
index a29cb19..0c563fe 100644
--- a/gtk/gtktreeview.c
+++ b/gtk/gtktreeview.c
@@ -5077,7 +5077,7 @@ gtk_tree_view_expose (GtkWidget      *widget,
       return retval;
     }
 
-  else if (event->window == tree_view->priv->header_window)
+  if (event->window == tree_view->priv->header_window)
     {
       GList *list;
       
@@ -5094,12 +5094,14 @@ gtk_tree_view_expose (GtkWidget      *widget,
 					    event);
 	}
     }
-  else if (event->window == tree_view->priv->drag_window)
+  
+  if (event->window == tree_view->priv->drag_window)
     {
       gtk_container_propagate_expose (GTK_CONTAINER (tree_view),
 				      tree_view->priv->drag_column->button,
 				      event);
     }
+
   return TRUE;
 }
 



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