[gimp] app: queue a draw on the canvas in gimp_canvas_set_bg_color()
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: queue a draw on the canvas in gimp_canvas_set_bg_color()
- Date: Sat, 2 Oct 2010 19:14:42 +0000 (UTC)
commit cad95533dd8b091d830208f255abe1cba8c9f00a
Author: Michael Natterer <mitch gimp org>
Date: Sat Oct 2 21:13:31 2010 +0200
app: queue a draw on the canvas in gimp_canvas_set_bg_color()
Instead of doing it in gimp_display_shell_set_padding() from where
it's called.
app/display/gimpcanvas.c | 2 ++
app/display/gimpdisplayshell-appearance.c | 3 ---
2 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/app/display/gimpcanvas.c b/app/display/gimpcanvas.c
index a4c95ba..7fc30bc 100644
--- a/app/display/gimpcanvas.c
+++ b/app/display/gimpcanvas.c
@@ -301,4 +301,6 @@ gimp_canvas_set_bg_color (GimpCanvas *canvas,
gdk_colormap_alloc_color (colormap, &gdk_color, FALSE, TRUE);
gdk_window_set_background (gtk_widget_get_window (widget), &gdk_color);
+
+ gtk_widget_queue_draw (GTK_WIDGET (canvas));
}
diff --git a/app/display/gimpdisplayshell-appearance.c b/app/display/gimpdisplayshell-appearance.c
index 6d26989..b251c9a 100644
--- a/app/display/gimpdisplayshell-appearance.c
+++ b/app/display/gimpdisplayshell-appearance.c
@@ -41,7 +41,6 @@
#include "gimpdisplay.h"
#include "gimpdisplayshell.h"
#include "gimpdisplayshell-appearance.h"
-#include "gimpdisplayshell-expose.h"
#include "gimpdisplayshell-selection.h"
#include "gimpimagewindow.h"
#include "gimpstatusbar.h"
@@ -502,8 +501,6 @@ gimp_display_shell_set_padding (GimpDisplayShell *shell,
appearance_set_action_color (shell, "view-padding-color-menu",
&options->padding_color);
-
- gimp_display_shell_expose_full (shell);
}
void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]