Skip to content

Commit 187a975

Browse files
sc0wlukefromdc
authored andcommitted
math-display: avoid deprecated 'gtk_widget_modify_bg'
based in the gnome-calculator commit: https://gitlab.gnome.org/GNOME/gnome-calculator/commit/a6e6a1d94a36950df8776e38218fe349a9818ae5
1 parent bba427d commit 187a975

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

src/math-display.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -326,8 +326,6 @@ create_gui(MathDisplay *display)
326326
{
327327
GtkWidget *info_view, *info_box, *main_box;
328328
PangoFontDescription *font_desc;
329-
int i;
330-
GtkStyle *style;
331329

332330
main_box = gtk_box_new(GTK_ORIENTATION_VERTICAL, 0);
333331
gtk_container_add(GTK_CONTAINER(display), main_box);
@@ -368,10 +366,6 @@ create_gui(MathDisplay *display)
368366

369367
display->priv->spinner = gtk_spinner_new();
370368
gtk_box_pack_end(GTK_BOX(info_box), display->priv->spinner, FALSE, FALSE, 0);
371-
style = gtk_widget_get_style(info_view);
372-
for (i = 0; i < 5; i++) {
373-
gtk_widget_modify_bg(GTK_WIDGET(display), i, &style->base[i]);
374-
}
375369

376370
gtk_widget_show(info_box);
377371
gtk_widget_show(info_view);

0 commit comments

Comments
 (0)