Commit 784f8509 authored by Federico Mena Quintero's avatar Federico Mena Quintero Committed by Arturo Espinosa

Destroy the pixmap in the widget style before setting the new style. This

1998-06-03  Federico Mena Quintero  <federico@nuclecu.unam.mx>

	* panel-widget.c (panel_try_to_set_back_color): Destroy the pixmap
	in the widget style before setting the new style.  This fixes the
	bug where dragging a color onto the panel after a pixmap was set
	did not update the panel.
parent aec5c6ee
1998-06-03 Federico Mena Quintero <federico@nuclecu.unam.mx>
* panel-widget.c (panel_try_to_set_back_color): Destroy the pixmap
in the widget style before setting the new style. This fixes the
bug where dragging a color onto the panel after a pixmap was set
did not update the panel.
* panel.c (show_applet_menu): Use the event's time to make the
menu popup work correctly.
......
1998-06-03 Federico Mena Quintero <federico@nuclecu.unam.mx>
* panel-widget.c (panel_try_to_set_back_color): Destroy the pixmap
in the widget style before setting the new style. This fixes the
bug where dragging a color onto the panel after a pixmap was set
did not update the panel.
* panel.c (show_applet_menu): Use the event's time to make the
menu popup work correctly.
......
......@@ -1803,14 +1803,16 @@ panel_try_to_set_back_color(PanelWidget *panel, GdkColor *color)
ns->bg[GTK_STATE_NORMAL] = panel->back_color = *color;
ns->bg[GTK_STATE_NORMAL].pixel = panel->back_color.pixel = 1; /* bogus */
gtk_widget_set_style(panel->fixed, ns);
if(ns->bg_pixmap[GTK_STATE_NORMAL]) {
gdk_imlib_free_pixmap(ns->bg_pixmap[GTK_STATE_NORMAL]);
ns->bg_pixmap[GTK_STATE_NORMAL] = NULL;
}
gtk_widget_set_style(panel->fixed, ns);
g_free(panel->back_pixmap); panel->back_pixmap = NULL;
gtk_style_unref(ns);
gtk_widget_queue_draw(GTK_WIDGET(panel));
}
static void
......
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