Commit Graph

20 Commits

Author SHA1 Message Date
Manish Singh 141b6e8a25 applied gimp-lecorfec-99041[02]-0, changes follow
* applied gimp-lecorfec-99041[02]-0, changes follow

* plug-ins/FractalExplorer/Dialogs.h (make_color_map):
replaced free with g_free to fix segfault.

* plug-ins/Lighting/lighting_preview.c (compute_preview):
allocate xpostab and ypostab only when needed (it could also be
allocated on stack with a compilation-fixed size like MapObject).
It avoids to lose some Kb on each preview :)
Also reindented (unfortunate C-c C-q) some other lines.

* plug-ins/Lighting/lighting_main.c (run):
release allocated postabs.

* plug-ins/Lighting/lighting_ui.c:
callbacks now have only one argument because gck widget use
gtk_signal_connect_object. Caused segfault for scale widget.

* plug-ins/autocrop/autocrop.c (doit):
return if image has only background (thus fixing a segfault).

* plug-ins/emboss/emboss.c (pluginCore, emboss_do_preview):
replaced malloc/free with g_malloc/g_free (unneeded, but
shouldn't everyone use glib calls ? :)

* plug-ins/flame/flame.c :
replaced a segfaulting free, and several harmless malloc/free pairs.

* plug-ins/flame/megawidget.c (mw_preview_build):
replaced harmless malloc/free pair.
Note : mwp->bits is malloc'ed but seems to be never freed.

* plug-ins/fractaltrace/fractaltrace.c (pixels_free):
replaced a bunch of segfaulting free.
(pixels_get, dialog_show): replaced gtk_signal_connect_object
with gtk_signal_connect to accomodate callbacks (caused STRANGE
dialog behaviour, coz you destroyed buttons one by one).

* plug-ins/illusion/illusion.c (dialog):
same gtk_signal_connect_object replacement for same reasons.

* plug-ins/libgck/gck/gckcolor.c :
changed all gck_rgb_to_color* functions to use a static GdkColor
instead of a malloc'ed area. Provided reentrant functions with
the old behaviour (gck_rgb_to_color*_r). Made some private functions
static, too.
gck_rgb_to_gdkcolor now use the new functions while
gck_rgb_to_gdkcolor_r is the reentrant version.
Also affected by this change: gck_gc_set_foreground and
gck_gc_set_background (no more free(color)).

* plug-ins/libgck/gck/gckcolor.h :
added the gck_rgb_to_gdkcolor_r proto.

* plug-ins/lic/lic.c (ok_button_clicked, cancel_button_clicked) :
segfault on gtk_widget_destroy, now calls gtk_main_quit.
(dialog_destroy) : segfault on window closure when called by
"destroy" event. Now called by "delete_event".

* plug-ins/megawidget/megawidget.c (mw_preview_build):
replaced harmless malloc/free pair.
Note : mwp->bits is malloc'ed but seems to be never freed.

* plug-ins/png/png.c (load_image):
replaced 2 segfaulting free.

* plug-ins/print/print-ps.c (ps_print):
replaced a segfaulting free (called many times :).

* plug-ins/sgi/sgi.c (load_image, save_image):
replaced a bunch of segfaulting free, and did some harmless
inits to avoid a few gcc warnings.

* plug-ins/wind/wind.c (render_wind):
replaced a segfaulting free.
(render_blast): replaced harmless malloc/free pair.

* plug-ins/bmp/bmpread.c (ReadImage):
yet another free()/g_free() problem fixed.

* plug-ins/exchange/exchange.c (real_exchange):
ditto.

* plug-ins/fp/fp.h: added Frames_Check_Button_In_A_Box proto.
* plug-ins/fp/fp_gtk.c: closing subdialogs via window manager
wasn't handled, thus leading to errors and crashes.
Now delete_event signals the dialog control button
to close a dialog with the good way.

* plug-ins/ifscompose/ifscompose.c (value_pair_create):
tried to set events mask on scale widget (a NO_WINDOW widget).

* plug-ins/png/png.c (save_image):
Replaced 2 free() with g_free() for g_malloc'ed memory.
Mysteriously I corrected the loading bug but not the saving one :)

-Yosh
1999-04-15 21:49:09 +00:00
Federico Mena Quintero 10bc5237a7 Updated gtk_toggle_button_set_state() to gtk_toggle_button_set_active() in
1999-01-15  Federico Mena Quintero  <federico@nuclecu.unam.mx>

	* Updated gtk_toggle_button_set_state() to
	gtk_toggle_button_set_active() in all the files.
1999-01-15 17:35:04 +00:00
Manish Singh ab0f6afcfa Upgraded to libtool 1.2b
* Upgraded to libtool 1.2b

* Reversioned libgimp to use gtk-style without a funky soname

* configure.in: craft GLIB_CFLAGS and GLIB_LIBS

* Makefile.am (pretty much all of em): changed to use new library
naming scheme. Only link libgimpui and libgtk et al to the plugins
that actually need them.

* app/gimage_cmds.c: corrected typo that resulted in corrupt PDB
record

* libgimp/gimp.h
* libgimp/gimpwire.h
* libgimp/gimpmenu.[ch]: clean up the callback code

* Removed unecessary inclusion of gtk headers for plugins that
don't use em

* plug-ins/zealouscrop/zealouscrop.c: use gint8 instead of gboolean,
save some mem

* plugged some warnings in animationplay, flame, fp, gee, gfig

* gimptool.in: changes for library reversioning, added --nogimpui
option for not linking in libgimpui

