Commit 85757183 authored by Manish Singh's avatar Manish Singh

added MAINTAINERS to EXTRA_DIST

* Makefile.am: added MAINTAINERS to EXTRA_DIST

* configure.in: nicer -Wall, -ansi, etc. adding for CFLAGS with gcc

* libgimp/parasite*.h
* libgimp/gimpintl.h
* app/Makefile.am
* po/Makefile.in.in
* configure.in: portablity, locale patch (gimp-joke-981028-0)

* configure.in
* plug-ins/Makefile.am: added lic, mapcolor, and xbm plug-ins

* app/app_procs.c
* app/menus.c: cosmetic message fixes

* libgimp/parasite.c: use %p to print pointers

* plug-ins/dbbrowser/dbbrowser_utils.[ch]: changes for new clist stuff

* plug-ins/script-fu/script-fu-enums.h
* plug-ins/script-fu/script-fu-scripts.c
* plug-ins/script-fu/script-fu.c
* plug-ins/script-fu/scripts/carved-logo.scm
* plug-ins/script-fu/scripts/chrome-it.scm
* plug-ins/script-fu/scripts/crystal-logo.scm
* plug-ins/script-fu/scripts/neon-logo.scm
* plug-ins/script-fu/scripts/sota-chrome-logo.scm: applied gimp-ruth-981103-0,
adds a filesel to script-fu and SF-FILENAME param type. Make some scripts use
this.

