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:
David Odin 2004-10-30 21:31:18 +00:00
parent 4f06153115
commit eea7561ac8
3 changed files with 22 additions and 15 deletions

View File

@ -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

View File

@ -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,

View File

@ -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);