Skip to content
Permalink
Browse files

baobab-chart: avoid deprecated 'gtk_style_context_set_background'

  • Loading branch information...
sc0w committed Jul 14, 2018
1 parent 5fbfca9 commit 8f04ddd54813ab7871559ab6d800ed0b5726c474
Showing with 0 additions and 4 deletions.
  1. +0 −4 baobab/src/baobab-chart.c
@@ -304,7 +304,6 @@ baobab_chart_realize (GtkWidget *widget)
gint attributes_mask;
GtkAllocation allocation;
GdkWindow *window;
GtkStyleContext *context;

g_return_if_fail (BAOBAB_IS_CHART (widget));

@@ -330,9 +329,6 @@ baobab_chart_realize (GtkWidget *widget)
gtk_widget_set_window (widget, window);
gdk_window_set_user_data (window, chart);

context = gtk_widget_get_style_context (widget);
gtk_style_context_set_background (context, window);

gtk_widget_add_events (widget,
GDK_EXPOSURE_MASK | GDK_BUTTON_PRESS_MASK |
GDK_BUTTON_RELEASE_MASK | GDK_POINTER_MOTION_MASK |

0 comments on commit 8f04ddd

Please sign in to comment.
You can’t perform that action at this time.