rem: while (g_file_test (fullpath, G_FILE_TEST_EXISTS) == TRUE
add: while (g_file_test (fullpath, G_FILE_TEST_EXISTS) != FALSE
context: screenshot_make_filename (Totem *totem){	GtkWidget *radiobutton, *entry;	gboolean on_desktop;	char *fullpath, *filename;	int i = 0;	gboolean desktop_exists;	radiobutton = glade_xml_get_widget (totem->xml, "tsw_save2desk_radiobutton");	on_desktop = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON			(radiobutton));	/* Test if we have a desktop directory */	fullpath = g_build_path (G_DIR_SEPARATOR_S, g_get_home_dir (),			"Desktop", NULL);	desktop_exists = g_file_test (fullpath, G_FILE_TEST_EXISTS);	g_free (fullpath);	if (desktop_exists == FALSE)	{		fullpath = g_build_path (G_DIR_SEPARATOR_S, g_get_home_dir (),				".gnome-desktop", NULL);		desktop_exists = g_file_test (fullpath, G_FILE_TEST_EXISTS);		g_free (fullpath);	}	if (on_desktop == TRUE)	{		filename = g_strdup_printf (_("Screenshot%d.png"), i);		fullpath = screenshot_make_filename_helper (totem, filename,				desktop_exists);		while (g_file_test (fullpath, G_FILE_TEST_EXISTS) == TRUE				&& i < G_MAXINT)		{			i++;			g_free (filename);			g_free (fullpath);			filename = g_strdup_printf (_("Screenshot%d.png"), i);			fullpath = screenshot_make_filename_helper (totem,					filename, desktop_exists);		}		g_free (filename);	} else {		entry = glade_xml_get_widget (totem->xml, "tsw_save2file_combo_entry");		if (gtk_entry_get_text (GTK_ENTRY (entry)) == NULL)			return NULL;		fullpath = g_strdup (gtk_entry_get_text (GTK_ENTRY (entry)));	}	return fullpath;}