2001-12-30 Lars Wirzenius * NEWS: Updated for release. * Making version 1.1. 2001-12-28 Lars Wirzenius * image_list.c: Fixed PageUp/PageDown behavior. * lodju.glade: image list no longer can get focus. 2001-12-27 Lars Wirzenius * NEWS: Wrote first draft. 2001-12-27 Lars Wirzenius * image_list.c: Bugfix. image_list_remove used a linked list while it was being modified, and got quite confused. Made it so that it uses a copy instead. * imagedb.c: New unit test case added while debugging this. 2001-12-27 Lars Wirzenius * lodju.glade: Changed the selection mode to "extended", which should do the right thing for the user, even though the Gtk+ tutorial didn't quite make me understand that. * meta.c: Use signal handler (un)blocking instead (un)connection to prevent unwanted signals for GtkEntry content changes. 2001-12-27 Lars Wirzenius * lodju.glade: Image list selection mode is now "multiple". That isn't very good for the user, but allowed me to fix things so that the C code can deal with multiple selections. * image_list.c, lodju.h, meta.c, pixbuf.c, pixbuf.h: Changed things so that multiple selections work. 2001-12-27 Lars Wirzenius * image_list.c: Change the selected image pointer to a list, in preparation for allowing multiple selected images. 2001-12-27 Lars Wirzenius * meta.c: Removed unnecessary calls to image_list_get_selected. 2001-12-27 Lars Wirzenius * meta.c: Replaced call to image_list_get_selected + image_set_attribute with a call to image_list_set_attribute. * image_list.c: Fixed bug in image_list_set_attribute that would set the caption in the image list (though not in the database) to whatever attribute was set. 2001-12-27 Lars Wirzenius * image_list.c: Made image_list_get_row and _set_row be static, since they weren't really used outside this module. * lodju.h: Removed prototypes. * meta.c: Removed unnecessary call to image_list_get_row. 2001-12-27 Lars Wirzenius * image_list.c: Store a pointer to the current image, instead of the current row. This change was made in preparation for changing the selection mode for the image list widget. 2001-12-23 Lars Wirzenius * utils.c: Added PNG to the image file suffix table. This is a stopgap measure until proper file type recognition can be added. 2001-12-23 Lars Wirzenius * configure.in: Replaced calls to gnome-config with calls to gtk-config, libglade-config, and gdk-pixbuf-config. This should help Allan port Lodju to Windows, and others to compile Lodju without having Gnome. It also makes compilation command lines very ugly, but that's the price we pay for the complicated ways Gtk+ and related libraries are installed (why-oh-why can't it just install so that no -I options or other complicated options are needed?). 2001-12-23 Lars Wirzenius * imagedb.c: Dale has been complaining that his database was marked as dirty, even though he'd made not changes. I finally managed to reproduce this, or at least once case of it, and fixed it by not setting the dirty bit if an attribute is set to the same value. When the database was opened and the information about the first image was displayed, the caption entry field sent a "changed" signal, which then caused the caption info to be stored back into the database -- with no change in the value, of course, but setting the dirty bit. 2001-12-23 Lars Wirzenius * image_list.c, lodju.glade, lodju.h, meta.c: First step in implementing thumbnails in the image list. Now, whenever an image is displayed in the meta data, its thumbnail is also displayed in the image list. Thumbnail size is hardcoded to 32 by 32 pixels. 2001-12-23 Lars Wirzenius * toplevel.c: Put some tricky code used in several places into common functions. 2001-12-23 Lars Wirzenius * lodju.glade, toplevel.c: "File/New database" and "File/Open database" now ask whether to save the old database, if it has been modified. 2001-12-22 Lars Wirzenius * folder_tree.c, lodju.glade: Added a new dialog to ask for the name of a new dialog, then changed new folder creation to use that. Also, now the new folder is not automatically selected. This makes it easier to create several children to the current folder. 2001-12-22 Lars Wirzenius * lodju.glade: Changed the "Save database" dialog presented at exit time (if the database has been modified) to have the alternatives "Yes", "No", and "Cancel". * toplevel.c: Related changes to signal handlers. 2001-12-17 Lars Wirzenius * README: Added gettext to the build dependencies. Suggested by Dale Scheetz. 2001-12-17 Lars Wirzenius * lodju.1: Added note about the default name of the index file. 2001-12-16 Lars Wirzenius * image_list.c: Fixed bug that prevented deletion of two images without selecting one in between. It was caused by selecting the wrong one in the code after the first one had been deleted. 2001-12-16 Lars Wirzenius * folder_tree.c: When creating a new folder, activate the renaming function as well. This finishes of implementation of the suggestion from Dale Scheetz. 2001-12-16 Lars Wirzenius * folder_tree.c, lodju.glade: Improved the Rename folder dialog, based on suggestion from Dale Scheetz: the old name of the folder is now selected and the text entry widget has focus, so that one can immediately start typing in the new name. 2001-12-16 Lars Wirzenius * Replaced the auto-save feature at exit with a dialog that prompts the user. * lodju.c: Removed the call to save_image_database(). * lodu.glade: Added the new dialog. * toplevel.c: Added handlers for the new dialog. 2001-12-16 Lars Wirzenius * lodju.glade: Made the default position for dialog windows be "current mouse position" instead of "let the window manager decide". Suggestion from Dale Scheetz. 2001-12-16 Lars Wirzenius * .cvsignore: Renamed the coding conventions output files. 2001-12-11 Lars Wirzenius * Making release 1.0. Yeehaa! * Phearing zillion bug reports. :) 2001-12-11 Lars Wirzenius * Makefile.in: "make distclean" was called "dictclean". Oops. * xsl/gallery.xsl: Make the td elements that contain thumbnails have a size and align the thumbnails at the bottom, for better visual effect. 2001-12-11 Lars Wirzenius * imagedb.c: Workaround for the libxml '&' handling behavior (probably not a bug). 2001-12-11 Lars Wirzenius * imagedb.c: Added (but commented out) a test case that will make unit testing fail. libxml requires us to treat & specially. Blah. I'll postpone fixing this until after the release. * xsl/gallery.xsl: Added an "up" link to image pages. 2001-12-11 Lars Wirzenius * folder_tree.c: Fixed bug that made the folder tree widget be cleared whenever a folder was removed. Also made it impossible to remove the root folder, as that should not be allowed. 2001-12-11 Lars Wirzenius * pixbuf.c: Rotatation to 180 degrees from the original did not scale the image down. Buggy copy-paste and/or re-factoring, the unit testing *should* catch these things, but obviously doesn't, yet. Thanks to Mikko Rauhala for pointing this out before the 1.0 release. 2001-12-11 Lars Wirzenius * xsl/gallery.xsl, xsl/*.gif, Makefile, lodju-gallery.in: Added Jukka's HTML templates to the gallery generation. Had to break his design a bit, but I think we'll live. 2001-12-09 Lars Wirzenius * Makefile.in: Fixed "make install" so it works from the object directory, instead of only from the source directory. Also silenced gzip, which used to complain, if Lodju was installed twice (it noticed an older compressed version of the manual pages). 2001-12-09 Lars Wirzenius * lodju.h, meta.c, pixbuf.c, pixbuf.h: Removed unused argument to the callback function for pixbuf_load_start. 2001-12-09 Lars Wirzenius * folder_tree.c, image_list.c: Removed stupid "xxx_" prefix that was a leftover of an enscapsulation procedure done long ago. 2001-12-09 Lars Wirzenius * imagedb.c, imagedb.h: Added functions to get and set the current filename of a database. * lodju.glade, toplevel.c: Added "New database" and "Save as" operations to the File menu. 2001-12-09 Lars Wirzenius * folder_tree.c: fixed drag-and-drop get_data operation. There were some stupid errors related to typecasts and using the wrong variable. I wish we had automatic testing of the user interface. * lodju.c: Removed the goodbye message. It's ugly. 2001-12-08 Lars Wirzenius * Fixed some memory leaks. While doing this, I made the Makefile VPATH compatible. 2001-12-08 Lars Wirzenius * Makefile.in, README, imagedb.c, lodju.c, lodju.h, pixbuf.c, utils.c, cfg.c: Added a new module, cfg.c, that allows the user to set the size of the cache of loaded images. 2001-12-08 Lars Wirzenius * toplevel.c: File selection dialogs now remember the previous directory they had open. 2001-12-08 Lars Wirzenius * image_list.c: Fixed the next/prev toolbar buttons to work exactly the same as the accelerator keys for the corresponding menu entries. 2001-12-08 Lars Wirzenius * lodju.glade: Re-arranged menu structure to make it more logical. 2001-12-08 Lars Wirzenius * image_list.c, lodju.glade: Added "Next" and "Previous" buttons to the tool bar. 2001-12-08 Lars Wirzenius * README: Added note about cache memory size. 2001-12-08 Lars Wirzenius * Makefile.in: Added a distclean target, as suggested by Dale Scheetz (the Debian packager). 2001-12-04 Lars Wirzenius * README: Point out that lodju-gallery needs ImageMagick. * configure.in: Make lodju-gallery executable. autoconf does not take care of it. * lodju-gallery.in: Correct paht to xsl directory. * xsl/gallery.xsl, xsl/layout.xsl: Corrected next/prev links to images. Probably this could be done in a cleaner fashion, feel free to fix. 2001-12-04 Lars Wirzenius * Makefile.in, lodju-gallery.in: Fixed gallery installation so that lodju-gallery works. 2001-12-04 Lars Wirzenius * pixbuf.h: Added a missing newline from the end. * utils.c: Re-arranged code so that gcc doesn't get confused about whether a variable is used or not. * Makefile.in: make clean now also removes unit_test. 2001-12-04 Lars Wirzenius * Makefile.in, README, configure, configure.in, lodju-gallery.in, lodju.h: Wrote a configuration script, using autoconf. PLEASE READ THE README before hacking further on Lodju. * Makefile, lodju-gallery: Renamed to *.in. * .cvsignore: added Makefile, lodju-gallery, config.cache, config.status. * build_catalogs: Removed, the Makefile.in now contains the commands. * utils.c: Allow Makefile to set several possible paths for the lodju.glade file. This is needed so that we can easily select with configure --datadir whether to run from the current dir or install it somewhere. 2001-12-02 Lars Wirzenius * lodju-create.1: Wrote a manual page. 2001-12-02 Lars Wirzenius * toplevel.c, lodju.c, lodju.h: Name of database is now shown in the toplevel window title. 2001-12-02 Lars Wirzenius * lodju.c: Changed the default filename to "default.lodju" instead of "test.lodju". 2001-12-02 Lars Wirzenius * image_list.c, lodju.h, meta.c, pixbuf.c, pixbuf.h: Implemented simple caching of image data. Images that are loaded are cached, and also are cached scaled and rotated versions of the images, since they are smaller and there will fit more of them into memory. The size of the cache is now hardwired to 50 MB, but this will have to be made configurable. * lodju.glade: Fixed resize behavior: widgets wouldn't expand to fill the window vertically. 2001-12-02 Lars Wirzenius * lodju.1, lodju-gallery.1: Wrote brief manual pages. 2001-12-02 Lars Wirzenius * toplevel.c: Ooops, forgot to add this to CVS. * create-database: Renamed to lodju-create and installed at "make install". Also, the caption will now be empty, since it was confusing to have it be the basename of the file. 2001-12-02 Lars Wirzenius * Renamed c-coding-convents.docbook to just coding-conventions.docbook, since it contains material relevant to other things than C. Also added a paragraph on gettext usage. 2001-12-01 Lars Wirzenius * lodju-gallery: If there are no public images, tell the user there are no public images, instead of barfing. 2001-12-01 Lars Wirzenius * image_list.c, lodju.glade: Eeeks. Earlier changes to the menu had been wiped. Probably pilot error. Re-did them. 2001-12-01 Lars Wirzenius * Implemented "Open database" operation. This required implementing a "dirty bit" in ImageDB. As a result, the database is now only saved if it has been modified (images or folders added or removed, attributes changed). 2001-12-01 Lars Wirzenius * folder_tree.c: Fixed bug: When the user dropped and image below the last folder in the folder tree widget, the image used to be deleted. Now we add it to the last folder in the tree instead. 2001-12-01 Lars Wirzenius * image_list.c: When selecting the next or previous image, make sure the relevant row in the image list is shown. 2001-12-01 Lars Wirzenius * image_list.c, lodju.glade: Rotation commands are now relative to the current view of the image, instead of the source image. Also added a toolbar with "Rotate left" and "Rotate right" commands. The buttons lack nice icons, since I couldn't figure out how to implement them. 2001-12-01 Lars Wirzenius * utils.c: Added new function to load the lodju.glade file. This way, we don't have the code to do that sprinkled everywhere. In order to test it in the unit test, however, I had to move things around a bit, especially the signal handlers from lodju.c (the main program module) to a separate module (toplevel.c) that can be linked to unit_test. * Makefile, folder_list.c, lodju.glade, lodju.h, unit_test.c: changes related to the new function load_user_interface. * folder_list.c: The Enter key now does the same thing as the OK button in the "Rename folder" dialog. * lodju.glade: The filename GtkLabel widget in the meta data information now alignes the text to the left instead of centering it. 2001-12-01 Lars Wirzenius * lodju.glade, image_list.c, lodju.h, meta.c, pixbuf.c: Added a progress bar to show how the image is being loaded. 2001-12-01 Lars Wirzenius * lodju.glade: Changed the folder tree selection mode to "browse" as well. This caused the same bug for the folder tree as for the image list. * folder_tree.c: Fixed the bug. 2001-12-01 Lars Wirzenius * lodju.glade: Changed the name of the "Photos" column to "Filename", since it wasn't really about a photo (it's an image) and it's really a filename. * lodju.glade: Removed possibility of having the focus in the "Privacy" radio buttons. * lodju.glade: Change the image list selection mode form "single" to "browse". This caused a bug in the C source: when a new row is added to an empty tree, the "select_row" signal is emitted before we have time to set the row data. Thus, the handler for the signal could do nothing useful. To fix this, we re-emit the signal. * image_list.c: Fixed the bug caused by the selection mode change. * imagedb.c: The name of the root folder is now "Images" instead the cryptic "/". 2001-11-29 Lars Wirzenius * lodju-gallery: removed unnecessary /xsl part of the XSL path: make it be directly below $SHAREDIR, for consistency with GRAPHICS and STYLE. Also added progress meter to the image conversions. 2001-11-27 Sami Lempinen * xsl/style/lodju.css: More styles. At least one. * xsl/layout.xsl, xsl/gallery.xsl: Improved navigation and implemented per-image HTML pages. 2001-11-25 Sami Lempinen * README.gallery: Updated the part about the file naming convention. * xsl/gallery.xsl: Implemented more layout control, as well as a mechanism for determining file paths that actually works(TM). * xsl/layout.xsl: Added a separate file for controlling the gallery layout aspects. * lodju-gallery: Added the use of $SHAREDIR for determining the path to the XSL stylesheets, graphics etc. The script now also copies the graphics and CSS files to the web gallery. * xsl/graphics/*: Added a few graphics items relevant to the web gallery. * xsl/style/lodju.css: Added a CSS stylesheet for the web gallery. * create-database: Added the privacy element to the output. * Makefile (install): All XSL components, graphics and stylesheets are now installed in $(sharedir). 2001-11-24 Mikko Rauhala * lodju.h: Added gettext.h and locale.h and the _() macro for gettext (or as a dummy macro if gettext will not be used), since these should be used throughout the program for translatable strings. * lodju.c: Moved textdomain initialization to gettext_init() and made it conditional to USE_GETTEXT being defined. * folder_tree.c, imagedb.c, lodju.c, pixbuf.c: Added i18n of error messages and the "Unnamed" folder name. * build_catalogs: Fixed umask to be suitable for installing. (This script should be phased out anyway directly into the Makefile.) * po/fi.po: Moved fi.po here and updated it a bit. All message catalogs should be added here not to clutter the main directory. * Makefile: xgettext call bug fixed, -DUSE_GETTEXT added to specify the use of gettext at compile-time. 2001-11-24 Lars Wirzenius * meta.c: Bugfix. An earlier change removed the line that would clear the image window before it was redrawn. This meant that when the image changed, and the rotation was not the same, the old image was still partly finished. Fixed this. 2001-11-24 Lars Wirzenius * Applied patch from Mikko Rauhala (mjr@iki.fi) to add gettext support for Lodju. It includes a first draft of a translation to Finnish. 2001-11-23 Lars Wirzenius * lodju-gallery: Remove kludge to work around xsltproc bug that put contents.map in the wrong directory. Sami made better fix in the gallery.xsl file directly. * meta.c: Removed unused local variable. 2001-11-23 Lars Wirzenius * meta.c: Bugfix: We used to keep track of the size of the GtkDrawingArea widget used to display the image via configure signals, but this doesn't work until the user resizes the window. Therefore, when we need the size, we now always query it directly from the GdkWindow. This let us get rid of two module-global variables as well. 2001-11-23 Lars Wirzenius * meta.c: Bugfix: When the meta data was cleared, this caused a "changed" signal to be emitted by the caption entry widget, causing the signal handler to clear the caption field in the meta data. Ooops. 2001-11-23 Lars Wirzenius * lodju.c: Broken up into smaller files that are specific to major widgets. This should clarify the code quite a bit. * folder_tree.c, image_list.c, meta.c: The new modules. * lodju.h, Makefile: Related changes. 2001-11-23 Lars Wirzenius * utils.c, lodju.c, unit_test.c, Makefile: Moved some functions not specific to the user interface from lodju.c to a separate module, utils.c. * lodju.c: Rearranged some functions into a better logical order, in preparation of re-factoring the lodju.c module. 2001-11-23 Sami Lempinen * xsl/gallery.xsl: Implemented a workaround for the contents.map output location. 2001-11-23 Lars Wirzenius * Makefile: When installing lodju-gallery, change the location of the gallery.xsl stylesheet to be the installed location, not the source tree location. 2001-11-23 Lars Wirzenius * lodju-gallery: Wrote new script to make a web gallery. This script takes care of running xsltproc and convert correctly, which makes things much easier for the user. * imagedb.c: When creating a new Image, initialize the required fields. The XML file must contain, e.g., the privacy field correctly. * xsl/gallery.xsl: Only include images that have a privacy value of "public". * convert.sh: Removed. lodju-gallery includes the code now. 2001-11-23 Lars Wirzenius * lodju.c: When importing a directory-ful of images, sort them by basename before appending to the image list. 2001-11-23 Lars Wirzenius * lodju.glade: Set the title of the Lodju window be "Lodju". This can later be changed by the program to contain the name of the database, if so desired. 2001-11-22 Lars Wirzenius * Makefile, lodju.c, README: Made it possible to set the location of the lodju.glade file at compile time via the LODJU_GLADE macro. * lodju.c: Show only the basename of the filesystem pathname to the image in the image list. * lodju.glade: Get rid of the Notebook widget. Instead, make the image list and the meta data visible at the same time. 2001-11-21 Lars Wirzenius * README: Fix list of build dependency packages for Debian. 2001-11-19 Lars Wirzenius * lodju.glade: Fix resize behavior of privacy row in Meta tab. * xsl/gallery.xsl: Make sure all rows have a rotation info. 2001-11-18 Lars Wirzenius * Implemented "File/Save database" menu entry. 2001-11-18 Lars Wirzenius * Implemented folder removal. 2001-11-18 Lars Wirzenius * lodju.c: The name of the .lodju file can now be given on the command line. The default is still "test.lodju". 2001-11-18 Lars Wirzenius * Implemented PageUp/PageDown navigation to change to the previous or next image. This implementation is simplistic and probably too simple, but I'll want feedback from our usability experts before going further. This was also the only way I could make it work. What I did was add new menu entries with Glade and bind accelerator keys to those. I'm sure there are other ways, I couldn't figure out how to use them from the Gtk+ documentation, however. * lodju.c: Also fixed bug that would display the old image on screen while the real one was being downloaded. Now the image window is cleared while things are being loaded. 2001-11-18 Lars Wirzenius * xsl/gallery.xsl: Now adds the rotation to the contents.map it generates. * convert.sh, README.gallery: related changes. 2001-11-18 Lars Wirzenius * convert.sh: Wrote. The gallery generation will use this to rotate and scale the images. 2001-11-18 Lars Wirzenius * lodju.glade: Added keyboard accelerators for the most common menu items. * lodju.c: Fixed a bug in rotation of 180 degrees. Due to a typo (wrong variable name) display of pictures rotated 180 degrees didn't work at all. 2001-11-18 Lars Wirzenius * Implemented the new privacy attribute of an image. 2001-11-18 Sami Lempinen * README.gallery: Added a note about the gallery generation. * xsl/gallery.xsl: Now creates a butt-ugly file structure with links to images. * sample-lodju-archive.xml: Updated the sample to contain the privacy and rotation elements. * lodju-archive.dtd: Added the privacy element to the DTD. 2001-11-17 Lars Wirzenius * lodju.c: If the user selects a directory, instead of an image file, we now import all images in that directory. 2001-11-17 Lars Wirzenius * Added a "File/Remove image" menu entry. Images can now be removed from the folder. 2001-11-17 Lars Wirzenius * Dragging and dropping a folder within the folder tree now moves it instead of copying it. 2001-11-17 Lars Wirzenius * Implemented moving of folders within the folder tree, via drag and drop. The folder (and subfolders and images) being moved isn't actually moved at the moment, but copied. I'll tackle that later. 2001-11-17 Lars Wirzenius * imagedb.c, imagedb.h: Added function image_folder_remove_image to remove an image from a folder. * lodju.c, lodju.glade: Added signal handler for drag_data_delete for the image list. This allows us to implement the d-n-d of an image as a move instead of a copy. 2001-11-17 Lars Wirzenius * lodju.glade, lodju.c: Implemented most of drag-and-drop of images from one folder to another. The operation is now a copy, though it should be a move, but this can be fixed later. 2001-11-17 Lars Wirzenius * imagedb.h: Added a pair of functions, image_get_xml and image_folder_import_from_xml, for exporting and importing image data as XML for drag and drop purposes. 2001-11-17 Lars Wirzenius * README: Added rudimentary instructions for compiling and running Lodju. 2001-11-16 Lars Wirzenius * The following was originally added to the CVS commit messages, instead of the ChangeLog. I got confused, since we don't use ChangeLog at work. Mea culpa. * The image is now scaled so that the aspect ratio is kept and it is centered within the area in which it is to be drawn. * Moved background loading of images to pixbuf.c, since it isn't dependent on the Lodju user interface. * Created a new module, pixbuf.c, which contains the functions to manipulate (rotate, at the moment) GdkPixbuf objects. 2001-11-13 Lars Wirzenius * create-database: Wrote a simple script to create a Lodju database for testing purposes. Sami needs something like this so that he can start working on web gallery generation. 2001-11-11 Lars Wirzenius * lodju.c: Imports go to the current folder, not the root folder. 2001-11-11 Lars Wirzenius * Use can now rename folders. This is implemented via a stupid dialog box since I couldn't figure out how to make it happen in place. * lodju.glade: New dialog. * lodju.c: Callbacks. 2001-11-11 Lars Wirzenius * User can now create new folders (all of which are called "Unnamed", but that will change soon). * imagedb.c, imagedb.h: Arbitrary attributes are now implemented for Image and ImageFolder. We now use GHashTable to store the attributes. Not all attributes are saved and loaded to XML, however. Also, ImageFolders can now be created. * lodju.glade, lodju.c: Implemented user interface for folder creation. While implementing this, found out that GtkNotebook tabs don't get their GdkWindows created at creation time, so therefore the Meta tab's image window needs to be tested against NULL before clearing it. 2001-11-11 Lars Wirzenius * lodju.glade: Added a folder tree widget to the left of the List/Meta tab notebook. The tree will only contain the root folder (since there is no way yet to create new folders). * lodju.c: Related changes: new callbacks etc. Also found and fixed a bug: when an image was unselected, the Meta tab was not properly cleared. 2001-11-11 Lars Wirzenius * imagedb.c, lodju-archive.dtd: Support "rotation" attribute in data structures, saved files and DTD. * lodju.c: Use the rotation image attribute and rotate images on screen. 2001-11-11 Lars Wirzenius * imagedb.c: Use the new DTD for the file format. * lodju.c: Make the name of the image database file be test.lodju. This is as good a time as any to start using our own file suffix. 2001-11-11 Lars Wirzenius * Replaced photo and Photo everywhere with image and Image. This is because the program can be used to keep track of images, which might not be photographs, and we want to be consistent. 2001-11-11 Lars Wirzenius * lodju.c, lodju.glade: Found some code to rotate GdkPixbuf objects in the gqview program, and quickly imported it to Lodju. This commit contains only a quick demonstration of how the rotation can be on screen: the rotation is commanded from a menu, and is not yet stored as meta data, but that should be a small matter of programming. 2001-11-10 Lars Wirzenius * photodb.h: Cleaned up and generalized in preparation for future development. * photodb.c, lodju.c: Related changes. 2001-11-10 Lars Wirzenius * Converted files to use gchar and gint instead of char and int. Removed a few no-op casts at the same time. 2001-11-10 Lars Wirzenius * lodju.glade: Removed all Gnome widgets. * lodju.c: Changed headers and initialization to use plain Gtk+ and no Gnome stuff. * Makefile: Removed references to gnome libraries. 2001-11-10 Lars Wirzenius * c-coding-conventions.docbook: Fixed all places marked with "XXX". No significant changes, just updated references to the original project for which the text was written to refer to this project instead. 2001-11-08 Sami Lempinen * lodju-archive.dtd: Added the first version of the Lodju archive XML DTD. * sample-lodju-archive.xml: Added a sample archive XML instance. 2001-11-07 Lars Wirzenius * Captions can now be edited for real. * lodju.glade: Added signal handler for "changed" for the caption entry widget in the Meta tab. This allows us to catch when the user changes the caption. * lodju.c: Wrote the "changed" handler. Whenever the caption changes, we set the corresponding Photo structure to the new contents of the entry widget and also update the corresponding cell in the List tab. * photodb.h: Added photo_get_caption and photo_set_caption. * photodb.c: Wrote unit tests for photo_[gs]et_caption and implemented the functions. 2001-11-07 Lars Wirzenius * Implemented loading and saving of photo database to a file (a.k.a. last task of the first iteration). * lodju.c: Main program loads database (always called "test.photodb" for now) at startup and saves it at exit. * photodb.h: Added photo_db_save function. * photodb.c: Added loading of database to photo_db_create, and implemented the saving function photo_db_save. Both of these use libxml, which makes this quite simple. Also added a unit test to test these changes. * Makefile: added a "check" target to run unit tests. 2001-11-04 Lars Wirzenius * Implemented most of the Meta tab and selecting photos in the List tab. The photos are loaded and displayed on the Meta tab when selected. The photo is loaded and drawn in the background, with the rest of the user interface still functioning. * Makefile: added gdk_pixbuf to the list of libraries that are requested, since we use that to display things. * lodju.c, lodju.glade: gtk signal handlers for various events. 2001-11-04 Lars Wirzenius * Implemented a very simplified version of "Import": the program now keeps a list of imported photos (visible in the "List" tab) and allows the user to add things to that list. The images (or any other files, the program doesn't check for that at the moment) are not copied. Instead, the program remembers the original filenames. * unit_test.c, lodju.h: Implemented (simple) unit testing tools. Very simple. Utterly totally abysmally simple, but good enough for now. * photodb.c, photodb.h: Wrote. It even includes a too-simple unit test. I couldn't invent any really interesting tests. * lodju.c, lodju.glade: Added the imported filename to the List tab in the user interface. * .cvsignore, Makefile: Related changes. 2001-11-03 Lars Wirzenius * Implemented a simple file selector for choosing the file to be imported. 2001-11-02 Lars Wirzenius * Makefile: Fixed "make clean" to also remove compiled parts of the program, not just the documentation. 2001-11-02 Lars Wirzenius * .cvsignore: Wrote. * lodju.glade, lodju.c: Finished first task in first iteration: Create a basic window with two tabs (list of photos, metadata for one photo) and a menu entry for importing photos into the database. * Makefile: Documents are now built only if requested, the default is to build the program. 2001-11-01 Lars Wirzenius * Started creating stuff. * ChangeLog: Started. * c-coding-conventions.docbook, Makefile: Adapted from another (proprietary) project, with permission.