app: some formatting in gimppaintbrush.c

This commit is contained in:
Michael Natterer 2023-05-22 03:10:36 +02:00
parent da585065d6
commit 2de78e45b6
1 changed files with 6 additions and 10 deletions

View File

@ -144,10 +144,8 @@ gimp_paintbrush_paint (GimpPaintCore *paint_core,
{
if (paintbrush->paint_buffer)
{
g_object_remove_weak_pointer (
G_OBJECT (paintbrush->paint_buffer),
(gpointer) &paintbrush->paint_buffer);
g_object_remove_weak_pointer (G_OBJECT (paintbrush->paint_buffer),
(gpointer) &paintbrush->paint_buffer);
paintbrush->paint_buffer = NULL;
}
@ -344,16 +342,14 @@ _gimp_paintbrush_motion (GimpPaintCore *paint_core,
{
if (paintbrush->paint_buffer)
{
g_object_remove_weak_pointer (
G_OBJECT (paintbrush->paint_buffer),
(gpointer) &paintbrush->paint_buffer);
g_object_remove_weak_pointer (G_OBJECT (paintbrush->paint_buffer),
(gpointer) &paintbrush->paint_buffer);
}
paintbrush->paint_buffer = paint_buffer;
g_object_add_weak_pointer (
G_OBJECT (paintbrush->paint_buffer),
(gpointer) &paintbrush->paint_buffer);
g_object_add_weak_pointer (G_OBJECT (paintbrush->paint_buffer),
(gpointer) &paintbrush->paint_buffer);
}
if (paint_pixmap != paintbrush->paint_pixmap)