[gnome-panel] panel: Fix display corruption in objects after moving them
- From: Vincent Untz <vuntz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-panel] panel: Fix display corruption in objects after moving them
- Date: Fri, 1 Apr 2011 10:43:38 +0000 (UTC)
commit 7a1bd25759b3f3bfc91e5c8e568dee3528eda10c
Author: Vincent Untz <vuntz gnome org>
Date: Thu Mar 31 10:11:56 2011 +0530
panel: Fix display corruption in objects after moving them
We have to queue a draw for the object to make sure it will be correctly
displayed.
gnome-panel/panel-widget.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/gnome-panel/panel-widget.c b/gnome-panel/panel-widget.c
index add14dc..c17869c 100644
--- a/gnome-panel/panel-widget.c
+++ b/gnome-panel/panel-widget.c
@@ -107,6 +107,10 @@ static void
emit_applet_moved (PanelWidget *panel_widget,
AppletData *applet)
{
+ /* we always want to queue a draw after moving, so do it here instead
+ * of after the signal emission in all callers */
+ gtk_widget_queue_draw (applet->applet);
+
g_signal_emit (panel_widget,
panel_widget_signals [APPLET_MOVE_SIGNAL], 0,
applet->applet);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]