[gtk+/gtk-2-24] Fix a critical warning in notebook dnd with rgba colormaps



commit 0c5877215b755f4d2bd639124a400eb471cf7d24
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Jan 20 22:07:14 2013 -0500

    Fix a critical warning in notebook dnd with rgba colormaps
    
    Pointed out by Nick Schermer in
    https://bugzilla.gnome.org/show_bug.cgi?id=690788

 gtk/gtknotebook.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtknotebook.c b/gtk/gtknotebook.c
index b203117..0770de6 100644
--- a/gtk/gtknotebook.c
+++ b/gtk/gtknotebook.c
@@ -3420,6 +3420,7 @@ gtk_notebook_drag_begin (GtkWidget        *widget,
   priv->dnd_window = gtk_window_new (GTK_WINDOW_POPUP);
   gtk_window_set_screen (GTK_WINDOW (priv->dnd_window),
                          gtk_widget_get_screen (widget));
+  gtk_widget_set_colormap (priv->dnd_window, gtk_widget_get_colormap (widget));
   gtk_container_add (GTK_CONTAINER (priv->dnd_window), tab_label);
   gtk_widget_set_size_request (priv->dnd_window,
 			       priv->detached_tab->allocation.width,



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