minor cleanup.

2006-10-04  Sven Neumann  <sven@gimp.org>

	* plug-ins/maze/maze_face.c: minor cleanup.
This commit is contained in:
Sven Neumann 2006-10-04 08:04:57 +00:00 committed by Sven Neumann
parent f7c0e8ce13
commit 0b440294d4
2 changed files with 11 additions and 19 deletions

View File

@ -1,7 +1,11 @@
2006-10-04 Sven Neumann <sven@gimp.org>
* plug-ins/maze/maze_face.c: minor cleanup.
2006-10-03 Manish Singh <yosh@gimp.org>
* plug-ins/pygimp/pygimp-drawable.c: a FALSE return from
gimp_drawable_mask_bounds doesn't mean failure. Restore old
gimp_drawable_mask_bounds() doesn't mean failure. Restore old
behavior. Fixes bug #357223.
2006-10-03 Bill Skaggs <weskaggs@primate.ucdavis.edu>

View File

@ -36,8 +36,8 @@
#include "libgimp/stdplugins-intl.h"
#define BORDER_TOLERANCE 1.00 /* maximum ratio of (max % divs) to width */
#define ENTRY_WIDTH 75
#define BORDER_TOLERANCE 1.00 /* maximum ratio of (max % divs) to width */
#define ENTRY_WIDTH 75
/* entscale stuff begin */
/* FIXME: Entry-Scale stuff is probably in libgimpui by now.
@ -71,8 +71,7 @@ gchar buffer[BUFSIZE];
gboolean maze_dialog (void);
static void maze_msg (const gchar *format,
...) G_GNUC_PRINTF (1, 2);
static void maze_message (const gchar *message);
#ifdef SHOW_PRNG_PRIVATES
static void maze_entry_callback (GtkWidget *widget,
@ -425,8 +424,8 @@ div_button_callback (GtkWidget *button,
/* Sanity check: */
if (mvals.tile && ISODD(max))
{
maze_msg (_("Selection size is not even.\n"
"Tileable maze won't work perfectly."));
maze_message (_("Selection size is not even.\n"
"Tileable maze won't work perfectly."));
return;
}
@ -566,20 +565,9 @@ height_width_callback (gint width,
}
static void
maze_msg (const gchar *format,
...)
maze_message (const gchar *message)
{
gchar *message;
va_list args;
va_start (args, format);
message = g_strdup_vprintf (format, args);
va_end (args);
gtk_label_set_text (GTK_LABEL (msg_label), message);
g_free (message);
}
#ifdef SHOW_PRNG_PRIVATES