summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/nautilus-canvas-container.c2
-rw-r--r--src/nautilus-canvas-item.c2
-rw-r--r--src/nautilus-properties-window.c2
3 files changed, 6 insertions, 0 deletions
diff --git a/src/nautilus-canvas-container.c b/src/nautilus-canvas-container.c
index 26b21e7e1..c40f53f93 100644
--- a/src/nautilus-canvas-container.c
+++ b/src/nautilus-canvas-container.c
@@ -2717,8 +2717,10 @@ get_rubber_color (NautilusCanvasContainer *container,
gtk_style_context_save (context);
gtk_style_context_add_class (context, GTK_STYLE_CLASS_RUBBERBAND);
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
gtk_style_context_get_background_color (context, GTK_STATE_FLAG_NORMAL, bgcolor);
gtk_style_context_get_border_color (context, GTK_STATE_FLAG_NORMAL, bordercolor);
+G_GNUC_END_IGNORE_DEPRECATIONS
gtk_style_context_restore (context);
}
diff --git a/src/nautilus-canvas-item.c b/src/nautilus-canvas-item.c
index a103d34a4..bc982769d 100644
--- a/src/nautilus-canvas-item.c
+++ b/src/nautilus-canvas-item.c
@@ -1299,6 +1299,7 @@ real_map_surface (NautilusCanvasItem *canvas_item)
{
style = gtk_widget_get_style_context (GTK_WIDGET (canvas));
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
if (gtk_widget_has_focus (GTK_WIDGET (canvas)))
{
gtk_style_context_get_background_color (style, GTK_STATE_FLAG_SELECTED, &color);
@@ -1307,6 +1308,7 @@ real_map_surface (NautilusCanvasItem *canvas_item)
{
gtk_style_context_get_background_color (style, GTK_STATE_FLAG_ACTIVE, &color);
}
+G_GNUC_END_IGNORE_DEPRECATIONS
old_pixbuf = temp_pixbuf;
temp_pixbuf = eel_create_colorized_pixbuf (temp_pixbuf, &color);
diff --git a/src/nautilus-properties-window.c b/src/nautilus-properties-window.c
index 769c4f5ba..574f023fb 100644
--- a/src/nautilus-properties-window.c
+++ b/src/nautilus-properties-window.c
@@ -2882,11 +2882,13 @@ paint_slice (GtkWidget *widget,
state = gtk_style_context_get_state (context);
gtk_style_context_get_border (context, state, &border);
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
gtk_style_context_save (context);
gtk_style_context_add_class (context, style_class);
gtk_style_context_get_background_color (context, state, &fill);
gtk_style_context_get_border_color (context, state, &stroke);
gtk_style_context_restore (context);
+G_GNUC_END_IGNORE_DEPRECATIONS
width = gtk_widget_get_allocated_width (widget);
height = gtk_widget_get_allocated_height (widget);