From b547c0319a8fbce21a383c8fe1af1f4a2aca72ac Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Thu, 2 Oct 2014 04:15:57 +0200 Subject: [PATCH] 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 file changed, 15 deletions(-) diff --git a/gtk/gtkentrycompletion.c b/gtk/gtkentrycompletion.c index 5ab09d99f3..3969e614bb 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 */