* configure.in: added finnish translation

-Yosh
1998-09-20 23:04:33 +00:00
Manish Singh 05d166cd4e Removed -lc from all Makefiles, since it causes weird problems on DU4
-Yosh
1998-08-31 02:08:15 +00:00
Manish Singh 476a602b1e don't use app private includes
-Yosh
1998-06-30 19:14:12 +00:00
Manish Singh 83e02a396f minor unused variable warning cleanup
* app/interface.c: minor unused variable warning cleanup

* plug-ins/bumpmap/bumpmap.c: another warning cleanup

* plug-ins/flame/flame.c: time(NULL) instead of time(0)

* plug-ins/gpc/Makefile.am
* plug-ins/megawidget/Makefile.am: install in $libdir instead of
$gimpplugindir since they *are* libs. Some archs try to exec them, and it
barfs

-Yosh
1998-06-28 06:33:38 +00:00
Manish Singh db28c2a313 libgimp versioning stuff
-Yosh
1998-06-19 19:47:34 +00:00
Manish Singh c5ac15e0a9 add declaration to get interface.c to compile
* app/disp_callbacks.h: add declaration to get interface.c to compile

* autogen.sh: make sure we know about ACLOCAL_FLAGS

* I went on a compiler warning pogrom

-Yosh
1998-06-09 11:41:13 +00:00
Manish Singh 84abd5d700 Have fun recompiling gimp everyone. It's the great FSF address change!
-Yosh
1998-04-13 05:44:11 +00:00
Manish Singh 909a3dc590 configure.in: fix for $srcdir != $builddir for data. Tightened check for
random() and add -lucb on systems that need it. Fix for xdelta.h check. Find
xemacs as well as emacs. Properly define settings for print plugin.

app/Makefile.am: ditch -DNDEBUG, since nothing uses it

flame: properly handle random() and friends

pnm: workaround for systems with old sprintfs

print, sgi: fold back in portability fixes

threshold_alpha: properly get params in non-interactive mode

bmp: updated and merged in

-Yosh
1998-04-07 03:41:22 +00:00
Manish Singh e5a3b37453 bzero/bcopy pogrom.
-Yosh
1998-03-21 02:17:49 +00:00
Manish Singh 7cb1950fd7 M_PI madness...
-Yosh
1998-03-18 23:40:52 +00:00
EST 1998 Adrian Likins d728bead19 Changed MAIN(); to MAIN()
Mon Mar 16 17:50:56 EST 1998 Adrian Likins <adrian@gimp.org>

        * plugins/illusion/illusion.c:
        * plugins/papertile/papertile.c:
        * plugins/fractaltrace/fractaltrace.c:
        * plugins/flame/flame.c: Changed MAIN(); to MAIN()

        *gimprc_user: added a commented out (install-colormap)
        option

        *app/install.c: comsetic update to show info about .gimp/scripts

        *plugins/sparkle/sparckle.c:
        *plugins/despeckle/despeckle.c: made a local MIN/MAX instead
        of redefing the normal one (causes problems on some compilers)

-adrian
1998-03-16 23:02:31 +00:00
Tim Janik 81432a0543 also destroy the main dialog if the "Cancel" button is clicked.
Sun Mar 15 06:15:37 1998  Tim Janik  <timj@gimp.org>

        * plug-ins/exchange/exchange.c (doDialog): also destroy the main dialog
                if the "Cancel" button is clicked.

                        * plug-ins/flame/flame.c: use gtk_quit_add_destroy instead of
                                gtk_quit_add (,gtk_widget_destroy,), i should have really known
                                        better since i wrote gtk_quit_add_destroy() exclusively for the gimp ;)
                                                * app/tips_dialog.c (tips_dialog_create): likewise.
                                                        * app/indexed_palette.c (indexed_palette_create): likewise.
                                                                * app/fileops.c (file_open_callback): likewise.
                                                                        * app/fileops.c (file_save_as_callback): likewise.

                                                                        Sun Mar 15 03:54:58 1998  Tim Janik  <timj@gimp.org>

                                                                                * plug-ins/AlienMap/AlienMap.c: show/hide about dialog, don't affect
                                                                                        the main dialog.
1998-03-15 05:41:01 +00:00
Tim Janik a92e96fe1a hide the dialog on delete. (make_file_dlg): hide the dialog on delete.
Sun Mar 15 03:54:58 1998  Tim Janik  <timj@gimp.org>

        * plug-ins/flame/flame.c (edit_callback): hide the dialog on delete.
                (make_file_dlg): hide the dialog on delete.

                        * plug-ins/ifscompose/ifscompose.c (ifs_options_dialog): hide the dialog
                                on delete.

                                        * app/interface.c (toolbox_delete): handle WM delete of toolbox
                                                correctly.
                                                        (gdisplay_delete): don't close image window without confirmation.
1998-03-15 04:48:18 +00:00
Manish Singh 4a994c001a The .cvsignores should have .libs too
-Yosh
1998-01-09 09:53:59 +00:00
Manish Singh 099012f211 Configured in the flame plugin
Updated the ripply-anim script (still broken)
Preparation for 0.99.16 release

-Yosh
1997-12-15 03:44:55 +00:00
Manish Singh 6867aa0f03 Ditch all the extraneous Makefiles 1997-12-14 11:52:16 +00:00
Elliot Lee 3d987d673d bunch of cvsignores added 1997-11-27 21:58:02 +00:00
Elliot Lee 32cefec8f7 Initial revision 1997-11-24 22:05:25 +00:00