2010-03-05 Christine Spang <spang@mit.edu> * port to GtkBuilder, we now require gtk+ >= 2.12 * rip out libgnome and libgnomeui dependencies * update FSF address in copyright statement * hide moondata dialog if applet is clicked while dialog is open * build system updates * depend on gnome-doc-utils 2005-01-05 josh <josh@users.sourceforge.net> * src/CalcEphem.h: add full moon data element to ctrans struc * src/CalcEphem.c (CalcEphem): approximate days to next full moon 2004-06-18 josh <josh@users.sourceforge.net> * xmldocs.make: new gnome document generation * src/CalcEphem.c (CalcEphem): estimate time to next new moon. * src/moondata.c (format_time): format seconds of time (update_moondata_dialog): display time to new moon instead of %ilum, format time variable to display seconds. * src/glunarclock.c (UPDATE_APPLET_INTERVAL): set to one second for displaying clocktimes with seconds 2003-03-28 josh <josh@users.sourceforge.net> * src/docs/C/glunarclock-applet-2-C.omf: add required relation element 2003-03-20 josh <josh@users.sourceforge.net> * src/moondata.c (update_moondata): set sign properly on latitude 2003-03-17 josh <josh@users.sourceforge.net> * src/glunarclock.glade: add padding to location page * src/glunarclock.h: add rotation type to moon struct * src/glunarclock.c (show_error): capsulize error dialog (show_help): put error dialog in show_error (image_changed_notify): set rotation type; check image file and set n_frames accordingly (moon_applet_fill): set rotation type; check image file and set n_frames accordingly (flip_image): rotate or mirror image based on rotation type (moon_applet_instance_init): initialize rotation type (load_moon_image): call to show_error; fix creation of blank image when image file not found 2003-03-11 josh <josh@users.sourceforge.net> * src/glunarclock.c (setup_moon_widget): add call to set_tooltip to initialize (update_moon): only destroy tooltip if visible changes 2003-03-10 Joshua Edward Buhl <jbuhl@users.sourceforge.net> * src/glunarclock.c: completely rewritten based on the fish applet fish.c for the GNOME 2.2 Desktop * src/moondata.c: rewritten based on the old moondata.c and moondatadialog.c 2002-06-05 Joshua Edward Buhl <josh@users.sourceforge.net> * src/glunarclock.c (load_image): optimize rowstrides in rgb's (load_image): add code to rotate image by pi for southern hemisphere. 2002-06-03 Joshua Edward Buhl <josh@users.sourceforge.net> * src/glunarclock.c (load_image): fix rowstride value in call to gdk_pixbuf_new_from_data 2002-05-31 Joshua Edward Buhl <josh@users.sourceforge.net> * src/glunarclock.c (main): change subst var PACKAGE_LOCALE_DIR to GNOMELOCALEDIR as required by new autoconf macros. 2002-05-16 Joshua Edward Buhl <josh@users.sourceforge.net> * src/glunarclock.c (load_image): add code to generate a hilit moon image. (compose_image): add boolean argument which determines whether the normal or the hilit image is shown. (mouse_enter_cb): add this callback. (mouse_leave_cb): add this callback. (moon_activator): connect the above callback to applet. * src/glunarclock.h: add hilit_image_pb to moon structure. 2002-01-09 Joshua Edward Buhl <josh@users.sourceforge.net> * src/moondata.c (update_moon_data_dialog): change units of EarthMoonDistance to kilometers. 2001-06-26 Joshua Edward Buhl <jbuhl@users.sourceforge.net> * src/moondatadialog.c (create_moon_data_dialog): remove call to gnome_dialog_close_hides, which is done in glunarclock.c. remove unneeded calls to gtk_object_set_data. 2001-06-09 Joshua Edward Buhl <jbuhl@users.sourceforge.net> * src/glunarclock.h: removed MoonBackType enum * src/glunarclock.c (applet_set_default_back): remove this function (fixes bug with pixmap themes) (applet_set_back_color): remove this function (applet_set_back_pixmap): remove this function (applet_back_change_cb): remove this function (this is all taken care of by do_draw and compose_image.) (moon_activator): remove MoonBackType stuff and fix size bug. (compose_image): remove dependence on background type. Add alternative for GNOME 1.0 (does anybody still use 1.0?). 2001-05-27 Joshua Edward Buhl <jbuhl@users.sourceforge.net> * src/glunarclock.c (load_image): display an error dialog and fill an empty pixbuf with black for the case when the moon image file cannot be loaded. 2001-05-23 Joshua Edward Buhl <jbuhl@users.sourceforge.net> * src/MoonRise.c (UTTohhmm): remove this unused function. * docs/C/glunarclock.sgml: remove comments regarding sign of coordinates. * src/CalcEphem.c: remove two unused functions: LeapYear and Radec_to_Cart. * src/CalcEphem.h: change type of Visible from int to boolean. * src/CalcEphem.c (CalcEphem): set Visibile as boolean value. * src/moondata.c (visible): simplify this function using new boolean value of moon->data.Visible. * src/moonproperties.c (properties_dialog): add radio buttons for north/south and east/west selection. (apply_cb): read out the new radio buttons' active status and set sign on lat. and long. appropriately. (load_properties): switch from abs to glib's ABS macro. 2001-04-28 Joshua Edward Buhl <jbuhl@users.sourceforge.net> * src/CalcEphem.h: Add element LSD (local sidereal time) to CTrans. * src/moondata.c (mod_time): Add this function to replace repeated code. (update_moon_data):Replace repeated code with calls to mod_time. Set new moon->data.LSD for local sidereal time with bug fix for negative sidereal time (value must be mod_timed.) Rearrange for better grouping. (update_moon_data_dialog): change call to update local sidereal time with moon->data.LSD. 2001-02-03 Joshua Edward Buhl <jbuhl@users.sourceforge.net> * src/moondatadialog.c (create_moon_data_dialog): Change cancel button to close button. 2001-01-28 Joshua Edward Buhl <jbuhl@users.sourceforge.net> * src/glunarclock.c (compose_image): scale the rgb background data onto the composite pixmap to avoid size problems (sometimes the returned data is one pixel too narrow.) (update_applet_cb): add setup_size call (apply_properties): move setup_size call to update_applet_cb where it's called after image is loaded (moon_activator): add this function for possible compilation as shlib applet with goad stuff. (moon_deactivator): ditto. (main): move almost all functionality to moon_activator. add calls to the macros APPLET_ACTIVATE and _DEACTIVATE which are defined in applet-widget.h * src/moondata.h: add prototype for visible function. * src/moondata.c (visible): added this function, which accesses the CTran structure, to hide data from glunarclock.c 2001-01-18 Joshua Edward Buhl <jbuhl@users.sourceforge.net> * src/glunarclock.h: remove unneeded composite_pb and bg_pb pixbuf elements from moon structure. * src/glunarclock.c (update_applet): add this function to seperate out the call to compose_image. This let's us call load_image after setting the image number, and we can select the frame in load_image. This saves about 1Mb memory for a 60 frame image file. (load_image): select the frame in load_image, so that the whole moon image file isn't kept in memory. (applet_destroy): remove unneeded gdk_unref_pixbuf calls. (applet_set_back_color): remove unneeded gdk_unref_pixbuf call. (applet_set_default_back): remove unneeded gdk_unref_pixbuf call. 2001-01-14 Joshua Edward Buhl <jbuhl@users.sourceforge.net> * src/glunarclock.c (load_image): This function now only loads the image. Drawing to the backing pixmap, etc., is done in compose_image. (compose_image): Added this function to compose moon image with background color or bg pixmap. This function now draws to the backing pixmap. (do_draw_cb): added this function to support moving on pixmap backgrounds. (applet_back_change_cb): added this function to support different panel background types. (applet_set_back_pixmap): added this function to support background pixmaps. (applet_set_back_color): added this function to support background color. (applet_set_default_back): added this function for setting the default background. (expose_moon): moon->pixmap now no longer contains the entire moon image file, so we can just copy the same area of the pixmap as that which gets exposed. * src/glunarclock.h: added MoonBackType enumeration. Add pixbuf elements to moon structure for background and conversion to GdkPixbuf. Add function prototype for now externally used apply_properties. * src/moondatadialog.h: put the MoonWidgets structure here, so the now external update function can access it. * src/moondata.c: created this file and put the update functions from moondatadialog.c and glunarclock.c which directly access CalcEphems CTrans structure in this file. * src/moondata.h: created this file * src/moonproperties.c: created this file and put prop stuff in it * src/moonproperties.h: created this file 2001-01-07 Joshua Edward Buhl <jbuhl@users.sourceforge.net> * src/glunarclock.c: (draw_moon): removed this superfluous function 2000-12-12 Joshua Edward Buhl <jbuhl@users.sourceforge.net> * src/glunarclock.h: removed GdkBitmap mask from moon structure as part of conversion to GdkPixbuf. (applet_destroy): remove call to destroy moon->mask. (draw_moon): remove shape call for mask. (load_image): convert from Imlib to GdkPixbuf. (load_image_at_size): rename to load_image since size info is contained in moon struc. 2000-11-28 Joshua Edward Buhl <jbuhl@users.sourceforge.net> * doc/: added doc subdir with docbook documentation files 2000-11-27 Joshua Edward Buhl <jbuhl@users.sourceforge.net> * src/moondatadialog.c: added descriptive comments for MoonWidget struc 2000-11-19 Joshua Edward Buhl <jbuhl@users.sourceforge.net> * src/moondatadialog.c (calc_riseset_time): fix for no rise/set time 2000-11-19 Joshua Edward Buhl <jbuhl@users.sourceforge.net> * src/glunarclock.h: added size_hint to moon struct for scaling * src/glunarclock.c: made scalable for varying panel sizes (load_image_at_size): made separate function for repeated procedure (change_pixel_size_cb): added callback for scaling to panel size 2000-11-14 Joshua Edward Buhl <jbuhl@users.sourceforge.net> * configure.in: updated version number 2000-11-12 Joshua Edward Buhl <jbuhl@users.sourceforge.net> * src/glunarclock.c: bug fix for utc date * src/glunarclock.c: formatting, added comments on eot