CVS log for shutdown.c
Up to [DownTime]
Request diff between arbitrary revisions - Display revisions graphically
Keyword substitution: kv
Default branch: MAIN
Revision 1.48: download - view: text, markup, annotated - select for diffs
Fri Mar 12 15:25:39 2010 UTC (2 years, 2 months ago) by nick
Branches: MAIN
CVS tags: HEAD
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +14 -14
lines
Primary and secondary text according to the GNOME HIG in dialogs
Revision 1.47: download - view: text, markup, annotated - select for diffs
Fri Mar 12 13:53:09 2010 UTC (2 years, 2 months ago) by nick
Branches: MAIN
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +16 -16
lines
Clean up dialogs, try to set parets of modal warning / error dialogs... Haven't been able to do it nicely everywhere, particularly in storage.c.
Revision 1.46: download - view: text, markup, annotated - select for diffs
Sat Feb 20 12:41:26 2010 UTC (2 years, 2 months ago) by nick
Branches: MAIN
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +3 -3
lines
- Fixed Save as / Open filter
- File associations - double-clicking a saved .downtime file file launch DownTime with those settings. If auto_run was specified, a shutdown will be launched immediately
- Tray icon, enabled by default when a shutdown is pending
- Remove the "Remember these settings" check box - We now always remember the last shutdown in the user's .downtime file, but don't auto-save to any other loader file
- Disable File->Save if we can't write to the current config file
Revision 1.45: download - view: text, markup, annotated - select for diffs
Wed Feb 17 02:56:34 2010 UTC (2 years, 3 months ago) by nick
Branches: MAIN
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +1 -1
lines
- Disable the "remember these settings" check box if there's no config file
- Proper GTK file open dialog
- Bump some dates and change dome minor things
Revision 1.44: download - view: text, markup, annotated - select for diffs
Tue Feb 9 04:31:02 2010 UTC (2 years, 3 months ago) by nick
Branches: MAIN
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +2 -2
lines
*** empty log message ***
Revision 1.43: download - view: text, markup, annotated - select for diffs
Wed May 13 09:12:26 2009 UTC (3 years ago) by nick
Branches: MAIN
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +1 -1
lines
- 0.3.2!
- Bump copyright date
Revision 1.42: download - view: text, markup, annotated - select for diffs
Thu Apr 9 04:59:08 2009 UTC (3 years, 1 month ago) by nick
Branches: MAIN
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +14 -8
lines
Should work on Ubuntu 8.10 (using gksudo)
Revision 1.41: download - view: text, markup, annotated - select for diffs
Tue Jun 24 13:49:53 2008 UTC (3 years, 10 months ago) by nick
Branches: MAIN
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +85 -58
lines
- Progress bar behaves (at least more) correctly under pausing
- Break out some info nto separate header files
- Kill cat_strings, replace with pasprintf() where appropriate
- Style and miscellaneous small clean-ups
Revision 1.40: download - view: text, markup, annotated - select for diffs
Mon Jun 23 12:36:44 2008 UTC (3 years, 10 months ago) by nick
Branches: MAIN
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +2 -2
lines
Bump copyright date and replace another "AUTHOR" with "THE AUTHOR(S)"
Revision 1.39: download - view: text, markup, annotated - select for diffs
Mon Aug 27 01:32:42 2007 UTC (4 years, 8 months ago) by nick
Branches: MAIN
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +6 -8
lines
Corerct shutdown parameter passing
Revision 1.38: download - view: text, markup, annotated - select for diffs
Tue Aug 21 02:56:11 2007 UTC (4 years, 9 months ago) by nick
Branches: MAIN
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +1 -1
lines
Use "'\0'" rather than "(char) NULL" when referring to the NUL character
Revision 1.37: download - view: text, markup, annotated - select for diffs
Sun Aug 12 08:54:19 2007 UTC (4 years, 9 months ago) by nick
Branches: MAIN
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +10 -6
lines
Slightly redo adding the shutdown parameter to the shutdown(8) args
Revision 1.36: download - view: text, markup, annotated - select for diffs
Sat Aug 11 10:47:11 2007 UTC (4 years, 9 months ago) by nick
Branches: MAIN
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +2 -2
lines
- Bump copyright dates and change "AUTHOR" to "THE AUTHOR(S)" in various source files
- "Always on top" setting for the progress window works
- Allow for specifying a configuration file as the first command-line parameter. Thisd could be helpful if people have multiple regular shutdown regimens they use and (for example) wish to set up different shortcuts for them
Revision 1.35: download - view: text, markup, annotated - select for diffs
Sun May 6 11:49:39 2007 UTC (5 years ago) by nick
Branches: MAIN
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +2 -2
lines
- "Close" button on "About" dialog now closes the dialog as expected
- Preferences dialog, with "Always on top" settings for both main dialog and progress dialog
- Makefile sets X11BASE to /usr/local if not defined
- Global window and sub-element structures. Geez I wish GTK callbacks allowed for multiple user parameters to be passed...
- Miscellaneous cleanups / relatively minor changes
Revision 1.34: download - view: text, markup, annotated - select for diffs
Mon Mar 19 06:10:24 2007 UTC (5 years, 2 months ago) by nick
Branches: MAIN
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +13 -1
lines
Initial work on Preferences dialog and Advanced main dialog view
Revision 1.33: download - view: text, markup, annotated - select for diffs
Sun Mar 18 09:52:34 2007 UTC (5 years, 2 months ago) by nick
Branches: MAIN
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +25 -17
lines
No longer use the non-standard err() and warn() functions / their peers
Revision 1.32: download - view: text, markup, annotated - select for diffs
Mon Jul 17 05:20:47 2006 UTC (5 years, 10 months ago) by nick
Branches: MAIN
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +2 -2
lines
Stylistic changes only
Revision 1.31: download - view: text, markup, annotated - select for diffs
Sat Jul 15 12:17:09 2006 UTC (5 years, 10 months ago) by nick
Branches: MAIN
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +75 -35
lines
- No more settings struct. We now have a shutdown_t struct, which holds information relevant to the shutdown process, a user_specs struct, which holds all directly user-specified information, and two global variables: config_path and shutdown_path (both of type char *). Many changes have been made to incorporate these changes
- Further passing of variables rather than accessing them externally. Note that we're passing the new specs struct to functions that you would normally expect not to require it (e.g., get_user_specs()). This is because there may be more stored in specs in the future than just stuff displayed in the main window
- load_user_specs() (formerly load_settings()) now only modifies settings on a successful call
- Better usage of macros in downtime.h for settings default user specs
- New function update_user_specs(user_specs *specs) which updates the struct pointed to by specs to reflect (at this point) the current settings in the main window
- Myriad minor improvements
Revision 1.30: download - view: text, markup, annotated - select for diffs
Fri Jul 14 10:16:18 2006 UTC (5 years, 10 months ago) by nick
Branches: MAIN
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +8 -10
lines
- Correctly record the shutdown type specified. This corrects a recently introduced bug that would cause the shutdown type specified to only take effect on the _next_ shutdown (i.e.: Not the one the type was specified for)
- Reduced dependence on global variables
Revision 1.29: download - view: text, markup, annotated - select for diffs
Thu Jul 13 03:17:17 2006 UTC (5 years, 10 months ago) by nick
Branches: MAIN
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +1 -1
lines
- Slight renamings. In particular, shutdown_params -> state, and the aforementioned struct's config_location parameter is now config_path
- init_state() created (and used) to initialise the global settings
- If we couldn't find the location of the configuration file, disable the ability to save / remember settings
- Graphically warn the user if there was a problem loading saved settings, unless the problem in question is simply that the file doesn't exist
- Check for non-printable characters (other than newline) when reading the configuration file
- Correctly output the configuration file name in the error dialogue which appears if we couldn't open a file specified through File -> Open
Revision 1.28: download - view: text, markup, annotated - select for diffs
Tue Jul 11 08:04:39 2006 UTC (5 years, 10 months ago) by nick
Branches: MAIN
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +20 -98
lines
- Broke start_shutdown() apart
- Miscellaneous corrections and improvements
Revision 1.27: download - view: text, markup, annotated - select for diffs
Sun Jul 2 07:06:41 2006 UTC (5 years, 10 months ago) by nick
Branches: MAIN
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +20 -8
lines
Improved error checking code (still needs some work, though)
Revision 1.26: download - view: text, markup, annotated - select for diffs
Sun Jul 2 04:42:24 2006 UTC (5 years, 10 months ago) by nick
Branches: MAIN
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +14 -11
lines
- Miscellaneous cleanups / minor corrections / improvements
- Slightly improved shutdown(8) output handling and handling possibilities
Revision 1.25: download - view: text, markup, annotated - select for diffs
Sat Jul 1 16:47:03 2006 UTC (5 years, 10 months ago) by nick
Branches: MAIN
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +32 -47
lines
- Improve shutdown(8) output handling greatly. DownTime will now no longer wait indefinitely for shutdown(8) to output a PID
- If we couldn't find the shutdown(8) PID, disable the pause button in the progress dialog, don't keep checking whether the process is active (can't, don't know it's PID, assuming it exists) and don't prompt to terminate a shutdown on DownTime exit
- START_SHUTDOWN_PID_OUTPUT is now defined in downtime.h for easier manipulation, given that it's likely to change across platforms
Revision 1.24: download - view: text, markup, annotated - select for diffs
Sat Jul 1 12:41:17 2006 UTC (5 years, 10 months ago) by nick
Branches: MAIN
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +10 -2
lines
- Instead of writing the value of an enum member to the configuration file for the "timeout_unit" and "shutdown_type", write a string describing the desired setting. Though this requires more effort to deal with and more execution time, it makes up for it in the robustness stakes. That having been said, it's still a bit messy and I can't help but feel that an array of structs with a number and parameter name each might help provide a better solution
- Correctly report negative shutdown timeout
Revision 1.23: download - view: text, markup, annotated - select for diffs
Sat Jul 1 06:54:45 2006 UTC (5 years, 10 months ago) by nick
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +35 -16
lines
- Bump version number to 0.2.0-dev. Sufficient changes have been made, and further significant changes - including breaking configuration file compatibility with previous versions - are to come
- New TODOs
- Implement long int max_minutes_to_shutdown(void), which returns the maximum number of minutes until a scheduled shutdown (for instance, it will return 7 when a shutdown is to occur in 6 minutes and 3 seconds)
- Miscellaneous cleanups
- Start of a "shutdown_type" struct - trying to clean up the shutdown type selection menu and interactions and allow the searching of shutdown types based on name (the motivation here is the potential to specify a shutdown type in words in the DownTime configuration file. So, for instance, the following line might be common in the file: "<shutdown_type>power-off</shutdown_type>")
- Use single bit bit-fields in the shutdown_params struct rather than char types for boolean variables to potentially converse 2 bytes on most machines
Revision 1.22: download - view: text, markup, annotated - select for diffs
Wed Jun 28 15:11:12 2006 UTC (5 years, 10 months ago) by nick
Branches: MAIN
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +13 -14
lines
- Only save settings when there isn't a shutdown already paused (i.e.: When the user clicks "OK" on the main window to initiate a shutdown) rather than each time a shutdown is scheduled. This matters because pausing is implemented using the global settings a time in minutes and hence sets the shutdown unit type to minutes
- No longer output the signal shutdown(8) return, if any
Revision 1.21: download - view: text, markup, annotated - select for diffs
Wed Jun 28 06:43:59 2006 UTC (5 years, 10 months ago) by nick
Branches: MAIN
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +3 -1
lines
Clean up, and display an error in the event that we can't stat(2) the shutdown(8) binary
Revision 1.20: download - view: text, markup, annotated - select for diffs
Tue May 23 11:26:00 2006 UTC (5 years, 11 months ago) by nick
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +16 -15
lines
Be sure to read the timeout value from the GUI text field on the first shutdown
Revision 1.19: download - view: text, markup, annotated - select for diffs
Tue May 23 09:53:17 2006 UTC (5 years, 11 months ago) by nick
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +1 -1
lines
Version 0.1.3
Revision 1.18: download - view: text, markup, annotated - select for diffs
Tue May 23 08:36:12 2006 UTC (5 years, 11 months ago) by nick
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +26 -23
lines
Implement pause functionality
Revision 1.17: download - view: text, markup, annotated - select for diffs
Tue May 23 06:01:53 2006 UTC (5 years, 11 months ago) by nick
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +25 -28
lines
Fixed a bug whereby the shutdown path would be undefined after a File -> Open of a config
Revision 1.16: download - view: text, markup, annotated - select for diffs
Tue May 23 05:43:47 2006 UTC (5 years, 11 months ago) by nick
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +5 -1
lines
Fixed some more memory leaks.
About to do a bit of stuffing about so that when load_settings() is called we don't lose the shutdown path
Revision 1.15: download - view: text, markup, annotated - select for diffs
Sun May 21 14:41:38 2006 UTC (6 years ago) by nick
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +1 -9
lines
Appear to have fixed both bugs mentioned in the previous commit message by adding (char *) NULL to shutdown_param_array, rather than "".
I don't get this... Perhaps it's just too late at night or something! Needs further investigation and understanding before being released.
Revision 1.14: download - view: text, markup, annotated - select for diffs
Sun May 21 14:30:10 2006 UTC (6 years ago) by nick
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +20 -16
lines
Slightly less boned now, but there're still issues:
- " Size 36" appears to get appended to the end of shutdown_param_array in shutdown.c, or at least a ps -ax | grep shutdown shows it there after launching...
- "Bad address" back again sometimes when launching shutdown(8)... Could be related to the issue above?
Revision 1.13: download - view: text, markup, annotated - select for diffs
Sat May 20 10:17:30 2006 UTC (6 years ago) by nick
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +15 -10
lines
Use array_add()
Revision 1.12: download - view: text, markup, annotated - select for diffs
Thu Apr 6 05:13:34 2006 UTC (6 years, 1 month ago) by nick
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +1 -1
lines
- Use the macro PRGNAME instead of DownTime
- Replaced an instance of the old program name ("Shutgui") with PRGNAME
Revision 1.11: download - view: text, markup, annotated - select for diffs
Tue Apr 4 13:08:53 2006 UTC (6 years, 1 month ago) by nick
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +15 -24
lines
More variable / pointer / malloc() silliness fixed
Revision 1.10: download - view: text, markup, annotated - select for diffs
Tue Apr 4 13:01:18 2006 UTC (6 years, 1 month ago) by nick
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +21 -28
lines
Yet more variable fixing up
Revision 1.9: download - view: text, markup, annotated - select for diffs
Tue Apr 4 12:08:52 2006 UTC (6 years, 1 month ago) by nick
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +58 -62
lines
Code cleanup, removing "p_" etc. from variable names, removed some unnecessary malloc()s
Revision 1.8: download - view: text, markup, annotated - select for diffs
Sun Apr 2 09:45:29 2006 UTC (6 years, 1 month ago) by nick
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +2 -2
lines
Implement pasprintf() and pvasprintf() as portable replacements of the asprintf() and vasprintf() functions
Revision 1.7: download - view: text, markup, annotated - select for diffs
Sun Apr 2 07:46:49 2006 UTC (6 years, 1 month ago) by nick
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +0 -10
lines
Revive Makefile... Need to learn a lot more about GNU autotools before I can use them effectively
Revision 1.6: download - view: text, markup, annotated - select for diffs
Wed Mar 15 09:15:28 2006 UTC (6 years, 2 months ago) by nick
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +6 -0
lines
- Include "config.h" in source files
- Check for asprintf() and vasprintf()
Revision 1.5: download - view: text, markup, annotated - select for diffs
Mon Mar 13 05:18:42 2006 UTC (6 years, 2 months ago) by nick
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +4 -0
lines
- Include strings.h for GNU/Linux systems where required to be able to use index()
- #define _GNU_SOURCE on GNU/Linux systems where required to be able to use asprintf() and vasprintf() (A genuinely portable solution should be found)
- Some indenting issues fixed
Revision 1.4: download - view: text, markup, annotated - select for diffs
Mon Mar 13 00:17:12 2006 UTC (6 years, 2 months ago) by nick
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +1 -0
lines
Include stdio.h for asprintf() & co.
Revision 1.3: download - view: text, markup, annotated - select for diffs
Sat Mar 11 08:43:56 2006 UTC (6 years, 2 months ago) by nick
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +6 -2
lines
Apparently sysexits.h is only available on BSD systems. Therefore, we now only include it on BSD systems, and we redefine EX_* to EXIT_FAILURE for other systems
Revision 1.2: download - view: text, markup, annotated - select for diffs
Tue Mar 7 07:58:02 2006 UTC (6 years, 2 months ago) by nick
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +27 -2
lines
(NOTE: Commit date wrong. Imported into CVS after release)
Version 0.1.1
- Corrected a bug which would cause DownTime to loop for a heck of a long time trying to free() memory that wasn't allocated in the first place due to an unsigned integer underflow
- Corrected program name in COPYRIGHT (whoops!)
- Added license information to all C source files
- Added CHANGELOG
Revision 1.1: download - view: text, markup, annotated - select for diffs
Tue Mar 7 07:49:30 2006 UTC (6 years, 2 months ago) by nick
Branches: MAIN
(NOTE: Commit date wrong. Imported into CVS after release)
Initial, version 0.1 release!
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>