Commit eea7561a authored by David Odin's avatar David Odin
Browse files

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.
parent 4f061531
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,19 +51,20 @@
#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);
static void do_move_all_obj (GdkPoint *to_pnt);
static void do_move_obj_pnt (Dobject *obj,
GdkPoint *to_pnt);
static void remove_obj_from_list (GFigObj *obj,
Dobject *del_obj);
static gint scan_obj_points (DobjPoints *opnt,
GdkPoint *pnt);
static void draw_one_obj (Dobject *obj);
static void do_move_obj (Dobject *obj,
GdkPoint *to_pnt);
static void do_move_all_obj (GdkPoint *to_pnt);
static void do_move_obj_pnt (Dobject *obj,
GdkPoint *to_pnt);
static void remove_obj_from_list (GFigObj *obj,
Dobject *del_obj);
static gint scan_obj_points (DobjPoints *opnt,
GdkPoint *pnt);
void
d_save_object (Dobject *obj,
......
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment