CVS log for main.c

[BACK] Up to [DownTime]

Request diff between arbitrary revisions - Display revisions graphically


Keyword substitution: kv
Default branch: MAIN


Revision 1.37: download - view: text, markup, annotated - select for diffs
Fri Mar 12 15:25:38 2010 UTC (2 years, 2 months ago) by nick
Branches: MAIN
CVS tags: HEAD
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +8 -8 lines
Primary and secondary text according to the GNOME HIG in dialogs

Revision 1.36: 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.35: preferred, colored
Changes since revision 1.35: +10 -10 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.35: download - view: text, markup, annotated - select for diffs
Thu Feb 18 10:27:01 2010 UTC (2 years, 3 months ago) by nick
Branches: MAIN
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +27 -15 lines
  - File->Save As, wherein one can specify that the saved file should auto-run. Still need to fix file filter
  - Support "auto_run" tag in saved configuration files launched via DownTime to automatically start a specified shutdown

Revision 1.34: 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.33: preferred, colored
Changes since revision 1.33: +15 -9 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.33: 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.32: preferred, colored
Changes since revision 1.32: +2 -3 lines
*** empty log message ***

Revision 1.32: 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.31: preferred, colored
Changes since revision 1.31: +1 -1 lines
- 0.3.2!
- Bump copyright date

Revision 1.31: 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.30: preferred, colored
Changes since revision 1.30: +2 -2 lines
Should work on Ubuntu 8.10 (using gksudo)

Revision 1.30: 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.29: preferred, colored
Changes since revision 1.29: +13 -13 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.29: 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.28: preferred, colored
Changes since revision 1.28: +2 -2 lines
Bump copyright date and replace another "AUTHOR" with "THE AUTHOR(S)"

Revision 1.28: download - view: text, markup, annotated - select for diffs
Sat Aug 11 17:33:23 2007 UTC (4 years, 9 months ago) by nick
Branches: MAIN
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +6 -10 lines
  - Remove window structs (one could certainly argue this makes things messier, rather than the cleaner...)
  - Re-introduce File -> Open and File -> Save (A "Save As..." should be forthcoming) as they could be used nicely in conjunction with the previously introduced command-line parameter configuration file path passing

Revision 1.27: 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.26: preferred, colored
Changes since revision 1.26: +13 -3 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.26: 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.25: preferred, colored
Changes since revision 1.25: +14 -19 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.25: 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.24: preferred, colored
Changes since revision 1.24: +6 -1 lines
Initial work on Preferences dialog and Advanced main dialog view

Revision 1.24: 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.23: preferred, colored
Changes since revision 1.23: +12 -9 lines
No longer use the non-standard err() and warn() functions / their peers

Revision 1.23: download - view: text, markup, annotated - select for diffs
Wed Aug 9 01:13:11 2006 UTC (5 years, 9 months ago) by nick
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +5 -0 lines
Warn if the shutdown(8) binary is setuid but the user doesn't have execute permissions on it

Revision 1.22: download - view: text, markup, annotated - select for diffs
Sat Jul 15 14:52:31 2006 UTC (5 years, 10 months ago) by nick
Branches: MAIN
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +0 -2 lines
Much stuffing about with gtk_main() / gtk_main_quit() etc., across a variety of functions to ensure correct window operation

Revision 1.21: 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.20: preferred, colored
Changes since revision 1.20: +6 -16 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.20: 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.19: preferred, colored
Changes since revision 1.19: +9 -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.19: 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.18: preferred, colored
Changes since revision 1.18: +16 -7 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.18: 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.17: preferred, colored
Changes since revision 1.17: +6 -8 lines
- Broke start_shutdown() apart
- Miscellaneous corrections and improvements

Revision 1.17: download - view: text, markup, annotated - select for diffs
Mon Jul 3 14:24:31 2006 UTC (5 years, 10 months ago) by nick
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +2 -1 lines
load_settings() now returns status information.

About to look at settings (i.e., the shutdown_params struct) and passing between functions

Revision 1.16: download - view: text, markup, annotated - select for diffs
Wed Jun 28 15:07:46 2006 UTC (5 years, 10 months ago) by nick
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +15 -3 lines
- Do checking to ensure that the configuration file location was actually found
- free() the memory pointed to by the return value of get_config_location(), fixing a small memory leak

Revision 1.15: download - view: text, markup, annotated - select for diffs
Wed Jun 28 06:44:47 2006 UTC (5 years, 10 months ago) by nick
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +2 -3 lines
Clean up, and display an error in the event that we can't stat(2) the shutdown(8) binary

Revision 1.14: 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.13: preferred, colored
Changes since revision 1.13: +8 -7 lines
Version 0.1.3

Revision 1.13: 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.12: preferred, colored
Changes since revision 1.12: +9 -15 lines
Fixed a bug whereby the shutdown path would be undefined after a File -> Open of a config

Revision 1.12: 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.11: preferred, colored
Changes since revision 1.11: +6 -0 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.11: download - view: text, markup, annotated - select for diffs
Mon May 8 14:05:17 2006 UTC (6 years ago) by nick
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +1 -1 lines
Complete execute only requirement for shutdown binary across files / messages

Revision 1.10: download - view: text, markup, annotated - select for diffs
Tue May 2 14:04:16 2006 UTC (6 years ago) by nick
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +1 -1 lines
ONly need execute permissons on the shutdown(8) binary to run it (assuming it's setuid root)

Revision 1.9: download - view: text, markup, annotated - select for diffs
Thu Apr 6 05:12:49 2006 UTC (6 years, 1 month ago) by nick
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +4 -6 lines
Check for the existence of the shutdown(8) binary, even if it was user-specified at compile-time

Revision 1.8: download - view: text, markup, annotated - select for diffs
Thu Apr 6 05:01:11 2006 UTC (6 years, 1 month ago) by nick
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +8 -2 lines
	- Only warn if performing a shutdown may not be permitted, rather than erroring
	- Differentiate between BSD and non-BSD systems when checking the ability to perform a shutdown

Revision 1.7: download - view: text, markup, annotated - select for diffs
Tue Apr 4 12:08:51 2006 UTC (6 years, 1 month ago) by nick
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +9 -9 lines
Code cleanup, removing "p_" etc. from variable names, removed some unnecessary malloc()s

Revision 1.6: 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.5: preferred, colored
Changes since revision 1.5: +0 -6 lines
Revive Makefile... Need to learn a lot more about GNU autotools before I can use them effectively

Revision 1.5: 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.4: preferred, colored
Changes since revision 1.4: +6 -0 lines
- Include "config.h" in source files
- Check for asprintf() and vasprintf()

Revision 1.4: 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.3: preferred, colored
Changes since revision 1.3: +2 -2 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.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: +25 -0 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!

Diff request

This form allows you to request diffs between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

Log view options

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>