2004-03-03 Callum McKenzie * player.c (player_new): Use G_MAXINT rather than 1 as the default max_time. This prevents a warning when the progress bar gets updated during the "undefined" period. The correct place to fix this is in player_set_time, but that function has no idea of game state, so for now we just feed it a value that makes sure things work out. Fixes bug #136015. * help/C/gnome-stones.xml: Update version number since the docs are still applicable. 2004-02-15 Callum McKenzie * main.c (draw_text_centered): Added an ugly hack to make the text insensitive to pango's ideas about screen resolution. 2004-02-14 Callum McKenzie * preferences.c: * main.c (load_image_from_path): Remove references to _has_separator when dealing with message dialogs 2004-02-11 Callum McKenzie * main.c (about_cb): translator_credits -> translator-credits. 2004-01-23 Callum McKenzie * main.c (main): "destroy_event" should be "delete_event". Bug #132262. 2004-01-20 Callum McKenzie * main.h: * main.c: * preferences.c: Use only one exit function. This should fix bug #131856. * default.caves.in: Set the number of start caves correctly. * main.c (load_game): Added code to check that the selected cave is valid. 2003-11-19 Callum McKenzie * Makefile.am (CLEANFILES): Make sure gnome-stones cleans up properly. 2003-10-29 Callum McKenzie * Makefile.am (INCLUDES): Removed *_DISABLE_DEPRECATED. * objects/Makefile.am: Removed *_DISABLE_DEPRECATED. 2003-10-21 Callum McKenzie * Makefile.am (install-data-local): Change the way gconf files are installed. This should improve things for people building outside the source tree. See bug #123192. 2003-10-19 Callum McKenzie * view.c: * preferences.c: * main.c: Replaced deprecated functions with gtk-2.4 equivalents. 2003-08-02 Callum McKenzie * preferences.c (preferences_dialog_new): Make the switch-level slider actually wide enough to work. 2003-07-31 Callum McKenzie * help/C/gnome-stones.xml: Updated for 2.4, including the screenshots. 2003-07-27 Callum McKenzie * objects/gnome-stones.c: * objects/gnomekoban.c: Compiler warning fixes. 2003-07-22 Callum McKenzie * main.c: Make the menus sensitive to the state of the game. This is the last part of bug #97317. 2003-07-09 Callum McKenzie * gnome-stones.desktop.in: Update name to fit HIG (bug 116916). 2003-07-02 Callum McKenzie * Makefile.am: Build fixes. 2003-06-26 William Jon McCann * graphics/Makefile.am (pixmap_DATA): Removed title.png. * main.c (title_image_load): Enabled new text title screen. 2003-06-23 Abel Cheung * gnome-stones.schemas.in: Fix description typo. 2003-06-19 William Jon McCann * sound.c (sound_register): Use g_build_filename. * object.c (plugin_load_plugins_in_dir): Use glib file utilities. (object_register): Use g_strdup_printf instead of g_strconcat. 2003-06-19 Callum McKenzie * preferences.c: Clamped the joystick_level value. * preferences.c: * io.c: * main.h: * main.c: Handle bad cave filenames more gracefully. Also give an error if neither the chosen game or the default could be loaded. Fixes bug #106623. * gnome-stones.schemas.in: Improved some of the long descriptions. 2003-06-18 William Jon McCann * preferences.c: Include string.h. 2003-06-17 William Jon McCann * preferences.c: Removed gtk_object_set_user_data stuff. * main.c (title_image_load): Updated optional replacement title screen to use tile image. Tile image has not been added yet. * io.c: * main.c: * main.h: * object.c: * preferences.c: * view.c: * objects/gnome-stones.c: * objects/gnomekoban.c: Fixed compiler warnings. 2003-06-16 William Jon McCann * gnome-stones.schemas.in: * Makefile.am (schema_in_files): Added schemas. * main.h: * main.c: * view.c: Place defines in main.h and share with view.c. Shorten delay times so that curtain effect is less tedious. * preferences.c: Make preferences instant apply. Use gconf. Add sound disable preference. (preferences_dialog_new): Add mnemonics to notebook tabs. Use set_cursor to select tree view iter, it retains selection when the widget is focused by keyboard. * main.c (title_image_load): Added optional replacement for title graphic that uses simple text that is consistent with the other games (eg. gnibbles) and uses the correct name. It is not enabled by default. (update_score_state): Fix so that the correct menu item is sensitized. (load_game): Only display basename of game in status bar. The whole path often won't fit and isn't necessary. (main): Only play title music when sound is enabled. Have to do this separately because playing starts before preferences are restored. (game_update_title): Use HIG style for game title and start cave information on title screen. * sound.c: Add sound disable support. 2003-06-11 Callum McKenzie * preferences.c : * main.c : i18n fixes from Christian Neumair (bug #114875). 2003-06-10 William Jon McCann * preferences.c: HIG fixes for preferences dialog. * Makefile.am (gnome_stones_LDADD): Added libgames-support. 2003-06-09 William Jon McCann * main.c: * preferences.c: Removed separator from dialogs as in HIG. 2003-06-03 Callum McKenzie * main.c: Add a restart level menu item. It doesn't work with the escape key code or disable itself when not needed, but its as good a start as I'm going to get before 2.3.3. * gnomekoban.caves.in (Lives): Increase so that the game is playable. Ten should provide a challenge while giving room to make mistakes. 2003-05-31 Callum McKenzie * Makefile.am: Undo the score directory changes. It breaks more than it fixes. * main.c (main): Removed redundant gtk_widget_realize call. This may help prevent a recurrence of bug #108483. * Makefile.am (install-data-local): Implement setgid modifications (see gnome-games/ChangeLog). 2003-05-30 Callum McKenzie * objects/Makefile.am: Don't give the libraries version info. 2003-05-29 Callum McKenzie * io.c (gstones_cave_load): Handle the case of a missing line while loading a cave. Fixes bug #105254. * preferences.c (preferences_dialog_show): Use gtk_window_present for the properties dialog. 2003-05-27 Callum McKenzie * main.c (about_cb): Credits for Herman Mansilla. * gnomekoban.caves.in: New levels for the Sokoban game. Ported by Alberto Manuel Brandao Simoes from Herman Mansilla's Yakoban game. 2003-05-26 Callum McKenzie * preferences.c: Fixed bug #105135 (crash/warnings when opening preferences). Used Simon Howard's patch plus some extra pruning of dead code. 2003-05-09 Callum McKenzie * main.c (load_image_from_path): HIG fixup as per bug #112244. 2003-04-06 Ross Burton * main.c: Try and speed up the keyboard, thanks to Rick Burridge. Closing #87320. 2003-02-24 Jeremy Katz * view.c (view_get_type): view_init should be GInstanceInitFunc, not GBaseInitFunc (closes #106905) 2003-02-05 Ross Burton * help/C/gnome-stones.xml: Fixed Rob's email address. 2002-12-11 Ross Burton * help/C/gnome-stones-C.omf: Update documentation to call the games "GNOME Stones". 2002-11-27 Ross Burton * main.c: * preferences.c (preferences_save_local): s/Gnome/GNOME/, for #99683. 2002-11-21 Tim Musson * main.c: (about_cb), (show_scores_cb), (countdown_timeout_function), (iteration_timeout_function): No more multiple About dialogs, and Score dialog is now modal. (Bug #97320) 2002-11-18 Fernando Herrera * gnome-stones.desktop.in: add X-GNOME-BUGZILLA stuff 2002-11-11 Ross Burton * gnome-stones.png: New icon contributed by Timothy Musson. 2002-10-31 Ross Burton * object.c (plugin_load_plugins_in_dir): Remove the hard-coded search for .so files, and use G_MODULE_SUFFIX. Patch from Benjamin Thery , closing #93767. 2002-09-20 Ross Burton * view.c: Protect abs() macro definition. Fixes #91513. * view.h: * types.h: * preferences.h: Remove useless trailing comma in enum declarations. Fixes #91503. 2002-09-19 Ross Burton * gnome-stones.keys.in: Replace the hard-coded path with a marker for replacement. Fixes #91719. * Makefile.am (install-data-local): Cleanup the replacement rules for gnome-stones.key. No idea why it wrote to one filename and then renamed it. 2002-08-23 Ross Burton * main.c: Enable the high scores dialog. Patch from Andrew Sobala , fixing #84235. 2002-06-05 Bastien Nocera * Makefile.am: * io.c: (game_parse_object_section): * main.c: (load_image_from_path), (curtain_ready), (about_cb), (scan_public_plugin_directory), (main): * object.c: (object_register): * sound.c: (sound_register): Use the application path instead of the system path, so program works even if installed in a different prefix to libgnome. 2002-06-02 Ross Burton * main.c (main): Set the about dialog as transient for the main window. 2002-06-01 Bastien Nocera * main.c: (main): use gstones_exit when we get the delete_event, rather than going through the widget destruction process (Closes: #81310) 2002-05-10 Bastien Nocera * objects/Makefile.am: add deprecation defines * objects/gnome-stones.c: (empty_animate), (amoeba_scanned), (gnome_scanned), (gnome_animate): * objects/gnomekoban.c: (empty_animate), (gnome_animate): replace random() with g_random_int_range (0, INT_MAX) (Closes: #60426) * sound.c: (sound_register): don't print stuff, we don't care 2002-05-07 Bastien Nocera * Makefile.am: * sound.c: (sound_close), (sound_play), (sound_register), (play_title_music), (stop_title_music): make the sound support optional (can anybody actually test that ?) 2002-05-05 Chris Lyttle * help/C/Makefile.am: updated for new format of SK 0.3.8. * help/C/gnome-stones-C.omf: updated for new format of SK 0.3.8. 2002-05-02 Dave Neary * Makefile.am: * io.c: * io.h: * main.c: * object.c: * preferences.c: * sound.c: * status.c: * view.c: * view.h: ported to Gnome2. 2002-04-17 Bastien Nocera * main.c: (about_cb): added icon to about box 2002-04-17 Bastien Nocera * main.h, sound.c, sound.h: forgot some files 2002-04-17 Bastien Nocera * Makefile.am: * atari.caves.in: * cave.c: (cave_new), (cave_iterate): * graphics/Makefile.am: * graphics/animated_curtain.png: * graphics/boulder.png: * graphics/diamond.png: * io.c: (gstones_game_load): * main.c: (my_exit), (title_image_load), (curtain_ready), (countdown_timeout_function), (countdown_start), (iteration_timeout_function), (load_game), (game_start_cb), (game_stop_cb), (quit_cb), (gstones_exit), (main): * object.c: (default_objects_init), (object_register): * objects/gnome-stones.c: (stones_sound_play), (empty_signals), (gnome_init_cave), (gnome_scanned), (boulder_scanned), (diamond_scanned), (explosion_new), (entrance_signals), (objects_init): * preferences.c: (caves_suffix), (game_directory_scan), (scroll_method_name), (set_scroll_method), (preferences_save), (preferences_restore), (preferences_apply_cb), (preferences_set_scroll_method), (preferences_dialog_new): * preferences.h: * sounds/Makefile.am: * sounds/born.wav: * sounds/boulder.wav: * sounds/dig.wav: * sounds/door_open.wav: * sounds/explosion.wav: * sounds/get_diamond.wav: * sounds/title.wav: * types.h: * view.c: (view_class_init), (view_new), (curtain_visible_test), (view_expose), (view_set_curtain_mode), (atari_scroll), (smooth_scroll), (center_scroll), (view_calculate_offset): * view.h: loads of new files, and major gameplay enhancements by benes@karlin.mff.cuni.cz (Michal Benes), adapted a little bit 2002-02-17 Chris Lyttle * help/C/gnome-stones.xml: updated for new template. * help/C/Makefile.am: added legal.xml * help/C/legal.xml: added to comply with new template 2002-02-16 Kjartan Maraas * *.[ch]: Fix up #include 2002-02-14 Chris Lyttle * help/C/gnome-stones.xml : move to XML. * help/C/gnome-stones-C.omf : move to XML. * help/C/gnome-stones.sgml : deleted, move to XML. * help/C/Makefile.am : move to XML. 2002-02-02 Zbigniew Chyla * main.c (about_cb): Don't try to translate empty string. 2002-01-10 Juan Pablo Mendoza * main.c: Comment out some stuff, so the game actualy work. 2002-01-09 Juan Pablo Mendoza * Makefile.am: Compile gnome-stones with -export-dynamic so the dlopened modules works. 2001-12-19 Seth Nickell * Makefile.am: * gnome-stones.desktop: Install into the correct directory and add a Categories field. 2001-12-04 Duarte Loreto * gnome-stones.desktop, default.caves, gnomekoban.caves and tutorial.caves : Added Portuguese (pt) translation. 2001-11-24 Kevin Vandersloot * main.c, status.c: change gnome_appbar_set_progress to gnome_appbar_set_progress_percentage for API change 2001-09-04 Abel Cheung * \*.caves: Rename zh_TW.Big5 to zh_TW . 2001-08-14 Kjartan Maraas * help/it/gnome-stones.sgml: Validate the sgml. 2001-08-13 Abel Cheung * \*.caves: Added traditional Chinese strings. (useless?) 2001-07-27 Abel Cheung * gnome-stones.desktop: Added traditional Chinese translation. 2001-07-08 Juan Pablo Mendoza * cave.[ch]: * main.c: * object.[ch]: * types.h: * view.[ch]: After some canvas confusion the last one is ported to gdk-pixbuf, wheeeee! 2001-07-07 Juan Pablo Mendoza Patch from Ta^3 * preferences.c (preferences_dialog_new): Don't show the Sound tab since it is useless. 2001-07-05 Christian Rose * gnome-stones.desktop: Modified Swedish entries. 2001-06-03 Juan Pablo Mendoza * help/Makefile.am (SUBDIRS): Add "it" again since the compilation as been fixed 2001-05-28 Chema Celorio * help/Makefile.am (SUBDIRS): remove the "it" dir, it is empty and gnome-games was not compiling 2000-12-04 Eric Baudais * help/: Created. * help/C/: Created. * help/C/*: Committed Rob's documentation for gnome-stones. It needs to be linked to the program and built with the Makefile. 2000-05-15 Andreas Hyden * gnome-stondes.desktop: Updated Danish translation from Kenneth. 2000-05-12 Andreas Hyden * gnome-stones.desktop: Added Swedish translation. 2000-05-09 Martin Baulig * main.c (main): Move gnome_score_init () in front of bindtextdomain () and textdomain (). 1999-08-09 Robert Brady * io.c: Applied IRIX compiling fix from David Kaelbling , (bug #1781). 1999-04-22 Carsten Schaar * objects/gnomekoban.c (objects_init): Added two new objects. With this changes, you can use the gnomekoban levels at http://www.ecs.soton.ac.uk/~njl98r/code/ (Thanks to Nick Lamb). * graphics/Makefile.am (pixmap_DATA): Added two new graphic files. 1999-04-18 Carsten Schaar * objects/gnomekoban.c (empty_signals): Removed check wheater a level is finished or not. (crate_signals): New function that checks wheater a level is finshed or not. This fixes a bug, that one has be able the finish a level, without push all boulders on the marks. 1999-03-03 Carsten Schaar * io.c: * preferences.c: * main.c: * *.caves: The translated cave names are now written into the cave files. 1999-03-02 Carsten Schaar * Makefile.am: Added installation of mime-type information. * preferences.c: Added variable 'default_game'. (preferences_restore): Load 'default_game' if specified. * main.c: Added 'game' command line option. * README: Updated the cave file description. 1999-02-23 Changwoo Ryu * main.c (game_update_title): Load the font by gtkrc. This fix made the Korean translation visible. * gnome-stonesrc, gnome-stonesrc.ko: New files, gnome-stone specific gtkrc files. 1999-02-07 Carsten Schaar * main.c: Moved to game-widget stuff to the new files view.c and view.h. * io.c (cave_load_object_options): Fixed bug, that could lead to a segfault. * Makefile.am (gnome_stones_SOURCES): Added view.c and view.h. 1999-01-26 Miguel de Icaza * main.c (scan_private_game_directory): Kill file menu. 1999-01-17 Carsten Schaar * main.c: Removed 'parse_func' * preferences.[ch]: Removed unused 'discard_session_file'. 1999-01-17 Tomas Ogren * main.c: Better realize the main window.. fvwm2 got cranky.. 1999-01-10 Nat Friedman * main.c: Standardized the menus. 1999-01-10 Carsten Schaar * preferences.c (preferences_dialog_show): New function. (preferences_save): Store whether the preferences dialog is opened or not. (preferences_restore): Open the preferences dialog, if it has been opened when saving the session. * main.c (preferences_cb): Uses preferences_dialog_show. (quit_cb): Added call to 'preferences_save_global'. (main): Set the window class information on the main window. * preferences.h: Replaced 'preferences_dialog_new' declaration with 'preferences_dialog_show'. 1999-01-08 Carsten Schaar * preferences.c (preferences_dialog_new): Set the window class information on the preferences window. Together with the SM_CLIENT_ID window property, a window manager should be able to restore the windows geometry on a session startup. 1999-01-07 Nat Friedman * main.c (main): Install menu hints. Use the GNOMEUIINFO menu item macros where possible. Rearranged the menus to match the standard. Added the Settings top-level menu. 1998-12-23 Carsten Schaar * preferences.c (preferences_restore): Make use of the changed session-management support. (session_management_init): Removed setting the of the discard command. (_preferences_save): Set the discard command here. 1998-12-14 Federico Mena Quintero * main.c (game_widget_create): Use gtk_widget_set_usize() instead of gnome_canvas_set_size(). 1998-12-06 Carsten Schaar * preferences.c (session_management_init): Enabled 'discard_command'. 1998-11-29 Carsten Schaar * preferences.c (preferences_dialog_new): Replaced 'gtk_container_border_width' with 'gtk_container_set_border_width'. 1998-11-28 Herbert Valerio Riedel * main.c (show_scores_cb): added GPOINTER_TO_INT 1998-11-28 Carsten Schaar * preferences.c (preferences_dialog_new): Show the 'scrolled' widget. Mon Nov 23 15:10:07 EST 1998 Gregory McLean * preferences.c : gtk_clist updates to match the new api. its not #ifdef'd around or anything as it appears 1.1.5 will be needed for everything else. 1998-11-22 Carsten Schaar * main.c (parse_func): New function. * preferences.c (discard_session_file): New function. (session_management_init): Added code, to set the session management's discard command. 1998-11-22 Carsten Schaar * preferences.c (preferences_dialog_new): Used 'GNOME_PAD_*' for padding. (discard_session_file): New function. (session_management_init): Added code, to set the session management's discard command. * types.h: Moved the declaration of 'TranslationEntry' to game.c. * game.c: Removed obsolete definition of 'cave_load'. * main.c (countdown_timeout_function): Removed check of the 'gnome_score_log' return value. (game_menu): Uses GNOME_KEY_NAME_* and GNOME_KEY_MOD_*. 1998-10-15 Carsten Schaar * status.h: * player.h: * types.h: * status.c: * player.c: * main.c: * game.c: Changed 'lifes' to 'lives' (thanks to Larry Lade for correcting the wrong spelling.) 1998-09-21 Carsten Schaar * types.h (struct _GStonesObject): Removed 'pre_cave_scan_function' and 'post_cave_scan_function' members. This functions are substituted by a signal. (struct _GStonesObject): New member 'signal_function'. * cave.c (gstones_signal): New function. Implements the management of the simple Gnome-Stones signals. (cave_emit_signal): New function. Emits a signal to all objects. (empty_signals): New function. (closed_exit_signals): Likewise. (gnome_signals): Likewise. 1998-09-13 Carsten Schaar * cave.c (gnome_animate): Added support for more than one animation sequence. 1998-09-12 Carsten Schaar * Makefile.am (SUBDIRS): Added graphics subdirectory. (gnome_stones_SOURCES): Added the 'preferences.*' files. (Caves_DATA): Added new tutorial game. (pixmap_DATA): Removed. (EXTRA_DIST): Removed 'title.xcf' and 'tiles.xcf'. Added 'README'. * main.c: 'stone_images' and 'image_table' variables not needed anymore. Therefore added 'curtain_[imlib_]image' variables. (load_images): Split into the two functions 'title_image_load' and 'curtain_image_load'. (title_image_load): New function. (curtain_image_load): Likewise. (game_widget_expose_event_cb): Doesn't use 'stone_images' anymore, but uses the new 'cave_get_image' function to get the image to display. (game_update_image): Now uses 'cave_get_imlib_image' to get the image to display. (game_widget_key_press_callback): 'start_cave' is saved to disc now. (game_widget_create): The preparation of the canvas widget was moved to 'game_widget_fill'. (game_widget_fill): New function. (joystick_get_information): Joystick is only evaluated, if the gnome-stones window has focus. (joystick_focus_change_event): New function. (joystick_set_widget): Likewise. Definition of some global variables moved to 'preferences.c'. Preferences stuff moved to 'preferences.c'. * cave.c (object_register): This function now loads the objects image file and cuts it into pieces. (object_get_type): New function. (object_get_image): Likewise. (gnome_scanned): Now stores the gnomes last movement. (gnome_animate): New function. (objects_register_all): Added missing registration of the open_exit object. (cave_get_image): New function. (cave_get_imlib_image): Likewise. (empty_animate): Made function fit the new 'AnimationFunction'definition. (amoeba_animate): Likewise. (magic_wall_animate): Likewise. (eight_animate): Likewise. (explosion_animate): Likewise. (entrance_animate): Likewise. (cave_get_image): Likewiese. (cave_get_image): Renamed and returns image now. (object_register): Now loads objects image. (object_get_image): Name says it all;-) * types.h (struct _GStonesCave): Added members 'translation_table' and 'key_size'. The members are not used yet. (struct _GStonesObject): Renamed member 'iy' to 'editor_index' and member 'ix' to 'image_index'. Added two memebers 'image' and 'imlib_image'. (*AnimationFunction): Removed 'ix' and 'iy' parameter. An AnimationFunction now has to return the image index in the object's image. (struct _GStonesObject): Added 'image_name' member. (struct _GStonesCave): New members 'key_size' and 'translation_table'. * cave.h (cave_get_image): 'cave_get_image_index' renamed and new parameter 'image' added. (object_get_image): Declaration added. * preferences.c: New file. * preferences.h: New file. 1998-08-28 Carsten Schaar * main.c: Added the global variables 'joystick_deviceid' and 'joystick_switch_level'. These variables hold the joystick configuration. (game_widget_create): Make the 'game_widget' receive XInput events. (joystick_get_information): New function. (iteration_timeout_function): Additionally call joystick_get_information. (struct _PreferencesData): Extended the structure. (preferences_apply_cb): Now also sets joystick information. (preferences_set_joystick_device): New function. (preferences_set_joystick_switch_level): New function. (preferences_dialog_new): New joystick configuration notebook added. 1998-08-26 Carsten Schaar * README: New file.