From 187a975d0677111d27ba3c0045e2eaa7b9325e02 Mon Sep 17 00:00:00 2001 From: Pablo Barciela Date: Wed, 30 Jan 2019 16:45:36 +0100 Subject: math-display: avoid deprecated 'gtk_widget_modify_bg' based in the gnome-calculator commit: https://gitlab.gnome.org/GNOME/gnome-calculator/commit/a6e6a1d94a36950df8776e38218fe349a9818ae5 --- src/math-display.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/math-display.c b/src/math-display.c index c8c5d0f..d61f07f 100644 --- a/src/math-display.c +++ b/src/math-display.c @@ -326,8 +326,6 @@ create_gui(MathDisplay *display) { GtkWidget *info_view, *info_box, *main_box; PangoFontDescription *font_desc; - int i; - GtkStyle *style; main_box = gtk_box_new(GTK_ORIENTATION_VERTICAL, 0); gtk_container_add(GTK_CONTAINER(display), main_box); @@ -368,10 +366,6 @@ create_gui(MathDisplay *display) display->priv->spinner = gtk_spinner_new(); gtk_box_pack_end(GTK_BOX(info_box), display->priv->spinner, FALSE, FALSE, 0); - style = gtk_widget_get_style(info_view); - for (i = 0; i < 5; i++) { - gtk_widget_modify_bg(GTK_WIDGET(display), i, &style->base[i]); - } gtk_widget_show(info_box); gtk_widget_show(info_view); -- cgit v1.2.1