[gimp] Use an RGBA colormap so rounded corners work



commit 0c58ffe680fafb69a67072ac94270321de5d77ae
Author: Michael Natterer <mitch gimp org>
Date:   Sun Oct 18 22:53:26 2009 +0200

    Use an RGBA colormap so rounded corners work

 app/widgets/gimptooloverlay.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/app/widgets/gimptooloverlay.c b/app/widgets/gimptooloverlay.c
index 1bf2e81..44a4566 100644
--- a/app/widgets/gimptooloverlay.c
+++ b/app/widgets/gimptooloverlay.c
@@ -112,14 +112,12 @@ static void
 gimp_tool_overlay_init (GimpToolOverlay *overlay)
 {
   GtkWidget   *widget = GTK_WIDGET (overlay);
-#if 0
   GdkScreen   *screen = gtk_widget_get_screen (widget);
   GdkColormap *rgba   = gdk_screen_get_rgba_colormap (screen);
 
-  g_assert (gdk_screen_get_rgba_visual (screen) != NULL);
+  if (rgba)
+    gtk_widget_set_colormap (widget, rgba);
 
-  gtk_widget_set_colormap (widget, rgba);
-#endif
   gtk_widget_set_app_paintable (widget, TRUE);
 
   overlay->action_area = gtk_hbutton_box_new ();



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]