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



commit 2633fc82134b849e9c6b48a3a46ce649218579c9
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 2b3a53b..1fe5e5a 100644
--- a/gtk/gtkspinner.c
+++ b/gtk/gtkspinner.c
@@ -76,8 +76,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,
@@ -109,7 +107,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;
 
@@ -315,26 +312,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]