[gtk+] entrycompletion: Remove outdated code



commit b547c0319a8fbce21a383c8fe1af1f4a2aca72ac
Author: Benjamin Otte <otte redhat com>
Date:   Thu Oct 2 04:15:57 2014 +0200

    entrycompletion: Remove outdated code
    
    I tried asking but nobody knew why it is necessary to set the background
    color of the first cell. It seems with CSS styling this is completely
    unnecessary.

 gtk/gtkentrycompletion.c |   15 ---------------
 1 files changed, 0 insertions(+), 15 deletions(-)
---
diff --git a/gtk/gtkentrycompletion.c b/gtk/gtkentrycompletion.c
index 5ab09d9..3969e61 100644
--- a/gtk/gtkentrycompletion.c
+++ b/gtk/gtkentrycompletion.c
@@ -1605,10 +1605,6 @@ _gtk_entry_completion_resize_popup (GtkEntryCompletion *completion)
 static void
 gtk_entry_completion_popup (GtkEntryCompletion *completion)
 {
-  GtkTreeViewColumn *column;
-  GtkStyleContext *context;
-  GdkRGBA color;
-  GList *renderers;
   GtkWidget *toplevel;
 
   if (gtk_widget_get_mapped (completion->priv->popup_window))
@@ -1625,17 +1621,6 @@ gtk_entry_completion_popup (GtkEntryCompletion *completion)
 
   completion->priv->ignore_enter = TRUE;
 
-  column = gtk_tree_view_get_column (GTK_TREE_VIEW (completion->priv->action_view), 0);
-  renderers = gtk_cell_layout_get_cells (GTK_CELL_LAYOUT (column));
-
-  context = gtk_widget_get_style_context (completion->priv->tree_view);
-  gtk_style_context_get_background_color (context, 0, &color);
-
-  g_object_set (GTK_CELL_RENDERER (renderers->data),
-                "cell-background-rgba", &color,
-                NULL);
-  g_list_free (renderers);
-
   gtk_widget_show_all (completion->priv->vbox);
 
   /* default on no match */


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