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.
This commit is contained in:
Benjamin Otte 2014-10-02 04:15:57 +02:00
parent 93aeb63f0c
commit b547c0319a

View File

@ -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 */