mirror of https://github.com/GNOME/gimp.git
actually load generated brushes, marked a few messages for translation
--Sven
This commit is contained in:
parent
c655dfcd35
commit
c5203ce512
|
@ -1,3 +1,9 @@
|
|||
Mon Feb 21 14:05:56 CET 2000 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* app/gimpbrushlist.c
|
||||
* po/POTFILES.in: actually load generated brushes, marked a few
|
||||
messages for translation
|
||||
|
||||
Mon Feb 21 13:04:47 CET 2000 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* app/blend.c
|
||||
|
|
|
@ -44,6 +44,8 @@
|
|||
#include "gimpbrushlistP.h"
|
||||
#include "general.h"
|
||||
|
||||
#include "libgimp/gimpintl.h"
|
||||
|
||||
/* global variables */
|
||||
GimpBrushList *brush_list = NULL;
|
||||
|
||||
|
@ -145,6 +147,8 @@ brushes_init (int no_data)
|
|||
|
||||
datafiles_read_directories (brush_path,
|
||||
(datafile_loader_t) brushes_brush_load, 0);
|
||||
datafiles_read_directories (brush_vbr_path,
|
||||
(datafile_loader_t) brushes_brush_load, 0);
|
||||
|
||||
brush_select_thaw_all ();
|
||||
}
|
||||
|
@ -162,7 +166,7 @@ brushes_get_standard_brush (void)
|
|||
|
||||
gimp_brush_set_name (standard_brush, "Standard");
|
||||
|
||||
/* set ref_cout to 2 --> never swap the standard brush */
|
||||
/* set ref_count to 2 --> never swap the standard brush */
|
||||
gtk_object_ref (GTK_OBJECT (standard_brush));
|
||||
gtk_object_ref (GTK_OBJECT (standard_brush));
|
||||
}
|
||||
|
@ -180,7 +184,7 @@ brushes_brush_load (gchar *filename)
|
|||
if (brush != NULL)
|
||||
gimp_brush_list_add (brush_list, brush);
|
||||
else
|
||||
g_message ("Warning: failed to load brush \"%s\"", filename);
|
||||
g_message (_("Warning: Failed to load brush\n\"%s\""), filename);
|
||||
}
|
||||
else if (strcmp (&filename[strlen(filename) - 4], ".vbr") == 0)
|
||||
{
|
||||
|
@ -189,7 +193,7 @@ brushes_brush_load (gchar *filename)
|
|||
if (brush != NULL)
|
||||
gimp_brush_list_add (brush_list, GIMP_BRUSH (brush));
|
||||
else
|
||||
g_message ("Warning: failed to load brush \"%s\"", filename);
|
||||
g_message (_("Warning: Failed to load brush\n\"%s\""), filename);
|
||||
}
|
||||
else if (strcmp (&filename[strlen (filename) - 4], ".gpb") == 0)
|
||||
{
|
||||
|
@ -198,7 +202,7 @@ brushes_brush_load (gchar *filename)
|
|||
if (brush != NULL)
|
||||
gimp_brush_list_add (brush_list, GIMP_BRUSH (brush));
|
||||
else
|
||||
g_message("Warning: failed to load pixmap brush \"%s\"", filename);
|
||||
g_message (_("Warning: Failed to load pixmap brush\n\"%s\""), filename);
|
||||
}
|
||||
else if (strcmp (&filename[strlen (filename) - 4], ".gih") == 0)
|
||||
{
|
||||
|
@ -207,7 +211,7 @@ brushes_brush_load (gchar *filename)
|
|||
if (brush != NULL)
|
||||
gimp_brush_list_add (brush_list, GIMP_BRUSH (brush));
|
||||
else
|
||||
g_message("Warning: failed to load pixmap pipe \"%s\"", filename);
|
||||
g_message (_("Warning: Failed to load pixmap pipe\n\"%s\""), filename);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -265,7 +269,7 @@ brushes_free (void)
|
|||
filename = g_strconcat (path, G_DIR_SEPARATOR_S,
|
||||
b->name, ".vbr", NULL);
|
||||
while ((tmp_fp = fopen (filename, "r")))
|
||||
{ /* make sure we don't overite an existing brush */
|
||||
{ /* make sure we don't overwrite an existing brush */
|
||||
fclose (tmp_fp);
|
||||
g_free (filename);
|
||||
filename = g_strdup_printf ("%s%s%s_%d.vbr", path,
|
||||
|
|
|
@ -45,6 +45,7 @@ app/gdisplay_color_ui.c
|
|||
app/gdisplay_ops.c
|
||||
app/gimage_mask.c
|
||||
app/gimpbrush.c
|
||||
app/gimpbrushlist.c
|
||||
app/gimpbrushpipe.c
|
||||
app/gimpdrawable.c
|
||||
app/gimphelp.c
|
||||
|
|
Loading…
Reference in New Issue