mirror of https://github.com/GNOME/gimp.git
parent
8ef39a9147
commit
4d20d8296b
31
ChangeLog
31
ChangeLog
|
@ -1,3 +1,34 @@
|
|||
Tue Mar 14 22:13:35 CET 2000 Sven Neumann <sven@gimp.org>
|
||||
Michael Natterer <mitch@gimp.org>
|
||||
|
||||
* Makefile.am
|
||||
* pixmaps/folder.xpm: new file.
|
||||
* pixmaps/wilber.xpm: removed the shadows.
|
||||
|
||||
* gimprc.in
|
||||
* user_install: cleanup.
|
||||
|
||||
* app/app_procs.c: only parse unitrc and gimprc if not already
|
||||
done by install.c.
|
||||
|
||||
* app/gimprc.[ch]: cleanups. parse_buffers_init() returns a
|
||||
boolean indicating if the buffers are really initialized.
|
||||
|
||||
* app/gimpui.h: include some more stuff from libgimp.
|
||||
|
||||
* app/install.c: Gimp's most beautiful dialog should blow away
|
||||
first time users.
|
||||
(does not yet work with themes, please help)
|
||||
|
||||
* app/preferences_dialog.c: removed the mem_size_unit stuff.
|
||||
|
||||
* libgimp/gimpchainbutton.c: cleanup.
|
||||
|
||||
* libgimp/gimpwidgets.[ch]: new function gimp_mem_size_entry_new()
|
||||
which does the stuff known from the prefs dialog.
|
||||
|
||||
* plug-ins/script-fu/scripts/tileblur.scm: s/tilable/tileable/
|
||||
|
||||
Sun Mar 12 04:26:41 CET 2000 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* plug-ins/gfig.c: reduced the preview_size and tweaked the dialog
|
||||
|
|
|
@ -62,6 +62,7 @@ EXTRA_DIST = \
|
|||
pixmaps/eek.xpm \
|
||||
pixmaps/eye.xbm \
|
||||
pixmaps/first.xpm \
|
||||
pixmaps/folder.xpm \
|
||||
pixmaps/last.xpm \
|
||||
pixmaps/layer.xbm \
|
||||
pixmaps/linked.xbm \
|
||||
|
|
|
@ -505,9 +505,11 @@ app_init (void)
|
|||
color_display_init ();
|
||||
|
||||
RESET_BAR();
|
||||
parse_buffers_init ();
|
||||
if (parse_buffers_init ())
|
||||
{
|
||||
parse_unitrc (); /* this needs to be done before gimprc loading */
|
||||
parse_gimprc (); /* parse the local GIMP configuration file */
|
||||
}
|
||||
|
||||
if (always_restore_session)
|
||||
restore_session = TRUE;
|
||||
|
|
|
@ -32,11 +32,8 @@
|
|||
#include "session.h"
|
||||
#include "tile_cache.h"
|
||||
|
||||
#include "libgimp/gimpchainbutton.h"
|
||||
#include "libgimp/gimpfileselection.h"
|
||||
#include "libgimp/gimppatheditor.h"
|
||||
#include "libgimp/gimpsizeentry.h"
|
||||
#include "libgimp/gimplimits.h"
|
||||
#include "libgimp/gimpmath.h"
|
||||
|
||||
#include "libgimp/gimpintl.h"
|
||||
|
||||
|
@ -61,8 +58,6 @@ static void file_prefs_cancel_callback (GtkWidget *, GtkWidget *);
|
|||
static void file_prefs_toggle_callback (GtkWidget *, gpointer);
|
||||
static void file_prefs_preview_size_callback (GtkWidget *, gpointer);
|
||||
static void file_prefs_nav_preview_size_callback (GtkWidget *, gpointer);
|
||||
static void file_prefs_mem_size_callback (GtkWidget *, gpointer);
|
||||
static void file_prefs_mem_size_unit_callback (GtkWidget *, gpointer);
|
||||
static void file_prefs_string_callback (GtkWidget *, gpointer);
|
||||
static void file_prefs_text_callback (GtkWidget *, gpointer);
|
||||
static void file_prefs_filename_callback (GtkWidget *, gpointer);
|
||||
|
@ -982,67 +977,6 @@ file_prefs_nav_preview_size_callback (GtkWidget *widget,
|
|||
gdisplays_nav_preview_resized ();
|
||||
}
|
||||
|
||||
static void
|
||||
file_prefs_mem_size_callback (GtkWidget *widget,
|
||||
gpointer data)
|
||||
{
|
||||
gint *mem_size;
|
||||
gint divided_mem_size;
|
||||
gint mem_size_unit;
|
||||
|
||||
if (! (mem_size = gtk_object_get_data (GTK_OBJECT (widget), "mem_size")))
|
||||
return;
|
||||
|
||||
divided_mem_size = (int) gtk_object_get_data (GTK_OBJECT (widget),
|
||||
"divided_mem_size");
|
||||
mem_size_unit = (int) gtk_object_get_data (GTK_OBJECT (widget),
|
||||
"mem_size_unit");
|
||||
|
||||
divided_mem_size = GTK_ADJUSTMENT (widget)->value;
|
||||
*mem_size = divided_mem_size * mem_size_unit;
|
||||
|
||||
gtk_object_set_data (GTK_OBJECT (widget), "divided_mem_size",
|
||||
(gpointer) divided_mem_size);
|
||||
}
|
||||
|
||||
static void
|
||||
file_prefs_mem_size_unit_callback (GtkWidget *widget,
|
||||
gpointer data)
|
||||
{
|
||||
GtkObject *adjustment;
|
||||
gint new_unit;
|
||||
gint *mem_size;
|
||||
gint divided_mem_size;
|
||||
gint mem_size_unit;
|
||||
|
||||
adjustment = GTK_OBJECT (data);
|
||||
|
||||
new_unit = (int) gtk_object_get_user_data (GTK_OBJECT (widget));
|
||||
|
||||
if (! (mem_size = gtk_object_get_data (GTK_OBJECT (adjustment), "mem_size")))
|
||||
return;
|
||||
|
||||
divided_mem_size = (int) gtk_object_get_data (GTK_OBJECT (adjustment),
|
||||
"divided_mem_size");
|
||||
mem_size_unit = (int) gtk_object_get_data (GTK_OBJECT (adjustment),
|
||||
"mem_size_unit");
|
||||
|
||||
if (new_unit != mem_size_unit)
|
||||
{
|
||||
divided_mem_size = *mem_size / new_unit;
|
||||
mem_size_unit = new_unit;
|
||||
|
||||
gtk_signal_handler_block_by_data (GTK_OBJECT (adjustment), mem_size);
|
||||
gtk_adjustment_set_value (GTK_ADJUSTMENT (adjustment), divided_mem_size);
|
||||
gtk_signal_handler_unblock_by_data (GTK_OBJECT (adjustment), mem_size);
|
||||
}
|
||||
|
||||
gtk_object_set_data (GTK_OBJECT (adjustment), "divided_mem_size",
|
||||
(gpointer) divided_mem_size);
|
||||
gtk_object_set_data (GTK_OBJECT (adjustment), "mem_size_unit",
|
||||
(gpointer) mem_size_unit);
|
||||
}
|
||||
|
||||
static void
|
||||
file_prefs_string_callback (GtkWidget *widget,
|
||||
gpointer data)
|
||||
|
@ -1384,8 +1318,6 @@ file_pref_cmd_callback (GtkWidget *widget,
|
|||
GSList *group;
|
||||
|
||||
gint i;
|
||||
gint divided_mem_size;
|
||||
gint mem_size_unit;
|
||||
gchar *pixels_per_unit;
|
||||
|
||||
if (prefs_dlg)
|
||||
|
@ -1676,45 +1608,12 @@ file_pref_cmd_callback (GtkWidget *widget,
|
|||
optionmenu, 1, TRUE);
|
||||
|
||||
/* The maximum size of a new image */
|
||||
mem_size_unit = 1;
|
||||
for (i = 0; i < 3; i++)
|
||||
{
|
||||
if (max_new_image_size % (mem_size_unit * 1024) != 0)
|
||||
break;
|
||||
mem_size_unit *= 1024;
|
||||
}
|
||||
divided_mem_size = max_new_image_size / mem_size_unit;
|
||||
|
||||
hbox = gtk_hbox_new (FALSE, 2);
|
||||
spinbutton =
|
||||
gimp_spin_button_new (&adjustment, divided_mem_size,
|
||||
0.0, (4069.0 * 1024 * 1024), 1.0, 16.0, 0.0,
|
||||
1.0, 0.0);
|
||||
adjustment = gtk_adjustment_new (max_new_image_size,
|
||||
0, (4069.0 * 1024 * 1024), 1.0, 1.0, 0.0);
|
||||
hbox = gimp_mem_size_entry_new (GTK_ADJUSTMENT (adjustment));
|
||||
gtk_signal_connect (GTK_OBJECT (adjustment), "value_changed",
|
||||
GTK_SIGNAL_FUNC (file_prefs_mem_size_callback),
|
||||
GTK_SIGNAL_FUNC (gimp_int_adjustment_update),
|
||||
&max_new_image_size);
|
||||
gtk_box_pack_start (GTK_BOX (hbox), spinbutton, FALSE, FALSE, 0);
|
||||
gtk_widget_show (spinbutton);
|
||||
|
||||
/* for the mem_size_unit callback */
|
||||
gtk_object_set_data (GTK_OBJECT (adjustment), "mem_size",
|
||||
&max_new_image_size);
|
||||
gtk_object_set_data (GTK_OBJECT (adjustment), "divided_mem_size",
|
||||
(gpointer) divided_mem_size);
|
||||
gtk_object_set_data (GTK_OBJECT (adjustment), "mem_size_unit",
|
||||
(gpointer) mem_size_unit);
|
||||
|
||||
optionmenu =
|
||||
gimp_option_menu_new2 (FALSE, file_prefs_mem_size_unit_callback,
|
||||
adjustment, (gpointer) mem_size_unit,
|
||||
|
||||
_("Bytes"), (gpointer) 1, NULL,
|
||||
_("KiloBytes"), (gpointer) 1024, NULL,
|
||||
_("MegaBytes"), (gpointer) (1024 * 1024), NULL,
|
||||
|
||||
NULL);
|
||||
gtk_box_pack_start (GTK_BOX (hbox), optionmenu, FALSE, FALSE, 0);
|
||||
gtk_widget_show (optionmenu);
|
||||
gimp_table_attach_aligned (GTK_TABLE (table), 0, 1,
|
||||
_("Maximum Image Size:"), 1.0, 0.5,
|
||||
hbox, 1, TRUE);
|
||||
|
@ -1725,8 +1624,8 @@ file_pref_cmd_callback (GtkWidget *widget,
|
|||
GTK_CTREE (ctree),
|
||||
_("Default Comment"),
|
||||
"dialogs/preferences/default_comment.html",
|
||||
NULL,
|
||||
&top_insert,
|
||||
top_insert,
|
||||
&child_insert,
|
||||
page_index);
|
||||
gtk_widget_show (vbox);
|
||||
page_index++;
|
||||
|
@ -2193,45 +2092,12 @@ file_pref_cmd_callback (GtkWidget *widget,
|
|||
spinbutton, 1, TRUE);
|
||||
|
||||
/* The tile cache size */
|
||||
mem_size_unit = 1;
|
||||
for (i = 0; i < 3; i++)
|
||||
{
|
||||
if (edit_tile_cache_size % (mem_size_unit * 1024) != 0)
|
||||
break;
|
||||
mem_size_unit *= 1024;
|
||||
}
|
||||
divided_mem_size = edit_tile_cache_size / mem_size_unit;
|
||||
|
||||
hbox = gtk_hbox_new (FALSE, 2);
|
||||
spinbutton =
|
||||
gimp_spin_button_new (&adjustment, divided_mem_size,
|
||||
0.0, (4069.0 * 1024 * 1024), 1.0, 16.0, 0.0,
|
||||
1.0, 0.0);
|
||||
adjustment = gtk_adjustment_new (edit_tile_cache_size,
|
||||
0, (4069.0 * 1024 * 1024), 1.0, 1.0, 0.0);
|
||||
hbox = gimp_mem_size_entry_new (GTK_ADJUSTMENT (adjustment));
|
||||
gtk_signal_connect (GTK_OBJECT (adjustment), "value_changed",
|
||||
GTK_SIGNAL_FUNC (file_prefs_mem_size_callback),
|
||||
GTK_SIGNAL_FUNC (gimp_int_adjustment_update),
|
||||
&edit_tile_cache_size);
|
||||
gtk_box_pack_start (GTK_BOX (hbox), spinbutton, FALSE, FALSE, 0);
|
||||
gtk_widget_show (spinbutton);
|
||||
|
||||
/* for the mem_size_unit callback */
|
||||
gtk_object_set_data (GTK_OBJECT (adjustment), "mem_size",
|
||||
&edit_tile_cache_size);
|
||||
gtk_object_set_data (GTK_OBJECT (adjustment), "divided_mem_size",
|
||||
(gpointer) divided_mem_size);
|
||||
gtk_object_set_data (GTK_OBJECT (adjustment), "mem_size_unit",
|
||||
(gpointer) mem_size_unit);
|
||||
|
||||
optionmenu =
|
||||
gimp_option_menu_new2 (FALSE, file_prefs_mem_size_unit_callback,
|
||||
adjustment, (gpointer) mem_size_unit,
|
||||
|
||||
_("Bytes"), (gpointer) 1, NULL,
|
||||
_("KiloBytes"), (gpointer) 1024, NULL,
|
||||
_("MegaBytes"), (gpointer) (1024 * 1024), NULL,
|
||||
|
||||
NULL);
|
||||
gtk_box_pack_start (GTK_BOX (hbox), optionmenu, FALSE, FALSE, 0);
|
||||
gtk_widget_show (optionmenu);
|
||||
gimp_table_attach_aligned (GTK_TABLE (table), 0, 1,
|
||||
_("Tile Cache Size:"), 1.0, 0.5,
|
||||
hbox, 1, TRUE);
|
||||
|
@ -2388,13 +2254,14 @@ file_pref_cmd_callback (GtkWidget *widget,
|
|||
|
||||
{
|
||||
gdouble xres, yres;
|
||||
gchar buf[80];
|
||||
gchar *str;
|
||||
|
||||
gdisplay_xserver_resolution (&xres, &yres);
|
||||
|
||||
g_snprintf (buf, sizeof (buf), _("(Currently %d x %d dpi)"),
|
||||
(int) (xres + 0.5), (int) (yres + 0.5));
|
||||
label = gtk_label_new (buf);
|
||||
str = g_strdup_printf (_("(Currently %d x %d dpi)"),
|
||||
ROUND (xres), ROUND (yres));
|
||||
label = gtk_label_new (str);
|
||||
g_free (str);
|
||||
}
|
||||
|
||||
abox = gtk_alignment_new (0.5, 0.5, 0.0, 0.0);
|
||||
|
|
File diff suppressed because it is too large
Load Diff
276
app/gimprc.c
276
app/gimprc.c
|
@ -57,7 +57,8 @@
|
|||
#define OK 2
|
||||
#define LOCALE_DEF 3
|
||||
|
||||
typedef enum {
|
||||
typedef enum
|
||||
{
|
||||
TT_STRING,
|
||||
TT_PATH,
|
||||
TT_DOUBLE,
|
||||
|
@ -87,7 +88,7 @@ typedef struct _ParseFunc ParseFunc;
|
|||
|
||||
struct _ParseFunc
|
||||
{
|
||||
char *name;
|
||||
gchar *name;
|
||||
TokenType type;
|
||||
gpointer val1p;
|
||||
gpointer val2p;
|
||||
|
@ -97,146 +98,146 @@ typedef struct _UnknownToken UnknownToken;
|
|||
|
||||
struct _UnknownToken
|
||||
{
|
||||
char *token;
|
||||
char *value;
|
||||
gchar *token;
|
||||
gchar *value;
|
||||
};
|
||||
|
||||
|
||||
/* global gimprc variables */
|
||||
char * plug_in_path = NULL;
|
||||
char * temp_path = NULL;
|
||||
char * swap_path = NULL;
|
||||
char * brush_path = NULL;
|
||||
char * brush_vbr_path = NULL;
|
||||
char * default_brush = NULL;
|
||||
char * pattern_path = NULL;
|
||||
char * default_pattern = NULL;
|
||||
char * palette_path = NULL;
|
||||
char * default_palette = NULL;
|
||||
char * gradient_path = NULL;
|
||||
char * default_gradient = NULL;
|
||||
char * pluginrc_path = NULL;
|
||||
char * module_path = NULL;
|
||||
int tile_cache_size = 10485760; /* 10 MB */
|
||||
int marching_speed = 300; /* 300 ms */
|
||||
double gamma_val = 1.0;
|
||||
int transparency_type = 1; /* Mid-Tone Checks */
|
||||
int perfectmouse = 0; /* off (fast and sloppy) */
|
||||
int transparency_size = 1; /* Medium sized */
|
||||
int levels_of_undo = 2; /* 2 levels of undo default */
|
||||
int last_opened_size = 4; /* 4 documents in the MRU list */
|
||||
int color_cube_shades[4] = {6, 7, 4, 24};
|
||||
int install_cmap = 0;
|
||||
int cycled_marching_ants = 0;
|
||||
int default_threshold = 15;
|
||||
int stingy_memory_use = 0;
|
||||
int allow_resize_windows = 0;
|
||||
int no_cursor_updating = 0;
|
||||
int preview_size = 32;
|
||||
int nav_preview_size = 112;
|
||||
int show_rulers = TRUE;
|
||||
int show_statusbar = TRUE;
|
||||
gchar *plug_in_path = NULL;
|
||||
gchar *temp_path = NULL;
|
||||
gchar *swap_path = NULL;
|
||||
gchar *brush_path = NULL;
|
||||
gchar *brush_vbr_path = NULL;
|
||||
gchar *default_brush = NULL;
|
||||
gchar *pattern_path = NULL;
|
||||
gchar *default_pattern = NULL;
|
||||
gchar *palette_path = NULL;
|
||||
gchar *default_palette = NULL;
|
||||
gchar *gradient_path = NULL;
|
||||
gchar *default_gradient = NULL;
|
||||
gchar *pluginrc_path = NULL;
|
||||
gchar *module_path = NULL;
|
||||
gint tile_cache_size = 10485760; /* 10 MB */
|
||||
gint marching_speed = 300; /* 300 ms */
|
||||
gdouble gamma_val = 1.0;
|
||||
gint transparency_type = 1; /* Mid-Tone Checks */
|
||||
gboolean perfectmouse = FALSE; /* off (fast and sloppy) */
|
||||
gint transparency_size = 1; /* Medium sized */
|
||||
gint levels_of_undo = 2; /* 2 levels of undo default */
|
||||
gint last_opened_size = 4; /* 4 documents in the MRU list */
|
||||
gint color_cube_shades[4] = { 6, 7, 4, 24 };
|
||||
gboolean install_cmap = FALSE;
|
||||
gint cycled_marching_ants = 0;
|
||||
gint default_threshold = 15;
|
||||
gboolean stingy_memory_use = FALSE;
|
||||
gboolean allow_resize_windows = FALSE;
|
||||
gboolean no_cursor_updating = FALSE;
|
||||
gint preview_size = 32;
|
||||
gint nav_preview_size = 112;
|
||||
gboolean show_rulers = TRUE;
|
||||
gboolean show_statusbar = TRUE;
|
||||
GimpUnit default_units = GIMP_UNIT_INCH;
|
||||
int auto_save = TRUE;
|
||||
gboolean auto_save = TRUE;
|
||||
InterpolationType interpolation_type = LINEAR_INTERPOLATION;
|
||||
int confirm_on_close = TRUE;
|
||||
int save_session_info = TRUE;
|
||||
int save_device_status = FALSE;
|
||||
int always_restore_session = FALSE;
|
||||
int default_width = 983;
|
||||
int default_height = 857;
|
||||
gboolean confirm_on_close = TRUE;
|
||||
gboolean save_session_info = TRUE;
|
||||
gboolean save_device_status = FALSE;
|
||||
gboolean always_restore_session = FALSE;
|
||||
gint default_width = 983;
|
||||
gint default_height = 857;
|
||||
/* temporary default size increase to stress test stuff. -- austin 7/11/99 */
|
||||
int default_type = RGB;
|
||||
double default_xresolution = 72.0;
|
||||
double default_yresolution = 72.0;
|
||||
gint default_type = RGB;
|
||||
gdouble default_xresolution = 72.0;
|
||||
gdouble default_yresolution = 72.0;
|
||||
GimpUnit default_resolution_units = GIMP_UNIT_INCH;
|
||||
char * default_comment = NULL;
|
||||
int default_dot_for_dot = TRUE;
|
||||
int show_tips = TRUE;
|
||||
int last_tip = -1;
|
||||
int show_tool_tips = TRUE;
|
||||
double monitor_xres = 72.0;
|
||||
double monitor_yres = 72.0;
|
||||
int using_xserver_resolution = FALSE;
|
||||
int num_processors = 1;
|
||||
char * image_title_format = NULL;
|
||||
int global_paint_options = TRUE;
|
||||
int show_indicators = TRUE;
|
||||
int max_new_image_size = 33554432; /* 32 MB */
|
||||
int thumbnail_mode = 1;
|
||||
int trust_dirty_flag = FALSE;
|
||||
int use_help = TRUE;
|
||||
int nav_window_per_display = FALSE;
|
||||
int info_window_follows_mouse = FALSE;
|
||||
int help_browser = HELP_BROWSER_GIMP;
|
||||
gchar *default_comment = NULL;
|
||||
gboolean default_dot_for_dot = TRUE;
|
||||
gboolean show_tips = TRUE;
|
||||
gint last_tip = -1;
|
||||
gboolean show_tool_tips = TRUE;
|
||||
gdouble monitor_xres = 72.0;
|
||||
gdouble monitor_yres = 72.0;
|
||||
gboolean using_xserver_resolution = FALSE;
|
||||
gint num_processors = 1;
|
||||
gchar *image_title_format = NULL;
|
||||
gboolean global_paint_options = TRUE;
|
||||
gboolean show_indicators = TRUE;
|
||||
gint max_new_image_size = 33554432; /* 32 MB */
|
||||
gint thumbnail_mode = 1;
|
||||
gboolean trust_dirty_flag = FALSE;
|
||||
gboolean use_help = TRUE;
|
||||
gboolean nav_window_per_display = FALSE;
|
||||
gboolean info_window_follows_mouse = FALSE;
|
||||
gint help_browser = HELP_BROWSER_GIMP;
|
||||
|
||||
extern char * module_db_load_inhibit;
|
||||
|
||||
static int get_next_token (void);
|
||||
static int peek_next_token (void);
|
||||
static int parse_statement (void);
|
||||
static gint get_next_token (void);
|
||||
static gint peek_next_token (void);
|
||||
static gint parse_statement (void);
|
||||
|
||||
static int parse_string (gpointer val1p, gpointer val2p);
|
||||
static int parse_path (gpointer val1p, gpointer val2p);
|
||||
static int parse_double (gpointer val1p, gpointer val2p);
|
||||
static int parse_float (gpointer val1p, gpointer val2p);
|
||||
static int parse_int (gpointer val1p, gpointer val2p);
|
||||
static int parse_boolean (gpointer val1p, gpointer val2p);
|
||||
static int parse_position (gpointer val1p, gpointer val2p);
|
||||
static int parse_mem_size (gpointer val1p, gpointer val2p);
|
||||
static int parse_image_type (gpointer val1p, gpointer val2p);
|
||||
static int parse_interpolation_type (gpointer val1p, gpointer val2p);
|
||||
static int parse_color_cube (gpointer val1p, gpointer val2p);
|
||||
static int parse_preview_size (gpointer val1p, gpointer val2p);
|
||||
static int parse_nav_preview_size (gpointer val1p, gpointer val2p);
|
||||
static int parse_units (gpointer val1p, gpointer val2p);
|
||||
static int parse_plug_in (gpointer val1p, gpointer val2p);
|
||||
static int parse_plug_in_def (gpointer val1p, gpointer val2p);
|
||||
static int parse_device (gpointer val1p, gpointer val2p);
|
||||
static int parse_menu_path (gpointer val1p, gpointer val2p);
|
||||
static int parse_session_info (gpointer val1p, gpointer val2p);
|
||||
static int parse_unit_info (gpointer val1p, gpointer val2p);
|
||||
static int parse_parasite (gpointer val1p, gpointer val2p);
|
||||
static int parse_help_browser (gpointer val1p, gpointer val2p);
|
||||
static gint parse_string (gpointer val1p, gpointer val2p);
|
||||
static gint parse_path (gpointer val1p, gpointer val2p);
|
||||
static gint parse_double (gpointer val1p, gpointer val2p);
|
||||
static gint parse_float (gpointer val1p, gpointer val2p);
|
||||
static gint parse_int (gpointer val1p, gpointer val2p);
|
||||
static gint parse_boolean (gpointer val1p, gpointer val2p);
|
||||
static gint parse_position (gpointer val1p, gpointer val2p);
|
||||
static gint parse_mem_size (gpointer val1p, gpointer val2p);
|
||||
static gint parse_image_type (gpointer val1p, gpointer val2p);
|
||||
static gint parse_interpolation_type (gpointer val1p, gpointer val2p);
|
||||
static gint parse_color_cube (gpointer val1p, gpointer val2p);
|
||||
static gint parse_preview_size (gpointer val1p, gpointer val2p);
|
||||
static gint parse_nav_preview_size (gpointer val1p, gpointer val2p);
|
||||
static gint parse_units (gpointer val1p, gpointer val2p);
|
||||
static gint parse_plug_in (gpointer val1p, gpointer val2p);
|
||||
static gint parse_plug_in_def (gpointer val1p, gpointer val2p);
|
||||
static gint parse_device (gpointer val1p, gpointer val2p);
|
||||
static gint parse_menu_path (gpointer val1p, gpointer val2p);
|
||||
static gint parse_session_info (gpointer val1p, gpointer val2p);
|
||||
static gint parse_unit_info (gpointer val1p, gpointer val2p);
|
||||
static gint parse_parasite (gpointer val1p, gpointer val2p);
|
||||
static gint parse_help_browser (gpointer val1p, gpointer val2p);
|
||||
|
||||
static int parse_locale_def (PlugInDef *plug_in_def);
|
||||
static int parse_proc_def (PlugInProcDef **proc_def);
|
||||
static int parse_proc_arg (ProcArg *arg);
|
||||
static int parse_unknown (char *token_sym);
|
||||
static gint parse_locale_def (PlugInDef *plug_in_def);
|
||||
static gint parse_proc_def (PlugInProcDef **proc_def);
|
||||
static gint parse_proc_arg (ProcArg *arg);
|
||||
static gint parse_unknown (gchar *token_sym);
|
||||
|
||||
char* gimprc_value_to_str (char *name);
|
||||
static char* value_to_str (char *name);
|
||||
gchar *gimprc_value_to_str (gchar *name);
|
||||
static gchar *value_to_str (gchar *name);
|
||||
|
||||
static inline char * string_to_str (gpointer val1p, gpointer val2p);
|
||||
static inline char * path_to_str (gpointer val1p, gpointer val2p);
|
||||
static inline char * double_to_str (gpointer val1p, gpointer val2p);
|
||||
static inline char * float_to_str (gpointer val1p, gpointer val2p);
|
||||
static inline char * int_to_str (gpointer val1p, gpointer val2p);
|
||||
static inline char * boolean_to_str (gpointer val1p, gpointer val2p);
|
||||
static inline char * position_to_str (gpointer val1p, gpointer val2p);
|
||||
static inline char * mem_size_to_str (gpointer val1p, gpointer val2p);
|
||||
static inline char * image_type_to_str (gpointer val1p, gpointer val2p);
|
||||
static inline char * interpolation_type_to_str (gpointer val1p, gpointer val2p);
|
||||
static inline char * color_cube_to_str (gpointer val1p, gpointer val2p);
|
||||
static inline char * preview_size_to_str (gpointer val1p, gpointer val2p);
|
||||
static inline char * nav_preview_size_to_str (gpointer val1p, gpointer val2p);
|
||||
static inline char * units_to_str (gpointer val1p, gpointer val2p);
|
||||
static inline char * help_browser_to_str (gpointer val1p, gpointer val2p);
|
||||
static inline char * comment_to_str (gpointer val1p, gpointer val2p);
|
||||
static inline gchar * string_to_str (gpointer val1p, gpointer val2p);
|
||||
static inline gchar * path_to_str (gpointer val1p, gpointer val2p);
|
||||
static inline gchar * double_to_str (gpointer val1p, gpointer val2p);
|
||||
static inline gchar * float_to_str (gpointer val1p, gpointer val2p);
|
||||
static inline gchar * int_to_str (gpointer val1p, gpointer val2p);
|
||||
static inline gchar * boolean_to_str (gpointer val1p, gpointer val2p);
|
||||
static inline gchar * position_to_str (gpointer val1p, gpointer val2p);
|
||||
static inline gchar * mem_size_to_str (gpointer val1p, gpointer val2p);
|
||||
static inline gchar * image_type_to_str (gpointer val1p, gpointer val2p);
|
||||
static inline gchar * interpolation_type_to_str (gpointer val1p, gpointer val2p);
|
||||
static inline gchar * color_cube_to_str (gpointer val1p, gpointer val2p);
|
||||
static inline gchar * preview_size_to_str (gpointer val1p, gpointer val2p);
|
||||
static inline gchar * nav_preview_size_to_str (gpointer val1p, gpointer val2p);
|
||||
static inline gchar * units_to_str (gpointer val1p, gpointer val2p);
|
||||
static inline gchar * help_browser_to_str (gpointer val1p, gpointer val2p);
|
||||
static inline gchar * comment_to_str (gpointer val1p, gpointer val2p);
|
||||
|
||||
static char* transform_path (char *path, int destroy);
|
||||
static void gimprc_set_token (char *token, char *value);
|
||||
static void add_gimp_directory_token (char *gimp_dir);
|
||||
static gchar *transform_path (gchar *path, gboolean destroy);
|
||||
static void gimprc_set_token (gchar *token, gchar *value);
|
||||
static void add_gimp_directory_token (gchar *gimp_dir);
|
||||
#ifdef __EMX__
|
||||
static void add_x11root_token (char *x11root);
|
||||
static void add_x11root_token (gchar *x11root);
|
||||
#endif
|
||||
static char* open_backup_file (char *filename,
|
||||
char *secondary_filename,
|
||||
char **name_used,
|
||||
static gchar *open_backup_file (gchar *filename,
|
||||
gchar *secondary_filename,
|
||||
gchar **name_used,
|
||||
FILE **fp_new,
|
||||
FILE **fp_old);
|
||||
|
||||
static ParseInfo parse_info;
|
||||
static ParseInfo parse_info = { NULL };
|
||||
|
||||
static GList *unknown_tokens = NULL;
|
||||
|
||||
|
@ -369,13 +370,20 @@ gimp_system_rc_file (void)
|
|||
return value;
|
||||
}
|
||||
|
||||
void
|
||||
gboolean
|
||||
parse_buffers_init (void)
|
||||
{
|
||||
parse_info.buffer = g_new (char, 4096);
|
||||
if (!parse_info.buffer)
|
||||
{
|
||||
parse_info.buffer = g_new (gchar, 4096);
|
||||
parse_info.tokenbuf = parse_info.buffer + 2048;
|
||||
parse_info.buffer_size = 2048;
|
||||
parse_info.tokenbuf_size = 2048;
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
static GList *parse_add_directory_tokens (void)
|
||||
|
@ -1784,18 +1792,18 @@ parse_menu_path (gpointer val1p,
|
|||
return ERROR;
|
||||
}
|
||||
|
||||
static char*
|
||||
transform_path (char *path,
|
||||
int destroy)
|
||||
static gchar *
|
||||
transform_path (gchar *path,
|
||||
gboolean destroy)
|
||||
{
|
||||
int length;
|
||||
char *new_path;
|
||||
char *home;
|
||||
char *token;
|
||||
char *tmp;
|
||||
char *tmp2;
|
||||
int substituted;
|
||||
int is_env;
|
||||
gint length;
|
||||
gchar *new_path;
|
||||
gchar *home;
|
||||
gchar *token;
|
||||
gchar *tmp;
|
||||
gchar *tmp2;
|
||||
gint substituted;
|
||||
gint is_env;
|
||||
UnknownToken *ut;
|
||||
|
||||
home = g_get_home_dir ();
|
||||
|
|
136
app/gimprc.h
136
app/gimprc.h
|
@ -23,80 +23,82 @@
|
|||
#include "apptypes.h"
|
||||
|
||||
/* global gimprc variables */
|
||||
extern char * plug_in_path;
|
||||
extern char * temp_path;
|
||||
extern char * swap_path;
|
||||
extern char * brush_path;
|
||||
extern char * brush_vbr_path;
|
||||
extern char * default_brush;
|
||||
extern char * pattern_path;
|
||||
extern char * default_pattern;
|
||||
extern char * palette_path;
|
||||
extern char * default_palette;
|
||||
extern char * gradient_path;
|
||||
extern char * default_gradient;
|
||||
extern char * pluginrc_path;
|
||||
extern char * module_path;
|
||||
extern int tile_cache_size;
|
||||
extern int marching_speed;
|
||||
extern int last_opened_size;
|
||||
extern double gamma_val;
|
||||
extern int transparency_type;
|
||||
extern int perfectmouse;
|
||||
extern int transparency_size;
|
||||
extern int levels_of_undo;
|
||||
extern int color_cube_shades[];
|
||||
extern int install_cmap;
|
||||
extern int cycled_marching_ants;
|
||||
extern int default_threshold;
|
||||
extern int stingy_memory_use;
|
||||
extern int allow_resize_windows;
|
||||
extern int no_cursor_updating;
|
||||
extern int preview_size;
|
||||
extern int nav_preview_size;
|
||||
extern int show_rulers;
|
||||
extern gchar *plug_in_path;
|
||||
extern gchar *temp_path;
|
||||
extern gchar *swap_path;
|
||||
extern gchar *brush_path;
|
||||
extern gchar *brush_vbr_path;
|
||||
extern gchar *default_brush;
|
||||
extern gchar *pattern_path;
|
||||
extern gchar *default_pattern;
|
||||
extern gchar *palette_path;
|
||||
extern gchar *default_palette;
|
||||
extern gchar *gradient_path;
|
||||
extern gchar *default_gradient;
|
||||
extern gchar *pluginrc_path;
|
||||
extern gchar *module_path;
|
||||
extern gint tile_cache_size;
|
||||
extern gint marching_speed;
|
||||
extern gint last_opened_size;
|
||||
extern gdouble gamma_val;
|
||||
extern gint transparency_type;
|
||||
extern gboolean perfectmouse;
|
||||
extern gint transparency_size;
|
||||
extern gint levels_of_undo;
|
||||
extern gint color_cube_shades[];
|
||||
extern gboolean install_cmap;
|
||||
extern gboolean cycled_marching_ants;
|
||||
extern gint default_threshold;
|
||||
extern gboolean stingy_memory_use;
|
||||
extern gboolean allow_resize_windows;
|
||||
extern gboolean no_cursor_updating;
|
||||
extern gint preview_size;
|
||||
extern gint nav_preview_size;
|
||||
extern gboolean show_rulers;
|
||||
extern GimpUnit default_units;
|
||||
extern int show_statusbar;
|
||||
extern int auto_save;
|
||||
extern gboolean show_statusbar;
|
||||
extern gboolean auto_save;
|
||||
extern InterpolationType interpolation_type;
|
||||
extern int confirm_on_close;
|
||||
extern int default_width, default_height;
|
||||
extern int default_type;
|
||||
extern gboolean confirm_on_close;
|
||||
extern gint default_width, default_height;
|
||||
extern gint default_type;
|
||||
extern GimpUnit default_resolution_units;
|
||||
extern double default_xresolution;
|
||||
extern double default_yresolution;
|
||||
extern char * default_comment;
|
||||
extern int default_dot_for_dot;
|
||||
extern int save_session_info;
|
||||
extern int save_device_status;
|
||||
extern int always_restore_session;
|
||||
extern int show_tips;
|
||||
extern int last_tip;
|
||||
extern int show_tool_tips;
|
||||
extern double monitor_xres;
|
||||
extern double monitor_yres;
|
||||
extern int using_xserver_resolution;
|
||||
extern int num_processors;
|
||||
extern char * image_title_format;
|
||||
extern int global_paint_options;
|
||||
extern int show_indicators;
|
||||
extern int max_new_image_size;
|
||||
extern int thumbnail_mode;
|
||||
extern int trust_dirty_flag;
|
||||
extern int use_help;
|
||||
extern int nav_window_per_display;
|
||||
extern int info_window_follows_mouse;
|
||||
extern int help_browser;
|
||||
extern gdouble default_xresolution;
|
||||
extern gdouble default_yresolution;
|
||||
extern gchar *default_comment;
|
||||
extern gboolean default_dot_for_dot;
|
||||
extern gboolean save_session_info;
|
||||
extern gboolean save_device_status;
|
||||
extern gboolean always_restore_session;
|
||||
extern gboolean show_tips;
|
||||
extern gint last_tip;
|
||||
extern gboolean show_tool_tips;
|
||||
extern gdouble monitor_xres;
|
||||
extern gdouble monitor_yres;
|
||||
extern gboolean using_xserver_resolution;
|
||||
extern gint num_processors;
|
||||
extern gchar *image_title_format;
|
||||
extern gboolean global_paint_options;
|
||||
extern gboolean show_indicators;
|
||||
extern gint max_new_image_size;
|
||||
extern gint thumbnail_mode;
|
||||
extern gboolean trust_dirty_flag;
|
||||
extern gboolean use_help;
|
||||
extern gboolean nav_window_per_display;
|
||||
extern gboolean info_window_follows_mouse;
|
||||
extern gint help_browser;
|
||||
|
||||
/* function prototypes */
|
||||
void parse_buffers_init (); /* this has to be called before any file
|
||||
gboolean parse_buffers_init (void); /* this has to be called before any file
|
||||
* is parsed
|
||||
*/
|
||||
void parse_gimprc (void);
|
||||
gboolean parse_gimprc_file (char *filename);
|
||||
void save_gimprc (GList **updated_options, GList **conflicting_options);
|
||||
char * gimprc_find_token (char *token);
|
||||
char * gimprc_value_to_str (char *name);
|
||||
void save_gimprc_strings (gchar *token, gchar *value);
|
||||
gboolean parse_gimprc_file (gchar *filename);
|
||||
void save_gimprc (GList **updated_options,
|
||||
GList **conflicting_options);
|
||||
gchar * gimprc_find_token (gchar *token);
|
||||
gchar * gimprc_value_to_str (gchar *name);
|
||||
void save_gimprc_strings (gchar *token,
|
||||
gchar *value);
|
||||
|
||||
#endif /* __GIMPRC_H__ */
|
||||
|
|
|
@ -25,9 +25,13 @@
|
|||
|
||||
#include "gimphelp.h"
|
||||
|
||||
#include "libgimp/gimpchainbutton.h"
|
||||
#include "libgimp/gimpdialog.h"
|
||||
#include "libgimp/gimpfileselection.h"
|
||||
#include "libgimp/gimppixmap.h"
|
||||
#include "libgimp/gimppatheditor.h"
|
||||
#include "libgimp/gimpquerybox.h"
|
||||
#include "libgimp/gimpsizeentry.h"
|
||||
#include "libgimp/gimpwidgets.h"
|
||||
|
||||
/* a simple message box */
|
||||
|
|
|
@ -32,11 +32,8 @@
|
|||
#include "session.h"
|
||||
#include "tile_cache.h"
|
||||
|
||||
#include "libgimp/gimpchainbutton.h"
|
||||
#include "libgimp/gimpfileselection.h"
|
||||
#include "libgimp/gimppatheditor.h"
|
||||
#include "libgimp/gimpsizeentry.h"
|
||||
#include "libgimp/gimplimits.h"
|
||||
#include "libgimp/gimpmath.h"
|
||||
|
||||
#include "libgimp/gimpintl.h"
|
||||
|
||||
|
@ -61,8 +58,6 @@ static void file_prefs_cancel_callback (GtkWidget *, GtkWidget *);
|
|||
static void file_prefs_toggle_callback (GtkWidget *, gpointer);
|
||||
static void file_prefs_preview_size_callback (GtkWidget *, gpointer);
|
||||
static void file_prefs_nav_preview_size_callback (GtkWidget *, gpointer);
|
||||
static void file_prefs_mem_size_callback (GtkWidget *, gpointer);
|
||||
static void file_prefs_mem_size_unit_callback (GtkWidget *, gpointer);
|
||||
static void file_prefs_string_callback (GtkWidget *, gpointer);
|
||||
static void file_prefs_text_callback (GtkWidget *, gpointer);
|
||||
static void file_prefs_filename_callback (GtkWidget *, gpointer);
|
||||
|
@ -982,67 +977,6 @@ file_prefs_nav_preview_size_callback (GtkWidget *widget,
|
|||
gdisplays_nav_preview_resized ();
|
||||
}
|
||||
|
||||
static void
|
||||
file_prefs_mem_size_callback (GtkWidget *widget,
|
||||
gpointer data)
|
||||
{
|
||||
gint *mem_size;
|
||||
gint divided_mem_size;
|
||||
gint mem_size_unit;
|
||||
|
||||
if (! (mem_size = gtk_object_get_data (GTK_OBJECT (widget), "mem_size")))
|
||||
return;
|
||||
|
||||
divided_mem_size = (int) gtk_object_get_data (GTK_OBJECT (widget),
|
||||
"divided_mem_size");
|
||||
mem_size_unit = (int) gtk_object_get_data (GTK_OBJECT (widget),
|
||||
"mem_size_unit");
|
||||
|
||||
divided_mem_size = GTK_ADJUSTMENT (widget)->value;
|
||||
*mem_size = divided_mem_size * mem_size_unit;
|
||||
|
||||
gtk_object_set_data (GTK_OBJECT (widget), "divided_mem_size",
|
||||
(gpointer) divided_mem_size);
|
||||
}
|
||||
|
||||
static void
|
||||
file_prefs_mem_size_unit_callback (GtkWidget *widget,
|
||||
gpointer data)
|
||||
{
|
||||
GtkObject *adjustment;
|
||||
gint new_unit;
|
||||
gint *mem_size;
|
||||
gint divided_mem_size;
|
||||
gint mem_size_unit;
|
||||
|
||||
adjustment = GTK_OBJECT (data);
|
||||
|
||||
new_unit = (int) gtk_object_get_user_data (GTK_OBJECT (widget));
|
||||
|
||||
if (! (mem_size = gtk_object_get_data (GTK_OBJECT (adjustment), "mem_size")))
|
||||
return;
|
||||
|
||||
divided_mem_size = (int) gtk_object_get_data (GTK_OBJECT (adjustment),
|
||||
"divided_mem_size");
|
||||
mem_size_unit = (int) gtk_object_get_data (GTK_OBJECT (adjustment),
|
||||
"mem_size_unit");
|
||||
|
||||
if (new_unit != mem_size_unit)
|
||||
{
|
||||
divided_mem_size = *mem_size / new_unit;
|
||||
mem_size_unit = new_unit;
|
||||
|
||||
gtk_signal_handler_block_by_data (GTK_OBJECT (adjustment), mem_size);
|
||||
gtk_adjustment_set_value (GTK_ADJUSTMENT (adjustment), divided_mem_size);
|
||||
gtk_signal_handler_unblock_by_data (GTK_OBJECT (adjustment), mem_size);
|
||||
}
|
||||
|
||||
gtk_object_set_data (GTK_OBJECT (adjustment), "divided_mem_size",
|
||||
(gpointer) divided_mem_size);
|
||||
gtk_object_set_data (GTK_OBJECT (adjustment), "mem_size_unit",
|
||||
(gpointer) mem_size_unit);
|
||||
}
|
||||
|
||||
static void
|
||||
file_prefs_string_callback (GtkWidget *widget,
|
||||
gpointer data)
|
||||
|
@ -1384,8 +1318,6 @@ file_pref_cmd_callback (GtkWidget *widget,
|
|||
GSList *group;
|
||||
|
||||
gint i;
|
||||
gint divided_mem_size;
|
||||
gint mem_size_unit;
|
||||
gchar *pixels_per_unit;
|
||||
|
||||
if (prefs_dlg)
|
||||
|
@ -1676,45 +1608,12 @@ file_pref_cmd_callback (GtkWidget *widget,
|
|||
optionmenu, 1, TRUE);
|
||||
|
||||
/* The maximum size of a new image */
|
||||
mem_size_unit = 1;
|
||||
for (i = 0; i < 3; i++)
|
||||
{
|
||||
if (max_new_image_size % (mem_size_unit * 1024) != 0)
|
||||
break;
|
||||
mem_size_unit *= 1024;
|
||||
}
|
||||
divided_mem_size = max_new_image_size / mem_size_unit;
|
||||
|
||||
hbox = gtk_hbox_new (FALSE, 2);
|
||||
spinbutton =
|
||||
gimp_spin_button_new (&adjustment, divided_mem_size,
|
||||
0.0, (4069.0 * 1024 * 1024), 1.0, 16.0, 0.0,
|
||||
1.0, 0.0);
|
||||
adjustment = gtk_adjustment_new (max_new_image_size,
|
||||
0, (4069.0 * 1024 * 1024), 1.0, 1.0, 0.0);
|
||||
hbox = gimp_mem_size_entry_new (GTK_ADJUSTMENT (adjustment));
|
||||
gtk_signal_connect (GTK_OBJECT (adjustment), "value_changed",
|
||||
GTK_SIGNAL_FUNC (file_prefs_mem_size_callback),
|
||||
GTK_SIGNAL_FUNC (gimp_int_adjustment_update),
|
||||
&max_new_image_size);
|
||||
gtk_box_pack_start (GTK_BOX (hbox), spinbutton, FALSE, FALSE, 0);
|
||||
gtk_widget_show (spinbutton);
|
||||
|
||||
/* for the mem_size_unit callback */
|
||||
gtk_object_set_data (GTK_OBJECT (adjustment), "mem_size",
|
||||
&max_new_image_size);
|
||||
gtk_object_set_data (GTK_OBJECT (adjustment), "divided_mem_size",
|
||||
(gpointer) divided_mem_size);
|
||||
gtk_object_set_data (GTK_OBJECT (adjustment), "mem_size_unit",
|
||||
(gpointer) mem_size_unit);
|
||||
|
||||
optionmenu =
|
||||
gimp_option_menu_new2 (FALSE, file_prefs_mem_size_unit_callback,
|
||||
adjustment, (gpointer) mem_size_unit,
|
||||
|
||||
_("Bytes"), (gpointer) 1, NULL,
|
||||
_("KiloBytes"), (gpointer) 1024, NULL,
|
||||
_("MegaBytes"), (gpointer) (1024 * 1024), NULL,
|
||||
|
||||
NULL);
|
||||
gtk_box_pack_start (GTK_BOX (hbox), optionmenu, FALSE, FALSE, 0);
|
||||
gtk_widget_show (optionmenu);
|
||||
gimp_table_attach_aligned (GTK_TABLE (table), 0, 1,
|
||||
_("Maximum Image Size:"), 1.0, 0.5,
|
||||
hbox, 1, TRUE);
|
||||
|
@ -1725,8 +1624,8 @@ file_pref_cmd_callback (GtkWidget *widget,
|
|||
GTK_CTREE (ctree),
|
||||
_("Default Comment"),
|
||||
"dialogs/preferences/default_comment.html",
|
||||
NULL,
|
||||
&top_insert,
|
||||
top_insert,
|
||||
&child_insert,
|
||||
page_index);
|
||||
gtk_widget_show (vbox);
|
||||
page_index++;
|
||||
|
@ -2193,45 +2092,12 @@ file_pref_cmd_callback (GtkWidget *widget,
|
|||
spinbutton, 1, TRUE);
|
||||
|
||||
/* The tile cache size */
|
||||
mem_size_unit = 1;
|
||||
for (i = 0; i < 3; i++)
|
||||
{
|
||||
if (edit_tile_cache_size % (mem_size_unit * 1024) != 0)
|
||||
break;
|
||||
mem_size_unit *= 1024;
|
||||
}
|
||||
divided_mem_size = edit_tile_cache_size / mem_size_unit;
|
||||
|
||||
hbox = gtk_hbox_new (FALSE, 2);
|
||||
spinbutton =
|
||||
gimp_spin_button_new (&adjustment, divided_mem_size,
|
||||
0.0, (4069.0 * 1024 * 1024), 1.0, 16.0, 0.0,
|
||||
1.0, 0.0);
|
||||
adjustment = gtk_adjustment_new (edit_tile_cache_size,
|
||||
0, (4069.0 * 1024 * 1024), 1.0, 1.0, 0.0);
|
||||
hbox = gimp_mem_size_entry_new (GTK_ADJUSTMENT (adjustment));
|
||||
gtk_signal_connect (GTK_OBJECT (adjustment), "value_changed",
|
||||
GTK_SIGNAL_FUNC (file_prefs_mem_size_callback),
|
||||
GTK_SIGNAL_FUNC (gimp_int_adjustment_update),
|
||||
&edit_tile_cache_size);
|
||||
gtk_box_pack_start (GTK_BOX (hbox), spinbutton, FALSE, FALSE, 0);
|
||||
gtk_widget_show (spinbutton);
|
||||
|
||||
/* for the mem_size_unit callback */
|
||||
gtk_object_set_data (GTK_OBJECT (adjustment), "mem_size",
|
||||
&edit_tile_cache_size);
|
||||
gtk_object_set_data (GTK_OBJECT (adjustment), "divided_mem_size",
|
||||
(gpointer) divided_mem_size);
|
||||
gtk_object_set_data (GTK_OBJECT (adjustment), "mem_size_unit",
|
||||
(gpointer) mem_size_unit);
|
||||
|
||||
optionmenu =
|
||||
gimp_option_menu_new2 (FALSE, file_prefs_mem_size_unit_callback,
|
||||
adjustment, (gpointer) mem_size_unit,
|
||||
|
||||
_("Bytes"), (gpointer) 1, NULL,
|
||||
_("KiloBytes"), (gpointer) 1024, NULL,
|
||||
_("MegaBytes"), (gpointer) (1024 * 1024), NULL,
|
||||
|
||||
NULL);
|
||||
gtk_box_pack_start (GTK_BOX (hbox), optionmenu, FALSE, FALSE, 0);
|
||||
gtk_widget_show (optionmenu);
|
||||
gimp_table_attach_aligned (GTK_TABLE (table), 0, 1,
|
||||
_("Tile Cache Size:"), 1.0, 0.5,
|
||||
hbox, 1, TRUE);
|
||||
|
@ -2388,13 +2254,14 @@ file_pref_cmd_callback (GtkWidget *widget,
|
|||
|
||||
{
|
||||
gdouble xres, yres;
|
||||
gchar buf[80];
|
||||
gchar *str;
|
||||
|
||||
gdisplay_xserver_resolution (&xres, &yres);
|
||||
|
||||
g_snprintf (buf, sizeof (buf), _("(Currently %d x %d dpi)"),
|
||||
(int) (xres + 0.5), (int) (yres + 0.5));
|
||||
label = gtk_label_new (buf);
|
||||
str = g_strdup_printf (_("(Currently %d x %d dpi)"),
|
||||
ROUND (xres), ROUND (yres));
|
||||
label = gtk_label_new (str);
|
||||
g_free (str);
|
||||
}
|
||||
|
||||
abox = gtk_alignment_new (0.5, 0.5, 0.0, 0.0);
|
||||
|
|
File diff suppressed because it is too large
Load Diff
1348
app/install.c
1348
app/install.c
File diff suppressed because it is too large
Load Diff
|
@ -32,11 +32,8 @@
|
|||
#include "session.h"
|
||||
#include "tile_cache.h"
|
||||
|
||||
#include "libgimp/gimpchainbutton.h"
|
||||
#include "libgimp/gimpfileselection.h"
|
||||
#include "libgimp/gimppatheditor.h"
|
||||
#include "libgimp/gimpsizeentry.h"
|
||||
#include "libgimp/gimplimits.h"
|
||||
#include "libgimp/gimpmath.h"
|
||||
|
||||
#include "libgimp/gimpintl.h"
|
||||
|
||||
|
@ -61,8 +58,6 @@ static void file_prefs_cancel_callback (GtkWidget *, GtkWidget *);
|
|||
static void file_prefs_toggle_callback (GtkWidget *, gpointer);
|
||||
static void file_prefs_preview_size_callback (GtkWidget *, gpointer);
|
||||
static void file_prefs_nav_preview_size_callback (GtkWidget *, gpointer);
|
||||
static void file_prefs_mem_size_callback (GtkWidget *, gpointer);
|
||||
static void file_prefs_mem_size_unit_callback (GtkWidget *, gpointer);
|
||||
static void file_prefs_string_callback (GtkWidget *, gpointer);
|
||||
static void file_prefs_text_callback (GtkWidget *, gpointer);
|
||||
static void file_prefs_filename_callback (GtkWidget *, gpointer);
|
||||
|
@ -982,67 +977,6 @@ file_prefs_nav_preview_size_callback (GtkWidget *widget,
|
|||
gdisplays_nav_preview_resized ();
|
||||
}
|
||||
|
||||
static void
|
||||
file_prefs_mem_size_callback (GtkWidget *widget,
|
||||
gpointer data)
|
||||
{
|
||||
gint *mem_size;
|
||||
gint divided_mem_size;
|
||||
gint mem_size_unit;
|
||||
|
||||
if (! (mem_size = gtk_object_get_data (GTK_OBJECT (widget), "mem_size")))
|
||||
return;
|
||||
|
||||
divided_mem_size = (int) gtk_object_get_data (GTK_OBJECT (widget),
|
||||
"divided_mem_size");
|
||||
mem_size_unit = (int) gtk_object_get_data (GTK_OBJECT (widget),
|
||||
"mem_size_unit");
|
||||
|
||||
divided_mem_size = GTK_ADJUSTMENT (widget)->value;
|
||||
*mem_size = divided_mem_size * mem_size_unit;
|
||||
|
||||
gtk_object_set_data (GTK_OBJECT (widget), "divided_mem_size",
|
||||
(gpointer) divided_mem_size);
|
||||
}
|
||||
|
||||
static void
|
||||
file_prefs_mem_size_unit_callback (GtkWidget *widget,
|
||||
gpointer data)
|
||||
{
|
||||
GtkObject *adjustment;
|
||||
gint new_unit;
|
||||
gint *mem_size;
|
||||
gint divided_mem_size;
|
||||
gint mem_size_unit;
|
||||
|
||||
adjustment = GTK_OBJECT (data);
|
||||
|
||||
new_unit = (int) gtk_object_get_user_data (GTK_OBJECT (widget));
|
||||
|
||||
if (! (mem_size = gtk_object_get_data (GTK_OBJECT (adjustment), "mem_size")))
|
||||
return;
|
||||
|
||||
divided_mem_size = (int) gtk_object_get_data (GTK_OBJECT (adjustment),
|
||||
"divided_mem_size");
|
||||
mem_size_unit = (int) gtk_object_get_data (GTK_OBJECT (adjustment),
|
||||
"mem_size_unit");
|
||||
|
||||
if (new_unit != mem_size_unit)
|
||||
{
|
||||
divided_mem_size = *mem_size / new_unit;
|
||||
mem_size_unit = new_unit;
|
||||
|
||||
gtk_signal_handler_block_by_data (GTK_OBJECT (adjustment), mem_size);
|
||||
gtk_adjustment_set_value (GTK_ADJUSTMENT (adjustment), divided_mem_size);
|
||||
gtk_signal_handler_unblock_by_data (GTK_OBJECT (adjustment), mem_size);
|
||||
}
|
||||
|
||||
gtk_object_set_data (GTK_OBJECT (adjustment), "divided_mem_size",
|
||||
(gpointer) divided_mem_size);
|
||||
gtk_object_set_data (GTK_OBJECT (adjustment), "mem_size_unit",
|
||||
(gpointer) mem_size_unit);
|
||||
}
|
||||
|
||||
static void
|
||||
file_prefs_string_callback (GtkWidget *widget,
|
||||
gpointer data)
|
||||
|
@ -1384,8 +1318,6 @@ file_pref_cmd_callback (GtkWidget *widget,
|
|||
GSList *group;
|
||||
|
||||
gint i;
|
||||
gint divided_mem_size;
|
||||
gint mem_size_unit;
|
||||
gchar *pixels_per_unit;
|
||||
|
||||
if (prefs_dlg)
|
||||
|
@ -1676,45 +1608,12 @@ file_pref_cmd_callback (GtkWidget *widget,
|
|||
optionmenu, 1, TRUE);
|
||||
|
||||
/* The maximum size of a new image */
|
||||
mem_size_unit = 1;
|
||||
for (i = 0; i < 3; i++)
|
||||
{
|
||||
if (max_new_image_size % (mem_size_unit * 1024) != 0)
|
||||
break;
|
||||
mem_size_unit *= 1024;
|
||||
}
|
||||
divided_mem_size = max_new_image_size / mem_size_unit;
|
||||
|
||||
hbox = gtk_hbox_new (FALSE, 2);
|
||||
spinbutton =
|
||||
gimp_spin_button_new (&adjustment, divided_mem_size,
|
||||
0.0, (4069.0 * 1024 * 1024), 1.0, 16.0, 0.0,
|
||||
1.0, 0.0);
|
||||
adjustment = gtk_adjustment_new (max_new_image_size,
|
||||
0, (4069.0 * 1024 * 1024), 1.0, 1.0, 0.0);
|
||||
hbox = gimp_mem_size_entry_new (GTK_ADJUSTMENT (adjustment));
|
||||
gtk_signal_connect (GTK_OBJECT (adjustment), "value_changed",
|
||||
GTK_SIGNAL_FUNC (file_prefs_mem_size_callback),
|
||||
GTK_SIGNAL_FUNC (gimp_int_adjustment_update),
|
||||
&max_new_image_size);
|
||||
gtk_box_pack_start (GTK_BOX (hbox), spinbutton, FALSE, FALSE, 0);
|
||||
gtk_widget_show (spinbutton);
|
||||
|
||||
/* for the mem_size_unit callback */
|
||||
gtk_object_set_data (GTK_OBJECT (adjustment), "mem_size",
|
||||
&max_new_image_size);
|
||||
gtk_object_set_data (GTK_OBJECT (adjustment), "divided_mem_size",
|
||||
(gpointer) divided_mem_size);
|
||||
gtk_object_set_data (GTK_OBJECT (adjustment), "mem_size_unit",
|
||||
(gpointer) mem_size_unit);
|
||||
|
||||
optionmenu =
|
||||
gimp_option_menu_new2 (FALSE, file_prefs_mem_size_unit_callback,
|
||||
adjustment, (gpointer) mem_size_unit,
|
||||
|
||||
_("Bytes"), (gpointer) 1, NULL,
|
||||
_("KiloBytes"), (gpointer) 1024, NULL,
|
||||
_("MegaBytes"), (gpointer) (1024 * 1024), NULL,
|
||||
|
||||
NULL);
|
||||
gtk_box_pack_start (GTK_BOX (hbox), optionmenu, FALSE, FALSE, 0);
|
||||
gtk_widget_show (optionmenu);
|
||||
gimp_table_attach_aligned (GTK_TABLE (table), 0, 1,
|
||||
_("Maximum Image Size:"), 1.0, 0.5,
|
||||
hbox, 1, TRUE);
|
||||
|
@ -1725,8 +1624,8 @@ file_pref_cmd_callback (GtkWidget *widget,
|
|||
GTK_CTREE (ctree),
|
||||
_("Default Comment"),
|
||||
"dialogs/preferences/default_comment.html",
|
||||
NULL,
|
||||
&top_insert,
|
||||
top_insert,
|
||||
&child_insert,
|
||||
page_index);
|
||||
gtk_widget_show (vbox);
|
||||
page_index++;
|
||||
|
@ -2193,45 +2092,12 @@ file_pref_cmd_callback (GtkWidget *widget,
|
|||
spinbutton, 1, TRUE);
|
||||
|
||||
/* The tile cache size */
|
||||
mem_size_unit = 1;
|
||||
for (i = 0; i < 3; i++)
|
||||
{
|
||||
if (edit_tile_cache_size % (mem_size_unit * 1024) != 0)
|
||||
break;
|
||||
mem_size_unit *= 1024;
|
||||
}
|
||||
divided_mem_size = edit_tile_cache_size / mem_size_unit;
|
||||
|
||||
hbox = gtk_hbox_new (FALSE, 2);
|
||||
spinbutton =
|
||||
gimp_spin_button_new (&adjustment, divided_mem_size,
|
||||
0.0, (4069.0 * 1024 * 1024), 1.0, 16.0, 0.0,
|
||||
1.0, 0.0);
|
||||
adjustment = gtk_adjustment_new (edit_tile_cache_size,
|
||||
0, (4069.0 * 1024 * 1024), 1.0, 1.0, 0.0);
|
||||
hbox = gimp_mem_size_entry_new (GTK_ADJUSTMENT (adjustment));
|
||||
gtk_signal_connect (GTK_OBJECT (adjustment), "value_changed",
|
||||
GTK_SIGNAL_FUNC (file_prefs_mem_size_callback),
|
||||
GTK_SIGNAL_FUNC (gimp_int_adjustment_update),
|
||||
&edit_tile_cache_size);
|
||||
gtk_box_pack_start (GTK_BOX (hbox), spinbutton, FALSE, FALSE, 0);
|
||||
gtk_widget_show (spinbutton);
|
||||
|
||||
/* for the mem_size_unit callback */
|
||||
gtk_object_set_data (GTK_OBJECT (adjustment), "mem_size",
|
||||
&edit_tile_cache_size);
|
||||
gtk_object_set_data (GTK_OBJECT (adjustment), "divided_mem_size",
|
||||
(gpointer) divided_mem_size);
|
||||
gtk_object_set_data (GTK_OBJECT (adjustment), "mem_size_unit",
|
||||
(gpointer) mem_size_unit);
|
||||
|
||||
optionmenu =
|
||||
gimp_option_menu_new2 (FALSE, file_prefs_mem_size_unit_callback,
|
||||
adjustment, (gpointer) mem_size_unit,
|
||||
|
||||
_("Bytes"), (gpointer) 1, NULL,
|
||||
_("KiloBytes"), (gpointer) 1024, NULL,
|
||||
_("MegaBytes"), (gpointer) (1024 * 1024), NULL,
|
||||
|
||||
NULL);
|
||||
gtk_box_pack_start (GTK_BOX (hbox), optionmenu, FALSE, FALSE, 0);
|
||||
gtk_widget_show (optionmenu);
|
||||
gimp_table_attach_aligned (GTK_TABLE (table), 0, 1,
|
||||
_("Tile Cache Size:"), 1.0, 0.5,
|
||||
hbox, 1, TRUE);
|
||||
|
@ -2388,13 +2254,14 @@ file_pref_cmd_callback (GtkWidget *widget,
|
|||
|
||||
{
|
||||
gdouble xres, yres;
|
||||
gchar buf[80];
|
||||
gchar *str;
|
||||
|
||||
gdisplay_xserver_resolution (&xres, &yres);
|
||||
|
||||
g_snprintf (buf, sizeof (buf), _("(Currently %d x %d dpi)"),
|
||||
(int) (xres + 0.5), (int) (yres + 0.5));
|
||||
label = gtk_label_new (buf);
|
||||
str = g_strdup_printf (_("(Currently %d x %d dpi)"),
|
||||
ROUND (xres), ROUND (yres));
|
||||
label = gtk_label_new (str);
|
||||
g_free (str);
|
||||
}
|
||||
|
||||
abox = gtk_alignment_new (0.5, 0.5, 0.0, 0.0);
|
||||
|
|
1348
app/user_install.c
1348
app/user_install.c
File diff suppressed because it is too large
Load Diff
|
@ -25,9 +25,13 @@
|
|||
|
||||
#include "gimphelp.h"
|
||||
|
||||
#include "libgimp/gimpchainbutton.h"
|
||||
#include "libgimp/gimpdialog.h"
|
||||
#include "libgimp/gimpfileselection.h"
|
||||
#include "libgimp/gimppixmap.h"
|
||||
#include "libgimp/gimppatheditor.h"
|
||||
#include "libgimp/gimpquerybox.h"
|
||||
#include "libgimp/gimpsizeentry.h"
|
||||
#include "libgimp/gimpwidgets.h"
|
||||
|
||||
/* a simple message box */
|
||||
|
|
|
@ -3,8 +3,8 @@
|
|||
# Script to perform the default installation steps for the
|
||||
# specified user home directory.
|
||||
#
|
||||
# 1) Create ~/.gimp if it doesn't exist
|
||||
# 2) Copy system gimprc file to ~/.gimp
|
||||
# 1) Create ~/.gimp-1.2 if it doesn't exist
|
||||
# 2) Copy system gimprc file to ~/.gimp-1.2
|
||||
# 3) Create brushes, gradients, palettes, patterns, plug-ins subdirs
|
||||
# 4) Create the tmp subdirectory for disk-swapping undo buffers
|
||||
# 5) Copy the palette files in system palette directory
|
||||
|
@ -30,6 +30,8 @@ echo "mkdir $2/gradients"
|
|||
mkdir $2/gradients
|
||||
echo "mkdir $2/palettes"
|
||||
mkdir $2/palettes
|
||||
echo "cp $1/palettes/* $2/palettes"
|
||||
cp $1/palettes/* $2/palettes
|
||||
echo "mkdir $2/patterns"
|
||||
mkdir $2/patterns
|
||||
echo "mkdir $2/plug-ins"
|
||||
|
@ -40,16 +42,16 @@ echo "mkdir $2/scripts"
|
|||
mkdir $2/scripts
|
||||
echo "mkdir $2/tmp"
|
||||
mkdir $2/tmp
|
||||
echo "mkdir $2/levels"
|
||||
mkdir $2/levels
|
||||
echo "mkdir $2/curves"
|
||||
mkdir $2/curves
|
||||
echo "mkdir $2/levels"
|
||||
mkdir $2/levels
|
||||
echo "mkdir $2/fractalexplorer"
|
||||
mkdir $2/fractalexplorer
|
||||
echo "mkdir $2/gfig"
|
||||
mkdir $2/gfig
|
||||
echo "mkdir $2/gflare"
|
||||
mkdir $2/gflare
|
||||
echo "mkdir $2/fractalexplorer"
|
||||
mkdir $2/fractalexplorer
|
||||
echo "mkdir $2/gimpressionist"
|
||||
mkdir $2/gimpressionist
|
||||
echo "mkdir $2/gimpressionist/Brushes"
|
||||
|
@ -58,8 +60,3 @@ echo "mkdir $2/gimpressionist/Paper"
|
|||
mkdir $2/gimpressionist/Paper
|
||||
echo "mkdir $2/gimpressionist/Presets"
|
||||
mkdir $2/gimpressionist/Presets
|
||||
echo "cp $1/palettes/* $2/palettes"
|
||||
cp $1/palettes/* $2/palettes
|
||||
echo "NOTICE: GIMP uses an additional gtkrc file so you can"
|
||||
echo "configure it to look differently than other GTK apps."
|
||||
echo "You may wish to edit GIMP's gtkrc (in $2/gtkrc)."
|
||||
|
|
|
@ -1,3 +1,9 @@
|
|||
2000-03-14 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* libgimp/libgimp-decl.txt
|
||||
* libgimp/libgimp-sections.txt
|
||||
* libgimp/tmpl/gimpwidgets.sgml: updates
|
||||
|
||||
Sun Mar 12 01:08:13 CET 2000 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* libgimp/libgimp-decl.txt
|
||||
|
|
|
@ -3903,6 +3903,30 @@ gint *seed,gint *use_time,gint time_t
|
|||
<RETURNS>GtkWidget *</RETURNS>
|
||||
GimpUnit unit,gchar *unit_format,gboolean menu_show_pixels,gboolean menu_show_percent,gint spinbutton_usize,GimpSizeEntryUpdatePolicy update_policy,gboolean chainbutton_active,gboolean chain_constrains_ratio,gchar *xlabel,gdouble x,gdouble xres,gdouble lower_boundary_x,gdouble upper_boundary_x,gdouble xsize_0,gdouble xsize_100,gchar *ylabel,gdouble y,gdouble yres,gdouble lower_boundary_y,gdouble upper_boundary_y,gdouble ysize_0,gdouble ysize_100
|
||||
</FUNCTION>
|
||||
<MACRO>
|
||||
<NAME>GIMP_MEM_SIZE_ENTRY_SPINBUTTON</NAME>
|
||||
#define GIMP_MEM_SIZE_ENTRY_SPINBUTTON(memsize) \
|
||||
GTK_SPIN_BUTTON (gtk_object_get_data (GTK_OBJECT (memsize), \
|
||||
"spinbutton"))
|
||||
</MACRO>
|
||||
<MACRO>
|
||||
<NAME>GIMP_MEM_SIZE_ENTRY_SPINBUTTON_ADJ</NAME>
|
||||
#define GIMP_MEM_SIZE_ENTRY_SPINBUTTON_ADJ(memsize) \
|
||||
gtk_spin_button_get_adjustment \
|
||||
(GTK_SPIN_BUTTON (gtk_object_get_data (GTK_OBJECT (memsize), \
|
||||
"spinbutton")))
|
||||
</MACRO>
|
||||
<MACRO>
|
||||
<NAME>GIMP_MEM_SIZE_ENTRY_OPTIONMENU</NAME>
|
||||
#define GIMP_MEM_SIZE_ENTRY_OPTIONMENU(memsize) \
|
||||
GTK_OPTION_MENU (gtk_object_get_data (GTK_OBJECT (memsize), \
|
||||
"optionmenu"))
|
||||
</MACRO>
|
||||
<FUNCTION>
|
||||
<NAME>gimp_mem_size_entry_new</NAME>
|
||||
<RETURNS>GtkWidget *</RETURNS>
|
||||
GtkAdjustment *adjustment
|
||||
</FUNCTION>
|
||||
<FUNCTION>
|
||||
<NAME>gimp_pixmap_button_new</NAME>
|
||||
<RETURNS>GtkWidget *</RETURNS>
|
||||
|
|
|
@ -358,6 +358,39 @@ Returns the #GimpChainButton which is attached to the #GimpSizeEntry.
|
|||
@sizeentry: The #GimpSizeEntry returned by gimp_coordinates_new().
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gimp_mem_size_entry_new ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@adjustment:
|
||||
@Returns:
|
||||
|
||||
|
||||
<!-- ##### MACRO GIMP_MEM_SIZE_ENTRY_SPINBUTTON ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@memsize:
|
||||
|
||||
|
||||
<!-- ##### MACRO GIMP_MEM_SIZE_ENTRY_SPINBUTTON_ADJ ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@memsize:
|
||||
|
||||
|
||||
<!-- ##### MACRO GIMP_MEM_SIZE_ENTRY_OPTIONMENU ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@memsize:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gimp_pixmap_button_new ##### -->
|
||||
<para>
|
||||
|
||||
|
|
|
@ -299,17 +299,21 @@
|
|||
# the help pages using the "netscape-remote" command.
|
||||
(help-browser gimp)
|
||||
|
||||
# Gfig search path
|
||||
# This path will be searched for Gfig figures when you use the Gfig plug-in.
|
||||
(gfig-path "${gimp_dir}/gfig:${gimp_data_dir}/gfig")
|
||||
|
||||
# Fractalexplorer path
|
||||
# This path will be searched for fractals when you use the Fractalexplorer
|
||||
# plug-in.
|
||||
(fractalexplorer-path "${gimp_dir}/fractalexplorer:${gimp_data_dir}/fractalexplorer")
|
||||
|
||||
# Gfig search path
|
||||
# This path will be searched for Gfig figures when you use the Gfig plug-in.
|
||||
(gfig-path "${gimp_dir}/gfig:${gimp_data_dir}/gfig")
|
||||
|
||||
# GFlare path
|
||||
# This path will be searched for gflares when you use the GFlare plug-in.
|
||||
(gflare-path "${gimp_dir}/gflare:${gimp_data_dir}/gflare")
|
||||
|
||||
# Gimpressionist path
|
||||
# This path will be searched for data when you use the Gimpressionist plug-in.
|
||||
(gimpressionist-path "${gimp_dir}/gimpressionist:${gimp_data_dir}/gimpressionist")
|
||||
|
||||
# [end of file]
|
||||
|
|
12
gimprc.in
12
gimprc.in
|
@ -299,17 +299,21 @@
|
|||
# the help pages using the "netscape-remote" command.
|
||||
(help-browser gimp)
|
||||
|
||||
# Gfig search path
|
||||
# This path will be searched for Gfig figures when you use the Gfig plug-in.
|
||||
(gfig-path "${gimp_dir}/gfig:${gimp_data_dir}/gfig")
|
||||
|
||||
# Fractalexplorer path
|
||||
# This path will be searched for fractals when you use the Fractalexplorer
|
||||
# plug-in.
|
||||
(fractalexplorer-path "${gimp_dir}/fractalexplorer:${gimp_data_dir}/fractalexplorer")
|
||||
|
||||
# Gfig search path
|
||||
# This path will be searched for Gfig figures when you use the Gfig plug-in.
|
||||
(gfig-path "${gimp_dir}/gfig:${gimp_data_dir}/gfig")
|
||||
|
||||
# GFlare path
|
||||
# This path will be searched for gflares when you use the GFlare plug-in.
|
||||
(gflare-path "${gimp_dir}/gflare:${gimp_data_dir}/gflare")
|
||||
|
||||
# Gimpressionist path
|
||||
# This path will be searched for data when you use the Gimpressionist plug-in.
|
||||
(gimpressionist-path "${gimp_dir}/gimpressionist:${gimp_data_dir}/gimpressionist")
|
||||
|
||||
# [end of file]
|
||||
|
|
|
@ -317,8 +317,6 @@ gimp_chain_button_draw_lines (GtkWidget *widget,
|
|||
g_return_if_fail (gcb != NULL);
|
||||
g_return_if_fail (GIMP_IS_CHAIN_BUTTON (gcb));
|
||||
|
||||
if (event); /* avoid unused variable compiler warning */
|
||||
|
||||
gdk_window_clear_area (widget->window,
|
||||
0, 0,
|
||||
widget->allocation.width,
|
||||
|
|
|
@ -889,7 +889,9 @@ gimp_coordinates_new (GimpUnit unit,
|
|||
gtk_table_attach_defaults (GTK_TABLE (sizeentry), spinbutton, 1, 2, 0, 1);
|
||||
gtk_widget_show (spinbutton);
|
||||
|
||||
gimp_size_entry_set_unit (GIMP_SIZE_ENTRY (sizeentry), GIMP_UNIT_PIXEL);
|
||||
gimp_size_entry_set_unit (GIMP_SIZE_ENTRY (sizeentry),
|
||||
update_policy == GIMP_SIZE_ENTRY_UPDATE_RESOLUTION ?
|
||||
GIMP_UNIT_INCH : GIMP_UNIT_PIXEL);
|
||||
|
||||
gimp_size_entry_set_resolution (GIMP_SIZE_ENTRY (sizeentry), 0, xres, TRUE);
|
||||
gimp_size_entry_set_resolution (GIMP_SIZE_ENTRY (sizeentry), 1, yres, TRUE);
|
||||
|
@ -940,6 +942,116 @@ gimp_coordinates_new (GimpUnit unit,
|
|||
return sizeentry;
|
||||
}
|
||||
|
||||
typedef struct
|
||||
{
|
||||
GtkAdjustment *adjustment;
|
||||
GtkAdjustment *divided_adj;
|
||||
gint mem_size_unit;
|
||||
} GimpMemSizeEntryData;
|
||||
|
||||
static void
|
||||
gimp_mem_size_entry_callback (GtkAdjustment *adj,
|
||||
gpointer data)
|
||||
{
|
||||
GimpMemSizeEntryData *gmsed;
|
||||
gint new_value;
|
||||
|
||||
gmsed = (GimpMemSizeEntryData *)data;
|
||||
new_value = adj->value * gmsed->mem_size_unit;
|
||||
|
||||
gtk_adjustment_set_value (gmsed->adjustment, new_value);
|
||||
}
|
||||
|
||||
static void
|
||||
gimp_mem_size_unit_callback (GtkWidget *widget,
|
||||
gpointer data)
|
||||
{
|
||||
GimpMemSizeEntryData *gmsed;
|
||||
gint divided_mem_size;
|
||||
gint new_unit;
|
||||
|
||||
gmsed = (GimpMemSizeEntryData *)data;
|
||||
|
||||
new_unit = (gint) gtk_object_get_user_data (GTK_OBJECT (widget));
|
||||
|
||||
if (new_unit && new_unit != gmsed->mem_size_unit)
|
||||
{
|
||||
divided_mem_size = gmsed->adjustment->value / new_unit;
|
||||
gmsed->mem_size_unit = new_unit;
|
||||
|
||||
gtk_adjustment_set_value (GTK_ADJUSTMENT (gmsed->divided_adj), divided_mem_size);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* gimp_mem_size_entry_new:
|
||||
* @adjustment: The adjustment containing the memsize and it's limits.
|
||||
*
|
||||
* Returns: A #GtkHBox with a #GtkSpinButton and a #GtkOptionMenu.
|
||||
*/
|
||||
GtkWidget *
|
||||
gimp_mem_size_entry_new (GtkAdjustment *adjustment)
|
||||
{
|
||||
GtkWidget *hbox;
|
||||
GtkObject *divided_adj;
|
||||
GtkWidget *spinbutton;
|
||||
GtkWidget *optionmenu;
|
||||
|
||||
GimpMemSizeEntryData *gmsed;
|
||||
gint mem_size_unit = 1;
|
||||
gint divided_mem_size;
|
||||
gint i;
|
||||
|
||||
gmsed = g_new (GimpMemSizeEntryData, 1);
|
||||
|
||||
for (i = 0; i < 3; i++)
|
||||
{
|
||||
if ( (gint)adjustment->value % (mem_size_unit * 1024) != 0 )
|
||||
break;
|
||||
mem_size_unit *= 1024;
|
||||
}
|
||||
divided_mem_size = adjustment->value / mem_size_unit;
|
||||
|
||||
hbox = gtk_hbox_new (FALSE, 2);
|
||||
spinbutton =
|
||||
gimp_spin_button_new (÷d_adj, divided_mem_size,
|
||||
0.0, (4069.0 * 1024 * 1024), 1.0, 16.0, 0.0,
|
||||
1.0, 0.0);
|
||||
gtk_signal_connect (GTK_OBJECT (divided_adj), "value_changed",
|
||||
GTK_SIGNAL_FUNC (gimp_mem_size_entry_callback),
|
||||
gmsed);
|
||||
gtk_box_pack_start (GTK_BOX (hbox), spinbutton, FALSE, FALSE, 0);
|
||||
gtk_widget_show (spinbutton);
|
||||
|
||||
optionmenu =
|
||||
gimp_option_menu_new2 (FALSE, gimp_mem_size_unit_callback,
|
||||
gmsed, (gpointer) mem_size_unit,
|
||||
|
||||
_("Bytes"), (gpointer) 1, NULL,
|
||||
_("KiloBytes"), (gpointer) 1024, NULL,
|
||||
_("MegaBytes"), (gpointer) (1024 * 1024), NULL,
|
||||
|
||||
NULL);
|
||||
gtk_box_pack_start (GTK_BOX (hbox), optionmenu, FALSE, FALSE, 0);
|
||||
gtk_widget_show (optionmenu);
|
||||
|
||||
gtk_signal_connect_object (GTK_OBJECT (hbox), "destroy",
|
||||
GTK_SIGNAL_FUNC (gtk_object_unref),
|
||||
GTK_OBJECT (adjustment));
|
||||
gtk_signal_connect_object (GTK_OBJECT (hbox), "destroy",
|
||||
GTK_SIGNAL_FUNC (g_free),
|
||||
(GtkObject *) gmsed);
|
||||
|
||||
gmsed->adjustment = adjustment;
|
||||
gmsed->divided_adj = GTK_ADJUSTMENT (divided_adj);
|
||||
gmsed->mem_size_unit = mem_size_unit;
|
||||
|
||||
gtk_object_set_data (GTK_OBJECT (hbox), "spinbutton", spinbutton);
|
||||
gtk_object_set_data (GTK_OBJECT (hbox), "optionmenu", optionmenu);
|
||||
|
||||
return hbox;
|
||||
}
|
||||
|
||||
/**
|
||||
* gimp_pixmap_button_new:
|
||||
* @xpm_data: The XPM data which will be passed to gimp_pixmap_new().
|
||||
|
|
|
@ -183,6 +183,20 @@ GtkWidget * gimp_coordinates_new (GimpUnit unit,
|
|||
gdouble ysize_0, /* % */
|
||||
gdouble ysize_100 /* % */);
|
||||
|
||||
#define GIMP_MEM_SIZE_ENTRY_SPINBUTTON(memsize) \
|
||||
GTK_SPIN_BUTTON (gtk_object_get_data (GTK_OBJECT (memsize), \
|
||||
"spinbutton"))
|
||||
#define GIMP_MEM_SIZE_ENTRY_SPINBUTTON_ADJ(memsize) \
|
||||
gtk_spin_button_get_adjustment \
|
||||
(GTK_SPIN_BUTTON (gtk_object_get_data (GTK_OBJECT (memsize), \
|
||||
"spinbutton")))
|
||||
#define GIMP_MEM_SIZE_ENTRY_OPTIONMENU(memsize) \
|
||||
GTK_OPTION_MENU (gtk_object_get_data (GTK_OBJECT (memsize), \
|
||||
"optionmenu"))
|
||||
|
||||
GtkWidget * gimp_mem_size_entry_new (GtkAdjustment *adjustment);
|
||||
|
||||
|
||||
GtkWidget * gimp_pixmap_button_new (gchar **xpm_data,
|
||||
gchar *text);
|
||||
|
||||
|
|
|
@ -317,8 +317,6 @@ gimp_chain_button_draw_lines (GtkWidget *widget,
|
|||
g_return_if_fail (gcb != NULL);
|
||||
g_return_if_fail (GIMP_IS_CHAIN_BUTTON (gcb));
|
||||
|
||||
if (event); /* avoid unused variable compiler warning */
|
||||
|
||||
gdk_window_clear_area (widget->window,
|
||||
0, 0,
|
||||
widget->allocation.width,
|
||||
|
|
|
@ -889,7 +889,9 @@ gimp_coordinates_new (GimpUnit unit,
|
|||
gtk_table_attach_defaults (GTK_TABLE (sizeentry), spinbutton, 1, 2, 0, 1);
|
||||
gtk_widget_show (spinbutton);
|
||||
|
||||
gimp_size_entry_set_unit (GIMP_SIZE_ENTRY (sizeentry), GIMP_UNIT_PIXEL);
|
||||
gimp_size_entry_set_unit (GIMP_SIZE_ENTRY (sizeentry),
|
||||
update_policy == GIMP_SIZE_ENTRY_UPDATE_RESOLUTION ?
|
||||
GIMP_UNIT_INCH : GIMP_UNIT_PIXEL);
|
||||
|
||||
gimp_size_entry_set_resolution (GIMP_SIZE_ENTRY (sizeentry), 0, xres, TRUE);
|
||||
gimp_size_entry_set_resolution (GIMP_SIZE_ENTRY (sizeentry), 1, yres, TRUE);
|
||||
|
@ -940,6 +942,116 @@ gimp_coordinates_new (GimpUnit unit,
|
|||
return sizeentry;
|
||||
}
|
||||
|
||||
typedef struct
|
||||
{
|
||||
GtkAdjustment *adjustment;
|
||||
GtkAdjustment *divided_adj;
|
||||
gint mem_size_unit;
|
||||
} GimpMemSizeEntryData;
|
||||
|
||||
static void
|
||||
gimp_mem_size_entry_callback (GtkAdjustment *adj,
|
||||
gpointer data)
|
||||
{
|
||||
GimpMemSizeEntryData *gmsed;
|
||||
gint new_value;
|
||||
|
||||
gmsed = (GimpMemSizeEntryData *)data;
|
||||
new_value = adj->value * gmsed->mem_size_unit;
|
||||
|
||||
gtk_adjustment_set_value (gmsed->adjustment, new_value);
|
||||
}
|
||||
|
||||
static void
|
||||
gimp_mem_size_unit_callback (GtkWidget *widget,
|
||||
gpointer data)
|
||||
{
|
||||
GimpMemSizeEntryData *gmsed;
|
||||
gint divided_mem_size;
|
||||
gint new_unit;
|
||||
|
||||
gmsed = (GimpMemSizeEntryData *)data;
|
||||
|
||||
new_unit = (gint) gtk_object_get_user_data (GTK_OBJECT (widget));
|
||||
|
||||
if (new_unit && new_unit != gmsed->mem_size_unit)
|
||||
{
|
||||
divided_mem_size = gmsed->adjustment->value / new_unit;
|
||||
gmsed->mem_size_unit = new_unit;
|
||||
|
||||
gtk_adjustment_set_value (GTK_ADJUSTMENT (gmsed->divided_adj), divided_mem_size);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* gimp_mem_size_entry_new:
|
||||
* @adjustment: The adjustment containing the memsize and it's limits.
|
||||
*
|
||||
* Returns: A #GtkHBox with a #GtkSpinButton and a #GtkOptionMenu.
|
||||
*/
|
||||
GtkWidget *
|
||||
gimp_mem_size_entry_new (GtkAdjustment *adjustment)
|
||||
{
|
||||
GtkWidget *hbox;
|
||||
GtkObject *divided_adj;
|
||||
GtkWidget *spinbutton;
|
||||
GtkWidget *optionmenu;
|
||||
|
||||
GimpMemSizeEntryData *gmsed;
|
||||
gint mem_size_unit = 1;
|
||||
gint divided_mem_size;
|
||||
gint i;
|
||||
|
||||
gmsed = g_new (GimpMemSizeEntryData, 1);
|
||||
|
||||
for (i = 0; i < 3; i++)
|
||||
{
|
||||
if ( (gint)adjustment->value % (mem_size_unit * 1024) != 0 )
|
||||
break;
|
||||
mem_size_unit *= 1024;
|
||||
}
|
||||
divided_mem_size = adjustment->value / mem_size_unit;
|
||||
|
||||
hbox = gtk_hbox_new (FALSE, 2);
|
||||
spinbutton =
|
||||
gimp_spin_button_new (÷d_adj, divided_mem_size,
|
||||
0.0, (4069.0 * 1024 * 1024), 1.0, 16.0, 0.0,
|
||||
1.0, 0.0);
|
||||
gtk_signal_connect (GTK_OBJECT (divided_adj), "value_changed",
|
||||
GTK_SIGNAL_FUNC (gimp_mem_size_entry_callback),
|
||||
gmsed);
|
||||
gtk_box_pack_start (GTK_BOX (hbox), spinbutton, FALSE, FALSE, 0);
|
||||
gtk_widget_show (spinbutton);
|
||||
|
||||
optionmenu =
|
||||
gimp_option_menu_new2 (FALSE, gimp_mem_size_unit_callback,
|
||||
gmsed, (gpointer) mem_size_unit,
|
||||
|
||||
_("Bytes"), (gpointer) 1, NULL,
|
||||
_("KiloBytes"), (gpointer) 1024, NULL,
|
||||
_("MegaBytes"), (gpointer) (1024 * 1024), NULL,
|
||||
|
||||
NULL);
|
||||
gtk_box_pack_start (GTK_BOX (hbox), optionmenu, FALSE, FALSE, 0);
|
||||
gtk_widget_show (optionmenu);
|
||||
|
||||
gtk_signal_connect_object (GTK_OBJECT (hbox), "destroy",
|
||||
GTK_SIGNAL_FUNC (gtk_object_unref),
|
||||
GTK_OBJECT (adjustment));
|
||||
gtk_signal_connect_object (GTK_OBJECT (hbox), "destroy",
|
||||
GTK_SIGNAL_FUNC (g_free),
|
||||
(GtkObject *) gmsed);
|
||||
|
||||
gmsed->adjustment = adjustment;
|
||||
gmsed->divided_adj = GTK_ADJUSTMENT (divided_adj);
|
||||
gmsed->mem_size_unit = mem_size_unit;
|
||||
|
||||
gtk_object_set_data (GTK_OBJECT (hbox), "spinbutton", spinbutton);
|
||||
gtk_object_set_data (GTK_OBJECT (hbox), "optionmenu", optionmenu);
|
||||
|
||||
return hbox;
|
||||
}
|
||||
|
||||
/**
|
||||
* gimp_pixmap_button_new:
|
||||
* @xpm_data: The XPM data which will be passed to gimp_pixmap_new().
|
||||
|
|
|
@ -183,6 +183,20 @@ GtkWidget * gimp_coordinates_new (GimpUnit unit,
|
|||
gdouble ysize_0, /* % */
|
||||
gdouble ysize_100 /* % */);
|
||||
|
||||
#define GIMP_MEM_SIZE_ENTRY_SPINBUTTON(memsize) \
|
||||
GTK_SPIN_BUTTON (gtk_object_get_data (GTK_OBJECT (memsize), \
|
||||
"spinbutton"))
|
||||
#define GIMP_MEM_SIZE_ENTRY_SPINBUTTON_ADJ(memsize) \
|
||||
gtk_spin_button_get_adjustment \
|
||||
(GTK_SPIN_BUTTON (gtk_object_get_data (GTK_OBJECT (memsize), \
|
||||
"spinbutton")))
|
||||
#define GIMP_MEM_SIZE_ENTRY_OPTIONMENU(memsize) \
|
||||
GTK_OPTION_MENU (gtk_object_get_data (GTK_OBJECT (memsize), \
|
||||
"optionmenu"))
|
||||
|
||||
GtkWidget * gimp_mem_size_entry_new (GtkAdjustment *adjustment);
|
||||
|
||||
|
||||
GtkWidget * gimp_pixmap_button_new (gchar **xpm_data,
|
||||
gchar *text);
|
||||
|
||||
|
|
|
@ -0,0 +1,53 @@
|
|||
/* XPM */
|
||||
static char * folder_xpm[] = {
|
||||
"16 16 34 1",
|
||||
" c None",
|
||||
". c #000000",
|
||||
"+ c #B6BB9A",
|
||||
"@ c #9A9D82",
|
||||
"# c #9DA285",
|
||||
"$ c #858871",
|
||||
"% c #A9AC97",
|
||||
"& c #90937A",
|
||||
"* c #A1A588",
|
||||
"= c #8D9178",
|
||||
"- c #81846F",
|
||||
"; c #696B5A",
|
||||
"> c #595B4C",
|
||||
", c #313229",
|
||||
"' c #868972",
|
||||
") c #DBDEC5",
|
||||
"! c #DFE2CD",
|
||||
"~ c #CED3B2",
|
||||
"{ c #505144",
|
||||
"] c #606152",
|
||||
"^ c #E3E5D4",
|
||||
"/ c #C7CDA4",
|
||||
"( c #A5AA85",
|
||||
"_ c #C3C99E",
|
||||
": c #55574A",
|
||||
"< c #D6D8C9",
|
||||
"[ c #787C61",
|
||||
"} c #353535",
|
||||
"| c #A0A487",
|
||||
"1 c #4D4F44",
|
||||
"2 c #D7DBC0",
|
||||
"3 c #686B54",
|
||||
"4 c #B7BAA3",
|
||||
"5 c #8A8F70",
|
||||
" ",
|
||||
" ",
|
||||
" .... ",
|
||||
" .+@+@. ",
|
||||
" .#$#$#$...... ",
|
||||
" .%&*&*&*=-&-;.",
|
||||
" ...........>,'.",
|
||||
".)!~!~!~!~!~.{].",
|
||||
".^/(_(_(_(_(.{:.",
|
||||
" .<_(_(_(_(_[.:.",
|
||||
" }!|_(_(_(_(_.1.",
|
||||
" }2(_(_(_(_(3..",
|
||||
" .4(5(5(5(5(5..",
|
||||
" ............ ",
|
||||
" ",
|
||||
" "};
|
|
@ -1,6 +1,6 @@
|
|||
/* XPM */
|
||||
static char * wilber_xpm[] = {
|
||||
"62 62 191 2",
|
||||
"62 62 218 2",
|
||||
" c None",
|
||||
". c #797561",
|
||||
"+ c #797161",
|
||||
|
@ -25,173 +25,200 @@ static char * wilber_xpm[] = {
|
|||
"/ c #696951",
|
||||
"( c #696959",
|
||||
"_ c #696551",
|
||||
": c #E7DFDF",
|
||||
"< c #AEA68E",
|
||||
"[ c #9E9279",
|
||||
"} c #867D69",
|
||||
"| c #696151",
|
||||
"1 c #9E9679",
|
||||
"2 c #968A71",
|
||||
"3 c #C7BEB6",
|
||||
"4 c #696149",
|
||||
"5 c #616151",
|
||||
"6 c #CFC7BE",
|
||||
"7 c #8E8269",
|
||||
"8 c #797961",
|
||||
"9 c #BEBEBE",
|
||||
"0 c #615D49",
|
||||
"a c #615949",
|
||||
"b c #968E71",
|
||||
"c c #867561",
|
||||
"d c #796D59",
|
||||
"e c #9E9286",
|
||||
"f c #A69E96",
|
||||
"g c #717161",
|
||||
"h c #DFDBDF",
|
||||
"i c #A69679",
|
||||
"j c #9E8E71",
|
||||
"k c #8E8671",
|
||||
"l c #868271",
|
||||
"m c #595541",
|
||||
"n c #8E8679",
|
||||
"o c #CFCBC7",
|
||||
"p c #A69A79",
|
||||
"q c #AEAEAE",
|
||||
"r c #968E86",
|
||||
"s c #595941",
|
||||
"t c #AEAAAE",
|
||||
"u c #D7D3D7",
|
||||
"v c #B6AEA6",
|
||||
"w c #595949",
|
||||
"x c #595141",
|
||||
"y c #C7C3BE",
|
||||
"z c #867961",
|
||||
"A c #AEA6A6",
|
||||
"B c #9E9A8E",
|
||||
"C c #515549",
|
||||
"D c #8E8A86",
|
||||
"E c #C7C7C7",
|
||||
"F c #AEAAA6",
|
||||
"G c #968671",
|
||||
"H c #8E7D69",
|
||||
"I c #A6A296",
|
||||
"J c #9E9A96",
|
||||
"K c #9E968E",
|
||||
"L c #DFDFDF",
|
||||
"M c #515141",
|
||||
"N c #969696",
|
||||
"O c #EFEBEF",
|
||||
"P c #EFEFEF",
|
||||
"Q c #F7F3F7",
|
||||
"R c #FFFFFF",
|
||||
"S c #F7EFEF",
|
||||
"T c #CFCBBE",
|
||||
"U c #9E9271",
|
||||
"V c #AEA696",
|
||||
"W c #DFD7D7",
|
||||
"X c #F7F3EF",
|
||||
"Y c #D7D7D7",
|
||||
"Z c #AEA69E",
|
||||
"` c #867D61",
|
||||
" . c #696961",
|
||||
".. c #F7F7F7",
|
||||
"+. c #E7E3DF",
|
||||
"@. c #FFFBFF",
|
||||
"#. c #D7CFC7",
|
||||
"$. c #717159",
|
||||
"%. c #514D41",
|
||||
"&. c #514D38",
|
||||
"*. c #514938",
|
||||
"=. c #9E9E9E",
|
||||
"-. c #C7C3C7",
|
||||
";. c #CFCFCF",
|
||||
">. c #FFF7F7",
|
||||
",. c #494538",
|
||||
"'. c #494938",
|
||||
"). c #8E8A8E",
|
||||
"!. c #B6B6B6",
|
||||
"~. c #616561",
|
||||
"{. c #494D49",
|
||||
"]. c #595D59",
|
||||
"^. c #868286",
|
||||
"/. c #B6B2B6",
|
||||
"(. c #282C28",
|
||||
"_. c #B6B2AE",
|
||||
":. c #BEBAB6",
|
||||
"<. c #E7E7E7",
|
||||
"[. c #EFEBE7",
|
||||
"}. c #414130",
|
||||
"|. c #494130",
|
||||
"1. c #797979",
|
||||
"2. c #A6A2A6",
|
||||
"3. c #515151",
|
||||
"4. c #414541",
|
||||
"5. c #383838",
|
||||
"6. c #282828",
|
||||
"7. c #202020",
|
||||
"8. c #303030",
|
||||
"9. c #000000",
|
||||
"0. c #9E9A9E",
|
||||
"a. c #696969",
|
||||
"b. c #202420",
|
||||
"c. c #CFCBCF",
|
||||
"d. c #413C30",
|
||||
"e. c #413828",
|
||||
"f. c #383C28",
|
||||
"g. c #717171",
|
||||
"h. c #494949",
|
||||
"i. c #616161",
|
||||
"j. c #868686",
|
||||
"k. c #414141",
|
||||
"l. c #181818",
|
||||
"m. c #000400",
|
||||
"n. c #101010",
|
||||
"o. c #080808",
|
||||
"p. c #383828",
|
||||
"q. c #383C30",
|
||||
"r. c #696D69",
|
||||
"s. c #797D79",
|
||||
"t. c #969296",
|
||||
"u. c #595959",
|
||||
"v. c #383830",
|
||||
"w. c #494941",
|
||||
"x. c #080C08",
|
||||
"y. c #181C18",
|
||||
"z. c #383C38",
|
||||
"A. c #515551",
|
||||
"B. c #D7D3CF",
|
||||
"C. c #101410",
|
||||
"D. c #383428",
|
||||
"E. c #303430",
|
||||
"F. c #AEAA9E",
|
||||
"G. c #8E8E8E",
|
||||
"H. c #A6A6A6",
|
||||
"I. c #303028",
|
||||
"J. c #616159",
|
||||
"K. c #383430",
|
||||
"L. c #717571",
|
||||
"M. c #302C28",
|
||||
"N. c #494138",
|
||||
"O. c #413830",
|
||||
"P. c #717169",
|
||||
"Q. c #202018",
|
||||
"R. c #282820",
|
||||
"S. c #515541",
|
||||
"T. c #181810",
|
||||
"U. c #303020",
|
||||
"V. c #201C18",
|
||||
"W. c #413C38",
|
||||
"X. c #595951",
|
||||
"Y. c #282420",
|
||||
"Z. c #414538",
|
||||
"`. c #181410",
|
||||
" + c #100C08",
|
||||
".+ c #101008",
|
||||
"++ c #080800",
|
||||
"@+ c #080400",
|
||||
"#+ c #BEBABE",
|
||||
"$+ c #A6A29E",
|
||||
"%+ c #494541",
|
||||
": c #AEA68E",
|
||||
"< c #9E9279",
|
||||
"[ c #867D69",
|
||||
"} c #696151",
|
||||
"| c #9E9679",
|
||||
"1 c #968A71",
|
||||
"2 c #696149",
|
||||
"3 c #616151",
|
||||
"4 c #CFC7BE",
|
||||
"5 c #8E8269",
|
||||
"6 c #797961",
|
||||
"7 c #BEBEBE",
|
||||
"8 c #615D49",
|
||||
"9 c #615949",
|
||||
"0 c #968E71",
|
||||
"a c #867561",
|
||||
"b c #796D59",
|
||||
"c c #9E9286",
|
||||
"d c #A69E96",
|
||||
"e c #717161",
|
||||
"f c #A69679",
|
||||
"g c #9E8E71",
|
||||
"h c #8E8671",
|
||||
"i c #868271",
|
||||
"j c #595541",
|
||||
"k c #8E8679",
|
||||
"l c #CFCBC7",
|
||||
"m c #A69A79",
|
||||
"n c #AEAEAE",
|
||||
"o c #968E86",
|
||||
"p c #595941",
|
||||
"q c #AEAAAE",
|
||||
"r c #B6AEA6",
|
||||
"s c #595949",
|
||||
"t c #595141",
|
||||
"u c #C7C3BE",
|
||||
"v c #867961",
|
||||
"w c #AEA6A6",
|
||||
"x c #9E9A8E",
|
||||
"y c #515549",
|
||||
"z c #8E8A86",
|
||||
"A c #C7C7C7",
|
||||
"B c #AEAAA6",
|
||||
"C c #968671",
|
||||
"D c #8E7D69",
|
||||
"E c #A6A296",
|
||||
"F c #9E9A96",
|
||||
"G c #9E968E",
|
||||
"H c #DFDFDF",
|
||||
"I c #515141",
|
||||
"J c #969696",
|
||||
"K c #EFEFEF",
|
||||
"L c #F7F3F7",
|
||||
"M c #FFFFFF",
|
||||
"N c #F7EFEF",
|
||||
"O c #CFCBBE",
|
||||
"P c #9E9271",
|
||||
"Q c #AEA696",
|
||||
"R c #DFD7D7",
|
||||
"S c #F7F3EF",
|
||||
"T c #D7D7D7",
|
||||
"U c #AEA69E",
|
||||
"V c #867D61",
|
||||
"W c #696961",
|
||||
"X c #F7F7F7",
|
||||
"Y c #E7E3DF",
|
||||
"Z c #FFFBFF",
|
||||
"` c #D7CFC7",
|
||||
" . c #717159",
|
||||
".. c #514D41",
|
||||
"+. c #514D38",
|
||||
"@. c #514938",
|
||||
"#. c #9E9E9E",
|
||||
"$. c #EFEBEF",
|
||||
"%. c #C7C3C7",
|
||||
"&. c #CFCFCF",
|
||||
"*. c #FFF7F7",
|
||||
"=. c #494538",
|
||||
"-. c #494938",
|
||||
";. c #8E8A8E",
|
||||
">. c #B6B6B6",
|
||||
",. c #616561",
|
||||
"'. c #494D49",
|
||||
"). c #595D59",
|
||||
"!. c #868286",
|
||||
"~. c #B6B2B6",
|
||||
"{. c #282C28",
|
||||
"]. c #B6B2AE",
|
||||
"^. c #BEBAB6",
|
||||
"/. c #E7E7E7",
|
||||
"(. c #EFEBE7",
|
||||
"_. c #414130",
|
||||
":. c #494130",
|
||||
"<. c #797979",
|
||||
"[. c #A6A2A6",
|
||||
"}. c #515151",
|
||||
"|. c #414541",
|
||||
"1. c #383838",
|
||||
"2. c #282828",
|
||||
"3. c #202020",
|
||||
"4. c #303030",
|
||||
"5. c #000000",
|
||||
"6. c #9E9A9E",
|
||||
"7. c #696969",
|
||||
"8. c #202420",
|
||||
"9. c #CFCBCF",
|
||||
"0. c #C7BEB6",
|
||||
"a. c #413C30",
|
||||
"b. c #413828",
|
||||
"c. c #383C28",
|
||||
"d. c #717171",
|
||||
"e. c #494949",
|
||||
"f. c #616161",
|
||||
"g. c #868686",
|
||||
"h. c #414141",
|
||||
"i. c #181818",
|
||||
"j. c #000400",
|
||||
"k. c #101010",
|
||||
"l. c #080808",
|
||||
"m. c #DFDBDF",
|
||||
"n. c #383828",
|
||||
"o. c #383C30",
|
||||
"p. c #696D69",
|
||||
"q. c #969296",
|
||||
"r. c #595959",
|
||||
"s. c #383830",
|
||||
"t. c #494941",
|
||||
"u. c #080C08",
|
||||
"v. c #181C18",
|
||||
"w. c #383C38",
|
||||
"x. c #515551",
|
||||
"y. c #D7D3D7",
|
||||
"z. c #D7D3CF",
|
||||
"A. c #101410",
|
||||
"B. c #383428",
|
||||
"C. c #3E3C30",
|
||||
"D. c #303430",
|
||||
"E. c #AEAA9E",
|
||||
"F. c #8E8E8E",
|
||||
"G. c #A6A6A6",
|
||||
"H. c #303028",
|
||||
"I. c #616159",
|
||||
"J. c #383430",
|
||||
"K. c #313029",
|
||||
"L. c #302C28",
|
||||
"M. c #494138",
|
||||
"N. c #3F382E",
|
||||
"O. c #3D392C",
|
||||
"P. c #312F25",
|
||||
"Q. c #797D79",
|
||||
"R. c #3B382B",
|
||||
"S. c #303129",
|
||||
"T. c #717169",
|
||||
"U. c #202018",
|
||||
"V. c #282820",
|
||||
"W. c #515541",
|
||||
"X. c #303020",
|
||||
"Y. c #201C18",
|
||||
"Z. c #413C38",
|
||||
"`. c #595951",
|
||||
" + c #413830",
|
||||
".+ c #282420",
|
||||
"++ c #414538",
|
||||
"@+ c #717571",
|
||||
"#+ c #383829",
|
||||
"$+ c #383528",
|
||||
"%+ c #343228",
|
||||
"&+ c #181410",
|
||||
"*+ c #181810",
|
||||
"=+ c #100C08",
|
||||
"-+ c #101008",
|
||||
";+ c #333025",
|
||||
">+ c #080800",
|
||||
",+ c #080400",
|
||||
"'+ c #51503E",
|
||||
")+ c #1E221E",
|
||||
"!+ c #24211C",
|
||||
"~+ c #484438",
|
||||
"{+ c #4F4B3F",
|
||||
"]+ c #56564D",
|
||||
"^+ c #5C5B4E",
|
||||
"/+ c #5E5D4F",
|
||||
"(+ c #45413A",
|
||||
"_+ c #383431",
|
||||
":+ c #504F3D",
|
||||
"<+ c #262A26",
|
||||
"[+ c #242220",
|
||||
"}+ c #2C2C25",
|
||||
"|+ c #333425",
|
||||
"1+ c #3B372F",
|
||||
"2+ c #444035",
|
||||
"3+ c #3F3D35",
|
||||
"4+ c #434239",
|
||||
"5+ c #45443A",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
|
@ -207,46 +234,46 @@ static char * wilber_xpm[] = {
|
|||
" = - ; # * * ",
|
||||
" > , ' * * ) ! ",
|
||||
" ~ { ] ^ * ! / ( _ ",
|
||||
" : < ] [ [ } ) ) _ _ | ",
|
||||
" ; ^ 1 2 2 3 } ) / | 4 5 5 ",
|
||||
" 6 ^ 1 2 7 8 9 * ! _ _ | 0 a 0 ",
|
||||
" = < 1 b 7 c d e f * _ _ | 0 0 a 0 g ",
|
||||
" h ; i j k } . * l 7 * * _ _ 5 0 a m m n ",
|
||||
" o p [ 2 7 c * ! / q r * * ) _ _ 5 0 a s m m t ",
|
||||
" u v i j k } . d ) _ l & * * ! ) 4 4 0 a w m x _ ",
|
||||
" y p j 2 7 z . # * ! * } A 6 B * ! ) ) ) _ _ | | 0 0 w m x C D ",
|
||||
" E F [ b G H } z . . + . . . z z k I f J K K + | | _ _ ) _ _ _ _ 5 5 0 0 w a m m x 0 ",
|
||||
" L 6 I 1 [ b G H } z z z . z z } z 8 . # # ( _ | 4 5 4 4 0 0 0 0 0 a m a m m x x M M N ",
|
||||
" O P Q R S T U 2 k 7 } V W X R Q Y Z ` 8 . # ! / | 5 0 0 0 0 a m m m m m m M x x x M . ",
|
||||
" ....R R R R R +.b G k W R R R R R R @.#.` . $.* _ _ 0 a m m M x M %.M %.&.*.%.M %.&.m =. ",
|
||||
" Y @.O R ..Y -.;.Q R 6 2 = R R R R R R @.>.Q o . d ) _ 4 0 a m x M %.&.*.,.,.'.'.'.&.&.m ). ",
|
||||
" !.~.{.{.].^. W X R 9 /.(.(._.R P :.R R R @.<.;.E +.Q Q [.I $./ _ 0 a m x &.'.'.,.}.}.|.|.|.,.'.&.1. ",
|
||||
" 2.3.4.4.5.6.7.3._.o i R R 3.2.8.9.(.R R +.R R R Y 0.a.b.~.c.O +.3 ) ) _ 0 a m M *.,.}.}.d.e.d.f.d.}.'.g. ",
|
||||
" /.h.i.j.j.a.h.(.7.k.* j X R l.b.m.9.n.R [.X @.@.R N !./.8.o.1.<.h ;.* _ | 0 s x &.'.,.}.d.p.q.p.e.d.,.i.r.s. ",
|
||||
" r.3.t.E 9 ).u.v.b.b.w.+ 6 R ~.x.9.x.i.@.3 P ......i.1.1.y.9.h.L Y E / / 4 a m x *.'.}.d.d.p.p.v.p.d.{.].r.^. ",
|
||||
" z.A.2.Y u N ].5.6.(.5.M 2 = h r.z.a.W B.G B.Q Q ..u.l.C.9.9.3.Y c.A _ 5 0 s M M *.|.d.d.p.p.D.D.q.d.{.].g. ",
|
||||
" 8.{.j.t 2.1.{.E.8.E.z.h.+ 7 3 <.@.<.3 k k F.P P P =.b.9.9.7.).;.E r | 0 a m %.&.,.}.d.e.p.p.p.D.p.k.{.i.1. ",
|
||||
" t 7.z.a.^.1.u.z.8.E.z.4.{.w z z z } 7 7 } H H E O <.u N {.h.G.-.-.0._ | 4 a m M ,.,.}.}.q.p.D.p.p.v.z.3.a. ",
|
||||
" H.b.8.3.i.u.h.z.5.z.4.{.A.A.* . . z z } } } } } :.L h h = h u ;.f * 4 0 0 m x &.'.,.}.d.e.q.p.v.p.I.k.A.g. ",
|
||||
" 6.b.5.4.4.z.5.z.h.{.A.].J._ * d . 8 z ` ` z z 8 I v E Y ;._.& _ | | a x M %.'.,.|.d.d.p.p.D.p.K.8.4.i. ",
|
||||
" 8.7.8.E.5.z.k.4.3.u.i.~.~.0 _ ) * # . z c . . + . + * ! * _ _ 4 5 0 w ,.}.*.'.|.}.d.d.D.p.p.p.I.E.{.a. ",
|
||||
" g.6.6.E.z.k.h.3.u.i.~.g. .m 0 5 / * # # . # d # * ) ( ) _ | | 5 a a %.D.d.,.,.}.d.e.D.D.p.p.D.b.5.A.L. ",
|
||||
" z.8.5.k.h.3.u.i.a.r.1. .x s a 0 _ ) * $.$.* ) ! _ _ | _ 0 0 a s m M.p.}.N.}.d.p.p.p.p.O.d.b.6.k.i.s. ",
|
||||
" j.h.k.h.3.u.i.a.g.1.s.w &.M m s a 5 _ ) _ _ _ _ 4 5 5 a a m s x (.I.}.M &.d.q.e.p.v.p.p.(.y.8.{.a. ",
|
||||
" s.3.A.].~.r.P.1.^.P.'.'.*.&.m x m 0 | 0 0 0 0 a s a m m M '.Q.R.k.C ].S.e.p.D.p.p.p.I.T.b.5.u.1. ",
|
||||
" E ).~.i.a.g.s.^.s.u.,.,.,.'.*.M x m a a w m s m x x M %.U.V.(.W.x ~.* X.O.p.v.p.p.p.T.l.8.h.J. ",
|
||||
" 2.^.P.1.^.a.S.'.|.}.|.'.*.*.%.M m M M &.%.M M ,.Y.V.Q.(.q.M _ . + ,.q.p.p.D.p.y.C.7.5.u. ",
|
||||
" u B _ 0 a x '.,.}.Z.,.,.'.,.'.&.'.&.}.I.Q.y.V.Q.R.E.d.M J.r.L.~.p.p.p.D.I.n.n.y.8.h.~. ",
|
||||
" !.g d.U.R.I.I.I.I.I.U.Q.`.T.C. +.+T.V.Q.M.D.d.w.x 0 .! _ d.p.O.p.R.n.n.y.(.k.]. ",
|
||||
" .M..+.+o.++++++@+++x. +C.y.Q.R.E.q.'.M ].J._ _ J.q.q.f.I.C.x.n.y.6.z.A. ",
|
||||
" #+ 0.J.E.T.x.x.o.x.C.T.Q.R.E.p.Z.&.A.0 ~.~.0 '.O.M.y.x.x.n.T.7.(.W.A.r. ",
|
||||
" $+t.s.r.].z.I.Q.b.Y.I.p.W.,.%.X.5 5 M W.7.T.o.x.x.n.C.l.b.8.4.u.g. ",
|
||||
" ).L.~.A.4.5.(.7.l.C.C.n.x.o.x.x.x.x.x.x.n.C.l.y.6.8.z.h. ",
|
||||
" j.g.~.3.%+5.8.6.b.y.y.l.l.l.l.l.l.y.7.7.Y.(.E. ",
|
||||
" j.1.a.].{.4.z.5.8.8.8.(.(.(.8.8.8.E.z.k. ",
|
||||
" j.L.r.i.u.A.3.{.{.h.h.{.h.{.3.A. ",
|
||||
" ^.1.L.g.r.g.r.r.r. ",
|
||||
" N t.N ",
|
||||
" : ] < < [ ) ) _ _ } ",
|
||||
" ; ^ | 1 1 [ ) / } 2 3 3 ",
|
||||
" 4 ^ | 1 5 6 7 * ! _ _ } 8 9 8 ",
|
||||
" : | 0 5 a b c d * _ _ } 8 8 9 8 e ",
|
||||
" ; f g h [ . * i 5 * * _ _ 3 8 9 j j k ",
|
||||
" l m < 1 5 a * ! / n o * * ) _ _ 3 8 9 p j j q ",
|
||||
" r f g h [ . b ) _ i & * * ! ) 2 2 8 9 s j t _ ",
|
||||
" u m g 1 5 v . # * ! * [ w x * ! ) ) ) _ _ } } 8 8 s j t y z ",
|
||||
" A B < 0 C D [ v . . + . . . v v h E d F G G + } } _ _ ) _ _ _ _ 3 3 8 8 s 9 j j t 8 ",
|
||||
" H 4 E | < 0 C D [ v v v . v v [ v 6 . # # ( _ } 2 3 2 2 8 8 8 8 8 9 j 9 j j t t I I J ",
|
||||
" K L M N O P 1 h 5 [ Q R S M L T U V 6 . # ! / } 3 8 8 8 8 9 j j j j j j I t t t I W ",
|
||||
" X M M M M M Y 0 C h R M M M M M M Z ` V . .* _ _ 8 9 j j I t I ..I ..+.@...I ..+.j #. ",
|
||||
" $.M X T %.&.L M 4 1 = M M M M M M Z *.L l . b ) _ 2 8 9 j t I ..+.@.=.=.-.-.-.+.+.j ;. ",
|
||||
" >.,.'.'.).!. R S M 7 ~.{.{.].M K ^.M M M Z /.&.A Y L L (.E ./ _ 8 9 j t +.-.-.=._._.:.:.:.=.-.+.<. ",
|
||||
" [.}.|.|.1.2.3.}.].l f M M }.[.4.5.{.M M Y M M M T 6.7.8.,.9.$.Y 0.) ) _ 8 9 j I @.=._._.a.b.a.c.a._.-.d. ",
|
||||
" ~.e.f.g.g.7.e.{.3.h.* g S M i.8.j.5.k.M (.S Z Z M J >.~.4.l.<./.m.&.* _ } 8 p t +.-.=._.a.n.o.n.b.a.=.f. ",
|
||||
" p.}.q.A 7 ;.r.s.8.8.t.+ 4 M ,.u.5.u.f.Z 0.K X X X f.<.<.v.5.e.H T A / / 2 9 j t @.-._.a.a.n.n.s.n.a.'. ",
|
||||
" w.x.[.T y.J ).1.2.{.1.I 1 = m.p.w.7.R z.C z.L L X r.i.A.5.5.}.T 9.w _ 3 8 p I I @.:.a.a.n.n.B.B.o.C. ",
|
||||
" 4.'.g.q [.<.'.D.4.D.w.e.+ 5 0./.Z /.0.h h E.K K K #.8.5.5.3.;.&.A o } 8 9 j ..+.=._.a.b.n.n.n.B.n.h. ",
|
||||
" q 3.w.7.!.<.r.w.4.D.w.|.'.s v v v [ 5 5 [ D D A $./.y.J '.e.F.%.%.6._ } 2 9 j I =.=._._.o.n.B.n.n.s. ",
|
||||
" G.8.4.}.f.r.e.w.1.w.|.'.x.x.* . . v v [ [ [ [ [ ^.H m.m.= m.y.&.d * 2 8 8 j t +.-.=._.a.b.o.n.s.n.H. ",
|
||||
" 2.8.1.|.|.w.1.w.e.'.x.).I._ * b . 6 v V V v v 6 E r A T &.].& _ } } 9 t I ..-.=.:.a.a.n.n.B.n.J. ",
|
||||
" 4.3.4.D.1.w.h.|.}.r.f.,.,.8 _ ) * # . v a . . + . + * ! * _ _ 2 3 8 s =._.@.-.:._.a.a.B.n.n.n.K. ",
|
||||
" d.2.2.D.w.h.e.}.r.f.,.d.W j 8 3 / * # # . # b # * ) ( ) _ } } 3 9 9 ..B.a.=.=._.a.b.B.B.n.n.B. ",
|
||||
" w.4.1.h.e.}.r.f.7.p.<.W t p 9 8 _ ) * . .* ) ! _ _ } _ 8 8 9 p j L.n._.M._.a.n.n.n.n.N.O.P. ",
|
||||
" g.e.h.e.}.r.f.7.d.<.Q.s +.I j p 9 3 _ ) _ _ _ _ 2 3 3 9 9 j p t {.H._.I +.a.o.b.n.s.n.R.S. ",
|
||||
" Q.}.x.).,.p.T.<.!.T.-.-.@.+.j t j 8 } 8 8 8 8 9 p 9 j j I -.U.V.h.y ).W.b.n.B.n.n.n.H. ",
|
||||
" ;.,.f.7.d.Q.!.Q.r.=.=.=.-.@.I t j 9 9 s j p j t t I ..X.Y.{.Z.t ,.* `. +n.s.n.n.n. ",
|
||||
" [.!.T.<.!.7.W.-.:._.:.-.@.@...I j I I +...I I =..+Y.U.{.o.I _ . + =.o.n.n.B.n. ",
|
||||
" x _ 8 9 t -.=._.++=.=.-.=.-.+.-.+._.H.U.v.Y.U.V.D.a.I I.p.@+,.n.#+n.$+%+ ",
|
||||
" >.e a.X.V.H.H.H.H.H.X.U.&+*+A.=+-+*+Y.U.L.B.a.t.t 8 W ! _ a.n.n.n.;+ ",
|
||||
" W L.-+-+l.>+>+>+,+>+u.=+A.v.U.V.D.o.-.I ).I._ _ I.o.o.c.n. ",
|
||||
" 6.I.D.*+u.u.l.u.A.*+U.V.D.n.+++.x.8 ,.,.8 '+ +L.o. ",
|
||||
" w.H.U.)+!+H.n.Z.~+{+]+^+/+I (+_+:+'+ ",
|
||||
" 1.<+[+}+|+Z.1+2+3+4+5+5+ ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
|
|
|
@ -62,7 +62,7 @@
|
|||
|
||||
(script-fu-register
|
||||
"script-fu-tile-blur"
|
||||
"<Image>/Filters/Blur/Tilable Blur..."
|
||||
"<Image>/Filters/Blur/Tileable Blur..."
|
||||
"Blurs image edges so that the final result tiles seamlessly"
|
||||
"Chris Gutteridge"
|
||||
"1998, Chris Gutteridge / ECS dept, University of Southampton, England."
|
||||
|
|
|
@ -1,3 +1,9 @@
|
|||
2000-03-15 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* po-script-fu/Makefile.in.in
|
||||
* po-script-fu/script-fu-xgettext: new script which extracts the
|
||||
menu paths for translation. Thanks to Marc!
|
||||
|
||||
Wed Mar 8 22:51:30 CET 2000 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* fr.po: s/<Images>/<Image>/
|
||||
|
|
|
@ -33,6 +33,7 @@ GENCAT = @GENCAT@
|
|||
GMSGFMT = PATH=../src:$$PATH @GMSGFMT@
|
||||
MSGFMT = @MSGFMT@
|
||||
XGETTEXT = PATH=../src:$$PATH @XGETTEXT@
|
||||
SXGETTEXT = ./script-fu-xgettext
|
||||
MSGMERGE = PATH=../src:$$PATH msgmerge
|
||||
|
||||
DEFS = @DEFS@
|
||||
|
@ -47,10 +48,12 @@ SOURCES = cat-id-tbl.c
|
|||
POFILES = @POFILES@
|
||||
GMOFILES = @GMOFILES@
|
||||
DISTFILES = ChangeLog Makefile.in.in POTFILES.in $(PACKAGE).pot \
|
||||
stamp-cat-id $(POFILES) $(GMOFILES) $(SOURCES)
|
||||
stamp-cat-id $(POFILES) $(GMOFILES) $(SOURCES) $(SXGETTEXT)
|
||||
|
||||
POTFILES = \
|
||||
|
||||
POTSCRIPTS = $(top_srcdir)/plug-ins/script-fu/scripts/*.scm
|
||||
|
||||
CATALOGS = @CATALOGS@
|
||||
CATOBJEXT = @CATOBJEXT@
|
||||
INSTOBJEXT = @INSTOBJEXT@
|
||||
|
@ -86,6 +89,7 @@ $(srcdir)/$(PACKAGE).pot: $(POTFILES)
|
|||
$(XGETTEXT) --default-domain=$(PACKAGE) --directory=$(top_srcdir) \
|
||||
--add-comments --keyword=_ --keyword=N_ \
|
||||
--files-from=$(srcdir)/POTFILES.in \
|
||||
&& $(SXGETTEXT) $(POTSCRIPTS) >> $(srcdir)/$(PACKAGE).po \
|
||||
&& test ! -f $(PACKAGE).po \
|
||||
|| ( rm -f $(srcdir)/$(PACKAGE).pot \
|
||||
&& mv $(PACKAGE).po $(srcdir)/$(PACKAGE).pot )
|
||||
|
|
|
@ -0,0 +1,89 @@
|
|||
#!/usr/bin/perl
|
||||
|
||||
use 5.005;
|
||||
|
||||
package token;
|
||||
|
||||
sub new {
|
||||
my $type = shift;
|
||||
bless [@_],$type;
|
||||
}
|
||||
|
||||
package main;
|
||||
|
||||
my $stream; # the stream to tokenize from
|
||||
my $word; # the current token-word
|
||||
my $tok; # current token
|
||||
|
||||
# parses a new token [ws, tok, ws]
|
||||
sub get() {
|
||||
my($ws1,$ctk,$ws2);
|
||||
# could be wrapped into one regex
|
||||
$ws1 = $stream=~s/^((?:\s*(?:(;[^\n]*\n))?)*)// ? $1 : die;
|
||||
$ctk = $stream=~s/^(\(
|
||||
|\)
|
||||
|"(?:[^"]+|\\")*"
|
||||
|'(?:[^()]+)
|
||||
|[^ \t\r\n()]+
|
||||
)
|
||||
(?:[ \t]*(?=\n))?//x ? $1 : undef;
|
||||
$ws2 = $stream=~s/^([ \t]*;[^\n]*\n)// ? $1 : "";
|
||||
$word=$ctk;
|
||||
|
||||
# print "TOKEN:$ws1:$ctk:$ws2\n";
|
||||
$tok=new token($ws1,$ctk,$ws2);
|
||||
}
|
||||
|
||||
# returns a parse tree, which is an array
|
||||
# of [token, token...] refs.
|
||||
sub parse() {
|
||||
my @toks;
|
||||
$depth++;
|
||||
for(;;) {
|
||||
# print "$depth: $word\n";
|
||||
if ($word eq "(") {
|
||||
my $t = $tok; get;
|
||||
my @t = &parse;
|
||||
$word eq ")" or die "missing right paranthese (got $word)\n";
|
||||
push(@toks,[$t,@t,$tok]); get;
|
||||
} elsif ($word eq ")") {
|
||||
$depth--;
|
||||
return @toks;
|
||||
} elsif (!defined $word) {
|
||||
$depth--;
|
||||
return @toks;
|
||||
} else {
|
||||
push(@toks,$tok);
|
||||
get;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
sub parse_scheme {
|
||||
get;
|
||||
my @t = parse;
|
||||
(@t,$tok);
|
||||
}
|
||||
|
||||
# dumb dump of the tree structure
|
||||
sub dump_menupaths {
|
||||
my $d=shift;
|
||||
if (isa($_[0],token)) {
|
||||
if ($_[0][1] eq "script-fu-register") {
|
||||
print "\nmsgid $_[2][1]\nmsgstr \"\"\n";
|
||||
}
|
||||
}
|
||||
for(@_) {
|
||||
if(!isa($_,token)) {
|
||||
dump_menupaths (@$_);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
*isa = \&UNIVERSAL::isa;
|
||||
|
||||
for (@ARGV) {
|
||||
$file=$_;
|
||||
$stream = do { local($/,*X); open X, $file or die "$file: $!"; <X> };
|
||||
dump_menupaths parse_scheme;
|
||||
}
|
|
@ -1,3 +1,10 @@
|
|||
2000-03-14 Sven Neumann <sven@gimp.org>
|
||||
Michael Natterer <mitch@gimp.org>
|
||||
|
||||
* *.po: merged the slightly changed messages from install.c
|
||||
and removed the tabs. You will still have to edit the
|
||||
translations and remove the trailing newlines.
|
||||
|
||||
Tue Mar 14 09:58:19 CET 2000 Stanislav Brabec <utx@penguin.cz>
|
||||
|
||||
* cs.po: Updated translation.
|
||||
|
|
1772
po/en_GB.po
1772
po/en_GB.po
File diff suppressed because it is too large
Load Diff
19
user_install
19
user_install
|
@ -3,8 +3,8 @@
|
|||
# Script to perform the default installation steps for the
|
||||
# specified user home directory.
|
||||
#
|
||||
# 1) Create ~/.gimp if it doesn't exist
|
||||
# 2) Copy system gimprc file to ~/.gimp
|
||||
# 1) Create ~/.gimp-1.2 if it doesn't exist
|
||||
# 2) Copy system gimprc file to ~/.gimp-1.2
|
||||
# 3) Create brushes, gradients, palettes, patterns, plug-ins subdirs
|
||||
# 4) Create the tmp subdirectory for disk-swapping undo buffers
|
||||
# 5) Copy the palette files in system palette directory
|
||||
|
@ -30,6 +30,8 @@ echo "mkdir $2/gradients"
|
|||
mkdir $2/gradients
|
||||
echo "mkdir $2/palettes"
|
||||
mkdir $2/palettes
|
||||
echo "cp $1/palettes/* $2/palettes"
|
||||
cp $1/palettes/* $2/palettes
|
||||
echo "mkdir $2/patterns"
|
||||
mkdir $2/patterns
|
||||
echo "mkdir $2/plug-ins"
|
||||
|
@ -40,16 +42,16 @@ echo "mkdir $2/scripts"
|
|||
mkdir $2/scripts
|
||||
echo "mkdir $2/tmp"
|
||||
mkdir $2/tmp
|
||||
echo "mkdir $2/levels"
|
||||
mkdir $2/levels
|
||||
echo "mkdir $2/curves"
|
||||
mkdir $2/curves
|
||||
echo "mkdir $2/levels"
|
||||
mkdir $2/levels
|
||||
echo "mkdir $2/fractalexplorer"
|
||||
mkdir $2/fractalexplorer
|
||||
echo "mkdir $2/gfig"
|
||||
mkdir $2/gfig
|
||||
echo "mkdir $2/gflare"
|
||||
mkdir $2/gflare
|
||||
echo "mkdir $2/fractalexplorer"
|
||||
mkdir $2/fractalexplorer
|
||||
echo "mkdir $2/gimpressionist"
|
||||
mkdir $2/gimpressionist
|
||||
echo "mkdir $2/gimpressionist/Brushes"
|
||||
|
@ -58,8 +60,3 @@ echo "mkdir $2/gimpressionist/Paper"
|
|||
mkdir $2/gimpressionist/Paper
|
||||
echo "mkdir $2/gimpressionist/Presets"
|
||||
mkdir $2/gimpressionist/Presets
|
||||
echo "cp $1/palettes/* $2/palettes"
|
||||
cp $1/palettes/* $2/palettes
|
||||
echo "NOTICE: GIMP uses an additional gtkrc file so you can"
|
||||
echo "configure it to look differently than other GTK apps."
|
||||
echo "You may wish to edit GIMP's gtkrc (in $2/gtkrc)."
|
||||
|
|
Loading…
Reference in New Issue