[gimp] app: remove widget parameter from gimp_view_renderer_default_render_surface()
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: remove widget parameter from gimp_view_renderer_default_render_surface()
- Date: Tue, 8 Mar 2011 16:11:42 +0000 (UTC)
commit a2d27983d65b9ae2071fabc20202bc6e8e836866
Author: Michael Natterer <mitch gimp org>
Date: Tue Mar 8 17:03:30 2011 +0100
app: remove widget parameter from gimp_view_renderer_default_render_surface()
app/widgets/gimpviewrenderer.c | 4 +---
app/widgets/gimpviewrenderer.h | 1 -
app/widgets/gimpviewrendererbuffer.c | 2 +-
3 files changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/app/widgets/gimpviewrenderer.c b/app/widgets/gimpviewrenderer.c
index 7cfa3dd..fbe225f 100644
--- a/app/widgets/gimpviewrenderer.c
+++ b/app/widgets/gimpviewrenderer.c
@@ -766,7 +766,7 @@ gimp_view_renderer_real_render (GimpViewRenderer *renderer,
renderer->height);
if (temp_buf)
{
- gimp_view_renderer_default_render_surface (renderer, widget, temp_buf);
+ gimp_view_renderer_default_render_surface (renderer, temp_buf);
return;
}
@@ -790,11 +790,9 @@ gimp_view_renderer_size_changed (GimpViewRenderer *renderer,
void
gimp_view_renderer_default_render_surface (GimpViewRenderer *renderer,
- GtkWidget *widget,
TempBuf *temp_buf)
{
g_return_if_fail (GIMP_IS_VIEW_RENDERER (renderer));
- g_return_if_fail (GTK_IS_WIDGET (widget));
g_return_if_fail (temp_buf != NULL);
if (temp_buf->width < renderer->width)
diff --git a/app/widgets/gimpviewrenderer.h b/app/widgets/gimpviewrenderer.h
index a7e096c..9e1a430 100644
--- a/app/widgets/gimpviewrenderer.h
+++ b/app/widgets/gimpviewrenderer.h
@@ -141,7 +141,6 @@ void gimp_view_renderer_draw (GimpViewRenderer *renderer,
/* protected */
void gimp_view_renderer_default_render_surface (GimpViewRenderer *renderer,
- GtkWidget *widget,
TempBuf *temp_buf);
void gimp_view_renderer_default_render_stock (GimpViewRenderer *renderer,
GtkWidget *widget,
diff --git a/app/widgets/gimpviewrendererbuffer.c b/app/widgets/gimpviewrendererbuffer.c
index 1a00971..35efcde 100644
--- a/app/widgets/gimpviewrendererbuffer.c
+++ b/app/widgets/gimpviewrendererbuffer.c
@@ -102,7 +102,7 @@ gimp_view_renderer_buffer_render (GimpViewRenderer *renderer,
if (render_buf)
{
- gimp_view_renderer_default_render_surface (renderer, widget, render_buf);
+ gimp_view_renderer_default_render_surface (renderer, render_buf);
temp_buf_free (render_buf);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]