Handle twain and winsnap subdirs normally.
2003-05-31 Tor Lillqvist <tml@iki.fi> * plug-ins/Makefile.am: Handle twain and winsnap subdirs normally. * configure.in: Set TWAIN and WINSNAP on Win32. Expand Makefiles in these dirs. * plug-ins/twain/Makefile.am * plug-ins/winsnap/Makefile.am: New files, from stable branch. * plug-ins/winsnap/winsnap.c: Make it build with GTK2.
This commit is contained in:

committed by
Tor Lillqvist

parent
7e6b119ac2
commit
654e9c9d21
10
ChangeLog
10
ChangeLog
@ -1,5 +1,15 @@
|
|||||||
2003-05-31 Tor Lillqvist <tml@iki.fi>
|
2003-05-31 Tor Lillqvist <tml@iki.fi>
|
||||||
|
|
||||||
|
* plug-ins/Makefile.am: Handle twain and winsnap subdirs normally.
|
||||||
|
|
||||||
|
* configure.in: Set TWAIN and WINSNAP on Win32. Expand
|
||||||
|
Makefiles in these dirs.
|
||||||
|
|
||||||
|
* plug-ins/twain/Makefile.am
|
||||||
|
* plug-ins/winsnap/Makefile.am: New files, from stable branch.
|
||||||
|
|
||||||
|
* plug-ins/winsnap/winsnap.c: Make it build with GTK2.
|
||||||
|
|
||||||
* README.win32: Update.
|
* README.win32: Update.
|
||||||
|
|
||||||
* plug-ins/makefile.cygwin
|
* plug-ins/makefile.cygwin
|
||||||
|
@ -904,8 +904,10 @@ AM_CONDITIONAL(BUILD_PYTHON, test "x$enable_python" != xno)
|
|||||||
###########################################################
|
###########################################################
|
||||||
|
|
||||||
if test x"$os_win32" = xyes; then
|
if test x"$os_win32" = xyes; then
|
||||||
|
TWAIN='twain'
|
||||||
WINCLIPBOARD='winclipboard'
|
WINCLIPBOARD='winclipboard'
|
||||||
WINPRINT='winprint'
|
WINPRINT='winprint'
|
||||||
|
WINSNAP='winsnap'
|
||||||
dnl webbrowser has ifdefs for Win32
|
dnl webbrowser has ifdefs for Win32
|
||||||
WEBBROWSER='webbrowser'
|
WEBBROWSER='webbrowser'
|
||||||
dnl xjt does build, but it isn't more confusing than useful on Win32,
|
dnl xjt does build, but it isn't more confusing than useful on Win32,
|
||||||
@ -921,9 +923,11 @@ fi
|
|||||||
AC_SUBST(BZ2)
|
AC_SUBST(BZ2)
|
||||||
AC_SUBST(MAIL)
|
AC_SUBST(MAIL)
|
||||||
AC_SUBST(SCREENSHOT)
|
AC_SUBST(SCREENSHOT)
|
||||||
|
AC_SUBST(TWAIN)
|
||||||
AC_SUBST(URL)
|
AC_SUBST(URL)
|
||||||
AC_SUBST(WINCLIPBOARD)
|
AC_SUBST(WINCLIPBOARD)
|
||||||
AC_SUBST(WINPRINT)
|
AC_SUBST(WINPRINT)
|
||||||
|
AC_SUBST(WINSNAP)
|
||||||
AC_SUBST(XJT)
|
AC_SUBST(XJT)
|
||||||
|
|
||||||
#################################################################
|
#################################################################
|
||||||
@ -1038,7 +1042,7 @@ AC_SUBST(GIMPINSTALL)
|
|||||||
dnl FIXME: Do we need to do this?
|
dnl FIXME: Do we need to do this?
|
||||||
if test -n "$DISTMAKE"; then
|
if test -n "$DISTMAKE"; then
|
||||||
TIFF=tiff JPEG=jpeg PNG=png MNG=mng AA=aa PRINT=print
|
TIFF=tiff JPEG=jpeg PNG=png MNG=mng AA=aa PRINT=print
|
||||||
WEBBROWSER=webbrowser HELPBROWSER=helpbrowser
|
TWAIN=twain WEBBROWSER=webbrowser WINSNAP=winsnap HELPBROWSER=helpbrowser
|
||||||
XJT=xjt XPM=xpm
|
XJT=xjt XPM=xpm
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -1135,6 +1139,8 @@ plug-ins/pygimp/plug-ins/Makefile
|
|||||||
plug-ins/rcm/Makefile
|
plug-ins/rcm/Makefile
|
||||||
plug-ins/sel2path/Makefile
|
plug-ins/sel2path/Makefile
|
||||||
plug-ins/sgi/Makefile
|
plug-ins/sgi/Makefile
|
||||||
|
plug-ins/twain/Makefile
|
||||||
|
plug-ins/winsnap/Makefile
|
||||||
modules/Makefile
|
modules/Makefile
|
||||||
devel-docs/Makefile
|
devel-docs/Makefile
|
||||||
devel-docs/libgimp/Makefile
|
devel-docs/libgimp/Makefile
|
||||||
|
@ -1,24 +1,7 @@
|
|||||||
## Process this file with automake to produce Makefile.in
|
## Process this file with automake to produce Makefile.in
|
||||||
|
|
||||||
EXTRA_DIST = \
|
EXTRA_DIST = \
|
||||||
makefile.msc \
|
makefile.msc
|
||||||
twain/README \
|
|
||||||
twain/tw_dump.c \
|
|
||||||
twain/tw_dump.h \
|
|
||||||
twain/tw_func.c \
|
|
||||||
twain/tw_func.h \
|
|
||||||
twain/tw_sess.c \
|
|
||||||
twain/tw_util.c \
|
|
||||||
twain/tw_util.h \
|
|
||||||
twain/twain.c \
|
|
||||||
twain/twain.h \
|
|
||||||
winsnap/resource.h \
|
|
||||||
winsnap/select.cur \
|
|
||||||
winsnap/small.ico \
|
|
||||||
winsnap/winsnap.c \
|
|
||||||
winsnap/winsnap.h \
|
|
||||||
winsnap/winsnap.ico \
|
|
||||||
winsnap/winsnap.rc
|
|
||||||
|
|
||||||
if BUILD_PYTHON
|
if BUILD_PYTHON
|
||||||
pygimp=pygimp
|
pygimp=pygimp
|
||||||
@ -51,6 +34,8 @@ SUBDIRS = \
|
|||||||
rcm \
|
rcm \
|
||||||
sgi \
|
sgi \
|
||||||
sel2path \
|
sel2path \
|
||||||
|
$(TWAIN) \
|
||||||
$(WEBBROWSER) \
|
$(WEBBROWSER) \
|
||||||
|
$(WINSNAP) \
|
||||||
$(XJT) \
|
$(XJT) \
|
||||||
common
|
common
|
||||||
|
35
plug-ins/twain/Makefile.am
Normal file
35
plug-ins/twain/Makefile.am
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
## Process this file with automake to produce Makefile.in
|
||||||
|
|
||||||
|
twain_LDFLAGS = -mwindows
|
||||||
|
|
||||||
|
libexecdir = $(gimpplugindir)/plug-ins
|
||||||
|
|
||||||
|
libexec_PROGRAMS = twain
|
||||||
|
|
||||||
|
twain_SOURCES = \
|
||||||
|
tw_func.c \
|
||||||
|
tw_func.h \
|
||||||
|
tw_util.c \
|
||||||
|
tw_util.h \
|
||||||
|
twain.c \
|
||||||
|
twain.h
|
||||||
|
|
||||||
|
EXTRA_DIST = \
|
||||||
|
README \
|
||||||
|
tw_dump.c \
|
||||||
|
tw_dump.h \
|
||||||
|
tw_sess.c
|
||||||
|
|
||||||
|
INCLUDES = \
|
||||||
|
-I$(top_srcdir) \
|
||||||
|
$(GLIB_CFLAGS)
|
||||||
|
|
||||||
|
AM_CPPFLAGS = \
|
||||||
|
-DLOCALEDIR=\""$(localedir)"\"
|
||||||
|
|
||||||
|
LDADD = \
|
||||||
|
$(top_builddir)/libgimp/libgimpui-$(LT_RELEASE).la \
|
||||||
|
$(top_builddir)/libgimp/libgimp-$(LT_RELEASE).la \
|
||||||
|
$(GLIB_LIBS) \
|
||||||
|
$(INTLLIBS) \
|
||||||
|
-luser32
|
37
plug-ins/winsnap/Makefile.am
Normal file
37
plug-ins/winsnap/Makefile.am
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
## Process this file with automake to produce Makefile.in
|
||||||
|
|
||||||
|
winsnap_LDFLAGS = -mwindows
|
||||||
|
|
||||||
|
libexecdir = $(gimpplugindir)/plug-ins
|
||||||
|
|
||||||
|
libexec_PROGRAMS = winsnap
|
||||||
|
|
||||||
|
winsnap_SOURCES = \
|
||||||
|
winsnap.c \
|
||||||
|
winsnap.h
|
||||||
|
|
||||||
|
EXTRA_DIST = \
|
||||||
|
resource.h \
|
||||||
|
select.cur \
|
||||||
|
small.ico \
|
||||||
|
winsnap.ico \
|
||||||
|
winsnap.rc
|
||||||
|
|
||||||
|
INCLUDES = \
|
||||||
|
-I$(top_srcdir) \
|
||||||
|
-I$(top_srcdir)/intl \
|
||||||
|
$(GTK_CFLAGS) \
|
||||||
|
-I$(includedir)
|
||||||
|
|
||||||
|
AM_CPPFLAGS = \
|
||||||
|
-DLOCALEDIR=\""$(localedir)"\"
|
||||||
|
|
||||||
|
LDADD = \
|
||||||
|
winsnap-win32res.o \
|
||||||
|
$(top_builddir)/libgimp/libgimpui-$(LT_RELEASE).la \
|
||||||
|
$(top_builddir)/libgimp/libgimp-$(LT_RELEASE).la \
|
||||||
|
$(GTK_LIBS) \
|
||||||
|
$(INTLLIBS)
|
||||||
|
|
||||||
|
winsnap-win32res.o: winsnap.rc select.cur small.ico winsnap.ico
|
||||||
|
$(top_srcdir)/build/win32/compile-resource winsnap.rc winsnap-win32res.o
|
@ -85,8 +85,6 @@ static HCURSOR selectCursor = 0;
|
|||||||
static ICONINFO iconInfo;
|
static ICONINFO iconInfo;
|
||||||
|
|
||||||
/* Forward declarations */
|
/* Forward declarations */
|
||||||
static void init(void);
|
|
||||||
static void quit(void);
|
|
||||||
static void query(void);
|
static void query(void);
|
||||||
static void run(char *, int, GimpParam *, int *, GimpParam **);
|
static void run(char *, int, GimpParam *, int *, GimpParam **);
|
||||||
static void sendBMPToGimp(HBITMAP hBMP, HDC hDC, RECT rect);
|
static void sendBMPToGimp(HBITMAP hBMP, HDC hDC, RECT rect);
|
||||||
@ -894,7 +892,7 @@ snap_dialog(void)
|
|||||||
/* Main Dialog */
|
/* Main Dialog */
|
||||||
dialog = gtk_dialog_new ();
|
dialog = gtk_dialog_new ();
|
||||||
gtk_window_set_title(GTK_WINDOW(dialog), PLUG_IN_PRINT_NAME);
|
gtk_window_set_title(GTK_WINDOW(dialog), PLUG_IN_PRINT_NAME);
|
||||||
gtk_window_position(GTK_WINDOW(dialog), GTK_WIN_POS_MOUSE);
|
gtk_window_set_position(GTK_WINDOW(dialog), GTK_WIN_POS_MOUSE);
|
||||||
g_signal_connect (dialog, "destroy",
|
g_signal_connect (dialog, "destroy",
|
||||||
G_CALLBACK (snap_close_callback),
|
G_CALLBACK (snap_close_callback),
|
||||||
NULL);
|
NULL);
|
||||||
@ -934,7 +932,7 @@ snap_dialog(void)
|
|||||||
gtk_box_pack_start (GTK_BOX (vbox),
|
gtk_box_pack_start (GTK_BOX (vbox),
|
||||||
hbox, TRUE, TRUE, 0);
|
hbox, TRUE, TRUE, 0);
|
||||||
winsnapintf.single_button = gtk_radio_button_new ( radio_group );
|
winsnapintf.single_button = gtk_radio_button_new ( radio_group );
|
||||||
radio_group = gtk_radio_button_group ( GTK_RADIO_BUTTON (winsnapintf.single_button) );
|
radio_group = gtk_radio_button_get_group ( GTK_RADIO_BUTTON (winsnapintf.single_button) );
|
||||||
gtk_box_pack_start (GTK_BOX (hbox),
|
gtk_box_pack_start (GTK_BOX (hbox),
|
||||||
winsnapintf.single_button, TRUE, TRUE, 0);
|
winsnapintf.single_button, TRUE, TRUE, 0);
|
||||||
g_signal_connect (winsnapintf.single_button, "toggled",
|
g_signal_connect (winsnapintf.single_button, "toggled",
|
||||||
@ -981,7 +979,7 @@ snap_dialog(void)
|
|||||||
gtk_container_add (GTK_CONTAINER (frame), hbox);
|
gtk_container_add (GTK_CONTAINER (frame), hbox);
|
||||||
|
|
||||||
winsnapintf.root_button = gtk_radio_button_new ( radio_group );
|
winsnapintf.root_button = gtk_radio_button_new ( radio_group );
|
||||||
radio_group = gtk_radio_button_group ( GTK_RADIO_BUTTON (winsnapintf.root_button) );
|
radio_group = gtk_radio_button_get_group ( GTK_RADIO_BUTTON (winsnapintf.root_button) );
|
||||||
gtk_box_pack_start (GTK_BOX (hbox), winsnapintf.root_button, TRUE, TRUE, 0);
|
gtk_box_pack_start (GTK_BOX (hbox), winsnapintf.root_button, TRUE, TRUE, 0);
|
||||||
g_signal_connect (winsnapintf.root_button, "toggled",
|
g_signal_connect (winsnapintf.root_button, "toggled",
|
||||||
G_CALLBACK (snap_toggle_update),
|
G_CALLBACK (snap_toggle_update),
|
||||||
|
Reference in New Issue
Block a user