[gtk+/rendering-cleanup: 101/141] spinner: We're a no-window widget, so setting a colormap does nothing



commit bff35afbdf5db01cd60772094bed50663763f250
Author: Benjamin Otte <otte redhat com>
Date:   Sat Aug 28 16:51:52 2010 +0200

    spinner: We're a no-window widget, so setting a colormap does nothing

 gtk/gtkspinner.c |   23 -----------------------
 1 files changed, 0 insertions(+), 23 deletions(-)
---
diff --git a/gtk/gtkspinner.c b/gtk/gtkspinner.c
index 8bdf32b..344fb1f 100644
--- a/gtk/gtkspinner.c
+++ b/gtk/gtkspinner.c
@@ -75,8 +75,6 @@ static void gtk_spinner_realize        (GtkWidget       *widget);
 static void gtk_spinner_unrealize      (GtkWidget       *widget);
 static gboolean gtk_spinner_expose     (GtkWidget       *widget,
                                         GdkEventExpose  *event);
-static void gtk_spinner_screen_changed (GtkWidget       *widget,
-                                        GdkScreen       *old_screen);
 static void gtk_spinner_style_set      (GtkWidget       *widget,
                                         GtkStyle        *prev_style);
 static void gtk_spinner_get_property   (GObject         *object,
@@ -113,7 +111,6 @@ gtk_spinner_class_init (GtkSpinnerClass *klass)
   widget_class->expose_event = gtk_spinner_expose;
   widget_class->realize = gtk_spinner_realize;
   widget_class->unrealize = gtk_spinner_unrealize;
-  widget_class->screen_changed = gtk_spinner_screen_changed;
   widget_class->style_set = gtk_spinner_style_set;
   widget_class->get_accessible = gtk_spinner_get_accessible;
 
@@ -348,26 +345,6 @@ gtk_spinner_unrealize (GtkWidget *widget)
 }
 
 static void
-gtk_spinner_screen_changed (GtkWidget* widget, GdkScreen* old_screen)
-{
-  GtkSpinner *spinner;
-  GdkScreen* new_screen;
-  GdkColormap* colormap;
-
-  spinner = GTK_SPINNER (widget);
-
-  new_screen = gtk_widget_get_screen (widget);
-  colormap = gdk_screen_get_rgba_colormap (new_screen);
-
-  if (!colormap)
-    {
-      colormap = gdk_screen_get_default_colormap (new_screen);
-    }
-
-  gtk_widget_set_colormap (widget, colormap);
-}
-
-static void
 gtk_spinner_style_set (GtkWidget *widget,
                        GtkStyle  *prev_style)
 {



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