mirror of https://github.com/GNOME/gimp.git
app: some formatting in gimppaintbrush.c
This commit is contained in:
parent
da585065d6
commit
2de78e45b6
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue