From cf8018bc621545ecf79a90efd81bdb7655e3635b Mon Sep 17 00:00:00 2001 From: Alex Valavanis Date: Sat, 3 Mar 2012 17:40:55 +0000 Subject: Remove some deprecated GDK symbols (bzr r11043) --- src/widgets/sp-color-slider.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/widgets') diff --git a/src/widgets/sp-color-slider.cpp b/src/widgets/sp-color-slider.cpp index 8d07e153c..5ec6d57df 100644 --- a/src/widgets/sp-color-slider.cpp +++ b/src/widgets/sp-color-slider.cpp @@ -195,8 +195,8 @@ sp_color_slider_realize (GtkWidget *widget) attributes.width = allocation.width; attributes.height = allocation.height; attributes.wclass = GDK_INPUT_OUTPUT; - attributes.visual = gdk_rgb_get_visual (); - attributes.colormap = gdk_rgb_get_cmap (); + attributes.visual = gdk_screen_get_system_visual(gdk_screen_get_default()); + attributes.colormap = gdk_screen_get_system_colormap(gdk_screen_get_default()); attributes.event_mask = gtk_widget_get_events (widget); attributes.event_mask |= (GDK_EXPOSURE_MASK | GDK_BUTTON_PRESS_MASK | -- cgit v1.2.3