mirror of https://github.com/GNOME/gimp.git
plug-ins/gfig/gfig-dobject.c fixed some annoying popup messages at the
* plug-ins/gfig/gfig-dobject.c * plug-ins/gfig/gfig-style.c: fixed some annoying popup messages at the price of a smallish mem-leak that I will fix later.
This commit is contained in:
parent
4f06153115
commit
eea7561ac8
|
@ -1,3 +1,9 @@
|
|||
2004-10-30 DindinX <dindinx@gimp.org>
|
||||
|
||||
* plug-ins/gfig/gfig-dobject.c
|
||||
* plug-ins/gfig/gfig-style.c: fixed some annoying popup messages at
|
||||
the price of a smallish mem-leak that I will fix later.
|
||||
|
||||
2004-10-30 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* app/composite/gimp-composite-generic.c
|
||||
|
|
|
@ -51,9 +51,10 @@
|
|||
|
||||
#include "libgimp/stdplugins-intl.h"
|
||||
|
||||
static Dobject *operation_obj;
|
||||
static Dobject *operation_obj = NULL;
|
||||
static GdkPoint *move_all_pnt; /* Point moving all from */
|
||||
|
||||
|
||||
static void draw_one_obj (Dobject *obj);
|
||||
static void do_move_obj (Dobject *obj,
|
||||
GdkPoint *to_pnt);
|
||||
|
|
|
@ -210,7 +210,7 @@ gfig_load_style (Style *style,
|
|||
if (!strcmp (load_buf2, "</Style>") || feof (fp))
|
||||
break;
|
||||
|
||||
style_text[nitems] = (gchar *) g_malloc (MAX_LOAD_LINE);
|
||||
style_text[nitems] = g_new (gchar, MAX_LOAD_LINE);
|
||||
strcpy (style_text[nitems], load_buf2);
|
||||
nitems++;
|
||||
}
|
||||
|
@ -452,11 +452,11 @@ gfig_brush_changed_callback (const gchar *brush_name,
|
|||
if (!brush_name)
|
||||
g_message ("Error: setting brush name to NULL in color selector callback.");
|
||||
|
||||
gfig_context->current_style->brush_name = (gchar *) brush_name;
|
||||
gfig_context->default_style.brush_name = (gchar *) brush_name;
|
||||
gfig_context->current_style->brush_name = g_strdup (brush_name); /* DDX */
|
||||
gfig_context->default_style.brush_name = g_strdup (brush_name); /* DDX */
|
||||
|
||||
/* this will soon be unneeded */
|
||||
gfig_context->bdesc.name = (gchar *) brush_name;
|
||||
gfig_context->bdesc.name = g_strdup (brush_name); /* DDX */
|
||||
gfig_context->bdesc.width = width;
|
||||
gfig_context->bdesc.height = height;
|
||||
gimp_context_set_brush (brush_name);
|
||||
|
|
Loading…
Reference in New Issue