NULL vs. 0. Fix a test to use the boolean instead of the return value from

2004-12-25  Kjartan Maraas  <kmaraas@gnome.org>

	* factory.c: (main): NULL vs. 0.
	* gnome-settings-default-editor.c: (vfs_change_cb): Fix a test to
	use the boolean instead of the return value from a void function.
	This has been sitting in bugzilla forever and now other people start
	adding comments to the code about it so I'm just going to commit.
	* gnome-settings-keybindings.c: (binding_register_keys): ANSIfication.
This commit is contained in:
Kjartan Maraas 2004-12-25 14:32:12 +00:00 committed by Kjartan Maraas
parent dbbb7dc8d5
commit ea68d7a0c9
4 changed files with 12 additions and 10 deletions

View file

@ -1,3 +1,12 @@
2004-12-25 Kjartan Maraas <kmaraas@gnome.org>
* factory.c: (main): NULL vs. 0.
* gnome-settings-default-editor.c: (vfs_change_cb): Fix a test to
use the boolean instead of the return value from a void function.
This has been sitting in bugzilla forever and now other people start
adding comments to the code about it so I'm just going to commit.
* gnome-settings-keybindings.c: (binding_register_keys): ANSIfication.
2004-12-24 Sergey V. Udaltsov <svu@gnome.org>
* gnome-settings-keyboard-xkb.c: from now on, the applet only works as

View file

@ -16,7 +16,7 @@ int main (int argc, char *argv [])
{
GnomeClient *session;
Bonobo_RegistrationResult ret;
gchar *restart_argv[] = { "gnome-settings-daemon", NULL, 0 };
gchar *restart_argv[] = { "gnome-settings-daemon", NULL, NULL };
restart_argv[1] = *argv;

View file

@ -85,15 +85,8 @@ vfs_change_cb (GnomeVFSMIMEMonitor *monitor, GConfClient *client)
PRINT_STATE;
/*
QUESTION from svu: what is this? Checking the function?
I constantly get warnings/errors on it.
Should it be 'sync_changes' instead?
if (!sync_changes_cb)
if (!sync_changes)
return;
*/
star_app = gnome_vfs_mime_get_default_application ("text/*");
plain_app = gnome_vfs_mime_get_default_application ("text/plain");

View file

@ -330,7 +330,7 @@ do_grab (gboolean grab,
}
void
binding_register_keys ()
binding_register_keys (void)
{
GSList *li;