-Yosh
parent 66cd5c16
Thu Nov 5 16:42:21 PST 1998 Manish Singh <yosh@gimp.org>
* Makefile.am: added MAINTAINERS to EXTRA_DIST
* configure.in: nicer -Wall, -ansi, etc. adding for CFLAGS with gcc
* libgimp/parasite*.h
* libgimp/gimpintl.h
* app/Makefile.am
* po/Makefile.in.in
* configure.in: portablity, locale patch (gimp-joke-981028-0)
* configure.in
* plug-ins/Makefile.am: added lic, mapcolor, and xbm plug-ins
* app/app_procs.c
* app/menus.c: cosmetic message fixes
* libgimp/parasite.c: use %p to print pointers
* plug-ins/dbbrowser/dbbrowser_utils.[ch]: changes for new clist
stuff
* plug-ins/script-fu/script-fu-enums.h
* plug-ins/script-fu/script-fu-scripts.c
* plug-ins/script-fu/script-fu.c
* plug-ins/script-fu/scripts/carved-logo.scm
* plug-ins/script-fu/scripts/chrome-it.scm
* plug-ins/script-fu/scripts/crystal-logo.scm
* plug-ins/script-fu/scripts/neon-logo.scm
* plug-ins/script-fu/scripts/sota-chrome-logo.scm: applied
gimp-ruth-981103-0, adds a filesel to script-fu and SF-FILENAME
param type. Make some scripts use this.
Thu Nov 5 21:55:46 GMT 1998 Andy Thomas <alt@picnic.demon.co.uk>
* app/gradient.c
......@@ -509,6 +543,7 @@ Mon Oct 5 01:08:11 CST 1998 Seth Burgess <sjburges@gimp.org>
Many thanks to Marc Lehman for reporting these. More to come.
Mon Oct 5 23:56:09 EEST 1998 Lauri Alanko <nether@gimp.org>
* po/fr.po: fixed a compile-halting typo
Mon Oct 5 16:18:08 EDT 1998 Matthew Wilson <msw@gimp.org>
......
......@@ -4,9 +4,32 @@ SUBDIRS = po intl libgimp plug-ins app data
bin_SCRIPTS = gimptool
EXTRA_DIST = TODO gtkrc gimp_logo.ppm gimp_splash.ppm gimp1_1_splash.ppm rmshm user_install gimp_tips.txt ps-menurc gimp.1 gimptool.1 gtkrc.forest2 gimp.m4
EXTRA_DIST = \
MAINTAINERS \
TODO \
gtkrc \
gimp_logo.ppm \
gimp_splash.ppm \
gimp1_1_splash.ppm \
rmshm \
user_install \
gimp_tips.txt \
ps-menurc \
gimp.1 \
gimptool.1 \
gtkrc.forest2 \
gimp.m4
gimpdata_DATA = gimprc gimprc_user gtkrc gimp_logo.ppm gimp_splash.ppm gimp1_1_splash.ppm gimp_tips.txt ps-menurc gtkrc.forest2
gimpdata_DATA = \
gimprc \
gimprc_user \
gtkrc \
gimp_logo.ppm \
gimp_splash.ppm \
gimp1_1_splash.ppm \
gimp_tips.txt \
ps-menurc \
gtkrc.forest2
gimpdata_SCRIPTS = user_install
......
......@@ -336,7 +336,8 @@ EXTRA_DIST = \
CPPFLAGS = \
-DLIBDIR=\""$(gimpplugindir)"\" \
-DDATADIR=\""$(gimpdatadir)"\" \
-DGIMPDIR=\""$(gimpdir)"\"
-DGIMPDIR=\""$(gimpdir)"\" \
-DLOCALEDIR=\""$(localedir)"\"
INCLUDES = \
-I$(top_srcdir) \
......
......@@ -458,7 +458,7 @@ app_init (void)
sprintf (filename, "%s/gtkrc", gimp_dir);
if ((be_verbose == TRUE) || (no_splash == TRUE))
g_print (_("parsing %s\n"), filename);
g_print (_("parsing \"%s\"\n"), filename);
gtk_rc_parse (filename);
}
......
......@@ -343,7 +343,7 @@ menus_set_sensitive (char *path,
gtk_widget_set_sensitive (widget, sensitive);
}
if (!ifactory || !widget)
printf (_("Unable to set sensitivity for menu which doesn't exist:\n%s"), path);
g_message (_("Unable to set sensitivity for menu which doesn't exist:\n%s"), path);
}
void
......@@ -368,7 +368,7 @@ menus_set_state (char *path,
widget = NULL;
}
if (!ifactory || !widget)
printf (_("Unable to set state for menu which doesn't exist:\n%s"), path);
g_message (_("Unable to set state for menu which doesn't exist:\n%s\n"), path);
}
void
......
......@@ -343,7 +343,7 @@ menus_set_sensitive (char *path,
gtk_widget_set_sensitive (widget, sensitive);
}
if (!ifactory || !widget)
printf (_("Unable to set sensitivity for menu which doesn't exist:\n%s"), path);
g_message (_("Unable to set sensitivity for menu which doesn't exist:\n%s"), path);
}
void
......@@ -368,7 +368,7 @@ menus_set_state (char *path,
widget = NULL;
}
if (!ifactory || !widget)
printf (_("Unable to set state for menu which doesn't exist:\n%s"), path);
g_message (_("Unable to set state for menu which doesn't exist:\n%s\n"), path);
}
void
......
......@@ -343,7 +343,7 @@ menus_set_sensitive (char *path,
gtk_widget_set_sensitive (widget, sensitive);
}
if (!ifactory || !widget)
printf (_("Unable to set sensitivity for menu which doesn't exist:\n%s"), path);
g_message (_("Unable to set sensitivity for menu which doesn't exist:\n%s"), path);
}
void
......@@ -368,7 +368,7 @@ menus_set_state (char *path,
widget = NULL;
}
if (!ifactory || !widget)
printf (_("Unable to set state for menu which doesn't exist:\n%s"), path);
g_message (_("Unable to set state for menu which doesn't exist:\n%s\n"), path);
}
void
......
......@@ -343,7 +343,7 @@ menus_set_sensitive (char *path,
gtk_widget_set_sensitive (widget, sensitive);
}
if (!ifactory || !widget)
printf (_("Unable to set sensitivity for menu which doesn't exist:\n%s"), path);
g_message (_("Unable to set sensitivity for menu which doesn't exist:\n%s"), path);
}
void
......@@ -368,7 +368,7 @@ menus_set_state (char *path,
widget = NULL;
}
if (!ifactory || !widget)
printf (_("Unable to set state for menu which doesn't exist:\n%s"), path);
g_message (_("Unable to set state for menu which doesn't exist:\n%s\n"), path);
}
void
......
......@@ -66,40 +66,41 @@ ALL_LINGUAS="fr sv ja it fi ko de"
AM_GNU_GETTEXT
dnl Check for GTK+
AM_PATH_GTK(1.1.2,,
AM_PATH_GTK(1.1.3,,
AC_MSG_ERROR(Test for GTK failed. See the file 'INSTALL' for help.))
changequote(,)dnl
dnl Evil stuff to extract GLIB stuff from gtk-config output
dnl (we want to make sure it matches with the gtk we're using)
GLIB_CFLAGS=`echo $GTK_CFLAGS | sed 's/^.*\(-I[[^ ]]*glib[[^ ]]* *-I[[^ ]]*\).*$/\1/'`
GLIB_LDFLAGS=`echo $gtk_libs | sed -e 's/^.*-lgdk[[^ ]]* *\(-L[[^ ]]*\).*$/\1/' -e 's/^.* -lgdk[[^ ]]* .*$//'`
GLIB_CFLAGS=`echo $GTK_CFLAGS | sed 's/^.*\(-I[^ ]*glib[^ ]* *-I[^ ]*\).*$/\1/'`
GLIB_LDFLAGS=`echo $gtk_libs | sed -e 's/^.*-lgdk[^ ]* *\(-L[^ ]*\).*$/\1/' -e 's/^.* -lgdk[^ ]* .*$//'`
if test -z "$glib_ldflags" ; then
GLIB_LDFLAGS=`echo $GTK_LIBS | sed 's/^ *\(-L[[^ ]]*\) .*$/\1/'`
GLIB_LDFLAGS=`echo $GTK_LIBS | sed 's/^ *\(-L[^ ]*\) .*$/\1/'`
fi
GLIB_LIBS="$GLIB_LDFLAGS `echo $GTK_LIBS | sed 's/^.*\(-lglib[[^ ]]*\).*$/\1/'`"
GLIB_LIBS="$GLIB_LDFLAGS `echo $GTK_LIBS | sed 's/^.*\(-lglib[^ ]*\).*$/\1/'`"
if eval "test x$GCC = xyes"; then
if echo "$CFLAGS" | grep "\-Wall" > /dev/null 2> /dev/null; then
CFLAGS="$CFLAGS"
else
CFLAGS="$CFLAGS -Wall"
fi
if eval "test x$enable_ansi = xyes"; then
if echo "$CFLAGS" | grep "\-ansi" > /dev/null 2> /dev/null; then
CFLAGS="$CFLAGS"
else
CFLAGS="$CFLAGS -ansi"
fi
if echo "$CFLAGS" | grep "\-pedantic" > /dev/null 2> /dev/null; then
CFLAGS="$CFLAGS"
else
CFLAGS="$CFLAGS -pedantic"
fi
case " $CFLAGS " in
*[\ \ ]-Wall[\ \ ]*) ;;
*) CFLAGS="$CFLAGS -Wall" ;;
esac
if test "x$enable_ansi" = "xyes"; then
case " $CFLAGS " in
*[\ \ ]-ansi[\ \ ]*) ;;
*) CFLAGS="$CFLAGS -ansi" ;;
esac
case " $CFLAGS " in
*[\ \ ]-pedantic[\ \ ]*) ;;
*) CFLAGS="$CFLAGS -pedantic" ;;
esac
fi
fi
changequote([,])dnl
dnl DU4 native cc currently needs -std1 for ANSI mode (instead of K&R)
AC_MSG_CHECKING([for extra flags to get ANSI library prototypes])
gimp_save_LIBS=$LIBS
......@@ -384,6 +385,7 @@ LIBS="$gimp_save_LIBS"
gimpdatadir=$datadir/gimp
gimpplugindir=$libdir/$PACKAGE/$GIMP_MAJOR_VERSION.$GIMP_MINOR_VERSION
localedir=$datadir/locale
brushdata=`ls -1 $srcdir/data/brushes | grep -v Makefile`
gradientdata=`ls -1 $srcdir/data/gradients | grep -v Makefile`
......@@ -547,6 +549,7 @@ AC_SUBST(GLIB_LIBS)
AC_SUBST(gimpdir)
AC_SUBST(gimpdatadir)
AC_SUBST(gimpplugindir)
AC_SUBST(localedir)
AC_SUBST(brushdata)
AC_SUBST(gradientdata)
AC_SUBST(palettedata)
......@@ -669,7 +672,9 @@ plug-ins/illusion/Makefile
plug-ins/iwarp/Makefile
plug-ins/jigsaw/Makefile
plug-ins/laplace/Makefile
plug-ins/lic/Makefile
plug-ins/mail/Makefile
plug-ins/mapcolor/Makefile
plug-ins/max_rgb/Makefile
plug-ins/maze/Makefile
plug-ins/mblur/Makefile
......@@ -725,6 +730,7 @@ plug-ins/waterselect/Makefile
plug-ins/waves/Makefile
plug-ins/whirlpinch/Makefile
plug-ins/wind/Makefile
plug-ins/xbm/Makefile
plug-ins/xwd/Makefile
plug-ins/zealouscrop/Makefile
app/Makefile
......
#ifndef __GIMPINTL_H__
#define __GIMPINTL_H__
#define LOCALEDIR "/usr/local/share/locale"
/* Copied from gnome-i18n.h by Tom Tromey <tromey@creche.cygnus.com> */
#ifdef ENABLE_NLS
......
......@@ -19,6 +19,8 @@
#include "parasiteP.h"
#include "parasite.h"
#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <glib.h>
......@@ -29,7 +31,7 @@ static void parasite_print(Parasite *p)
printf("(pid %d)attempt to print a null parasite\n", getpid());
return;
}
printf("(pid %d), parasite: %X\n", getpid(), p);
printf("(pid %d), parasite: %p\n", getpid(), p);
if (p->name)
printf("\tname: %s\n", p->name);
else
......@@ -37,7 +39,7 @@ static void parasite_print(Parasite *p)
printf("\tflags: %d\n", p->flags);
printf("\tsize: %d\n", p->size);
if (p->size > 0)
printf("\tdata: %X\n", p->data);
printf("\tdata: %p\n", p->data);
}
Parasite *
......
......@@ -46,4 +46,4 @@ int parasite_is_persistant (const Parasite *p);
}
#endif /* __cplusplus */
#endif _PARASITE_H_
#endif /* _PARASITE_H_ */
......@@ -22,4 +22,4 @@
typedef struct _Parasite Parasite;
#endif _PARASITEF_H_
#endif /* _PARASITEF_H_ */
......@@ -31,4 +31,4 @@ struct _Parasite
* responsible for tracking byte order */
};
#endif _PARASITEP_H_
#endif /* _PARASITEP_H_ */
......@@ -82,8 +82,9 @@ gimp_db_browser(void (* apply_callback) ( gchar *selected_proc_name,
/* list : list in a scrolled_win */
dbbrowser->clist = gtk_clist_new(1);
gtk_clist_set_policy (GTK_CLIST (dbbrowser->clist), GTK_POLICY_AUTOMATIC,
GTK_POLICY_AUTOMATIC);
dbbrowser->scrolled_win = gtk_scrolled_window_new (NULL, NULL);
gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (dbbrowser->scrolled_win),
GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
gtk_clist_set_selection_mode (GTK_CLIST (dbbrowser->clist),
GTK_SELECTION_BROWSE);
......@@ -91,9 +92,10 @@ gimp_db_browser(void (* apply_callback) ( gchar *selected_proc_name,
gtk_signal_connect (GTK_OBJECT (dbbrowser->clist), "select_row",
(GtkSignalFunc) procedure_select_callback,
dbbrowser);
gtk_box_pack_start (GTK_BOX (vbox),
dbbrowser->clist, TRUE, TRUE, 0);
gtk_box_pack_start (GTK_BOX (vbox), dbbrowser->scrolled_win, TRUE, TRUE, 0);
gtk_container_add (GTK_CONTAINER (dbbrowser->scrolled_win), dbbrowser->clist);
gtk_widget_show(dbbrowser->clist);
gtk_widget_show(dbbrowser->scrolled_win);
/* search entry */
......
......@@ -82,8 +82,9 @@ gimp_db_browser(void (* apply_callback) ( gchar *selected_proc_name,
/* list : list in a scrolled_win */
dbbrowser->clist = gtk_clist_new(1);
gtk_clist_set_policy (GTK_CLIST (dbbrowser->clist), GTK_POLICY_AUTOMATIC,
GTK_POLICY_AUTOMATIC);
dbbrowser->scrolled_win = gtk_scrolled_window_new (NULL, NULL);
gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (dbbrowser->scrolled_win),
GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
gtk_clist_set_selection_mode (GTK_CLIST (dbbrowser->clist),
GTK_SELECTION_BROWSE);
......@@ -91,9 +92,10 @@ gimp_db_browser(void (* apply_callback) ( gchar *selected_proc_name,
gtk_signal_connect (GTK_OBJECT (dbbrowser->clist), "select_row",
(GtkSignalFunc) procedure_select_callback,
dbbrowser);
gtk_box_pack_start (GTK_BOX (vbox),
dbbrowser->clist, TRUE, TRUE, 0);
gtk_box_pack_start (GTK_BOX (vbox), dbbrowser->scrolled_win, TRUE, TRUE, 0);
gtk_container_add (GTK_CONTAINER (dbbrowser->scrolled_win), dbbrowser->clist);
gtk_widget_show(dbbrowser->clist);
gtk_widget_show(dbbrowser->scrolled_win);
/* search entry */
......
......@@ -19,6 +19,8 @@
#include "parasiteP.h"
#include "parasite.h"
#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <glib.h>
......@@ -29,7 +31,7 @@ static void parasite_print(Parasite *p)
printf("(pid %d)attempt to print a null parasite\n", getpid());
return;
}
printf("(pid %d), parasite: %X\n", getpid(), p);
printf("(pid %d), parasite: %p\n", getpid(), p);
if (p->name)
printf("\tname: %s\n", p->name);
else
......@@ -37,7 +39,7 @@ static void parasite_print(Parasite *p)
printf("\tflags: %d\n", p->flags);
printf("\tsize: %d\n", p->size);
if (p->size > 0)
printf("\tdata: %X\n", p->data);
printf("\tdata: %p\n", p->data);
}
Parasite *
......
......@@ -46,4 +46,4 @@ int parasite_is_persistant (const Parasite *p);
}
#endif /* __cplusplus */
#endif _PARASITE_H_
#endif /* _PARASITE_H_ */
......@@ -22,4 +22,4 @@
typedef struct _Parasite Parasite;
#endif _PARASITEF_H_
#endif /* _PARASITEF_H_ */
......@@ -31,4 +31,4 @@ struct _Parasite
* responsible for tracking byte order */
};
#endif _PARASITEP_H_
#endif /* _PARASITEP_H_ */
......@@ -19,6 +19,8 @@
#include "parasiteP.h"
#include "parasite.h"
#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <glib.h>
......@@ -29,7 +31,7 @@ static void parasite_print(Parasite *p)
printf("(pid %d)attempt to print a null parasite\n", getpid());
return;
}
printf("(pid %d), parasite: %X\n", getpid(), p);
printf("(pid %d), parasite: %p\n", getpid(), p);
if (p->name)
printf("\tname: %s\n", p->name);
else
......@@ -37,7 +39,7 @@ static void parasite_print(Parasite *p)
printf("\tflags: %d\n", p->flags);
printf("\tsize: %d\n", p->size);
if (p->size > 0)
printf("\tdata: %X\n", p->data);
printf("\tdata: %p\n", p->data);
}
Parasite *
......
......@@ -46,4 +46,4 @@ int parasite_is_persistant (const Parasite *p);
}
#endif /* __cplusplus */
#endif _PARASITE_H_
#endif /* _PARASITE_H_ */
......@@ -79,7 +79,9 @@ SUBDIRS = \
iwarp \
jigsaw \
laplace \
lic \
mail \
mapcolor \
max_rgb \
maze \
mblur \
......@@ -135,6 +137,7 @@ SUBDIRS = \
waves \
whirlpinch \
wind \
xbm \
xwd \
zealouscrop
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
......@@ -82,8 +82,9 @@ gimp_db_browser(void (* apply_callback) ( gchar *selected_proc_name,
/* list : list in a scrolled_win */
dbbrowser->clist = gtk_clist_new(1);
gtk_clist_set_policy (GTK_CLIST (dbbrowser->clist), GTK_POLICY_AUTOMATIC,
GTK_POLICY_AUTOMATIC);
dbbrowser->scrolled_win = gtk_scrolled_window_new (NULL, NULL);
gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (dbbrowser->scrolled_win),
GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
gtk_clist_set_selection_mode (GTK_CLIST (dbbrowser->clist),
GTK_SELECTION_BROWSE);
......@@ -91,9 +92,10 @@ gimp_db_browser(void (* apply_callback) ( gchar *selected_proc_name,
gtk_signal_connect (GTK_OBJECT (dbbrowser->clist), "select_row",
(GtkSignalFunc) procedure_select_callback,
dbbrowser);
gtk_box_pack_start (GTK_BOX (vbox),
dbbrowser->clist, TRUE, TRUE, 0);
gtk_box_pack_start (GTK_BOX (vbox), dbbrowser->scrolled_win, TRUE, TRUE, 0);
gtk_container_add (GTK_CONTAINER (dbbrowser->scrolled_win), dbbrowser->clist);
gtk_widget_show(dbbrowser->clist);
gtk_widget_show(dbbrowser->scrolled_win);
/* search entry */
......
......@@ -52,6 +52,7 @@ typedef struct {
GtkWidget* descr_table;
GtkWidget* clist;
GtkWidget* scrolled_win;
/* the currently selected procedure */
gchar *selected_proc_name;
......
......@@ -82,8 +82,9 @@ gimp_db_browser(void (* apply_callback) ( gchar *selected_proc_name,
/* list : list in a scrolled_win */
dbbrowser->clist = gtk_clist_new(1);
gtk_clist_set_policy (GTK_CLIST (dbbrowser->clist), GTK_POLICY_AUTOMATIC,
GTK_POLICY_AUTOMATIC);
dbbrowser->scrolled_win = gtk_scrolled_window_new (NULL, NULL);
gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (dbbrowser->scrolled_win),
GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
gtk_clist_set_selection_mode (GTK_CLIST (dbbrowser->clist),
GTK_SELECTION_BROWSE);
......@@ -91,9 +92,10 @@ gimp_db_browser(void (* apply_callback) ( gchar *selected_proc_name,
gtk_signal_connect (GTK_OBJECT (dbbrowser->clist), "select_row",
(GtkSignalFunc) procedure_select_callback,
dbbrowser);
gtk_box_pack_start (GTK_BOX (vbox),
dbbrowser->clist, TRUE, TRUE, 0);
gtk_box_pack_start (GTK_BOX (vbox), dbbrowser->scrolled_win, TRUE, TRUE, 0);
gtk_container_add (GTK_CONTAINER (dbbrowser->scrolled_win), dbbrowser->clist);
gtk_widget_show(dbbrowser->clist);
gtk_widget_show(dbbrowser->scrolled_win);
/* search entry */
......
......@@ -52,6 +52,7 @@ typedef struct {
GtkWidget* descr_table;
GtkWidget* clist;
GtkWidget* scrolled_win;
/* the currently selected procedure */
gchar *selected_proc_name;
......
......@@ -82,8 +82,9 @@ gimp_db_browser(void (* apply_callback) ( gchar *selected_proc_name,
/* list : list in a scrolled_win */
dbbrowser->clist = gtk_clist_new(1);
gtk_clist_set_policy (GTK_CLIST (dbbrowser->clist), GTK_POLICY_AUTOMATIC,
GTK_POLICY_AUTOMATIC);
dbbrowser->scrolled_win = gtk_scrolled_window_new (NULL, NULL);
gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (dbbrowser->scrolled_win),
GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
gtk_clist_set_selection_mode (GTK_CLIST (dbbrowser->clist),
GTK_SELECTION_BROWSE);
......@@ -91,9 +92,10 @@ gimp_db_browser(void (* apply_callback) ( gchar *selected_proc_name,
gtk_signal_connect (GTK_OBJECT (dbbrowser->clist), "select_row",
(GtkSignalFunc) procedure_select_callback,
dbbrowser);
gtk_box_pack_start (GTK_BOX (vbox),
dbbrowser->clist, TRUE, TRUE, 0);
gtk_box_pack_start (GTK_BOX (vbox), dbbrowser->scrolled_win, TRUE, TRUE, 0);
gtk_container_add (GTK_CONTAINER (dbbrowser->scrolled_win), dbbrowser->clist);
gtk_widget_show(dbbrowser->clist);
gtk_widget_show(dbbrowser->scrolled_win);
/* search entry */
......
Makefile.in
Makefile
.deps
_libs
.libs
lic
## Process this file with automake to produce Makefile.in
pluginlibdir = $(gimpplugindir)/plug-ins
pluginlib_PROGRAMS = lic
lic_SOURCES = \
lic.c
INCLUDES = \
-I$(top_srcdir) \
$(GTK_CFLAGS) \
-I$(includedir)
LDADD = \
$(top_builddir)/libgimp/libgimpui.la \
$(top_builddir)/libgimp/libgimp.la \
$(GTK_LIBS) \
@LIBJPEG_LIB@
DEPS = \
$(top_builddir)/libgimp/libgimpui.la \
$(top_builddir)/libgimp/libgimp.la
lic_DEPENDENCIES = $(DEPS)
.PHONY: files
files:
@files=`ls $(DISTFILES) 2> /dev/null`; for p in $$files; do \
echo $$p; \
done
@for subdir in $(SUBDIRS); do \
files=`cd $$subdir; $(MAKE) files | grep -v "make\[[1-9]\]"`; \
for file in $$files; do \
echo $$subdir/$$file; \
done; \
done
This diff is collapsed.
Makefile.in
Makefile
.deps
_libs
.libs
mapcolor
## Process this file with automake to produce Makefile.in
pluginlibdir = $(gimpplugindir)/plug-ins
pluginlib_PROGRAMS = mapcolor
mapcolor_SOURCES = \
mapcolor.c
INCLUDES = \
-I$(top_srcdir) \
$(GTK_CFLAGS) \
-I$(includedir)
LDADD = \
$(top_builddir)/libgimp/libgimp.la \
$(GTK_LIBS) \
@LIBJPEG_LIB@
DEPS = \
$(top_builddir)/libgimp/libgimp.la
mapcolor_DEPENDENCIES = $(DEPS)
.PHONY: files
files:
@files=`ls $(DISTFILES) 2> /dev/null`; for p in $$files; do \
echo $$p; \
done
@for subdir in $(SUBDIRS); do \
files=`cd $$subdir; $(MAKE) files | grep -v "make\[[1-9]\]"`; \
for file in $$files; do \
echo $$subdir/$$file; \
done; \
done
This diff is collapsed.
......@@ -35,7 +35,8 @@ typedef enum
SF_FONT,
SF_PATTERN,
SF_BRUSH,
SF_GRADIENT
SF_GRADIENT,
SF_FILENAME
} SFArgType;
typedef enum
......
......@@ -68,6 +68,13 @@ typedef struct
gchar *fontname;
} SFFont;
typedef struct
{
GtkWidget *preview;
GtkWidget *dialog;
gchar *filename;
} SFFilename;
typedef struct
{
gchar *name;
......@@ -88,6 +95,7 @@ typedef union
gchar * sfa_value;
SFAdjustment sfa_adjustment;
SFFont sfa_font;
SFFilename sfa_file;
gchar * sfa_pattern;
gchar * sfa_gradient;
SFBrush sfa_brush;
......@@ -140,7 +148,9 @@ static void script_fu_disable_cc (gint err_msg);
static void script_fu_interface (SFScript *script);
static void script_fu_color_preview (GtkWidget *preview,
gdouble *color);
static void script_fu_font_preview (GtkWidget *preview,
static void script_fu_file_preview (GtkWidget *preview,
gchar *fontname);
static void script_fu_font_preview (GtkWidget *preview,
gchar *fontname);
static void script_fu_cleanup_widgets (SFScript *script);
static void script_fu_ok_callback (GtkWidget *widget,
......@@ -164,6 +174,15 @@ static void script_fu_color_preview_cancel (GtkWidget *widget,
static gint script_fu_color_preview_delete (GtkWidget *widget,
GdkEvent *event,
gpointer data);
static void script_fu_file_preview_callback (GtkWidget *widget,
gpointer data);
static void script_fu_file_dialog_ok (GtkWidget *widget,
gpointer data);
static void script_fu_file_dialog_cancel (GtkWidget *widget,
gpointer data);
static gint script_fu_file_dialog_delete (GtkWidget *widget,
GdkEvent *event,
gpointer data);
static void script_fu_font_preview_callback (GtkWidget *widget,
gpointer data);
static void script_fu_font_dialog_ok (GtkWidget *widget,
......@@ -575,6 +594,19 @@ script_fu_add_script (LISP a)
args[i + 1].description = script->arg_labels[i];
break;
<