Commit d9322ada authored by Matthias Clasen's avatar Matthias Clasen Committed by Matthias Clasen

Get rid of this function, instead show the bin_window when it is created.

2005-04-29  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkiconview.c (gtk_icon_view_map): Get rid of this
	function, instead show the bin_window when it is created.
parent 6f2f51ef
2005-04-29 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkiconview.c (gtk_icon_view_map): Get rid of this
function, instead show the bin_window when it is created.
* gtk/gtkradiobutton.c (gtk_radio_button_focus): Don't
grab focus to unrealized widgets. (#302240, Philip Langdale)
......
2005-04-29 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkiconview.c (gtk_icon_view_map): Get rid of this
function, instead show the bin_window when it is created.
* gtk/gtkradiobutton.c (gtk_radio_button_focus): Don't
grab focus to unrealized widgets. (#302240, Philip Langdale)
......
2005-04-29 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkiconview.c (gtk_icon_view_map): Get rid of this
function, instead show the bin_window when it is created.
* gtk/gtkradiobutton.c (gtk_radio_button_focus): Don't
grab focus to unrealized widgets. (#302240, Philip Langdale)
......
......@@ -175,7 +175,6 @@ static void gtk_icon_view_destroy (GtkObject *object);
/* GtkWidget signals */
static void gtk_icon_view_realize (GtkWidget *widget);
static void gtk_icon_view_unrealize (GtkWidget *widget);
static void gtk_icon_view_map (GtkWidget *widget);
static void gtk_icon_view_size_request (GtkWidget *widget,
GtkRequisition *requisition);
static void gtk_icon_view_size_allocate (GtkWidget *widget,
......@@ -303,7 +302,6 @@ gtk_icon_view_class_init (GtkIconViewClass *klass)
widget_class->realize = gtk_icon_view_realize;
widget_class->unrealize = gtk_icon_view_unrealize;
widget_class->map = gtk_icon_view_map;
widget_class->size_request = gtk_icon_view_size_request;
widget_class->size_allocate = gtk_icon_view_size_allocate;
widget_class->expose_event = gtk_icon_view_expose;
......@@ -906,6 +904,8 @@ gtk_icon_view_realize (GtkWidget *widget)
widget->style = gtk_style_attach (widget->style, widget->window);
gdk_window_set_background (icon_view->priv->bin_window, &widget->style->base[widget->state]);
gdk_window_set_background (widget->window, &widget->style->base[widget->state]);
gdk_window_show (icon_view->priv->bin_window);
}
static void
......@@ -924,19 +924,6 @@ gtk_icon_view_unrealize (GtkWidget *widget)
(* GTK_WIDGET_CLASS (parent_class)->unrealize) (widget);
}
static void
gtk_icon_view_map (GtkWidget *widget)
{
GtkIconView *icon_view;
icon_view = GTK_ICON_VIEW (widget);
GTK_WIDGET_SET_FLAGS (widget, GTK_MAPPED);
gdk_window_show (icon_view->priv->bin_window);
gdk_window_show (widget->window);
}
static void
gtk_icon_view_size_request (GtkWidget *widget,
GtkRequisition *requisition)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment