configure.in themes/Default/images/Makefile.am some new Makefiles to make
2001-08-06 Michael Natterer <mitch@gimp.org> * configure.in * themes/Default/images/Makefile.am * themes/Default/images/tools/Makefile.am: some new Makefiles to make it installable. * Makefile.am * gtkrc: removed... * themes/Default/Makefile.am * themes/Default/gtkrc: ...added here. * themes/Default/imagerc: new file (not used, just for documentation) which loads the default theme's images in the same way the inlined pixbufs are registered with the stock system. * gimprc.in * gimprc.win32 * user_install * user_install.bat * app/gimprc.[ch]: added "theme-path" and "theme" gimprc variables. * app/app_procs.c: prase gimprc before initializing the GUI. * app/core/gimpdatafiles.[ch]: added support for getting only subdirectories in the callback. * libgimpbase/gimpenv.c: as a temp_hack gimp_gtkrc(); returns the default theme's gtkrc. * app/gui/gui.c: build a hash of theme directories and select the one configured in gimprc.theme. Use gimp_gtkrc()'s default value if there is no theme installed or configured. * app/gui/preferences-dialog.c: Added theme_path to the GUI. No stuff for selection the theme yet. * app/gui/menus.c: beautify <Image>/Tools/ * app/tools/gimpcroptool.c: register in <Image>/Tools/Transform Tools/
This commit is contained in:

committed by
Michael Natterer

parent
572942f1da
commit
30d2fdef07
@ -165,6 +165,12 @@ gimp_datafiles_read_directories (const gchar *path_str,
|
||||
{
|
||||
while ((dir_ent = readdir (dir)))
|
||||
{
|
||||
if (! strcmp (dir_ent->d_name, ".") ||
|
||||
! strcmp (dir_ent->d_name, ".."))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
filename = g_strdup_printf ("%s%s",
|
||||
(gchar *) list->data,
|
||||
dir_ent->d_name);
|
||||
@ -172,14 +178,21 @@ gimp_datafiles_read_directories (const gchar *path_str,
|
||||
/* Check the file and see that it is not a sub-directory */
|
||||
err = stat (filename, &filestat);
|
||||
|
||||
if (!err && S_ISREG (filestat.st_mode) &&
|
||||
(!(flags & MODE_EXECUTABLE) ||
|
||||
(filestat.st_mode & S_IXUSR) ||
|
||||
is_script (filename)))
|
||||
if (! err)
|
||||
{
|
||||
filestat_valid = TRUE;
|
||||
|
||||
(* loader_func) (filename, loader_data);
|
||||
if (S_ISDIR (filestat.st_mode) && (flags & TYPE_DIRECTORY))
|
||||
{
|
||||
(* loader_func) (filename, loader_data);
|
||||
}
|
||||
else if (S_ISREG (filestat.st_mode) &&
|
||||
(!(flags & MODE_EXECUTABLE) ||
|
||||
(filestat.st_mode & S_IXUSR) ||
|
||||
is_script (filename)))
|
||||
{
|
||||
(* loader_func) (filename, loader_data);
|
||||
}
|
||||
|
||||
filestat_valid = FALSE;
|
||||
}
|
||||
|
Reference in New Issue
Block a user