diff options
author | Timm Bäder <mail@baedert.org> | 2015-11-22 11:43:39 +0100 |
---|---|---|
committer | Timm Bäder <mail@baedert.org> | 2015-11-22 17:11:35 +0100 |
commit | 2182fe7d9d6246e7acfe4e9ef0ca26c4a6893be6 (patch) | |
tree | c683c8395a737d897ab2aabea1c97e0f0e557dfd /gtk/gtkscrolledwindow.c | |
parent | f407871b87288115fe839ffe13a86c789a44ba87 (diff) | |
download | gtk+-2182fe7d9d6246e7acfe4e9ef0ca26c4a6893be6.tar.gz |
Don't pass widget state flags to GtkStyleContext API
Diffstat (limited to 'gtk/gtkscrolledwindow.c')
-rw-r--r-- | gtk/gtkscrolledwindow.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gtk/gtkscrolledwindow.c b/gtk/gtkscrolledwindow.c index da37c0d4fb..a85083e52a 100644 --- a/gtk/gtkscrolledwindow.c +++ b/gtk/gtkscrolledwindow.c @@ -2220,7 +2220,7 @@ gtk_scrolled_window_draw_scrollbars_junction (GtkScrolledWindow *scrolled_window GtkStateFlags state; GtkBorder padding, border; - state = gtk_widget_get_state_flags (widget); + state = gtk_style_context_get_state (context); gtk_style_context_get_padding (context, state, &padding); gtk_style_context_get_border (context, state, &border); @@ -2409,7 +2409,7 @@ gtk_scrolled_window_draw (GtkWidget *widget, GtkStateFlags state; GtkBorder padding, border; - state = gtk_widget_get_state_flags (widget); + state = gtk_style_context_get_state (context); gtk_style_context_get_padding (context, state, &padding); gtk_style_context_get_border (context, state, &border); @@ -2635,7 +2635,7 @@ gtk_scrolled_window_relative_allocation (GtkWidget *widget, GtkBorder padding, border; context = gtk_widget_get_style_context (widget); - state = gtk_widget_get_state_flags (widget); + state = gtk_style_context_get_state (context); gtk_style_context_get_border (context, state, &border); gtk_style_context_get_padding (context, state, &padding); @@ -2759,7 +2759,7 @@ gtk_scrolled_window_allocate_scrollbar (GtkScrolledWindow *scrolled_window, gtk_widget_get_preferred_width (priv->vscrollbar, &sb_width, NULL); context = gtk_widget_get_style_context (widget); - state = gtk_widget_get_state_flags (widget); + state = gtk_style_context_get_state (context); gtk_widget_style_get (widget, "scrollbars-within-bevel", &scrollbars_within_bevel, NULL); gtk_style_context_get_padding (context, state, &padding); @@ -3882,7 +3882,7 @@ gtk_scrolled_window_get_preferred_size (GtkWidget *widget, GtkBorder padding, border; context = gtk_widget_get_style_context (GTK_WIDGET (widget)); - state = gtk_widget_get_state_flags (GTK_WIDGET (widget)); + state = gtk_style_context_get_state (context); gtk_style_context_get_padding (context, state, &padding); gtk_style_context_get_border (context, state, &border); |