Commit feb4a5b0 authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann
Browse files

plug-ins/gfig/gfig-dialog.c initialize GimpRGB and GFigContext structs

2005-05-23  Sven Neumann  <sven@gimp.org>

	* plug-ins/gfig/gfig-dialog.c
	* plug-ins/gfig/gfig.c: initialize GimpRGB and GFigContext structs
	before using them.
parent 85ff67b5
2005-05-23 Sven Neumann <sven@gimp.org>
* plug-ins/gfig/gfig-dialog.c
* plug-ins/gfig/gfig.c: initialize GimpRGB and GFigContext structs
before using them.
2005-05-23 Sven Neumann <sven@gimp.org>
* plug-ins/common/screenshot.c (select_window_x11): also grab the
......
......@@ -374,7 +374,7 @@ gfig_dialog (void)
vbox);
/* foreground color button in Stroke frame*/
gfig_context->fg_color = g_new (GimpRGB, 1);
gfig_context->fg_color = g_new0 (GimpRGB, 1);
gfig_context->fg_color_button = gimp_color_button_new ("Foreground",
SEL_BUTTON_WIDTH,
SEL_BUTTON_HEIGHT,
......@@ -442,7 +442,7 @@ gfig_dialog (void)
empty_label, NULL);
/* A page for the fill color button */
gfig_context->bg_color = g_new (GimpRGB, 1);
gfig_context->bg_color = g_new0 (GimpRGB, 1);
gfig_context->bg_color_button = gimp_color_button_new ("Background",
SEL_BUTTON_WIDTH, SEL_BUTTON_HEIGHT,
gfig_context->bg_color,
......
......@@ -150,7 +150,7 @@ run (const gchar *name,
gint pwidth, pheight;
INIT_I18N ();
gfig_context = g_new (GFigContext, 1);
gfig_context = g_new0 (GFigContext, 1);
gfig_context->show_background = TRUE;
gfig_context->selected_obj = NULL;
......
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